joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b87c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450bfc]
cmp dword [eax + 0x30], 0
je 0x44b926
cmp dword [ebx + 0x94], 0
jne 0x44b920
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44b80c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44b920
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44b8e6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44b920
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413a68
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44b8f5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44c404
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44c439
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404328
jmp 0x44c446
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040428c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44d454
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44d495
mov eax, esi
call fcn.00433ba0
test al, al
je 0x44d495
mov eax, dword [ebx + 0x84]
call fcn.0043389c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44d495
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043389c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44de50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44dfb9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004042d0
mov eax, dword [ebp - 0x10]
call fcn.0044dd58
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x44dea2
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404788
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0044e030
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x44df77
xor eax, eax
push ebp
push 0x44df70
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0044de4c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0044dfc8
test al, al
je 0x44df4e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404328
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x44df4e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004046e8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x44df48
mov eax, dword [ebp - 0x14]
call fcn.004046e8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404428
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0044de50
dec ebx
cmp ebx, 0xffffffff
jne 0x44df01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44df77
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0044de4c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004046e8
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0044de38
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44dfc0
lea eax, [ebp - 0x3c]
call fcn.00404238
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040425c
ret
Function at 0x44df77
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44dfb9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004042d0
mov eax, dword [ebp - 0x10]
call fcn.0044dd58
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x44dea2
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404788
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0044e030
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x44df77
xor eax, eax
push ebp
push 0x44df70
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0044de4c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0044dfc8
test al, al
je 0x44df4e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404328
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x44df4e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004046e8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x44df48
mov eax, dword [ebp - 0x14]
call fcn.004046e8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404428
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0044de50
dec ebx
cmp ebx, 0xffffffff
jne 0x44df01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44df77
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0044de4c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004046e8
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0044de38
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44dfc0
lea eax, [ebp - 0x3c]
call fcn.00404238
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040425c
ret

Function at 0x44dfc8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402df8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x44ff30]
cmp byte [edx + 0xc], 0
je 0x44e02c
mov edx, dword [0x44ff28]
cmp dword [edx], 2
jne 0x44e02c
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x401100
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
push eax
push str.1.......
mov ecx, 0x65cd80
call fcn.00479641
mov ecx, eax
call fcn.004794f4
push 0x401430
push 0xa
mov ecx, eax
call fcn.00479456
mov ecx, eax
call fcn.00401410
lea eax, [esp + 0xc]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call edi
push eax
push str.2.......
mov ecx, 0x65cd80
call fcn.00479641
mov ecx, eax
call fcn.004794f4
push 0x401430
push 0xa
mov ecx, eax
call fcn.00479456
mov ecx, eax
call fcn.00401410
push 0
mov eax, dword [esp + 0x114]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0
push 2
push 0x10
push 0xf01ff
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
call edi
push eax
push str.3.......
mov ecx, 0x65cd80
call fcn.00479641
mov ecx, eax
call fcn.004794f4
push 0x401430
push 0xa
mov ecx, eax
call fcn.00479456
mov ecx, eax
call fcn.00401410
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x401440
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push esi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 0x1ac]
mov dword [0x4a2598], eax
push ecx
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x1a8]
mov word [esp + 6], ax
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [0x4a2598]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4014bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CONNECT_failed:__d_n
jmp 0x401532
mov eax, dword [esp + 0x1b0]
push 0x4a2570
push str.yes::_s
push 0x4a25a4
mov dword [0x4a25a0], eax
call fcn.0047a8f8
mov ecx, dword [0x4a2598]
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 0x34
push 0x4a25a0
push ecx
call esi
cmp eax, 0xffffffff
jne 0x401509
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_number_failed:__d_n
jmp 0x401532
mov eax, dword [esp + 0x1b4]
mov ecx, dword [0x4a2598]
push 0
push 0x100
push eax
push ecx
call esi
cmp eax, 0xffffffff
jne 0x401552
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_context_failed:__d_n
call fcn.0047a8c7
mov edx, dword [0x4a2598]
add esp, 8
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x1a0
ret
mov eax, dword [0x4a2598]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
pop esi
add esp, 0x1a0
ret
Function at 0x4015b0
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
push 0xffffffffffffffff
push 0x4835a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push str.operator_open_socket
mov ecx, 0x65cd80
mov dword [ebp - 4], 0
call fcn.00479641
push 0xa
mov ecx, eax
call fcn.00479456
push 0x401430
mov ecx, eax
call fcn.00401410
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esi], eax
mov dword [ebp - 0x14], 0x7530
mov dword [ebp - 0x18], 4
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x40164f
call ebx
push eax
push str.SO_ERROR_failed:__d_n
call fcn.0047a8c7
add esp, 8
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x401682
call ebx
push eax
push str.SO_ERROR_failed:__d_n
call fcn.0047a8c7
add esp, 8
mov edx, dword [ebp + 0xc]
lea edi, [esi + 4]
push edx
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 6], ax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi]
push 0x10
push edi
push ecx
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x4016e7
call ebx
push eax
push str.CONNECT_failed:__d_n
call fcn.0047a8c7
add esp, 8
mov ecx, esi
call fcn.00401870
or ax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401710
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4835b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x44], eax
mov edi, 0x48b170
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x10], esp
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x34
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
mov dword [ebx + 0x14], eax
jne 0x4017b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_failed:__d_n
call fcn.0047a8c7
add esp, 8
mov ecx, ebx
call fcn.00401870
or ax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4018b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4835d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 6
push 1
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401929
push str.get_sock__defeat....
mov ecx, 0x65cd80
call fcn.00479641
push 0xa
mov ecx, eax
call fcn.00479456
push 0x401430
mov ecx, eax
call fcn.00401410
or ax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.get_sock_succesful....
mov ecx, 0x65cd80
call fcn.00479641
push 0xa
mov ecx, eax
call fcn.00479456
push 0x401430
mov ecx, eax
call fcn.00401410
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401f50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
test eax, eax
jne 0x401f65
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x401fb7
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1f0fff
call edi
test eax, eax
je 0x401fb7
mov ecx, dword [esi]
push ecx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
jne 0x401f90
pop edi
pop esi
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x401fa9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x402d40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485328
push 0x47afe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x24], esi
or ebx, 0xffffffff
cmp esi, ebx
jne 0x402dc1
mov eax, dword [0x4a2cd4]
test eax, eax
je 0x402dab
push str._could_not_open_
call fcn.0047b0b8
add esp, 4
mov dword [ebp - 4], ebx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x8000002
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x402e11
mov eax, dword [0x4a2cd4]
test eax, eax
je 0x402df4
push str._mapping_failed_
call fcn.0047b0b8
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x402e4d
mov eax, dword [0x4a2cd4]
test eax, eax
je 0x402e3f
push str._view_failed_
call fcn.0047b0b8
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
jmp 0x402e87
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x290
lea eax, [esp + 0x100]
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x88]
push 0x10
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4038f8
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403929
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call fcn.00483565
add esp, 4
lea edx, [esp + 8]
mov edi, eax
jmp 0x403932
lea edx, [esp + 8]
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x29c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x290
ret
Function at 0x403ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], ebx
call fcn.0047afc7
mov dword [ebp - 0x18], eax
mov edi, 0x48b9fc
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [ebp - 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x1c], 1
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
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov cl, byte [eax + esi]
cmp cl, 0x5c
je 0x403b5f
mov byte [ebp + eax - 0xa0], cl
inc eax
jmp 0x403b4d
mov byte [ebp + eax - 0xa0], bl
inc eax
xor edx, edx
mov cl, byte [eax + esi]
cmp cl, bl
je 0x403b7b
mov byte [ebp + edx - 0x120], cl
inc eax
inc edx
jmp 0x403b69
lea ecx, [ebp - 0xa0]
push str.HKEY_LOCAL_MACHINE
push ecx
mov byte [ebp + edx - 0x120], bl
mov dword [ebp - 0x20], 0x100
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x403c03
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x120]
push edx
push 0x20019
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403c3f
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
push edi
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x403c03
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x220]
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 ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
push edx
call fcn.0047afbc
add esp, 4
lea eax, [ebp - 0x220]
push eax
call fcn.00483565
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0x48b9fc
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4045b0
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, ebx
xor eax, eax
mov edx, dword [esp + 8]
push esi
mov dword [ecx], eax
push edi
mov dword [ecx + 4], eax
push eax
push 0x80
push 3
push eax
push 1
push closesocket
push edx
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x4045e8
pop edi
pop esi
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x40460c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x404631
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov dword [ebx + 4], edi
mov dword [ebx], esi
pop edi
mov dword [ebx + 8], eax
pop esi
mov eax, 1
pop ebx
ret