joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413630
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x67a114]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 1
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
mov ecx, 2
mov word [ebp - 0x14], cx
push 0x699a
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
mov edx, 2
mov word [ebp - 0x24], dx
push 0x6999
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4136ec
push 0
push 0x2000
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4136ea
jmp 0x4136cf
jmp 0x4136f3
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004862cc
mov esp, ebp
pop ebp
ret 8

Function at 0x413770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, 0x67cba8
call fcn.00413840
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0x4139d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x413710
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 1
jne 0x413817
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x413840
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
add eax, 0x2000
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x413874
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x219c], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x20]
push ecx
call fcn.00413b50
add esp, 4
mov dword [ebp - 4], 0
jmp 0x41390e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jge 0x413993
mov dword [ebp - 8], 0
jmp 0x413928
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x80
jge 0x41398e
push 0
push 0x2000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2194]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x41398c
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x413974
push str.The_connection_is_closed__please_check_it__n
call fcn.0040f570
add esp, 4
jmp 0x413988
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.An_error_has_be_occured__the_error_code_is__ld_n
call fcn.0040f570
add esp, 8
jmp 0x4139b3
jmp 0x41391f
jmp 0x413905
lea edx, [ebp - 0x18]
push edx
call fcn.00413b50
add esp, 4
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
sbb ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
push 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2194]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x413c00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x67a114]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
push 2
call fcn.00413d70
add esp, 8
test eax, eax
jne 0x413c34
push str.GetDestinationIP_Error__Initial_Winsock_Fail._n
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x413d53
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
push edx
call fcn.005b1eac
add esp, 4
test eax, eax
je 0x413c71
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c], eax
push str.gethostbyname_n
call fcn.0040f570
add esp, 4
jmp 0x413cab
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x413c9a
push str.The_IPv4_address_entered_must_be_a_legal_address_n
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x413d53
push 2
push 4
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x413d0f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x413d0d
cmp dword [ebp - 0x18], 0x2af9
jne 0x413cdc
push str.Host_not_found_n
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x413d53
cmp dword [ebp - 0x18], 0x2afc
jne 0x413cf8
push str.No_data_record_found_n
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x413d53
mov eax, dword [ebp - 0x18]
push eax
push str.Function_failed_with_error:__ld_n
call fcn.0040f570
add esp, 8
xor eax, eax
jmp 0x413d53
jmp 0x413d4e
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx + ecx]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
cmp dword [0x67edc8], 0
je 0x413d4e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.DesIP_:__s_n
call fcn.0040f570
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004862cc
mov esp, ebp
pop ebp
ret
Function at 0x422d80
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
jmp 0x422db4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 5
jae 0x422e1e
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x6f
je 0x422dd8
jmp 0x422e1e
cmp dword [ebp - 0xc], 0
je 0x422dea
mov eax, dword [ebp - 0xc]
push eax
call fcn.005b9c7f
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005b9c9c
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x422e0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x422e1e
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.005aab10
add esp, 0xc
jmp 0x422dab
cmp dword [ebp - 0x10], 0
jne 0x422f53
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp - 4], 0
je 0x422f53
mov edx, dword [ebp - 4]
cmp dword [edx + 0x34], 0
jbe 0x422f45
cmp dword [0x67edc8], 0
je 0x422e69
push str.MAC:__n
call fcn.0040f570
add esp, 4
mov dword [ebp - 8], 0
jmp 0x422e7b
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x34]
jae 0x422ee5
cmp dword [0x67edc8], 0
je 0x422ebc
lfence
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x2c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
push str.srvMacAddr__d____02X___PhysicalAddress__d____02X_n
call fcn.0040f570
add esp, 0x14
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
movzx eax, byte [edx + 0x2c]
cmp ecx, eax
je 0x422edc
mov dword [ebp - 0x1c], 0
jmp 0x422ee3
mov dword [ebp - 0x1c], 1
jmp 0x422e72
cmp dword [0x67edc8], 0
je 0x422efb
push 0x5e2030
call fcn.0040f570
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x422f45
cmp dword [ebp - 0x1c], 0
je 0x422f1b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
cmp dword [0x67edc8], 0
je 0x422f45
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.IP_:__s_n
call fcn.0040f570
add esp, 8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 4], eax
jmp 0x422e3c
cmp dword [ebp - 0xc], 0
je 0x422f65
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005b9c7f
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x423230
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
jmp 0x42326b
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 5
jae 0x4232d5
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6f
je 0x42328f
jmp 0x4232d5
cmp dword [ebp - 8], 0
je 0x4232a1
mov eax, dword [ebp - 8]
push eax
call fcn.005b9c7f
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005b9c9c
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4232c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x4232d5
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.005aab10
add esp, 0xc
jmp 0x423262
cmp dword [ebp - 0x14], 0
jne 0x4233fd
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
cmp dword [ebp - 4], 0
je 0x4233fd
cmp dword [ebp - 0x2c], 0
je 0x42330d
cmp dword [ebp - 0x24], 0
jne 0x4233f6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x34], 0
jbe 0x4233eb
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xc], 0
jmp 0x42333a
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x34]
jae 0x423367
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x2c]
cmp ecx, eax
je 0x423365
mov dword [ebp - 0x20], 0
jmp 0x423367
jmp 0x423331
mov dword [ebp - 0x10], 0
jmp 0x423379
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x34]
jae 0x4233a6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x2c]
cmp edx, ecx
je 0x4233a4
mov dword [ebp - 0x28], 0
jmp 0x4233a6
jmp 0x423370
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
je 0x4233eb
cmp dword [ebp - 0x20], 0
je 0x4233cd
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp - 0x28], 0
je 0x4233eb
mov dword [ebp - 0x2c], 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 4], edx
jmp 0x4233f8
jmp 0x4233fd
jmp 0x4232f3
cmp dword [ebp - 8], 0
je 0x42340f
mov eax, dword [ebp - 8]
push eax
call fcn.005b9c7f
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x455910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x67a114]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 2
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20019
push 0x10
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp esi, esp
call fcn.0048678d
test eax, eax
je 0x4559dc
mov ecx, 0x698644
call fcn.00409340
test eax, eax
je 0x4559d3
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0048678d
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.create_reg_key_failed_key_s__le___d_n
push 0x4d5
push 0x5e5f30
push 2
mov ecx, 0x698644
call fcn.00409340
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.00482bc0
add esp, 0x1c
xor edx, edx
jne 0x455983
jmp 0x455a81
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
cmp esi, esp
call fcn.0048678d
mov esi, esp
lea ecx, [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.0048678d
test eax, eax
je 0x455a72
mov ecx, 0x698644
call fcn.00409340
test eax, eax
je 0x455a6c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0048678d
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.read_reg_value_failed_key_s_value_s__le___d_n
push 0x4db
push str.ReadRegister
push 2
mov ecx, 0x698644
call fcn.00409340
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.00482bc0
add esp, 0x20
xor edx, edx
jne 0x455a18
jmp 0x455a81
mov dword [ebp - 8], 0
xor eax, eax
jne 0x455953
cmp dword [ebp - 0x10], 0
je 0x455a9a
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.0048678d
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x455ac8]
call fcn.00486739
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004862cc
add esp, 0x20
cmp ebp, esp
call fcn.0048678d
mov esp, ebp
pop ebp
ret
Function at 0x455c90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea edi, [ebp - 0x28]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x67a114]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x24], 3
mov esi, esp
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0x10
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp esi, esp
call fcn.0048678d
test eax, eax
je 0x455d5d
mov ecx, 0x698644
call fcn.00409340
test eax, eax
je 0x455d54
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0048678d
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.create_reg_key_failed_key_s_n
push 0x4ef
push 0x5e5fa0
push 2
mov ecx, 0x698644
call fcn.00409340
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.00482bc0
add esp, 0x1c
xor edx, edx
jne 0x455d04
jmp 0x455e02
mov esi, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, esp
call fcn.0048678d
test eax, eax
je 0x455de0
mov ecx, 0x698644
call fcn.00409340
test eax, eax
je 0x455dda
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0048678d
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.set_reg_value_failed_key_s_value_s_n
push 0x4f4
push str.WriteRegister
push 2
mov ecx, 0x698644
call fcn.00409340
mov ecx, 0xd0
imul edx, ecx, 0
add eax, edx
push eax
call fcn.00482bc0
add esp, 0x20
xor eax, eax
jne 0x455d86
jmp 0x455e02
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp esi, esp
call fcn.0048678d
mov dword [ebp - 8], 0
xor edx, edx
jne 0x455cd4
cmp dword [ebp - 0x10], 0
je 0x455e1b
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.0048678d
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x455e4c]
call fcn.00486739
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004862cc
add esp, 0x28
cmp ebp, esp
call fcn.0048678d
mov esp, ebp
pop ebp
ret
Function at 0x45ef60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
jmp 0x45ef7d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x45efa0
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul ecx, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], ecx
jmp 0x45ef74
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x46e080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0xffffffff
push 0x5e6e24
mov eax, dword [ebp + 8]
push eax
call fcn.005b2210
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46e10e
mov ecx, 0x698644
call fcn.00409340
test eax, eax
je 0x46e105
mov ecx, dword [ebp + 8]
push ecx
push 0x5e6e28
push 0x385
push 0x5e6e3c
mov ecx, 0x698644
call fcn.00409340
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.004835a0
add esp, 0x14
xor edx, edx
jne 0x46e0c7
jmp 0x46e1a8
mov dword [ebp - 0xc], 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.005bb48e
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.005bbb2a
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.005bb48e
add esp, 0xc
lea ecx, [ebp - 0x1d]
call fcn.004034e0
push eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409280
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004514f0
lea ecx, [ebp - 0x1c]
call fcn.00409240
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004091c0
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004091a0
push eax
call fcn.005bb0d6
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call fcn.005b201b
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x24
cmp ebp, esp
call fcn.0048678d
mov esp, ebp
pop ebp
ret
Function at 0x46ebc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0xffffffff
push 0x5e6e48
mov eax, dword [ebp + 8]
push eax
call fcn.005b2210
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46ec39
mov ecx, 0x698644
call fcn.00409340
test eax, eax
je 0x46ec33
mov ecx, dword [ebp + 8]
push ecx
push str.failed_to_open__s_n
push 0x39a
push str.file_write
mov ecx, 0x698644
call fcn.00409340
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.004835a0
add esp, 0x14
xor edx, edx
jne 0x46ebf5
jmp 0x46ec62
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.005bbd4e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.005b201b
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
cmp ebp, esp
call fcn.0048678d
mov esp, ebp
pop ebp
ret
Function at 0x471570
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ddfe8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x67a114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], 0
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00403550
lea ecx, [ebp - 0x20]
call fcn.00418a80
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0x52
mov eax, dword [ebp - 0x2c]
shl eax, 8
or eax, 0x53
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
shl ecx, 8
or ecx, 0x4d
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
shl edx, 8
or edx, 0x42
mov dword [ebp - 0x2c], edx
mov esi, esp
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp esi, esp
call fcn.0048678d
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005b9c9c
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4716be
mov esi, esp
mov edx, dword [ebp - 0x30]
push edx
mov eax, 1
imul ecx, eax, 0
add ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp esi, esp
call fcn.0048678d
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
jne 0x4716be
mov ecx, 1
imul edx, ecx, 0
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], edx
lea ecx, [ebp - 0x49]
call fcn.004034e0
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00409280
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
push edx
lea ecx, [ebp - 0x20]
call fcn.004514f0
lea ecx, [ebp - 0x48]
call fcn.00409240
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 8
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.004091a0
push eax
call fcn.005abd00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.0044d7c0
mov ecx, dword [ebp - 0x50]
or ecx, 1
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00409240
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x47171c]
call fcn.00486739
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004862cc
add esp, 0x54
cmp ebp, esp
call fcn.0048678d
mov esp, ebp
pop ebp
ret