joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426c10
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], esi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x426cbf
mov ecx, dword [ebp - 4]
push ebx
push ecx
call fcn.0043a967
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x426cb5
push esi
lea edx, [ebp - 4]
push edx
push ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x426cac
mov edx, dword [ebx]
cmp edx, esi
jbe 0x426cac
lea ecx, [ebx + 0x28]
push edi
lea ebx, [ebx]
mov edi, dword [ecx - 0x24]
cmp edi, dword [ebp + 0xc]
jne 0x426c73
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x426c8f
cmp dword [ecx], edi
je 0x426c8f
inc eax
add ecx, 0x38
cmp eax, edx
jb 0x426c60
pop edi
push ebx
call fcn.0043a9fb
add esp, 4
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
lea ecx, [eax*8]
sub ecx, eax
lea esi, [ebx + ecx*8 + 4]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov esi, 1
pop edi
push ebx
call fcn.0043a9fb
add esp, 4
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426f00
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x426f5b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x427058
call ebx
test eax, eax
jne 0x427046
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x210], ebx
test ebx, ebx
jne 0x426f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42706f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x427046
push 0
push 0
push str.Tcpip
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
push 2
push 0x20
push 0xf01ff
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
jne 0x426fd8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x427086
call esi
mov esi, eax
test esi, esi
jne 0x427033
call fcn.00425d20
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x426ff4
push eax
mov eax, dword [ebp - 0x210]
push edi
call fcn.00426100
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x427017
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x42708d
call esi
mov esi, eax
test esi, esi
jne 0x427028
push str.installed_service_n
push 0
call fcn.00426260
add esp, 8
xor esi, esi
test ebx, ebx
je 0x427033
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x427044
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 8
pop esi
mov eax, 0xffffe5d0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0xffffe59d
pop ebx
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 8
mov esi, 0xffffe5b6
jmp 0x427033
mov esi, 0xffffe5bf
jmp 0x427028
Function at 0x4270a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x4270e7
call ebx
test eax, eax
je 0x427196
call ebx
test eax, eax
jne 0x427185
push 0x10024
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x42710c
call ebx
test eax, eax
je 0x4271ac
call ebx
mov esi, eax
test esi, esi
jne 0x427175
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42712d
call ebx
test eax, eax
je 0x4271b3
call ebx
mov esi, eax
test esi, esi
jne 0x42716a
cmp dword [ebp - 0x1c], 1
je 0x427140
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x427159
call ebx
test eax, eax
je 0x4271ba
call ebx
mov esi, eax
test esi, esi
jne 0x42716a
push str.Removed_service_n
push 0
call fcn.00426260
add esp, 8
xor esi, esi
test edi, edi
je 0x427175
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x427183
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xffffe59d
pop ebx
call fcn.00439e8a
mov esp, ebp
pop ebp
ret
mov esi, 0xffffe5b9
jmp 0x427175
mov esi, 0xffffe59e
jmp 0x42716a
mov esi, 0xffffe5ba
jmp 0x42716a
Function at 0x4278c0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.169.254.0.0
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
push eax
call sub.IPHLPAPI.DLL_GetBestInterface
test eax, eax
je 0x4278e2
mov dword [edi], 0
lea eax, [ebp - 0xc]
push eax
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x4278fd
mov eax, 0xffffe5d4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
push esi
push ecx
call fcn.0043a967
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
jne 0x42791f
mov eax, 0xffffe5b8
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
lea edx, [ebp - 0xc]
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, eax
test ebx, ebx
jne 0x427a5c
mov dword [ebp - 4], 0xffffe5d4
mov bl, 0x42
lea ecx, [ecx]
mov eax, 6
cmp dword [esi + 0x1a0], eax
jne 0x42798a
cmp dword [esi + 0x190], eax
jne 0x42798a
cmp byte [esi + 0x194], 0x44
jne 0x42798a
cmp byte [esi + 0x195], 0x45
jne 0x42798a
cmp byte [esi + 0x196], 0x53
jne 0x42798a
cmp byte [esi + 0x197], 0x54
jne 0x42798a
cmp byte [esi + 0x198], bl
jne 0x42798a
cmp byte [esi + 0x199], 0
je 0x4279ae
push str.Juniper
lea eax, [esi + 0x10c]
mov edx, 0x84
call fcn.00426e00
test eax, eax
jne 0x4279ae
mov eax, esi
call fcn.00426da0
test eax, eax
je 0x4279c3
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jne 0x427a56
mov esi, dword [esi]
test esi, esi
jne 0x427940
mov dword [ebp - 4], 0xffffe5d4
mov esi, dword [ebp - 8]
cmp dword [esi + 0x1a0], 6
jne 0x427a27
lea eax, [esi + 0x1b0]
test eax, eax
je 0x427a27
mov ecx, str.0.0.0.0
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x427a10
test dl, dl
je 0x427a0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x427a10
add eax, 2
add ecx, 2
test dl, dl
jne 0x4279f0
xor eax, eax
jmp 0x427a15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x427a27
mov eax, dword [edi]
test eax, eax
je 0x427a35
cmp dword [esi + 0x19c], eax
je 0x427a35
mov esi, dword [esi]
test esi, esi
jne 0x4279d7
cmp dword [edi], esi
je 0x427a56
mov dword [edi], esi
jmp 0x4279d4
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [esi + 0x19c]
mov dword [edi], edx
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
push esi
call fcn.0043a9fb
add esp, 4
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x436b30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x118]
push ecx
lea eax, [ebp - 0x114]
push 0xfffefffc
mov dword [ebp - 0x118], eax
call fcn.00408570
mov edx, dword [ebp - 0x114]
mov ecx, dword [esi + 0x48]
push 0x100
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x11c], edx
push ecx
lea edx, [esi + 0x44]
push edx
call fcn.004086a0
test eax, eax
js 0x436c74
cmp dword [0x45b59c], 0
je 0x436bb5
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x104]
push eax
push ecx
push str._3d:_DNSServiceGetProperty__s_
push 1
call fcn.00420520
add esp, 0x10
mov edx, str.DaemonVersion
lea ecx, [ebp - 0x104]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x436be0
test al, al
je 0x436bdc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x436be0
add ecx, 2
add edx, 2
test al, al
jne 0x436bc0
xor eax, eax
jmp 0x436be5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x436c74
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0x118]
push 4
mov dword [ebp - 0x114], edx
call fcn.00408570
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0x118]
push 0x32d6d8
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x114], edx
call fcn.00408570
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x118]
push 0
push 0xc
lea edx, [ebp - 0x110]
push edx
push esi
mov dword [ebp - 0x108], ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xc
jge 0x436cb5
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push 0xc
jmp 0x436ca4
mov esi, dword [esi + 8]
push 0
push 4
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 4
jge 0x436cb5
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push 4
push edi
push esi
push str.ERROR:_send_all__d__wrote__d_of__d_errno__d___s_
push 0
call fcn.00420520
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439e8a
mov esp, ebp
pop ebp
ret
Function at 0x437ca0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
push esi
mov esi, dword [ebx + 0x58]
je 0x437cbc
pop esi
mov eax, 2
pop ebx
pop ebp
ret 4
push edi
lea edi, [esi + 0xc]
push edi
call fcn.00408760
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [ebx + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
push edi
mov ebx, eax
call fcn.00408760
test ebx, ebx
jns 0x437d3c
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2714
je 0x437d3a
call ebx
cmp eax, 0x2733
je 0x437d3a
mov edi, dword [esi + 4]
call ebx
push eax
call fcn.00408500
push eax
call ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push eax
push edx
push edi
sub edi, dword [esi + 8]
push edi
push str.send_msg_ERROR:_failed_to_write__d_of__d_bytes_to_fd__d_errno__d___s_
push 0
call fcn.00420520
add esp, 0x1c
pop edi
pop esi
mov eax, 3
pop ebx
pop ebp
ret 4
xor ebx, ebx
add dword [esi + 8], ebx
mov eax, dword [esi + 8]
xor ecx, ecx
cmp eax, dword [esi + 4]
pop edi
sete cl
pop esi
pop ebx
lea eax, [ecx + 1]
pop ebp
ret 4

Function at 0x439510
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x43955f
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call fcn.00408500
push eax
call esi
push eax
push str.ERROR:_could_not_set_listen_socket_to_non_blocking_mode
push str._s:__d___s_
push 0
call fcn.00420520
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x439585
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call fcn.00408500
push eax
call esi
push eax
push str.ERROR:_could_not_listen_on_listen_socket
jmp 0x439549
push 0
push 0
push 0x4393e0
push esi
call fcn.00426990
test eax, eax
je 0x4395b1
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call fcn.00408500
push eax
call esi
push eax
push str.ERROR:_could_not_add_listen_socket_to_event_loop
jmp 0x439549
cmp dword [0x45b59c], 0
je 0x4395ca
push esi
push str._3d:_Listening_for_incoming_Unix_Domain_Socket_client_requests
push 1
call fcn.00420520
add esp, 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4395e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45b59c], 0
je 0x439608
push str.udsserver_init
push 3
call fcn.00420520
add esp, 8
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4396a5
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x43963e
mov eax, dword [edi + esi*4]
cmp eax, 0xffffffff
je 0x439638
call fcn.00439510
test eax, eax
je 0x439758
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x439623
mov ecx, dword [0x446384]
push 0
push 0x434e00
push ecx
push 0
push 2
push 0x47cd3c
push 0x47aa60
call fcn.00415b00
push 3
push 0x47aa60
mov ebx, 0x446374
call fcn.00434a30
push 0
push 0x47aa60
call fcn.00434a30
push 0x108
call fcn.004206a0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x43978e
push str.ERROR:_malloc
push ebx
call fcn.00420520
add esp, 8
jmp 0x4397d7
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x45a08c], eax
cmp eax, 0xffffffff
jne 0x4396dd
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push str.ERROR:_socket_AF_DNSSD__SOCK_STREAM__0___failed
push str._s:__d___s_
push 0
call fcn.00420520
add esp, 0x14
jmp 0x439758
push 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.00420680
mov ecx, 2
push 0x14ea
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [0x45a08c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x439746
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push str.ERROR:_bind_listenfd___struct_sockaddr___laddr__sizeof_laddr____failed
push str._s:__d___s_
push 0
call fcn.00420520
add esp, 0x14
jmp 0x439758
mov eax, dword [0x45a08c]
call fcn.00439510
test eax, eax
jne 0x43963e
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push str.ERROR:_udsserver_init
push str._s:__d___s_
push 0
call fcn.00420520
add esp, 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 8
push 0x446474
push 0x446374
call fcn.00401410
movzx eax, ax
mov edx, 0x100
cmp ax, dx
ja 0x4397bb
push eax
push 0x446374
lea ecx, [esi + 8]
push ecx
call fcn.004205d0
jmp 0x4397be
mov byte [esi + 8], bl
mov dword [esi + 4], ebx
mov edx, dword [0x47aa48]
push 1
mov dword [esi], edx
push esi
mov dword [0x47aa48], esi
call fcn.004348a0
push 0x47aa60
call fcn.00438a20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 8

Function at 0x439e8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a0b0]
jne 0x439e94
repz ret
jmp fcn.0043c0d2
Function at 0x441b8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a0b0]
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.0043ccbf
and dword [ebp - 0x14], 0
cmp dword [0x47aa2c], 0
mov dword [ebp - 0x18], eax
jne 0x441c3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x441ce7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x441ce7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47aa2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47aa30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47aa34], eax
call edi
push eax
call esi
mov dword [0x47aa3c], eax
test eax, eax
je 0x441c3f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47aa38], eax
mov eax, dword [0x47aa38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x441c98
cmp dword [0x47aa3c], ecx
je 0x441c98
push eax
call esi
push dword [0x47aa3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x441c98
test ebx, ebx
je 0x441c98
call edi
test eax, eax
je 0x441c8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x441c8f
test byte [ebp - 8], 1
jne 0x441c98
or dword [ebp + 0x10], 0x200000
jmp 0x441ccb
mov eax, dword [0x47aa30]
cmp eax, dword [ebp - 0x18]
je 0x441ccb
push eax
call esi
test eax, eax
je 0x441ccb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x441ccb
mov eax, dword [0x47aa34]
cmp eax, dword [ebp - 0x18]
je 0x441ccb
push eax
call esi
test eax, eax
je 0x441ccb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47aa2c]
call esi
test eax, eax
je 0x441ce7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x441ce9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439e8a
leave
ret
Function at 0x40118c
Capabilities:
Encode data using xor

Disassembly:
push 0x40122c
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], cl
pop ds
or byte [edi], bh
mov bl, 0xfb
sub byte [edx + edi*4 + 0x64], cl
out dx, al
pushal
dec eax
mov es, word [edi - 0x31]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sub eax, 0x30303043
sub eax, 0x64626869
jae 0x401233
push 0x79
jne 0x401244
jne 0x401244
add byte [ebp + 0x23], bh
xor ch, byte [esi]
add byte [eax], al
add byte [eax], al
push eax
add byte [eax], al
add byte [edi - 0x4692f58d], bl
mov fs, word [ecx + 0x48]
mov bl, 0x79
xchg edi, eax
pop es
xchg ebp, eax
pushfd
lodsb al, byte [esi]
lodsd eax, dword [esi]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sbb byte [ebx], 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add cl, dl
inc ecx
add al, byte [eax]
add byte [eax], al
add byte [eax], al
js 0x4011d1
inc eax
add byte [eax + eax], cl
add byte [esi + 0x42], dl
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add al, dl
xor byte [eax], al
adc byte [eax + eax*2], 0
div eax
xor byte [eax], al
add bh, bh
invalid
Function at 0x404da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5cbe6c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov edx, 0x5a8540
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], 4
call fcn.00403ec0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push str.State
push dword [eax]
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edx, dword [ebp - 0x14]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x404e07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
pop esi
jne 0x404e22
cmp dword [ebp - 0x10], 0
jne 0x404e22
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054afe4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0054afe4
mov esp, ebp
pop ebp
ret

Function at 0x4052d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042288e

Function at 0x405c10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5cbe6c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x5c], 0
je 0x405c79
cmp dword [edi + 0x50], 0
je 0x405c8a
mov ecx, dword [edi + 0x94]
mov eax, 0x92492493
sub ecx, dword [edi + 0x90]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x405c8a
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x4061c0
push 0
push 0
call fcn.0055366c
add esp, 0x18
mov dword [edi + 0x78], eax
test eax, eax
je 0x405c79
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054afe4
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x405c79
mov eax, dword [ecx]
lea edx, [ebp - 8]
push esi
push edx
push ecx
call dword [eax + 0x18]
mov eax, dword [edi + 0x80]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, ecx
mov edx, dword [edi + 0x80]
neg eax
push 0
push eax
push dword [ebp - 8]
mov esi, dword [edx]
push ecx
push 0
push dword [edi + 0x38]
push dword [edi + 0x34]
push 0
push 0
push dword [edi + 0x60]
push edx
call dword [esi + 0x20]
pop esi
test eax, eax
jne 0x405c79
push eax
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.0054afe4
mov esp, ebp
pop ebp
ret
Function at 0x405d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x5a8534
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [0x5d6b60]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x405dac
push esi
push dword [0x5d6b60]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x405dac
push esi
push dword [0x5d6b60]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x22
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x405dac
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x405da5
test esi, esi
je 0x405da5
mov ebx, dword [ebp + 8]
push ebx
push eax
push esi
call fcn.0054dc40
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
push ebx
push edi
call fcn.004056e0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x409804
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x409849
call fcn.00413f04
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409849
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x409865
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004260c9
mov ebx, eax
test edi, edi
je 0x409863
test esi, esi
je 0x409863
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4