joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421a4b
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.0041aece
and dword [ebp - 4], 0
cmp dword [0x436abc], 0
mov ebx, eax
jne 0x421afc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421bad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x421bad
push eax
call fcn.0041ae5c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x436abc], eax
call esi
push eax
call fcn.0041ae5c
mov dword [esp], 0x42adbc
push edi
mov dword [0x436ac0], eax
call esi
push eax
call fcn.0041ae5c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x436ac4], eax
call esi
push eax
call fcn.0041ae5c
pop ecx
mov dword [0x436acc], eax
test eax, eax
je 0x421afc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ae5c
pop ecx
mov dword [0x436ac8], eax
mov eax, dword [0x436ac8]
cmp eax, ebx
je 0x421b54
cmp dword [0x436acc], ebx
je 0x421b54
push eax
call fcn.0041aed7
push dword [0x436acc]
mov esi, eax
call fcn.0041aed7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421b54
test edi, edi
je 0x421b54
call esi
test eax, eax
je 0x421b4b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421b4b
test byte [ebp - 0xc], 1
jne 0x421b54
or dword [ebp + 0x10], 0x200000
jmp 0x421b8d
mov eax, dword [0x436ac0]
cmp eax, ebx
je 0x421b8d
push eax
call fcn.0041aed7
pop ecx
test eax, eax
je 0x421b8d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421b8d
mov eax, dword [0x436ac4]
cmp eax, ebx
je 0x421b8d
push eax
call fcn.0041aed7
pop ecx
test eax, eax
je 0x421b8d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436abc]
call fcn.0041aed7
pop ecx
test eax, eax
je 0x421bad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421baf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015f0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x220]
push str.OracleFormsServer__s
push eax
call fcn.004057b0
add esp, 0xc
lea ecx, [ebp - 0x120]
push esi
push str.Oracle_Forms_Server___s_
push ecx
call fcn.004057b0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x40166c
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push eax
push 0x10
lea ecx, [ebp - 0x120]
push 3
push ecx
push edx
call fcn.00401c10
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4016b7
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push 0x10
lea eax, [ebp - 0x120]
push 3
push eax
push ecx
call fcn.00401c10
add esp, 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push eax
push 0x24
lea ecx, [ebp - 0x120]
push 7
push ecx
push edx
call fcn.00401c10
mov eax, dword [ebp + 8]
add esp, 0x18
cmp eax, 6
je 0x4016f6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401765
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x40173d
cmp dword [ebp - 0x1c], 3
jne 0x40173d
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x401725
cmp dword [ebp - 0x1c], 1
je 0x401762
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 0x30
lea edx, [ebp - 0x120]
push 4
push edx
push eax
call fcn.00401c10
add esp, 0x18
mov ebx, dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x401793
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push 0x40
lea eax, [ebp - 0x120]
push 6
push eax
push ecx
call fcn.00401c10
add esp, 0x18
xor edi, edi
jmp 0x4017b7
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push eax
push 0x10
lea ecx, [ebp - 0x120]
push 3
push ecx
push edx
call fcn.00401c10
add esp, 0x18
mov edi, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401cb0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push 0x4111e4
lea eax, [ebp - 0x104]
push 0x411208
push eax
call fcn.004057b0
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [ebp - 0x104]
push 0
push ecx
push reloc.NLSRTL33.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d88
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jbe 0x401d88
mov ebx, dword [ebp + 0x10]
xor eax, eax
shl eax, 5
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebx + edx]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp - 4]
push esi
push 1
push eax
mov eax, dword [ebp + 0xc]
add eax, edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401d7c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [ebp + 8], eax
and eax, 0xffff
cmp eax, ecx
jb 0x401d33
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ecx, dword [eax]
push str.SYSTEMCURRENTCONTROLSETSERVICES_
lea edx, [ebp - 0x150]
push 0x411230
push edx
xor ebx, ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x40
call fcn.004057b0
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x150]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [ebp - 0x150]
push ebx
push ecx
push reloc.NLSRTL33.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e9a
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
shl edi, 5
add edi, eax
mov edx, ebx
lea eax, [ebp - 8]
and edx, 0xffff
lea ecx, [ebp - 0x50]
push eax
push ecx
mov eax, dword [edx*4 + 0x411038]
mov ecx, dword [ebp - 0xc]
lea esi, [edx*4 + 0x411038]
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push ecx
mov dword [ebp - 8], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401e8c
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x50]
inc ecx
push edx
mov dword [ebp - 4], ecx
mov ecx, dword [esi]
mov eax, edi
push ecx
push str._s_s
push eax
add edi, 0x20
call fcn.004057b0
add esp, 0x10
jmp 0x401e93
cmp eax, 0xea
je 0x401e94
inc ebx
cmp bx, 6
jb 0x401e2f
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4029d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x4029f0
push 0
call fcn.00406ac0
add esp, 4
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x402a25
push edi
call fcn.004028b0
add esp, 4
mov dword [ebp + 8], eax
push 0x4118e0
push edi
call fcn.00405c20
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402a2e
push edi
push str.ERROR:_Failed_to_open_file:__s_n
call fcn.004043c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x204]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp - 0x204]
test al, al
je 0x402a71
lea eax, [ebp - 0x204]
cmp byte [eax], 0x5c
jne 0x402a69
mov byte [eax], 0x64
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402a61
lea ecx, [ebp - 0x204]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 8]
cmp edi, 1
jne 0x402aa3
push str._pre__n
push ebx
call fcn.00405bb0
add esp, 8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x402aeb
lea edx, [ebp - 4]
push edx
call fcn.004068d0
add esp, 4
push eax
push str._c__Z
lea eax, [ebp - 0x344]
push 0x140
push eax
call fcn.00405d90
mov ecx, dword [ebp + 0x10]
add esp, 0x10
lea edx, [ebp - 0x344]
push ecx
push edx
push str.__s_::_s_n
push ebx
call fcn.00405bb0
add esp, 0x10
jmp 0x402afd
mov eax, dword [ebp + 0x10]
push eax
push 0x411920
push ebx
call fcn.00405bb0
add esp, 0xc
cmp edi, 1
jne 0x402b10
push str.__pre_
push ebx
call fcn.00405bb0
add esp, 8
push ebx
call fcn.00405c40
add esp, 4
push ebx
call fcn.00405b30
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c8
push esi
lea eax, [ebp - 0x64]
push 0x64
push eax
call sub.WSOCK32.dll_gethostname
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x402ca4
lea ecx, [ebp - 0xc8]
push str.WARNING:_Server_Local_Hostname:_Not_Available._n
push ecx
call fcn.004057b0
add esp, 8
lea edx, [ebp - 0xc8]
push edx
push 0
push esi
call fcn.004029d0
add esp, 0xc
lea eax, [ebp - 0x64]
push 0x411a1c
push eax
call fcn.004057b0
add esp, 8
test esi, esi
je 0x402d0c
push str._nFORMS_CONNECTION_ACTIVITY_LOG_FILE_n
push esi
call fcn.00402910
add esp, 8
push str.Developer:Forms_LogRecord_n
push 0
push esi
call fcn.004029d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
lea eax, [ebp - 0x64]
push edx
push eax
push esi
lea ecx, [ebp - 0x8c8]
push str.Server_Start_up_Data:_n_tServer_Log_Filename:__s_n_tServer_Hostname:__s_n_tServer_Port:__d_n_tServer_Pool:__d_n_tServer_Process_Id:__d_n
push ecx
call fcn.004057b0
add esp, 0x1c
lea edx, [ebp - 0x8c8]
push edx
push 1
push esi
call fcn.004029d0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and esi, 0xffff
push edi
mov eax, esi
shl eax, 4
add eax, esi
lea ebx, [ecx + eax*4]
or eax, 0xffffffff
mov dword [ebx], 2
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
push 1
lea edx, [ebp + 0xc]
push 0x1f0fff
push edx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x24]
and eax, 0xffff
lea ecx, [eax*8 + 0x411478]
lea eax, [ebp - 0x4c]
push ecx
push edx
push str._s.exe_webfile_s
push eax
call fcn.004057b0
mov eax, dword [ebp + 0x14]
add esp, 0x10
test eax, eax
je 0x403112
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
lea edx, [ebp - 0x4c]
push ecx
push edx
lea eax, [ebp - 0x2d4]
push str._s_d__d__d__s__s
push eax
call fcn.004057b0
add esp, 0x20
jmp 0x40313a
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
lea edx, [ebp - 0x4c]
push ecx
push edx
lea eax, [ebp - 0x2d4]
push str._s_d__d__d__s
push eax
call fcn.004057b0
add esp, 0x1c
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x90]
lea edx, [ebp - 0x90]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
push ecx
push edx
push eax
push eax
push 8
push 1
push eax
push eax
lea eax, [ebp - 0x2d4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
je 0x4031ab
call sub.WSOCK32.dll_WSAGetLastError
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40319d
push esi
lea ecx, [ebp - 0x4c]
push str.ERROR:_Failed_to_create_Child_Process__d
push ecx
call fcn.004057b0
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
push 1
push edi
call fcn.004029d0
add esp, 0xc
mov edi, 2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x3e8
push eax
xor edi, edi
call esi
cmp eax, 0x102
jne 0x403202
mov ecx, dword [ebp - 0x10]
push 0x3e8
push ecx
call esi
cmp eax, 0x102
jne 0x403202
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x403202
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x4c]
push edx
push str.Child_Process_not_ready__d
push eax
call fcn.004057b0
add esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
push 1
push esi
call fcn.004029d0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0xc], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edi
xor ebx, ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x130], eax
push edx
push ebx
lea eax, [ebp - 0x134]
mov edi, 1
push ebx
push eax
push edi
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
call sub.WSOCK32.dll_select
cmp eax, ebx
jg 0x403630
mov eax, 0x2710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x30]
push ecx
push edx
push eax
mov dword [ebp - 4], 0x10
call sub.WSOCK32.dll_accept
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ecx], eax
je 0x4036eb
mov edx, dword [ebp - 0x2c]
mov dword [ebp + 8], ebx
push edx
call sub.WSOCK32.dll_inet_ntoa
mov ebx, dword [ebp - 0x2e]
mov edi, dword [ebp + 0x1c]
mov ecx, ebx
mov dword [ebp - 0xc], eax
and ecx, 0xffff
test edi, edi
mov dword [ebp - 8], ecx
je 0x4036cd
mov cl, byte [eax]
xor esi, esi
test cl, cl
je 0x403691
mov edx, edi
sub edx, eax
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
inc esi
inc eax
test cl, cl
jne 0x403685
mov byte [esi + edi], 0x3a
push ebx
inc esi
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
lea edx, [ebp - 0x20]
push eax
push 0x411dd4
push edx
call fcn.004057b0
mov al, byte [ebp - 0x20]
add esp, 0xc
test al, al
je 0x4036c9
lea ecx, [ebp - 0x20]
mov byte [esi + edi], al
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x4036bd
mov byte [esi + edi], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push eax
push ecx
push edx
call fcn.00402b40
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
sub eax, 0x2714
je 0x403719
sub eax, 0x1f
je 0x403708
mov dword [ebp + 8], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0x2710
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0x22
pop edi
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403900
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
push eax
push 0
lea ecx, [ebp - 0x118]
push 0
push ecx
push 1
mov edi, 2
mov dword [ebp - 8], 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
call sub.WSOCK32.dll_select
test eax, eax
jle 0x403976
push 0
lea edx, [ebp - 0x14]
push 4
push edx
push esi
call sub.WSOCK32.dll_recv
cmp eax, 4
jne 0x403976
push eax
lea eax, [ebp - 0x14]
push str.POST
push eax
call fcn.00407010
add esp, 0xc
test eax, eax
jne 0x403976
xor edi, edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403980
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
mov edi, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x110]
mov esi, 1
push 0
push ecx
push esi
mov dword [ebp - 4], 2
mov dword [ebp - 0xc], 0x3c
mov dword [ebp - 8], 0
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], esi
call sub.WSOCK32.dll_select
test eax, eax
je 0x403a2e
mov ebx, dword [ebp + 0xc]
push 0
lea edx, [ebp + 0xb]
push 1
push edx
push edi
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x403a2e
mov eax, dword [ebp + 0x10]
dec eax
cmp esi, eax
mov al, byte [ebp + 0xb]
jge 0x4039f1
mov byte [ebx], al
inc ebx
cmp al, 0xd
je 0x403a08
inc esi
cmp esi, 0x400
jl 0x4039d1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp + 0xb]
push 1
push ecx
push edi
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x403a2e
mov al, byte [ebp + 0xb]
mov byte [ebx], al
inc ebx
cmp al, 0xa
jne 0x403a2e
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403a70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x20]
xor edi, edi
cmp word [ebx + 0xa], di
jbe 0x403aa3
cmp dword [esi], 2
jne 0x403a95
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
inc edi
mov cx, word [ebx + 0xa]
add esi, 0x44
cmp edi, ecx
jl 0x403a84
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x403abf
push eax
call fcn.00406fc0
mov edx, dword [ebx + 0x30]
add esp, 4
push edx
call fcn.00406fc0
add esp, 4
mov ebx, dword [ebx]
test ebx, ebx
je 0x403ace
push ebx
call fcn.004035c0
add esp, 4
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4040e0
Capabilities:
Connect socket
Get hostname
Get socket status
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
mov edi, 2
push 0x100
push eax
mov dword [ebp - 4], edi
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x404211
push 0x10
push 1
call fcn.00407260
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x404211
push 0
push 1
push edi
call sub.WSOCK32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404211
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x14], edx
push eax
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], di
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
mov edx, dword [esi + 0xc]
movsx ecx, word [esi + 0xa]
mov esi, dword [edx]
mov eax, ecx
lea edi, [ebp - 0x10]
push 0x10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x14]
push ecx
push ebx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
je 0x4041ff
lea edx, [ebp - 0x1c]
xor esi, esi
push edx
lea eax, [ebp - 0x124]
push esi
push eax
push esi
push 1
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x64
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x4041e8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push esi
push 9
push esi
push edx
call fcn.00401c10
add esp, 0x14
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
push ebx
call sub.WSOCK32.dll_closesocket
mov dword [ebp - 4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
push ebx
call sub.WSOCK32.dll_closesocket
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404890
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x14]
push edi
xor edi, edi
push eax
push 0x404510
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call esi
mov edx, dword [ebp - 0x10]
cmp edx, edi
je 0x4048d0
push edx
push 4
call fcn.00407260
mov edx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x4048ed
push ecx
push 8
call fcn.00407260
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x4048f0
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x4048f9
cmp dword [ebp - 0x14], edi
je 0x404913
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push ecx
push 0x404510
mov dword [ebp - 8], edi
call esi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x40497c
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov edx, dword [ebp + 0xc]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40496e
push 1
push 0
push 0
lea eax, [ebp - 0x30]
push 0
push eax
call esi
test eax, eax
je 0x40492c
lea ecx, [ebp - 0x30]
push ecx
call edi
lea edx, [ebp - 0x30]
push edx
call ebx
push 1
push 0
push 0
lea eax, [ebp - 0x30]
push 0
push eax
call esi
test eax, eax
jne 0x40494e
jmp 0x40492c
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], edi
je 0x404997
lea ecx, [ebp - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 0x14], edi
je 0x4049ce
cmp edx, edi
je 0x4049bc
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x14]
dec edx
mov dword [ebp - 0x10], edx
push 1
mov ecx, dword [eax + edx*4]
push ecx
call esi
mov edx, dword [ebp - 0x10]
cmp edx, edi
jne 0x4049a6
mov edx, dword [ebp - 0x14]
push edx
call fcn.00406fc0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, edi
je 0x404a0b
mov edx, ecx
dec ecx
test edx, edx
mov dword [ebp - 8], ecx
je 0x404a02
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [eax + ecx*8 + 4]
mov eax, dword [eax + ecx*8]
push 0x400
push edx
push eax
call esi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, ecx
dec ecx
test edx, edx
mov dword [ebp - 8], ecx
jne 0x4049e2
push eax
call fcn.00406fc0
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret