joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101537b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c022
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 8], 0xffffffff
jne 0x101537f0
mov ecx, dword [ebp + 8]
call fcn.101515b0
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x88]
call eax
push 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x7c]
call eax
mov ecx, dword [ebp + 8]
call fcn.10151570
push eax
mov ecx, dword [ebp + 8]
call fcn.10151590
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10153881
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2734
je 0x10153881
cmp dword [ebp - 0x14], 0x2733
je 0x10153881
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.101515d0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10155140
add esp, 8
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.10002cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x10153d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 8], 0xffffffff
jne 0x10153d8a
push 0
lea ecx, [ebp - 0x38]
call fcn.10157d60
push 0x101c1134
lea ecx, [ebp - 0x38]
push ecx
call fcn.100bcb39
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x10153db9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10153d69
cmp dword [ebp - 4], 0
jge 0x10153e00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
je 0x10153dda
cmp dword [ebp - 8], 0x274c
jne 0x10153df4
push 0
lea ecx, [ebp - 0x68]
call fcn.100fc990
push 0x101b98b8
lea ecx, [ebp - 0x68]
push ecx
call fcn.100bcb39
jmp 0x10153e00
mov edx, dword [ebp - 8]
push edx
call fcn.101550d0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10153e90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov dword [ebp - 0xa0], ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x1c
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx + 8], 0xffffffff
jne 0x10153ee5
push 0
lea ecx, [ebp - 0x68]
call fcn.10157d60
push 0x101c1134
lea edx, [ebp - 0x68]
push edx
call fcn.100bcb39
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x10153f1f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10153ec1
cmp dword [ebp - 0x10], 0
jl 0x10153f6e
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x6c]
call fcn.10151240
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.10151480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.10151460
jmp 0x10153fb5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x2733
je 0x10153f89
cmp dword [ebp - 0x38], 0x274c
jne 0x10153fa9
push 0
lea ecx, [ebp - 0x9c]
call fcn.100fc990
push 0x101b98b8
lea edx, [ebp - 0x9c]
push edx
call fcn.100bcb39
jmp 0x10153fb5
mov eax, dword [ebp - 0x38]
push eax
call fcn.101550d0
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
cmp dword [eax + 8], 0xffffffff
jne 0x10153ffa
push 0
lea ecx, [ebp - 0x34]
call fcn.10157d60
push 0x101c1134
lea ecx, [ebp - 0x34]
push ecx
call fcn.100bcb39
push 1
push 1
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x1015401d
call fcn.10155040
mov esp, ebp
pop ebp
ret 4
Function at 0x10154710
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x60]
cmp dword [eax + 8], 0xffffffff
jne 0x10154741
push 0
lea ecx, [ebp - 0x58]
call fcn.10157d60
push 0x101c1134
lea ecx, [ebp - 0x58]
push ecx
call fcn.100bcb39
lea edx, [ebp - 0x28]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0x1c
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1015478c
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.10151240
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
jmp 0x101547a5
call fcn.10155040
mov ecx, dword [ebp + 8]
call fcn.10150ce0
mov ecx, dword [ebp - 0x5c]
or ecx, 1
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x10154990
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
cmp dword [eax + 8], 0xffffffff
jne 0x101549ba
push 0
lea ecx, [ebp - 0x34]
call fcn.10157d60
push 0x101c1134
lea ecx, [ebp - 0x34]
push ecx
call fcn.100bcb39
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x101549e5
call fcn.10155040
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10154fa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10154fcc
call fcn.10155040
mov esp, ebp
pop ebp
ret 8
Function at 0x405c38
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405df0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c99
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405e0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d06
xor eax, eax
push ebp
push 0x405cff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ce8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e2c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d06
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405de7
cmp byte [ebp - 0xd], 0
jne 0x405d48
cmp byte [ebp - 0x12], 0
je 0x405de7
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d61
dec ebx
cmp byte [ebx], 0x2e
je 0x405d70
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d60
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405de7
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d9d
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405de7
cmp byte [ebp - 0xd], 0
je 0x405de7
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405de7
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4074e0
Capabilities:
Enumerate pe sections

Disassembly:
xor ebx, ebx
cmp eax, ebx
je 0x407ae7
add byte [eax], al

Function at 0x4074e8
Capabilities:
Enumerate pe sections

Disassembly:
add byte [eax], al
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
jne 0x4074b6
call fcn.004072ee
xchg dword [esp + eax*8 - 0x14], edi
jl 0x4074c6
in al, dx
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
add al, 0x80
shl eax, 3
sub eax, dword [ebp + 0x10]
Function at 0x4076a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
pop ebp
xchg ebp, eax
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
invalid
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
and al, 0xc6
inc ebp
movsb byte es:[edi], byte [esi]
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
invalid
add al, 0xfc

Function at 0x407718
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x407789
Function at 0x407964
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4079a2
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40799d
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x407987
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40798f
cmp edx, ebx
jne 0x407add
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40795e
add eax, dword [eax + 4]
jmp 0x40794b
mov dword [ebp + 0xc], ebx
jmp 0x4079ad
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4079c5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4079e3
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x407a41
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x407a28
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x407a31
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x407a3b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x407a1d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4079a7
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x407a8e
dec eax
je 0x407a85
sub eax, 3
je 0x407a7c
mov dword [ebp - 4], 0x40
jmp 0x407aab
mov dword [ebp - 4], 4
jmp 0x407a91
mov dword [ebp - 4], 0x20
jmp 0x407a91
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x407add
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x407a5d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004072ee
add eax, 0xffa67c86
jne 0x407ae8
push 1
push esi
call edi
mov eax, esi
jmp 0x407ae9
rcr byte [edi + 0x5e], 0x5b

Function at 0x40949c
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
xchg esp, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
sbb al, 0x18
Function at 0x4094ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb al, 0x18
je 0x4094b2
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004072ee
push ss
xchg dword [eax + eax*2 - 0x75], eax
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004072ee
inc ebp
pop ebx
mov al, 0x93
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x4094db
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x4094db
call fcn.004072ee
jnp 0x409523
jg fcn.00409504
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
or al, 0x4b

Function at 0x40b810
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b849
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d58
jmp 0x40b852
mov eax, ebx
mov edx, esi
call fcn.00403d0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419958
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41995e
ret

Function at 0x41c1f8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41c249
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41c230
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41c220
jmp 0x41c249
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41c231
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4423b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4817d4
cmp dword [edi], 0
jne 0x442434
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4817d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47e978
mov ecx, 2
call fcn.00402a20
mov edx, 0x442390
lea eax, [esi + 5]
call fcn.004423b0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004423b0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x442409
mov dword [0x4817d0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x462a1f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x47f8c2
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462a77
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x47f8e3
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462a6d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x462a7b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4766cc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x476826
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x476806
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403e18
lea eax, [ebp - 0x118]
mov edx, 0x47683c
call fcn.00403ef8
mov eax, dword [ebp - 0x118]
call fcn.004040b4
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x476778
lea eax, [ebp - 0x111]
call fcn.004091cc
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403d58
jmp 0x47677f
mov eax, esi
call fcn.00403c74
cmp bl, 0x61
jae 0x4767a0
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040cb20
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403d0c
jmp 0x4767ba
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040ca94
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403d0c
lea eax, [ebp - 0x118]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0xb
lea edx, [ebp - 0x120]
xor ecx, ecx
mov eax, 0x476848
call fcn.00409984
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403d0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47680d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x478e9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004040b4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x478eb5
test al, 0x10
jne 0x478eb9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x479fac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004040a4
mov eax, dword [ebp - 8]
call fcn.004040a4
mov eax, dword [ebp + 8]
call fcn.004040a4
xor eax, eax
push ebp
push 0x47a080
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x47a098
call fcn.00403ef8
lea eax, [ebp - 8]
mov edx, 0x47a098
call fcn.00403ef8
lea eax, [ebp + 8]
mov edx, 0x47a098
call fcn.00403ef8
mov bl, 1
push 1
lea eax, [ebp + 8]
call fcn.004040c0
push eax
lea eax, [ebp - 8]
call fcn.004040c0
push eax
lea eax, [ebp - 4]
call fcn.004040c0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x47a05d
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x47a0a4
call fcn.00403f3c
mov eax, dword [ebp - 0xc]
mov cx, word [0x47a0b8]
mov dl, 1
call fcn.0044eac8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a087
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403c98
lea eax, [ebp + 8]
call fcn.00403c74
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100016f0
Capabilities:
Create thread

Disassembly:
test esi, esi
je 0x10001755
cmp dword [esi], 0xffff0001
jne 0x10001755
cmp dword [esi + 4], 0
jne 0x10001755
xor eax, eax
cmp ax, word [esi + 8]
jne 0x10001755
xor ecx, ecx
cmp cx, word [esi + 0xa]
jne 0x10001755
mov edx, 0x1c1
cmp dx, word [esi + 0xc]
jne 0x10001755
movzx eax, word [esi + 0x10]
mov ecx, 5
cmp cx, ax
je 0x10001735
mov edx, 4
cmp dx, ax
jne 0x10001755
push 0
push 0
push 0
push 0x100010e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001755
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push esi
push eax
call dword [0x10030128]
ret 0x10

Function at 0x100027c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10026cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1002f1f8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, dword [0x1002f1f8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
test eax, eax
je 0x10002911
test ebx, ebx
je 0x10002911
push eax
lea ecx, [esp + 0x18]
call fcn.100025d0
push 3
push 0xffffffffffffffff
push 0x10027374
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], 0
call fcn.10001780
mov esi, eax
cmp esi, 0xffffffff
je 0x100028ac
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x1c]
xor eax, eax
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.10001ff0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 1
call fcn.10001870
mov eax, dword [esp + 0x18]
mov esi, 8
mov dword [esp + 0xc], 0
cmp dword [esp + 0x2c], esi
jae 0x1000288a
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100028b7
lea ecx, [esp + 0x30]
call fcn.10001cb0
lea ecx, [esp + 0x14]
call fcn.10001cb0
jmp 0x10002919
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], edx
cmp dword [esp + 0x48], esi
jae 0x100028cd
lea eax, [esp + 0x34]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100028a3
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x30]
call fcn.10001cb0
lea ecx, [esp + 0x14]
call fcn.10001cb0
mov al, 1
jmp 0x1000291b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10016aa8
add esp, 0x50
ret