joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423b47
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423b75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423b93
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423ab1
jmp 0x423b93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423b93
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00423ab1
test edi, edi
mov eax, edi
jne 0x423b7d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x438c24]
test ecx, ecx
je 0x423c46
jmp 0x423b46
ret 8

Function at 0x40452b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a700]
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.0040348c
and dword [ebp - 0x14], 0
cmp dword [0x40b924], 0
mov dword [ebp - 0x18], eax
jne 0x4045de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404686
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404686
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b924], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b928], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b92c], eax
call edi
push eax
call esi
mov dword [0x40b934], eax
test eax, eax
je 0x4045de
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b930], eax
mov eax, dword [0x40b930]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x404637
cmp dword [0x40b934], ecx
je 0x404637
push eax
call esi
push dword [0x40b934]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404637
test ebx, ebx
je 0x404637
call edi
test eax, eax
je 0x40462e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40462e
test byte [ebp - 8], 1
jne 0x404637
or dword [ebp + 0x10], 0x200000
jmp 0x40466a
mov eax, dword [0x40b928]
cmp eax, dword [ebp - 0x18]
je 0x40466a
push eax
call esi
test eax, eax
je 0x40466a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40466a
mov eax, dword [0x40b92c]
cmp eax, dword [ebp - 0x18]
je 0x40466a
push eax
call esi
test eax, eax
je 0x40466a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b924]
call esi
test eax, eax
je 0x404686
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404688
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404896
leave
ret

Function at 0x404896
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a700]
jne 0x4048a0
repz ret
jmp fcn.00405a36
Function at 0x40103f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp + 0x7b4], eax
push edi
mov edi, dword [ebp + 0x7c0]
lea eax, [ebp - 0x7c]
push eax
call fcn.00406265
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x401080
push 5
call fcn.004080e9
pop ecx
jmp 0x40116c
push esi
call fcn.0040726f
push eax
push 0x5c
call fcn.00406f09
push eax
push 0x425008
mov esi, 0x400
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00407238
push dword [ebp - 0x7c]
lea eax, [ebp + 0x3ac]
push 0x425010
push esi
push eax
call fcn.00407238
and dword [ebp - 0x64], 0
lea eax, [ebp + 0x3ac]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
mov dword [ebp - 0x74], str.JavaWSSplashScreen
mov dword [ebp - 0x70], 0x425028
mov dword [ebp - 0x68], edi
call fcn.00406e8d
add esp, 0x34
test eax, eax
jne 0x401163
mov word [ebp - 0x64], ax
lea edi, [ebp - 0x62]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x10
call dword [sym.imp.WSOCK32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40111b
push 6
jmp 0x401165
push 0
push 6
lea eax, [ebp + 0x7ac]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 6
je 0x401136
push 7
jmp 0x401165
lea eax, [ebp + 0x7ac]
push eax
call fcn.00409e68
pop ecx
mov dword [section..data], eax
test eax, eax
jg 0x401150
push 8
jmp 0x401165
push esi
call fcn.00406e68
push dword [ebp - 0x78]
call fcn.00406e68
pop ecx
xor eax, eax
jmp 0x40116a
push 0
call fcn.004080e9
pop ecx
pop esi
mov ecx, dword [ebp + 0x7b4]
xor ecx, ebp
pop edi
call fcn.00409e73
add ebp, 0x7b8
leave
ret
Function at 0x405fde
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x894]
sub esp, 0x914
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp + 0x890], eax
push edi
push 0x426a70
push 0x426a88
push 0xffffffffffffffff
lea eax, [ebp - 0x74]
push 0x800
push eax
call fcn.0040a87c
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40603c
xor eax, eax
jmp 0x4060c0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x78c]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x78]
test eax, eax
je 0x406071
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406035
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x7c], 1
jne 0x406035
mov eax, dword [esi + 4]
test eax, eax
je 0x40608b
push eax
call fcn.00409e82
pop ecx
push edi
call fcn.0040b088
lea ecx, [esi + 8]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.00405af7
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x4060ae
push eax
call fcn.00409e82
pop ecx
lea eax, [ebp + 0x78c]
push eax
call fcn.0040b088
mov dword [esi], eax
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp + 0x890]
xor ecx, ebp
call fcn.00409e73
add ebp, 0x894
leave
ret
Function at 0x4060d5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp + 0xc4], eax
mov eax, dword [ebp + 0xd0]
push ebx
push esi
xor ebx, ebx
push str.FORCED_FX_ROOT
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], 0xff
xor esi, esi
mov dword [ebp - 0x6c], ebx
call fcn.0040a1dd
add esp, 0xc
cmp dword [ebp - 0x6c], ebx
je 0x406163
cmp eax, ebx
jne 0x406163
push 0x34
push 1
call fcn.0040a371
push str.2.0
mov esi, eax
call fcn.0040b088
lea ecx, [esi + 8]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.00405af7
push dword [ebp - 0x6c]
call fcn.0040b088
mov dword [esi], eax
push dword [ebp - 0x6c]
call fcn.00409e82
add esp, 0x1c
jmp 0x40621e
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push str.SoftwareOracleJavaFX
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406188
xor eax, eax
jmp 0x406220
push edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x406201
cmp dword [ebp - 0x78], ebx
je 0x4061bd
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x78]
call fcn.00405d2a
pop ecx
pop ecx
jmp 0x4061c0
xor eax, eax
inc eax
cmp eax, ebx
je 0x406201
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00405af7
pop ecx
pop ecx
cmp esi, ebx
je 0x4061ec
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00405b93
pop ecx
pop ecx
test eax, eax
je 0x406201
jmp 0x4061f9
push 0x34
push 1
call fcn.0040a371
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0x3c]
call fcn.00405fde
inc dword [ebp - 0x70]
mov dword [ebp - 0x74], 0xff
cmp dword [ebp - 0x80], ebx
je 0x406189
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
mov ecx, dword [ebp + 0xc4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e73
add ebp, 0xc8
leave
ret
Function at 0x406265
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
xor eax, eax
push esi
push edi
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1c], 0x10
call fcn.00406dc9
push 2
pop eax
push 0x426ac8
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x4062c5
mov eax, edi
jmp 0x406315
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
jne 0x4062df
push esi
call fcn.00406e68
pop ecx
jmp 0x4062c1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, edi
je 0x4062d6
push SysReAllocString
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
je 0x4062d6
push dword [ebp - 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp - 0x18]
movzx eax, ax
mov dword [ecx], eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409e73
leave
ret

Function at 0x4063bd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00406dc9
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
push 0x426ae0
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40641d
mov eax, edi
jmp 0x406439
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x406437
push esi
call fcn.00406e68
pop ecx
jmp 0x406419
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409e73
leave
ret
Function at 0x4064fe
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [esp + 8], 0
jne 0x406508
xor eax, eax
ret
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40650f
push esi
sub eax, edx
push edi
lea edi, [eax + 3]
push edi
call fcn.00409ff3
mov esi, eax
pop ecx
test esi, esi
je 0x40656c
push dword [esp + 0x10]
push str._s_r_n
push edi
push esi
call fcn.00407238
mov eax, esi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406542
push 0
sub eax, ecx
push eax
push esi
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push esi
mov edi, ecx
call fcn.00409e82
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x406dc9
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x428934]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x433b90], 0
jne 0x406e53
push esi
push edi
xor edi, edi
push str.ws2_32.dll
inc edi
call fcn.00408a8e
mov esi, eax
pop ecx
test esi, esi
jne 0x406e1d
push str.wsock32.dll
call fcn.00408a8e
mov esi, eax
xor edi, edi
pop ecx
test esi, esi
jne 0x406e1d
push 0xd
call fcn.004080e9
pop ecx
push eax
call fcn.00406d2a
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x406e32
push 0xe
jmp 0x406e11
test edi, edi
je 0x406e47
push str.WSASendDisconnect
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x433b8c], eax
pop edi
mov dword [0x433b90], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00409e73
add esp, 0x194
ret
Function at 0x407603
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x798]
sub esp, 0x818
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp + 0x794], eax
mov eax, dword [ebp + 0x7a0]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x427b20
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x7c], 0x400
mov dword [ebp - 0x70], 1
call esi
test eax, eax
jne 0x407700
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x394]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407686
and dword [ebp - 0x70], 0
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407697
and dword [ebp - 0x70], 0
lea eax, [ebp + 0x394]
push eax
push str.SoftwareJavaSoftJava_Runtime_Environment
push 0x427b88
lea eax, [ebp - 0x6c]
push 0x400
push eax
call fcn.0040a85e
add esp, 0x14
lea eax, [ebp - 0x74]
push eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
push edi
call esi
test eax, eax
jne 0x407700
lea eax, [ebp + 0x7a4]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x427b90
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4076f0
mov dword [ebp - 0x70], ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407700
mov dword [ebp - 0x70], ebx
mov ecx, dword [ebp + 0x794]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e73
add ebp, 0x798
leave
ret

Function at 0x4077e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407836
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x407e0e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 9
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406265
pop ecx
mov dword [0x433fb0], eax
cmp eax, 0xffffffff
jne 0x407e61
push 5
call fcn.004080e9
pop ecx
push eax
call fcn.00407d24
cmp dword [ebp + 8], esi
jg 0x407e6a
push 0x13
jmp 0x407e55
push dword [ebp + 8]
call fcn.004063bd
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x407e7f
push 0x11
jmp 0x407e55
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push 0x427cd4
push eax
call fcn.0040a7da
add esp, 0xc
push esi
push 6
pop edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x407ead
push 0x14
jmp 0x407e55
push dword [ebp - 0x14]
call fcn.00406e68
pop ecx
cmp dword [ebp - 0x10], esi
je 0x407f7c
push 0x7f00
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0x407d74
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x427cd8
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
push ebx
push esi
push esi
mov eax, SysReAllocString
push eax
push eax
push eax
push eax
push 0xcf0000
push str.Win32Splash
push str.SplashDummy
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x407d6e
push 0x4e20
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x407f31
push 0x15
jmp 0x407e55
call fcn.00407cb7
push dword [ebp - 0x10]
call fcn.00407cd7
pop ecx
push 8
push 0x401
push edi
push dword [0x433fb0]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x407f6f
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
call edi
test eax, eax
jne 0x407f5b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00409e73
leave
ret

Function at 0x40821e
Capabilities:
Write file on windows

Disassembly:
push esi
push 0x428870
push dword [esp + 0xc]
call fcn.0040ae32
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x408237
pop esi
ret
push edi
push esi
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.0040acfc
push esi
mov edi, eax
call fcn.0040ab31
add esp, 0x14
xor eax, eax
cmp edi, dword [esp + 0x14]
pop edi
sete al
pop esi
ret
Function at 0x408503
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.004099fb
pop ecx
pop ecx
test eax, eax
jne 0x40858b
push 0x42886c
push esi
call fcn.0040ae32
pop ecx
pop ecx
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x40858b
mov edi, dword [ebp - 0x20]
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x38], edi
call fcn.00409ff3
push dword [ebp - 0x3c]
mov esi, eax
push edi
push 1
push esi
call fcn.0040c6be
mov edi, eax
add esp, 0x14
cmp edi, dword [ebp - 0x38]
jle 0x408576
push 9
call fcn.004080e9
push eax
call fcn.00406d2a
pop ecx
pop ecx
push dword [ebp - 0x3c]
call fcn.0040ab31
pop ecx
cmp edi, dword [ebp - 0x38]
je 0x40859f
push esi
call fcn.00409e82
pop ecx
and dword [ebx], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e73
leave
ret
mov byte [edi + esi], 0
mov dword [ebx], esi
mov eax, edi
jmp 0x408590

Function at 0x4087b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x4087d0
push 0x80004005
call fcn.004086a9
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x40881f
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x40881d
cmp dword [ebp + 0x10], ebx
jbe 0x40881a
cmp dword [ebp + 0x10], 2
jbe 0x408826
cmp dword [ebp + 0x10], 7
jne 0x40881a
cmp ecx, 1
jb 0x40881a
lea edx, [ecx + esi]
cmp byte [edx - 1], bl
jne 0x40881a
cmp ecx, 1
jbe 0x40881f
cmp byte [edx - 2], bl
je 0x40881f
push 0xd
pop eax
mov byte [esi], bl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp byte [ecx + esi - 1], bl
jmp 0x408818

Function at 0x408a8e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040a760
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x408b20
cmp eax, edi
ja 0x408b20
push esi
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.0040a760
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x420620
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x408b22
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e73
leave
ret
Function at 0x408b31
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x41fc75
call fcn.0040ce71
mov eax, dword [ebp + 8]
push 0x104
push eax
xor edi, edi
push edi
push edi
xor ecx, ecx
push 0x420798
mov word [eax], cx
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x408ba5
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.00409663
pop ecx
pop ecx
push edi
push esi
call fcn.0041b620
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.004093de
push eax
push esi
push 0x420434
call fcn.00409663
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x408b9e
ret
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x408c56
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x408c02
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x408b69
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x408c56
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x408c56
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x408b69
mov eax, esi
call fcn.0040cea7
ret