joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x40ec92
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x40ecc0
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40ecc0
inc edi
cmp edi, edx
jb 0x40ecb1
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x40edc7
cmp eax, 3
jbe 0x40ecf7
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x40ed34
cmp al, 0xff
je 0x40ed34
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x40eca5
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x40ecdb
movzx eax, byte [esi + 0x49abe0]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x49abd8], 0
mov al, byte [ecx + 4]
je 0x40ed20
test al, al
je 0x40ed20
cmp al, 0xff
jne 0x40ecdb
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x40eca5
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x40ed97
movzx edx, byte [esi + 0x49abe0]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x40ed7e
cmp cl, 0xff
jne 0x40ed94
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x40ed52
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x40eca5
cmp eax, 3
jbe 0x40eddc
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00428990
add esp, 0xc
push 0
push 0x19
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x49a824
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041f377
push edi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0041f377
push str..lnk
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0041f377
add esp, 0x24
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.00410b90
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x410ab0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00428990
add esp, 0xc
push 0
push 0x17
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x49a824
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041f377
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0041f377
add esp, 0x18
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x49a824
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041f377
push ebx
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0041f377
push str..lnk
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0041f377
add esp, 0x24
lea edx, [ebp - 0x20c]
mov ecx, edi
call fcn.00410b90
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x410b90
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483f90
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x50]
push eax
push 0x48c63c
push 1
xor ebx, ebx
push ebx
push 0x48c64c
mov esi, ecx
mov edi, edx
mov byte [ebp - 0x49], bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x410d14
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410c04
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401ad0
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], 0x5c
call fcn.00403490
cmp eax, 0xffffffff
je 0x410c72
push eax
push ebx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403390
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401900
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x410c77
mov eax, dword [ebp - 0x48]
push eax
call fcn.0041da61
add esp, 4
jmp 0x410c77
mov esi, 8
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x410c82
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
push 0x48c66c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x410cf3
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push ebx
push edi
push eax
call edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 0x49], 1
jae 0x410ccc
lea esi, [ebp - 0x2c]
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push ebx
push esi
push 0x1005
push reloc.OLEAUT32.dll_VariantClear
call edi
push ebx
push esi
push 0x1005
push 0x80001000
call edi
mov esi, 8
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x18], esi
jb 0x410d0f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041da61
add esp, 4
mov al, byte [ebp - 0x49]
jmp 0x410d16
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x412ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483de6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 5
mov esi, ecx
xor eax, eax
mov edi, 7
xor ebx, ebx
push str.app
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
call fcn.00401ad0
mov dword [ebp - 4], ebx
xor ecx, ecx
push 5
mov word [ebp - 0x234], cx
push str.sys
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
call fcn.00401ad0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x412d81
lea eax, [ebp - 0x250]
mov edi, dword [ebp - 0x240]
push edi
push eax
push esi
call fcn.00412fe0
cmp eax, 0xffffffff
je 0x412daa
push 0xffffffffffffffff
push ebx
push 0x4ad5a0
push edi
push eax
mov ecx, esi
call fcn.00403890
jmp 0x412e2a
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x412dbf
lea eax, [ebp - 0x234]
mov edx, dword [ebp - 0x224]
push edx
push eax
push esi
call fcn.00412fe0
mov edi, eax
cmp edi, 0xffffffff
je 0x412e2a
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00428990
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412e04
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x218]
push edx
push eax
push edi
mov ecx, esi
call fcn.00403570
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x412e46
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0041da61
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], esi
jb 0x412e76
mov eax, dword [ebp - 0x250]
push eax
call fcn.0041da61
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x413d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483d33
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4aa6b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], vtable.boost::detail::thread_data_base.0
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xffffffff
push ebx
push 1
mov dword [ebp - 4], ebx
call fcn.00401240
mov dword [esi + 0xc], eax
add esp, 8
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], 1
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], 1
mov dword [esi], 0x49af54
mov eax, dword [edi]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 8]
lea eax, [edi + 0x10]
mov dword [esi + 0x28], ecx
mov ecx, dword [eax + 0x10]
lea edi, [esi + 0x30]
cmp ecx, ebx
jne 0x413db4
mov dword [edi + 0x10], ebx
jmp 0x413dc7
cmp ecx, eax
mov eax, ecx
mov edx, dword [eax]
mov eax, dword [edx]
jne 0x413dc1
push edi
jmp 0x413dc2
push ebx
call eax
mov dword [edi + 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x49aa14
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x418f1b
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.EnableLoginAuth
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
mov edx, dword [ebp - 8]
push edx
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x49aa14
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x418f8b
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.StartupAutorun
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
mov edx, dword [ebp - 8]
push edx
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4193a0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
xor edi, edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x4193ef
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 4]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x4193d1
push esi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41b7c0
Capabilities:
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484578
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push str.bootRunCheck
lea ecx, [ebx + 0x2c]
mov dword [ebp - 0x34], edi
call fcn.0043716c
mov ecx, eax
call fcn.0043998d
test al, al
je 0x41b818
call fcn.0040a8f0
call fcn.0040a810
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x30]
push eax
push 0x49aa14
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41b852
mov edx, dword [ebp - 0x30]
push 4
lea ecx, [ebp - 0x34]
push ecx
push 4
push edi
push str.StartupAutorun
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.loginCheck
lea ecx, [ebx + 0x2c]
call fcn.0043716c
mov ecx, eax
call fcn.0043998d
test al, al
je 0x41b8e4
cmp dword [0x4ad5b4], 8
mov eax, dword [0x4ad5a0]
jae 0x41b87d
mov eax, 0x4ad5a0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x2c], cx
mov esi, 7
push 0x4ad5a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
call fcn.00401980
push 0x12
push str.EmployeeLogin.exe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00403070
lea ecx, [ebp - 0x2c]
call fcn.00411350
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x41b8d8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041da61
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
push 1
mov ecx, ebx
call fcn.00434612
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret

Function at 0x41b910
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
xor edi, edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x41b961
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 4]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x41b941
push esi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41cf80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x47fdc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4aa6b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x4ade1c]
test eax, eax
jne 0x41cfb4
xor esi, esi
jmp 0x41cfbd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x41d007
cmp dword [esi + 0x14], 0
jne 0x41d049
cmp dword [esi + 0x10], 0
jne 0x41d050
push 0x41ca90
push 0x4ade14
call fcn.0041cc90
mov eax, dword [0x4ade1c]
add esp, 8
test eax, eax
je 0x41d0fd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x41d035
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41d035
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x41d090
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x41d07e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x41d050
cmp dword [esi + 0x14], 0
je 0x41cfd9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41d0b5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x41d0e6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41d0e6
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41d0e6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x41d09a
jmp 0x41cfd3
lea ecx, [esp + 0x18]
call fcn.0041d340
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.00401ef0
int3
Function at 0x41d1f0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x47fe18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4aa6b4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x41d130
push 0
push 0
call fcn.004247ff
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x41d25b
lea ecx, [esp + 0x10]
call fcn.0041d340
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00401ef0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x41d27e
cmp eax, 0xffffffff
je 0x41d27e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x41d331
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4aa6b4]
jne 0x41d33b
repz ret
jmp fcn.0042489f
Function at 0x42d17e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042804a
and dword [ebp - 0x14], 0
cmp dword [0x4aebb4], 0
mov dword [ebp - 0x18], eax
jne 0x42d231
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42d2d9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48ee08
push ebx
call edi
test eax, eax
je 0x42d2d9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4aebb4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4aebb8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4aebbc], eax
call edi
push eax
call esi
mov dword [0x4aebc4], eax
test eax, eax
je 0x42d231
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4aebc0], eax
mov eax, dword [0x4aebc0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42d28a
cmp dword [0x4aebc4], ecx
je 0x42d28a
push eax
call esi
push dword [0x4aebc4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42d28a
test ebx, ebx
je 0x42d28a
call edi
test eax, eax
je 0x42d281
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42d281
test byte [ebp - 8], 1
jne 0x42d28a
or dword [ebp + 0x10], 0x200000
jmp 0x42d2bd
mov eax, dword [0x4aebb8]
cmp eax, dword [ebp - 0x18]
je 0x42d2bd
push eax
call esi
test eax, eax
je 0x42d2bd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42d2bd
mov eax, dword [0x4aebbc]
cmp eax, dword [ebp - 0x18]
je 0x42d2bd
push eax
call esi
test eax, eax
je 0x42d2bd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4aebb4]
call esi
test eax, eax
je 0x42d2d9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42d2db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d331
leave
ret
Function at 0x431210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47fff8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4aa6b4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x4aa6b4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x43125f
mov eax, dword [edi]
jmp 0x431261
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x431281
push esi
push edi
push ebx
call fcn.004310f0
add esp, 0xc
jmp 0x4313c0
test eax, 0x400
je 0x43138e
cmp dword [edi + 0x14], 8
jb 0x431296
mov esi, dword [edi]
jmp 0x431298
mov esi, edi
mov ebx, 7
xor eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x48], eax
call fcn.00431ee0
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4312c0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00403070
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 1
jae 0x4312f1
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 3
jb 0x431325
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041da61
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x431356
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.004310f0
add esp, 0xc
mov eax, esi
jmp 0x4313c2
push edi
call fcn.00430680
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x43137c
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4313c2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x4313a4
mov dword [esi], 0
call fcn.00433130
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x4313bc
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041d331
add esp, 0x3c
ret