joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4162b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4162ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4162d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4162c0
mov eax, 1
add ebx, ebx
jne 0x4162e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4162d8
jne 0x4162f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4162d8
xor ecx, ecx
sub eax, 3
jb 0x416308
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41637a
mov ebp, eax
add ebx, ebx
jne 0x416313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416344
inc ecx
add ebx, ebx
jne 0x416330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416325
jne 0x416341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416325
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416355
jmp 0x4162c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416364
add edi, ecx
jmp 0x4162c6
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x4163c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1606c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416381
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16074]
or eax, eax
je 0x4163bd
mov dword [ebx], eax
add ebx, 4
jmp 0x41639e
call dword [esi + 0x16070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4163f4
cmp al, 0xef
ja 0x4163e7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4163c9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4163d6
mov ebp, dword [esi + 0x16078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x416428
sub esp, 0xffffff80
jmp 0x405dd2

Function at 0x402e70
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402ea8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x402e9e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x402eaa
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x402e90
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401cd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4749c9
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x496694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x58], esi
cmp ecx, dword [ebx + 8]
jne 0x401d4c
mov edx, dword [ebx]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
shr eax, 1
inc eax
push eax
lea ecx, [ebx + 4]
call fcn.00401ea0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebx + 4]
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebx + 0x14], 0
xor eax, eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
xor eax, eax
lea ecx, [edx + ecx*2]
mov word [ebp - 0x2c], ax
mov eax, ecx
mov dword [ebp - 0x18], 7
lea edi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401d70
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401290
xor ecx, ecx
push 0xffffffffffffffff
mov edi, 1
mov dword [ebp - 4], edi
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00401130
push 2
push 0x4891b8
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
mov dword [ebp - 0x4c], edi
call fcn.00401f30
mov edi, eax
cmp edi, 0xffffffff
je 0x401e01
push edi
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401e30
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004010b0
cmp dword [ebp - 0x34], 8
jb 0x401dfb
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040fc81
add esp, 4
add edi, 2
add dword [ebx + 0x14], edi
cmp dword [ebp - 0x18], 8
jb 0x401e13
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040fc81
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f787
mov esp, ebp
pop ebp
ret
Function at 0x4032f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474318
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x496694]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00403710
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.00403770
add esp, 0x10
push 0x491b40
lea eax, [esp + 0x30]
push eax
call fcn.00411e6b
int3
Function at 0x406900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x496694]
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
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x406941
xor eax, eax
jmp 0x406ada
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
xor eax, eax
cmp edx, eax
je 0x40696f
mov ecx, dword [esi + 0x34]
mov ebx, dword [ecx]
lea ebx, [edx + ebx*2]
cmp edx, ebx
jae 0x40696f
dec dword [ecx]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x406ada
cmp dword [esi + 0x54], eax
je 0x406ad5
mov edx, dword [esi + 0x10]
lea ebx, [esi + 0x48]
cmp dword [edx], ebx
jne 0x406998
mov ecx, dword [esi + 0x40]
mov ebx, dword [esi + 0x3c]
mov dword [edx], ebx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov edx, dword [esi + 0x30]
sub ecx, ecx
sar ecx, 1
mov dword [edx], ecx
cmp dword [esi + 0x44], eax
jne 0x4069c2
mov esi, dword [esi + 0x54]
push esi
push edi
call fcn.0041028b
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x406ada
mov eax, ecx
jmp 0x406ada
movzx edx, di
mov ecx, 0xf
mov dword [ebp - 0x30], edx
mov edx, eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4069ea
lea edx, [ebp - 0x2c]
mov byte [edx + 8], al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x406a02
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [edi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
test eax, eax
js 0x406acd
cmp eax, 1
jg 0x406a95
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x406a42
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, ecx
je 0x406a6b
cmp ebx, 0x10
jae 0x406a51
lea eax, [ebp - 0x2c]
mov ecx, dword [esi + 0x54]
push ecx
push edi
push 1
push eax
call fcn.004116fe
add esp, 0x10
cmp edi, eax
jne 0x406acd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [esi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x406abf
test edi, edi
jne 0x4069f6
cmp dword [ebp - 0x1c], 0x20
lea ecx, [ebp - 0x2c]
jae 0x406ad0
push edi
push 8
call fcn.00407400
jmp 0x4069f0
cmp eax, 3
jne 0x406acd
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.004050b0
movzx esi, word [ebp + 8]
test al, al
jne 0x406ab2
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.004055e0
mov ax, si
jmp 0x406ada
lea ecx, [ebp - 0x2c]
call fcn.004055e0
mov ax, word [ebp + 8]
jmp 0x406ada
lea ecx, [ebp - 0x2c]
call fcn.004055e0
mov eax, 0xffff
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.0040f787
mov esp, ebp
pop ebp
ret 4
Function at 0x407950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474038
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x496694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x407a7b
cmp byte [edi + 0x4a], bl
je 0x407a7b
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x407a6f
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4079cf
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4079e7
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x407a10
dec eax
je 0x407a14
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x407a6a
jmp 0x407a76
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x407a24
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x407a4d
cmp ebx, 0x10
jae 0x407a33
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004116fe
add esp, 0x10
cmp esi, eax
jne 0x407a67
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x407a73
test esi, esi
jne 0x4079db
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00407400
jmp 0x4079d5
lea ecx, [ebp - 0x2c]
call fcn.004055e0
xor al, al
jmp 0x407a7d
lea ecx, [ebp - 0x2c]
call fcn.004055e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f787
mov esp, ebp
pop ebp
ret
Function at 0x408a50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473e9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x496694]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040e5ac
push 4
mov dword [ebp - 4], 0
call fcn.0040fcdd
mov edi, eax
add esp, 4
test edi, edi
je 0x408acc
call fcn.0040e484
mov dword [edi], eax
call fcn.0040e243
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040e56d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x408ac2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040e595
jmp 0x408ace
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x40b110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareEDataStore
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b175
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.LanguageID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40b790
Capabilities:
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x496694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0041a050
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x19
lea edx, [ebp - 0x20c]
push edx
push 0
call edi
push 0x48961c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040ff58
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0040ff58
push str..lnk
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0040ff58
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x210]
push ecx
push str.SoftwareEDataStore
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40b8a4
push ebx
mov eax, 4
lea edx, [ebp - 0x218]
push edx
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
push str.EnableLoginAuth
push edx
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x210]
push eax
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
jne 0x40b8ea
xor ecx, ecx
push ecx
push 0x19
lea edx, [ebp - 0x20c]
push edx
push ecx
mov word [ebp - 0x20c], cx
call edi
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x1005
push 0x8000000
call esi
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0x1005
push 0x80001000
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f787
mov esp, ebp
pop ebp
ret

Function at 0x40b900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x496694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0041a050
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x17
lea edx, [ebp - 0x20c]
push edx
push 0
call edi
push 0x48961c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040ff58
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0040ff58
add esp, 0x18
lea ecx, [ebp - 0x20c]
call fcn.0040b9e0
xor edx, edx
push edx
push 0x17
lea eax, [ebp - 0x20c]
push eax
push edx
mov word [ebp - 0x20c], dx
call edi
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0x1005
push InitCommonControls
call esi
push 0
lea edx, [ebp - 0x20c]
push edx
push 0x1005
push 0x80001000
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f787
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
mov esi, eax
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
mov edi, ecx
call fcn.0041a050
add esp, 0xc
cmp byte [ebp + 8], 0
mov dword [ebp - 0x58], 0x44
jne 0x40bf83
xor ecx, ecx
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], cx
cmp dword [esi + 0x10], 0
jne 0x40bf8d
xor esi, esi
jmp 0x40bf95
cmp dword [esi + 0x14], 8
jb 0x40bf95
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40bf9f
mov eax, dword [edi]
jmp 0x40bfa1
mov eax, edi
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x58]
push ecx
push esi
push 0
push 0x4000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40bfdf
cmp dword [edi + 0x14], 8
jb 0x40bfcc
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004050d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40bff1
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f3e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x496694]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x499bfc]
test eax, eax
jne 0x40f414
xor esi, esi
jmp 0x40f41d
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 0x40f467
cmp dword [esi + 0x14], 0
jne 0x40f4a9
cmp dword [esi + 0x10], 0
jne 0x40f4b0
push 0x40eef0
push 0x499bf4
call fcn.0040f0f0
mov eax, dword [0x499bfc]
add esp, 8
test eax, eax
je 0x40f55d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x40f495
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40f495
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 0x40f4f0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x40f4de
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 0x40f4b0
cmp dword [esi + 0x14], 0
je 0x40f439
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40f515
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 0x40f546
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40f546
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 0x40f546
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 0x40f4fa
jmp 0x40f433
lea ecx, [esp + 0x18]
call fcn.0040f796
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.004032f0
int3
Function at 0x40f650
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x470b18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x496694]
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 0x40f590
push 0
push 0
call fcn.00416adf
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x40f6bb
lea ecx, [esp + 0x10]
call fcn.0040f796
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.004032f0
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 0x40f6de
cmp eax, 0xffffffff
je 0x40f6de
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 0x40f787
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x496694]
jne 0x40f791
repz ret
jmp fcn.00416b7f
Function at 0x41dafe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x496694]
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.00419711
and dword [ebp - 0x14], 0
cmp dword [0x49a9c0], 0
mov dword [ebp - 0x18], eax
jne 0x41dbb1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41dc59
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47f460
push ebx
call edi
test eax, eax
je 0x41dc59
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x49a9c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49a9c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49a9c8], eax
call edi
push eax
call esi
mov dword [0x49a9d0], eax
test eax, eax
je 0x41dbb1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49a9cc], eax
mov eax, dword [0x49a9cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41dc0a
cmp dword [0x49a9d0], ecx
je 0x41dc0a
push eax
call esi
push dword [0x49a9d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41dc0a
test ebx, ebx
je 0x41dc0a
call edi
test eax, eax
je 0x41dc01
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41dc01
test byte [ebp - 8], 1
jne 0x41dc0a
or dword [ebp + 0x10], 0x200000
jmp 0x41dc3d
mov eax, dword [0x49a9c4]
cmp eax, dword [ebp - 0x18]
je 0x41dc3d
push eax
call esi
test eax, eax
je 0x41dc3d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41dc3d
mov eax, dword [0x49a9c8]
cmp eax, dword [ebp - 0x18]
je 0x41dc3d
push eax
call esi
test eax, eax
je 0x41dc3d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49a9c0]
call esi
test eax, eax
je 0x41dc59
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41dc5b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f787
leave
ret