joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9bc
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x804], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x802]
push ecx
call fcn.00409600
add esp, 0xc
lea edx, [ebp - 0x804]
mov dword [ebp - 0x9b4], edx
cmp dword [ebp + 0x14], 0
je 0x40482d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x9b4], eax
mov ecx, 2
imul ecx, ecx, 0
xor edx, edx
mov eax, dword [ebp - 0x9b4]
mov word [eax + ecx], dx
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x9b0], 0
mov dword [ebp - 0x9bc], 0
lea ecx, [ebp - 0x9a8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x9b8], eax
cmp dword [ebp - 0x9b8], 0
je 0x404887
xor eax, eax
jmp 0x404981
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xffffffff
jne 0x4048a7
xor eax, eax
jmp 0x404981
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x9ac], eax
cmp dword [ebp - 0x9ac], 0
jne 0x4048e7
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x808], eax
push 2
push 4
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x9ac], eax
cmp dword [ebp - 0x9ac], 0
jne 0x4048f4
jmp 0x404955
mov ecx, 4
imul ecx, ecx, 0
mov edx, dword [ebp - 0x9ac]
mov eax, dword [edx + 0xc]
mov ecx, dword [ecx + eax]
mov edx, dword [ecx]
mov dword [ebp - 0x814], edx
mov eax, 2
mov word [ebp - 0x818], ax
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x816], ax
push 0x10
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40494b
jmp 0x404955
mov dword [ebp - 0x9b0], 1
cmp dword [ebp - 0x9b0], 0
jne 0x40497b
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x40497b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x9b0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a14
mov esp, ebp
pop ebp
ret
Function at 0x404c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x404c9b
jmp 0x404d60
mov dword [ebp - 8], 0
jmp 0x404cad
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x404cca
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x404ca4
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00407147
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
movzx edx, word [ebp + 0x10]
add edx, 5
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, 1
shl ecx, 1
add ecx, dword [ebp - 4]
mov edx, dword [str.AS101]
mov dword [ecx], edx
mov al, byte [0x41af14]
mov byte [ecx + 4], al
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, 1
imul eax, eax, 7
add eax, dword [ebp - 4]
push eax
call fcn.0040a260
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 7
mov dword [ebp + 0x10], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x404d55
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
je 0x404d59
jmp 0x404d60
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x404d94
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040753b
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x404d87
mov dword [ebp - 0x1c], 0
jmp 0x404d94
mov dword [ebp - 4], 0x8123
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x405850
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040c800
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1010], 0
push 0x418b64
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call fcn.00405dac
add esp, 0xc
cmp dword [ebp - 0x100c], 0
jne 0x4058a3
xor eax, eax
jmp 0x405958
push 0
push 4
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x4058c6
xor eax, eax
jmp 0x405958
mov edx, dword [ebp - 0x1010]
cmp edx, dword [ebp - 0x1008]
jae 0x405932
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x4058ff
jmp 0x405932
mov eax, dword [ebp - 0x100c]
push eax
mov ecx, dword [ebp - 0x1014]
push ecx
push 1
lea edx, [ebp - 0x1004]
push edx
call fcn.00406364
add esp, 0x10
mov eax, dword [ebp - 0x1010]
add eax, dword [ebp - 0x1014]
mov dword [ebp - 0x1010], eax
jmp 0x4058c6
mov ecx, dword [ebp - 0x100c]
push ecx
call fcn.00406196
add esp, 4
mov edx, dword [ebp - 0x1010]
cmp edx, dword [ebp - 0x1008]
jae 0x405953
xor eax, eax
jmp 0x405958
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a14
mov esp, ebp
pop ebp
ret
Function at 0x410498
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004078da
mov dword [ebp - 0x14], eax
cmp dword [0x41bd84], edi
jne 0x410589
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x410516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410669
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410669
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410669
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41bd84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41bd88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41bd8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bd94], eax
test eax, eax
je 0x410586
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bd90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4105ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4105a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4105c3
push 4
pop eax
jmp 0x41066b
cmp dword [ebp - 0x14], edi
je 0x4105c3
push dword [0x41bd84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4105a8
mov eax, dword [0x41bd90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x410621
cmp dword [0x41bd94], esi
je 0x410621
push eax
call ebx
push dword [0x41bd94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410621
test eax, eax
je 0x410621
call ecx
test eax, eax
je 0x410616
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410616
test byte [ebp - 8], 1
jne 0x410621
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x410651
mov eax, dword [0x41bd88]
cmp eax, esi
je 0x41064e
push eax
call ebx
test eax, eax
je 0x41064e
call eax
mov edi, eax
test edi, edi
je 0x41064e
mov eax, dword [0x41bd8c]
cmp eax, esi
je 0x41064e
push eax
call ebx
test eax, eax
je 0x41064e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41bd84]
call ebx
test eax, eax
je 0x410669
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41066b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a14
leave
ret
Function at 0x401100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401119
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401154
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401150
lea ebx, [ebx]
cmp esi, eax
jae 0x401154
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401140
cmp esi, eax
jb 0x40115a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40d943
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40d98a
call fcn.00412a49
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d98a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d9a6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d4bd
mov esi, eax
test edi, edi
je 0x40d9a4
test ebx, ebx
je 0x40d9a4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e179
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43bcb4
call fcn.00427e17
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40e19e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40e1e4
lea ecx, [ebp - 0x10]
call fcn.00402960
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040797a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011b0
mov eax, esi
call fcn.00427eef
ret 8
Function at 0x410c3c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x44e888]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x410cda
push 0x44088c
push 4
push eax
call fcn.00429f72
push eax
call fcn.00401000
add esp, 0x10
push ebx
push edi
call fcn.00428125
mov edi, dword [eax]
call fcn.00428125
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0042829b
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00428125
cmp dword [eax], ebx
je 0x410cf1
call fcn.00428125
push dword [eax]
call fcn.00407bfc
pop ecx
jmp 0x410cf8
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x410c82
jmp 0x410d7f
call fcn.00428125
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x410d7b
cmp dword [ebp - 0x11c], esi
jae 0x410d7b
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.004270a0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x410d6a
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x410d6a
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x410d6a
push ebx
push ebx
push esi
jmp 0x410d73
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x410d7d
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00426da1
leave
ret

Function at 0x413482
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4134a6
cmp dword [edi + 0x54], 0
jne 0x4134a6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00412a49
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00413443
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x413e46
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x413e71
call fcn.00412a49
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x413e94
push eax
push dword [esi + 4]
call fcn.00413dcc
push esi
push eax
mov ecx, 0x4518fc
call fcn.00413a5a
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x414785
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x43be6f
call fcn.00427e17
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00414745
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402960
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x4147eb
push eax
push dword [esi + 8]
call fcn.00413dcc
push dword [esi + 0xc]
mov ecx, 0x4518fc
push eax
call fcn.00413a5a
mov eax, esi
call fcn.00427eef
ret 0x18

Function at 0x414e82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x414eca
call fcn.00412a49
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414eca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x414f0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x414ef6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x414ef6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x414f0a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x426da1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e888]
jne 0x426dab
repz ret
jmp fcn.0042f977
Function at 0x436d72
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043178b
and dword [ebp - 4], 0
cmp dword [0x45269c], 0
mov ebx, eax
jne 0x436e23
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436ed4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4430b4
push edi
call esi
test eax, eax
je 0x436ed4
push eax
call fcn.00431719
mov dword [esp], 0x4430a4
push edi
mov dword [0x45269c], eax
call esi
push eax
call fcn.00431719
mov dword [esp], 0x443090
push edi
mov dword [0x4526a0], eax
call esi
push eax
call fcn.00431719
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4526a4], eax
call esi
push eax
call fcn.00431719
pop ecx
mov dword [0x4526ac], eax
test eax, eax
je 0x436e23
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431719
pop ecx
mov dword [0x4526a8], eax
mov eax, dword [0x4526a8]
cmp eax, ebx
je 0x436e7b
cmp dword [0x4526ac], ebx
je 0x436e7b
push eax
call fcn.00431794
push dword [0x4526ac]
mov esi, eax
call fcn.00431794
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436e7b
test edi, edi
je 0x436e7b
call esi
test eax, eax
je 0x436e72
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436e72
test byte [ebp - 0xc], 1
jne 0x436e7b
or dword [ebp + 0x10], 0x200000
jmp 0x436eb4
mov eax, dword [0x4526a0]
cmp eax, ebx
je 0x436eb4
push eax
call fcn.00431794
pop ecx
test eax, eax
je 0x436eb4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436eb4
mov eax, dword [0x4526a4]
cmp eax, ebx
je 0x436eb4
push eax
call fcn.00431794
pop ecx
test eax, eax
je 0x436eb4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45269c]
call fcn.00431794
pop ecx
test eax, eax
je 0x436ed4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436ed6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 2
push 0x40a038
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov edi, dword [ebx + 0x20]
test edi, edi
jne 0x401178
xor eax, eax
mov ax, word [ebx + 0xe]
dec eax
cmp eax, 0x17
ja case.0x401154.5
xor ecx, ecx
mov cl, byte [eax + 0x401254]
jmp dword [ecx*4 + 0x401240]
mov edi, 2
jmp 0x401178
mov edi, 0x10
jmp 0x401178
mov edi, 0x100
jmp 0x401178
xor edi, edi
jmp 0x401178
mov edi, dword [esp + 0x14]
lea edx, [edi*4 + 8]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test edi, edi
mov word [ebp], 0x300
mov word [ebp + 2], di
jle 0x4011c3
lea eax, [ebp + 5]
lea ecx, [ebx + 0x29]
mov dl, byte [ecx + 1]
add ecx, 4
mov byte [eax - 1], dl
mov dl, byte [ecx - 4]
mov byte [eax], dl
mov dl, byte [ecx - 5]
mov byte [eax + 1], dl
mov byte [eax + 2], 1
add eax, 4
dec edi
jne 0x4011a5
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push 0
push 0
push 0
push str.DISPLAY
mov dword [esi + 0xa0], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, dword [sym.imp.GDI32.dll_SetSystemPaletteUse]
push 2
push eax
mov dword [esi + 0x8c], eax
call edi
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x8c]
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [esi + 0x8c]
mov dword [esi + 0xa4], eax
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esi + 0x8c]
push 1
push eax
call edi
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4028c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
sub eax, 2
push ebx
push esi
push edi
mov esi, ecx
je 0x40297a
mov eax, dword [esi + 0xf8]
mov ecx, dword [esi + 0xf0]
sub eax, ecx
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x64
jge 0x402926
call fcn.00403da0
push 0
mov ebx, eax
call edi
mov ecx, eax
mov eax, ebx
cdq
sub ecx, 0xa0
idiv ecx
lea eax, [edx + 0x50]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xf8], eax
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x64
jl 0x4028f3
mov eax, dword [esi + 0xf4]
mov edx, dword [esi + 0xfc]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jge 0x402999
call fcn.00403da0
push 1
mov ebx, eax
call edi
mov ecx, eax
mov eax, ebx
cdq
sub ecx, 0xa0
idiv ecx
mov eax, dword [esi + 0xf4]
lea ecx, [edx + 0x50]
sub eax, ecx
mov dword [esi + 0xfc], ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jl 0x40293e
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], ecx
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
Function at 0x403c60
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push edi
push eax
push 0xf003f
push 0
push str..htm
push 0x80000000
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], pe_nt_image_headers32
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403cbe
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x40ccbc
push ecx
call ebx
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x98]
push str._shellopencommand
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x98]
push eax
push 0xf003f
push 0
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x403d3d
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x40ccbc
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
mov dword [esp + 0x28], 1
call ebx
mov eax, dword [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x403d64
jbe 0x403d64
cmp byte [esp + eax + 0x18], 0x20
je 0x403d64
mov byte [esp + eax + 0x18], 0
dec eax
jne 0x403d55
lea edx, [esp + 0x18]
push str.__www.softstar.com.tw
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
push 9
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret