joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d768
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x45d7a0]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x45d77e
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x45d78d
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x45d79c
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x45eac4
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x46325c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45eaea
push 0
mov eax, dword [0x46325c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x460148
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004047c0
xor eax, eax
push ebp
push 0x4601d9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ee8
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004047d0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4601c3
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4601e0
lea eax, [ebp - 4]
call fcn.004042f4
ret

Function at 0x42a550
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
pop ebp
ret
Function at 0x402a89
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x402adf
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x402af5
push 0x80004005
call fcn.0040106f
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402af8
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40316d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x440060]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00402a54
mov edi, eax
cmp edi, esi
je 0x4031d5
lea ecx, [ebp - 0x70]
call fcn.004029ef
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410b74
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4031ed
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040316d
cmp eax, esi
jne 0x403220
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4031dd
lea ecx, [ebp - 0x70]
call fcn.004029ef
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004029ef
mov eax, esi
jmp 0x4031bb
Function at 0x4049d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.004046d3
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x404aa2
push ebx
push 0xf0
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x404a28
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x404a86
push eax
call ebx
mov edi, eax
test edi, edi
je 0x404a86
push ebp
push edi
call fcn.00401722
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x404a72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x404a90
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x404a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x404aa2
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x40a88e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x440060]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x3b0]
push edi
mov esi, ecx
mov dword [ebp - 0x74], eax
call dword [0x43ffd0]
xor edi, edi
push 2
push edi
push ebx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x78], ebx
jne 0x40a8f9
call fcn.004028ca
mov esi, eax
jmp 0x40a9c5
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x40a916
call fcn.004028ca
jmp 0x40a9ba
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x6c], eax
je 0x40a90c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40a96f
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x40a946
lea ecx, [ebp - 0x68]
call fcn.004030b3
mov esi, 0x8007000e
lea ecx, [ebp - 0x70]
call fcn.00401945
mov ecx, dword [ebp + 0x39c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410b74
add ebp, 0x3a0
leave
ret 0x10
push eax
lea ecx, [ebp - 0x68]
call fcn.00403a0e
mov ebx, dword [ebp - 0x68]
cmp ebx, edi
jne 0x40a986
mov esi, 0x8007000e
jmp 0x40a9bc
call dword [0x43ffd0]
push esi
push ebx
push esi
push dword [ebp - 0x6c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x40a90c
mov ecx, dword [ebp - 0x68]
push dword [ebp + 0x3b4]
mov word [ecx + eax*2], di
push dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
call fcn.00404b9e
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x40a94b
lea ecx, [ebp - 0x68]
call fcn.004030b3
jmp 0x40a94b
Function at 0x40b4fa
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x437128
lea ecx, [ebp - 4]
call fcn.0040b2e3
push dword [ebp - 4]
xor edi, edi
push 0xcd
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040b454
pop ecx
mov esi, 0x4414ac
push eax
mov ecx, esi
call fcn.00404b2c
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004014a5
push str.funshion.tmp
mov ecx, esi
call fcn.00404b79
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [0x4414ac]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b5ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004014a5
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40c6af
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ecx
push dword [ebp + 8]
push ebx
push ebx
call fcn.0041428e
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 8], ecx
mov byte [ebp - 4], bl
call esi
cmp eax, 0x102
jne 0x40c6ee
push 0xffffffffffffffff
push dword [ebp + 8]
call esi
lea ecx, [ebp - 8]
call fcn.0040c66b
pop esi
pop ebx
leave
ret 8

Function at 0x40c7bf
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push edi
push 8
pop ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x40c843
cmp dword [ebp - 0x10], 0xc8
jne 0x40c807
cmp dword [ebp - 0xc], edi
je 0x40c815
cmp dword [ebp - 0x10], 0x12e
jne 0x40c843
cmp dword [ebp - 0xc], edi
jne 0x40c843
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x40c843
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x40c848
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40dee5
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x964]
sub esp, 0x9e4
mov eax, dword [0x440060]
xor eax, ebp
mov dword [ebp + 0x960], eax
mov eax, dword [ebp + 0x970]
push ebx
mov ebx, dword [ebp + 0x96c]
push esi
mov esi, dword [ebp + 0x974]
push edi
mov edi, dword [ebp + 0x978]
push esi
mov ecx, edi
mov dword [ebp - 0x80], eax
call fcn.00404e50
push 0x436898
lea ecx, [ebp - 0x7c]
call fcn.0040b756
push 0
push 0x28
lea eax, [ebp + 0x758]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x758]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404e50
push str._funshion.ini
lea ecx, [ebp - 0x7c]
call fcn.0040b5bd
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push 0x3e8
push eax
push esi
push dword [ebp - 0x80]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.00404e50
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.004014a5
mov ecx, dword [ebp + 0x960]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410b74
add ebp, 0x964
leave
ret 0x10
Function at 0x40e09a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x440060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x20]
call fcn.0040da0d
push 0xffffffffffffffff
push 0x4373ac
lea ecx, [ebp - 0x20]
call fcn.0040ceb2
push 0x436898
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.0040b756
or dword [ebp - 0x24], 0xffffffff
xor esi, esi
cmp ebx, 0xffffffff
je 0x40e179
push ebx
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040d994
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40e100
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404e50
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040d1bb
push dword [ebp - 0x28]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e162
push 0x4373a8
lea ecx, [ebp - 0x24]
call fcn.0040b2e3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d7ac
add esp, 0xc
push esi
push dword [eax]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004014a5
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004014a5
push esi
push 0x80
push 2
push esi
push 5
push 2
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004014a5
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.0040d1bb
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410b74
leave
ret
Function at 0x40e3b6
Capabilities:
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f94]
mov eax, 0x2014
call fcn.00410de0
mov eax, dword [0x440060]
xor eax, ebp
mov dword [ebp + 0x1f90], eax
push esi
mov esi, ecx
cmp dword [esi + 0x34], 8
jb 0x40e3c4
mov eax, dword [esi + 0x20]
jmp 0x40e3c7
lea eax, [esi + 0x20]
push eax
call fcn.0040e09a
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x78], eax
jne 0x40e3dd
xor al, al
jmp 0x40e4c3
cmp dword [esi + 0x50], 0
je 0x40e3f5
push dword [esi + 0x3c]
mov ecx, esi
call fcn.0040c7bf
mov ecx, dword [esi + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push ebx
push edi
lea eax, [ebp - 0x78]
push 0x1fff
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x7c], 0
mov byte [ebp - 0x70], 0
call fcn.00410400
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, 0x2000
jmp 0x40e464
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x40e47b
mov eax, dword [esi + 0x54]
test eax, eax
je 0x40e436
add dword [eax], ecx
adc dword [eax + 4], 0
push 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e488
push 0x1fff
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.00410400
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [esi + 0x3c]
call edi
test eax, eax
jne 0x40e422
jmp 0x40e47f
test eax, eax
jne 0x40e493
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x4c], eax
cmp dword [esi + 0x34], 8
jb 0x40e4ad
mov esi, dword [esi + 0x20]
jmp 0x40e4b0
mov ecx, esi
call fcn.0040c6fc
cmp eax, 0xc8
jne 0x40e488
lea ecx, [ebp - 0x80]
call fcn.0040c66b
mov al, 1
jmp 0x40e4c1
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x80]
call fcn.0040c66b
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f90]
xor ecx, ebp
pop esi
call fcn.00410b74
add ebp, 0x1f94
leave
ret
Function at 0x40e4d9
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.0040da0d
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0040e1a1
pop ecx
pop ecx
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
lea ecx, [ebp - 0x20]
inc bl
call fcn.0040d1bb
test bl, bl
je 0x40e51b
xor al, al
jmp 0x40e564
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov eax, dword [ebp - 4]
and al, 4
sub al, 4
neg al
push edi
push edi
push edi
sbb eax, eax
and eax, 4
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0x38], eax
jne 0x40e55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x4c], eax
jmp 0x40e517
mov ecx, esi
call fcn.0040c747
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40f060
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x440060]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040eebf
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410400
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40f0af
cmp dword [ebp - 0x1c], 5
jb 0x40f0c7
jmp 0x40f0c3
cmp dword [ebp - 0x10], 1
jne 0x40f0c7
cmp dword [ebp - 0x1c], 4
ja 0x40f0c3
jne 0x40f0c7
cmp dword [ebp - 0x18], 0
jbe 0x40f0c7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x438254
call fcn.0040114e
test eax, eax
jge 0x40f0e8
mov byte [0x441400], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410b74
add ebp, 0x78
leave
ret

Function at 0x40f39d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x441568], 0
push esi
jne 0x40f30b
call fcn.0040f229
test eax, eax
je 0x40f34e
mov eax, dword [0x441568]
cmp eax, 1
jne 0x40f32c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40f34e
pop esi
ret
push eax
call dword [0x441570]
test eax, eax
jne 0x40f396
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40f352
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x441568]
call dword [0x441570]
mov edi, eax
test edi, edi
je 0x40f379
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40f395
lea edi, [esi + 0xff0]
push esi
push dword [0x441568]
call dword [0x44156c]
add esi, 0x10
cmp esi, edi
jb 0x40f37f
mov eax, esi
pop edi
pop esi
ret
jmp 0x40f2f8
Function at 0x410b74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440060]
jne 0x410b7e
repz ret
jmp fcn.00417bc1

Function at 0x4170e9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x440398]
je 0x417104
inc edi
cmp edi, 0x17
jb 0x4170f5
cmp edi, 0x17
jae 0x417284
push ebp
push 3
call fcn.00422be6
cmp eax, 1
pop ecx
je 0x417250
push 3
call fcn.00422be6
test eax, eax
pop ecx
jne 0x417138
cmp dword [0x4400d4], 1
je 0x417250
cmp ebx, 0xfc
je 0x417283
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x441728
push ebp
call fcn.00419187
add esp, 0xc
test eax, eax
je 0x41716e
push esi
push esi
push esi
push esi
push esi
call fcn.00414390
add esp, 0x14
push 0x104
mov esi, 0x441741
push esi
push 0
mov byte [0x441845], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4171b2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00419187
add esp, 0xc
test eax, eax
je 0x4171b2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00414390
add esp, 0x14
push esi
call fcn.00413d20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4171f7
push esi
call fcn.00413d20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x441a3c
push 0x438a2c
sub ecx, eax
push ecx
push eax
call fcn.00422b33
add esp, 0x14
test eax, eax
je 0x4171f7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00414390
add esp, 0x14
jmp 0x4171f9
xor esi, esi
push 0x438a28
push ebx
push ebp
call fcn.00422ac2
add esp, 0xc
test eax, eax
je 0x417219
push esi
push esi
push esi
push esi
push esi
call fcn.00414390
add esp, 0x14
push dword [edi*8 + 0x44039c]
push ebx
push ebp
call fcn.00422ac2
add esp, 0xc
test eax, eax
je 0x41723b
push esi
push esi
push esi
push esi
push esi
call fcn.00414390
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00422905
add esp, 0xc
jmp 0x417283
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x417283
cmp ebp, 0xffffffff
je 0x417283
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44039c]
push dword [esi]
call fcn.00413d20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x422905
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004173bc
xor ebx, ebx
cmp dword [0x442040], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4229db
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x422abb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x422abb
push eax
call fcn.0041734e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x442040], eax
call esi
push eax
call fcn.0041734e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x442044], eax
call esi
push eax
call fcn.0041734e
mov dword [0x442048], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00417d6e
test eax, eax
pop ecx
pop ecx
je 0x4229a9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414390
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4229db
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041734e
cmp eax, ebx
pop ecx
mov dword [0x442050], eax
je 0x4229db
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041734e
pop ecx
mov dword [0x44204c], eax
mov eax, dword [0x44204c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x422a60
cmp dword [0x442050], ecx
je 0x422a60
push eax
call fcn.004173c5
push dword [0x442050]
mov esi, eax
call fcn.004173c5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x422a60
cmp edi, ebx
je 0x422a60
call esi
cmp eax, ebx
je 0x422a2d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422a2d
test byte [ebp - 0x18], 1
jne 0x422a60
lea eax, [ebp - 0x10]
push eax
call fcn.00417e1d
test eax, eax
pop ecx
je 0x422a48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414390
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x422a57
or dword [ebp + 0x10], 0x200000
jmp 0x422a9b
or dword [ebp + 0x10], 0x40000
jmp 0x422a9b
mov eax, dword [0x442044]
cmp eax, dword [ebp - 8]
je 0x422a9b
push eax
call fcn.004173c5
cmp eax, ebx
pop ecx
je 0x422a9b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x422a9b
mov eax, dword [0x442048]
cmp eax, dword [ebp - 8]
je 0x422a9b
push eax
call fcn.004173c5
cmp eax, ebx
pop ecx
je 0x422a9b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442040]
call fcn.004173c5
cmp eax, ebx
pop ecx
je 0x422abb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422abd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret