joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006614
Capabilities:
Check os version
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0x120], eax
cmp byte [0x1001218f], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x12c]
mov dword [ebp - 0x7c], edi
jne 0x10006773
mov esi, 0x100121b8
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x1001218f], 0
jne 0x1000676c
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x64], 1
mov byte [0x1001218e], 0
jne 0x10006698
cmp dword [ebp - 0x70], 4
jne 0x10006698
cmp dword [ebp - 0x6c], 0
je 0x10006691
cmp dword [ebp - 0x6c], 0xa
jne 0x10006698
mov byte [0x1001218e], 1
lea eax, [ebp - 0x80]
push eax
push 0x100121ac
push 0x2003
push 0xffff
push dword [ebp + 0x130]
mov dword [ebp - 0x80], 4
call fcn.10002b96
test eax, eax
jns 0x100066cb
mov dword [0x100121ac], 0xfff7
cmp byte [0x1001218e], 0
je 0x10006765
push 0xff
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x1000670a
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push str.Unable_to_obtain_hostname
push str.java_net_SocketException
push edi
call sub.java.dll__JNU_ThrowByName_12
mov al, 1
jmp 0x100067f8
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
je 0x10006765
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x78], eax
test edi, edi
je 0x10006765
mov esi, dword [0x100121d0]
push 8
call dword [sym.imp.msvcr100.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100067af
push dword [edi]
call dword [sym.imp.ws2_32.dll_htonl]
add dword [ebp - 0x78], 4
mov dword [ebx], eax
mov eax, dword [0x100121d0]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x78]
mov edi, dword [eax]
mov esi, ebx
mov dword [0x100121d0], esi
test edi, edi
jne 0x1000672a
mov esi, 0x100121b8
mov byte [0x1001218f], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x138]
cmp eax, dword [0x100121ac]
jg 0x10006703
cmp byte [0x1001218e], 0
je 0x100067f6
cmp eax, 0x2ff8
jle 0x100067f6
mov ecx, dword [ebp + 0x134]
mov eax, 0x7f000000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x10006703
mov eax, dword [0x100121d0]
jmp 0x100067f2
test esi, esi
je 0x100067ca
mov edi, dword [esi + 4]
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov esi, edi
test edi, edi
jne 0x100067b3
mov dword [0x100121d0], esi
push 0x100121b8
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push str.Native_heap_allocation_failed
push dword [ebp - 0x7c]
call sub.java.dll__JNU_ThrowOutOfMemoryError_8
jmp 0x10006703
cmp dword [eax], ecx
je 0x10006703
mov eax, dword [eax + 4]
test eax, eax
jne 0x100067e7
xor al, al
mov ecx, dword [ebp + 0x120]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
add ebp, 0x124
leave
ret
Function at 0x1000687b
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x134
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0xb4], eax
push esi
push 0x1c
pop eax
push eax
xor esi, esi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x98]
push esi
push eax
mov byte [ebp - 0x6d], 0
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call sub.msvcr100.dll_memset
add esp, 0xc
call fcn.10002b96
test al, al
je 0x1000694e
lea ecx, [ebp - 0x7c]
push ecx
push esi
push esi
mov esi, dword [sym.imp.ws2_32.dll_select]
lea ecx, [ebp - 0x6c]
lea eax, [ebx + 1]
push ecx
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], 1
call esi
test eax, eax
jle 0x1000694b
push edi
mov edi, dword [sym.imp.ws2_32.dll_recvfrom]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x98]
push eax
push 2
push 1
lea eax, [ebp - 0x6e]
push eax
push ebx
call edi
cmp eax, 0xffffffff
jne 0x1000694a
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x1000694a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x98]
push eax
push 0
push 1
lea eax, [ebp - 0x6e]
push eax
push ebx
call edi
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebx + 1]
push eax
mov byte [ebp - 0x6d], 1
call esi
test eax, eax
jg 0x100068f2
pop edi
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp + 0xb4]
xor ecx, ebp
pop esi
call fcn.1000c212
add ebp, 0xb8
leave
ret
Function at 0x10006ddb
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x100125a0]
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
push dword [0x100125ac]
mov ebx, eax
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x17c]
or dword [ebp - 0x2c], 0xffffffff
or dword [ebp - 0x28], 0xffffffff
mov edi, eax
call sym.net.dll__ipv6_available_0
mov dword [ebp - 0x30], eax
test ebx, ebx
jne 0x10006e4b
test edi, edi
jne 0x10006e62
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x10006f48
push dword [0x100121e0]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x10006e75
push dword [0x100121e0]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x28], eax
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
jne 0x10006e8c
push str.address
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x10006f48
push dword [ebp - 0x24]
push esi
call fcn.1000ab66
mov eax, dword [esi]
pop ecx
pop ecx
push esi
call dword [eax + 0x390]
test al, al
jne 0x10006f48
push dword [ebp - 0x24]
push esi
call fcn.1000aba4
pop ecx
pop ecx
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
jne 0x10006f48
xor eax, eax
inc eax
cmp edi, 2
jne 0x10006edd
cmp dword [ebp - 0x30], ebx
jne 0x10006ee4
push str.Protocol_family_not_supported
jmp 0x10006e3b
cmp edi, eax
mov edi, dword [ebp - 0x2c]
je 0x10006ee7
mov edi, dword [ebp - 0x28]
cmp dword [0x10012208], ebx
je 0x10006f10
push ebx
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push 0x9800000c
push edi
call dword [sym.imp.ws2_32.dll_WSAIoctl]
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push esi
call fcn.10002b96
test eax, eax
jne 0x10006f48
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10006f48
push str.connect
push esi
call fcn.1000afaa
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0x10
Function at 0x10008ba1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x2c], 0xffffffff
and dword [ebp - 0x28], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call sym.net.dll__ipv6_available_0
push edi
mov ebx, eax
call fcn.100065bc
pop ecx
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x10008be0
push edi
call fcn.100065e8
pop ecx
jmp 0x10008be3
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x24], 0
jge 0x10008c01
test eax, eax
jns 0x10008c01
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
xor eax, eax
jmp 0x10008c63
cmp dword [ebp + 0x10], 2
mov dword [ebp - 0x28], 0x10
je 0x10008c1a
cmp dword [ebp + 0x10], 0xffffffff
jne 0x10008c24
cmp dword [ebp - 0x24], 0xffffffff
jne 0x10008c2a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x1c
cmp dword [ebp - 0x24], 0xffffffff
je 0x10008bed
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10008c55
push str.Error_getting_socket_name
push str.java_net_SocketException
push esi
call fcn.1000affe
add esp, 0xc
jmp 0x10008bfd
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10002b96
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0xc
Function at 0x1000939b
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [0x10012588]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x100093d1
push str.null_fd_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x100094e6
xor eax, eax
cmp byte [ebp + 0x10], al
push ebx
mov ebx, dword [sym.imp.ws2_32.dll_socket]
sete al
push 0
inc eax
push eax
push 2
mov dword [ebp - 4], eax
call ebx
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10009405
push str.create
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x100094e5
push edi
mov edi, dword [sym.imp.kernel32.dll_SetHandleInformation]
push 0
push 1
push eax
call edi
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [0x10012218]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
call sym.net.dll__ipv6_available_0
test eax, eax
mov eax, dword [esi]
je 0x100094d2
push dword [0x1001257c]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1000947c
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [0x10012218]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
push dword [ebp + 0x10]
call fcn.10002b96
push str.null_fd1_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x100094e4
push 0
push dword [ebp - 4]
push 0x17
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100094b6
mov eax, dword [esi]
push ebx
push dword [0x10012218]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
push dword [ebp + 0x10]
call fcn.10002b96
push str.create
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x100094e4
push 0
push 1
push ebx
call edi
mov eax, dword [esi]
push ebx
push dword [0x10012218]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1b4]
jmp 0x100094e4
push 0
push dword [0x1001257c]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1a0]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x1000a553
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor eax, eax
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
call fcn.100091ff
push edi
mov ebx, eax
call fcn.1000922b
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0x14
test ebx, ebx
jns 0x1000a5cd
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
jns 0x1000a5cd
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0x10
cmp dword [ebp + 0x10], 0xf
jne 0x1000a670
push 0x1c
pop eax
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1000a5fa
push edi
call fcn.1000922b
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
jns 0x1000a622
push str.Error_getting_socket_name
push str.java_net_SocketException
push esi
call fcn.1000affe
add esp, 0xc
jmp 0x1000a5b9
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10002b96
mov edi, eax
test edi, edi
je 0x1000a5b9
push dword [ebp - 0x38]
mov eax, dword [esi]
push esi
call dword [eax + 0x7c]
mov ecx, dword [esi]
push str.Ljava_net_InetAddress_
push str.addr
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x1000a5b9
mov ecx, dword [esi]
push edi
push eax
push dword [ebp - 0x38]
push esi
call dword [ecx + 0x1a0]
xor eax, eax
jmp 0x1000a5bc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call sym.net.dll__NET_MapSocketOption_12
test eax, eax
je 0x1000a68e
push str.Invalid_option
jmp 0x1000a5ae
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x28], 4
cmp edi, 0x80
je 0x1000a6a4
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
call fcn.10002b96
test eax, eax
jns 0x1000a6ce
push str.getsockopt
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x1000a5b9
cmp edi, 8
jg 0x1000a6e9
je 0x1000a709
dec edi
je 0x1000a709
dec edi
dec edi
je 0x1000a71a
dec edi
je 0x1000a709
push str.Option_not_supported_by_TwoStacksPlainSocketImpl
jmp 0x1000a5ae
cmp edi, 0x80
je 0x1000a722
cmp edi, 0x1000
jle 0x1000a6df
cmp edi, 0x1002
jle 0x1000a71a
cmp edi, 0x1003
jne 0x1000a6df
xor eax, eax
cmp dword [ebp - 0x24], eax
setne al
lea eax, [eax + eax - 1]
jmp 0x1000a5bc
mov eax, dword [ebp - 0x24]
jmp 0x1000a5bc
cmp word [ebp - 0x24], 0
je 0x1000a5b9
movzx eax, word [ebp - 0x22]
jmp 0x1000a5bc
Function at 0x1000bd72
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x1c], 5
ja 0x1000be06
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.ws2_32.dll_bind
mov dword [esi], 0x400
mov dword [esi + 4], 0x1387
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000be13
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.MaxUserPort
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0x24]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1000be13
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
jmp 0x1000be13
mov dword [esi], 0xc000
mov dword [esi + 4], 0xffff
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
xor eax, eax
call fcn.1000c212
add ebp, 0x78
leave
ret

Function at 0x1000c212
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100120b4]
jne 0x1000c21c
repz ret
jmp fcn.1000c5cb
Function at 0x4372a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4372cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4372cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x412d80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UzBUtnck
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x412da2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412d98
mov eax, 1
add ebx, ebx
jne 0x412dbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412db0
jne 0x412dcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412db0
xor ecx, ecx
sub eax, 3
jb 0x412de0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412e52
mov ebp, eax
add ebx, ebx
jne 0x412deb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412df8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412e1c
inc ecx
add ebx, ebx
jne 0x412e08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412dfd
jne 0x412e19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412dfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412e3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412e2d
jmp 0x412d9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412e3c
add edi, ecx
jmp 0x412d9e
pop esi
mov edi, esi
mov ecx, 0x2ad
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412e5a
cmp byte [edi], 0
jne 0x412e5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x412e5f
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412ece
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x120b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1211c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412e8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12124]
or eax, eax
je 0x412ec8
mov dword [ebx], eax
add ebx, 4
jmp 0x412ea9
call dword [esi + 0x12120]
mov ebp, dword [esi + 0x12128]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412f02
sub esp, 0xffffff80
jmp 0x406f9c
Function at 0x401000
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4389d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
xor esi, esi
push eax
mov eax, dword [esp + 0x1c]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401050
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x24]
push ebp
push edi
mov edi, dword [esp + 0x28]
push eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebp
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebp
test esi, esi
je 0x40107f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call fcn.0042b8b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x10], 0
call fcn.0042b8b4
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042b8b4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4010c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4389e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
xor esi, esi
push eax
mov eax, dword [esp + 0x1c]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401110
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push 4
push edx
push 4
push 0
push eax
push esi
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x40113a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call fcn.0042b8b4
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042b8b4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438ab7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov dword [esp + 0x10], 0
push str.__t_r_n
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 2
call fcn.0042a84a
push str.__t_r_n
lea ecx, [esp + 0x38]
call fcn.0042a7ab
lea ecx, [esp + 0x38]
call fcn.0042bdb6
lea eax, [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
push 0x44b120
push ecx
call fcn.0042bbbd
lea edx, [esp + 0x38]
lea eax, [esp + 0x14]
push edx
push 0x44b144
push eax
mov byte [esp + 0x34], 3
call fcn.0042bbbd
push 0x44b114
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x34], 4
call fcn.0042bb49
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 6
call fcn.0042b8b4
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
mov esi, eax
mov ecx, dword [eax - 8]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.0042a3df
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x30], 7
call fcn.0041cf91
add esp, 8
test eax, eax
jne 0x401592
mov eax, dword [esp + 8]
mov esi, eax
mov ecx, dword [eax - 8]
lea eax, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.0042a363
mov eax, dword [eax]
push esi
push eax
call fcn.0041cf91
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.0042b8b4
test bl, bl
je 0x401594
mov bl, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call fcn.0042b8b4
test bl, bl
je 0x4015c0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0042b629
mov dword [esp + 0x10], 1
jmp 0x401601
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x34]
mov eax, dword [edx - 8]
push eax
push 0x44b114
call fcn.0042a465
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x30]
inc eax
mov ecx, dword [ecx - 8]
mov ebx, dword [edx - 8]
sub ecx, ebx
sub ecx, eax
push ecx
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.0042a2cd
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 3
call fcn.0042b8b4
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.0042b8b4
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.0042b8b4
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call fcn.0042b8b4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x402d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438e9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 4]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
push edx
push eax
mov byte [esp + 0x3c], 2
call dword [ecx + 0x4c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
cmp eax, ebx
je 0x402db0
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x43de88
push eax
call dword [ecx]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call fcn.0040dee0
push ecx
cmp eax, ebx
mov ecx, esp
mov dword [esp + 0x1c], esp
mov dword [ecx], eax
je 0x402dd1
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea ecx, [esp + 0x20]
call fcn.00403800
mov esi, eax
cmp esi, ebx
mov byte [esp + 0x30], 4
je 0x402dea
lea eax, [esi + 4]
jmp 0x402dec
xor eax, eax
mov edi, dword [esp + 0x38]
mov dl, byte [eax]
lea eax, [esi + 4]
lea ecx, [edi + 4]
push eax
mov byte [ecx], dl
call fcn.0040def0
mov dword [edi], 0x43d5a0
mov eax, dword [esi + 8]
mov byte [esp + 0x30], 5
cmp eax, ebx
mov dword [edi + 8], eax
je 0x402e1b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov dword [edi], fcn.00403910
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x24]
mov byte [esp + 0x30], 6
cmp eax, ebx
je 0x402e3c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x30], 3
cmp eax, ebx
je 0x402e4f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
mov byte [esp + 0x30], 2
cmp eax, ebx
je 0x402e62
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], 1
cmp eax, ebx
je 0x402e75
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], 7
cmp eax, ebx
je 0x402e8b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x30], bl
cmp eax, ebx
je 0x402e9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 0x10