joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475d45
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x475d73
mov eax, ebx
call fcn.004767f9
cmp dword [ebx + 0x40], 0
je 0x475d6c
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x475de4
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x475dd6
cmp dword [ebx + 8], 0
je 0x475d95
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x475da7
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x475dd6
cmp dword [ebx + 8], 0
je 0x475d88
cmp eax, 3
je 0x475dba
dec eax
jne 0x475d88
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x475d88
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x475d88
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x475e02
cmp dword [ebx + 0x14], 0xcc
je 0x475e02
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00475e0d
pop ebx
ret
Function at 0x487939
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c4], ebx
mov dword [ebp - 0x5c0], ebx
mov dword [ebp - 0x5b4], ebx
mov dword [ebp - 0x5b8], ebx
mov dword [ebp - 0x5bc], ebx
mov dword [ebp - 0x5ac], ebx
mov dword [ebp - 0x5b0], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x487b8d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x487ba5
lea eax, [ebp - 0x5b0]
mov edx, dword [ebp + 0xc]
call fcn.0040502d
push dword [ebp - 0x5b0]
push 0x487bb5
push 0x487bc9
push 0x487bd5
lea eax, [ebp - 0x5ac]
mov edx, 5
call fcn.004051b5
mov eax, dword [ebp - 0x5ac]
call fcn.004052f5
mov esi, eax
push 0x487be1
lea eax, [ebp - 0x5b8]
mov edx, ebx
call fcn.0040502d
push dword [ebp - 0x5b8]
push 0x487bf1
lea edx, [ebp - 0x5bc]
mov eax, dword [ebp + 8]
call fcn.00409451
push dword [ebp - 0x5bc]
push 0x487bc9
push 0x487bd5
lea eax, [ebp - 0x5b4]
mov edx, 6
call fcn.004051b5
mov eax, dword [ebp - 0x5b4]
call fcn.004052f5
mov edi, eax
push esi
push edi
mov esi, 0x487bf5
lea edi, [ebp - 0x5a8]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
xor eax, eax
push ebp
push 0x487b68
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x487b4e
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x487b47
lea eax, [ebp - 0x1a8]
xor ecx, ecx
mov edx, 0x10
call fcn.0040390d
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.0040390d
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 8], eax
mov word [ebp - 0x1a8], 2
mov ax, word [ebp + 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1a6], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1a4], eax
push 0x10
lea eax, [ebp - 0x1a8]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
jne 0x487b55
lea eax, [ebp - 0x5a8]
mov edx, esi
call fcn.0040a005
lea eax, [ebp - 0x5a8]
mov edx, edi
call fcn.0040a005
push 0
lea eax, [ebp - 0x5c0]
mov edx, esi
call fcn.0040502d
mov eax, dword [ebp - 0x5c0]
call fcn.004050f5
push eax
lea eax, [ebp - 0x5c4]
mov edx, edi
call fcn.0040502d
mov eax, dword [ebp - 0x5c4]
call fcn.004050f5
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x5a8]
push eax
push ebx
call sub.wsock32.dll_send
inc eax
jne 0x487b3f
call fcn.00404899
jmp 0x487b6f
push ebx
call sub.wsock32.dll_closesocket
jmp 0x487b55
call fcn.00404899
jmp 0x487b6f
call fcn.00404899
jmp 0x487b6f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487b6f
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487b94
lea eax, [ebp - 0x5c4]
mov edx, 7
call fcn.00404e59
ret
Function at 0x48815d
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
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4882b8
mov word [ebp - 0x18], 2
mov eax, dword [ebp + 8]
mov ax, word [eax - 4]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4881ea
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4881c8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x4881ed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040a191
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4882b8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040a191
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x488222
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4882b8
push 0
push ebx
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_send
mov ebx, eax
inc ebx
jne 0x488248
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4882b8
xor eax, eax
push ebp
push 0x4882b1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1000
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x488291
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_send
push 0
push 0x1000
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jg 0x48826d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4882b8
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4883d5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
mov esi, eax
push 0
push 0x1000
lea eax, [ebp - 0x1000]
push eax
push esi
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jg 0x488405
push esi
call sub.wsock32.dll_closesocket
jmp 0x488449
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0x50
push ebp
lea eax, [ebp - 0x1000]
mov edx, ebx
call fcn.004882c1
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x488435
push esi
call sub.wsock32.dll_closesocket
jmp 0x488449
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1000]
mov ecx, esi
mov edx, ebx
call fcn.0048815d
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48aa7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x48ab7d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404ecd
mov dword [ebp - 8], 0x7d8
mov eax, edi
call fcn.00404e35
mov eax, dword [ebp - 0xc]
call fcn.004050f5
mov esi, eax
sar esi, 1
jns 0x48aac9
adc esi, 0
test esi, esi
jle 0x48ab0e
mov ebx, 1
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + eax - 2]
sub edx, 0x41
imul edx, edx, 0x1a
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + eax - 1]
sub eax, 0x41
add dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dl, byte [ebp - 4]
call fcn.0040501d
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.004050fd
inc ebx
dec esi
jne 0x48aad2
lea eax, [ebp - 0xc]
mov edx, dword [edi]
call fcn.00404ecd
mov eax, dword [ebp - 0xc]
call fcn.004050f5
mov esi, eax
test esi, esi
jle 0x48ab62
mov ebx, 1
mov eax, edi
call fcn.0040534d
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + ebx - 1]
add eax, dword [ebp - 8]
imul eax, eax, 0x3039
add eax, 0x10932
mov dword [ebp - 8], eax
inc ebx
dec esi
jne 0x48ab2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ab84
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404e59
ret

Function at 0x48ad01
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x48ad67
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetClipboardData
mov edx, eax
lea eax, [ebp - 8]
call fcn.0040502d
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x48ad7d
call fcn.00405141
mov eax, dword [ebp - 4]
call fcn.004052f5
push eax
call sub.user32.dll_ScrollWindow
push 0
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ad6e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e59
ret
Function at 0x48be3d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x48be87
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20
call sub.user32.dll_GetCursorPos
push eax
call sub.user32.dll_SetMenu
mov cl, 1
mov edx, 0x48bea5
mov eax, dword [ebp - 8]
call fcn.0048bd81
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DefFrameProcA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48be91
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4911e5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004052e5
mov eax, dword [ebp - 8]
call fcn.004052e5
xor eax, eax
push ebp
push 0x49144b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
call fcn.00409ee9
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.004050d1
mov eax, dword [ebp - 4]
call fcn.00403065
call fcn.00403029
lea eax, [ebp - 0x250]
push eax
push 0x49145d
call sub.user32.dll_EnumThreadWindows
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4913d8
mov eax, dword [ebp - 8]
call fcn.004099bd
test al, al
jne 0x4912a0
mov eax, dword [ebp - 8]
call fcn.004099e1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x224]
mov ecx, 0x104
call fcn.004050a5
mov eax, dword [ebp - 0x10]
mov edx, 0x491469
call fcn.00405241
je 0x4913bb
mov eax, dword [ebp - 0x10]
mov edx, 0x491475
call fcn.00405241
je 0x4913bb
cmp dword [ebp - 0x250], 0x10
jne 0x49138a
push dword [ebp - 8]
push 0x491481
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004051b5
mov eax, dword [ebp - 0xc]
call fcn.004099bd
test al, al
jne 0x491312
mov eax, dword [ebp - 0xc]
call fcn.004099e1
mov eax, dword [ebp - 4]
call fcn.004050f5
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x491351
push dword [ebp - 4]
push 0x491481
push dword [ebp - 0x10]
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.004051b5
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.004911e5
jmp 0x4913bb
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00405141
mov eax, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00405141
mov edx, dword [ebp - 0x260]
mov eax, esi
pop ecx
call fcn.004911e5
jmp 0x4913bb
push dword [ebp - 8]
push 0x491481
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004051b5
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
call fcn.004052f5
push eax
mov eax, dword [ebp - 0x10]
call fcn.004052f5
push eax
call sub.user32.dll_DefWindowProcA
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.user32.dll_EnumWindows
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4912a0
jmp 0x4913fd
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x110]
call fcn.00405099
mov eax, dword [ebp - 0x264]
call fcn.00403065
call fcn.00403029
xor ebx, ebx
jmp 0x491420
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x110]
call fcn.00405099
mov eax, dword [ebp - 0x268]
call fcn.00403065
call fcn.00403029
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491452
lea eax, [ebp - 0x268]
mov edx, 6
call fcn.00404e59
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404e59
ret
Function at 0x491b49
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004052e5
xor eax, eax
push ebp
push 0x491bc3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, ebx
call fcn.00404e35
mov eax, dword [ebp - 4]
call fcn.004052f5
push eax
call sub.wsock32.dll_gethostbyname
mov esi, dword [eax + 0xc]
mov eax, dword [esi]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, ebx
call fcn.0040a131
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491bca
lea eax, [ebp - 4]
call fcn.00404e35
ret
Function at 0x4bb031
Capabilities:
Shutdown system

Disassembly:
pushal
cmp ecx, ebx
push ecx
test ebx, edx
sbb ecx, eax
push eax
and ebx, edx
push eax
push eax
push ebx
push edx
or ecx, edx
push edx
push ebx
push ecx
add edx, edx
push edx
adc eax, ebx
push eax
push edx
push edx
mov ecx, ebx
sub ecx, ebx
sbb eax, edx
push edx
test ecx, ebx
push edx
cmp edx, ecx
cmp ecx, ebx
push edx
push edx
push ebx
push ebx
push ebx
push ecx
push ebx
sbb ebx, edx
push ecx
push ebx
push eax
push edx
xor ecx, edx
push edx
push edx
push edx
push ebx
push ecx
sub ecx, edx
push eax
push ecx
test eax, ebx
push eax
push edx
xor edx, edx
push ecx
cmp edx, ebx
push edx
xor ebx, edx
push ebx
or edx, ebx
sbb eax, eax
push eax
push ebx
push eax
push ebx
push ecx
push eax
push eax
push ebx
push ebx
push ebx
push ecx
push ebx
push edx
push edx
push edx
push edx
push ecx
push edx
push edx
push eax
mov eax, ebx
pop edx
pop ebx
cmp edx, eax
pop eax
adc eax, ecx
xor ecx, ebx
pop eax
mov ecx, eax
pop ecx
pop eax
adc edx, ebx
adc ecx, edx
pop edx
pop ecx
cmp ecx, ecx
pop ebx
pop ebx
pop edx
adc ebx, ecx
pop ebx
pop ebx
pop ebx
pop edx
pop edx
pop eax
pop eax
pop edx
pop edx
pop eax
pop eax
pop ecx
pop edx
or eax, ebx
pop edx
cmp edx, eax
pop eax
sub eax, eax
pop eax
pop ebx
pop ecx
pop ebx
or eax, ecx
pop edx
pop ecx
pop ebx
pop ebx
pop ebx
sub edx, ebx
pop ebx
adc edx, edx
pop ebx
test eax, edx
pop ebx
pop edx
pop eax
pop edx
or eax, ecx
pop edx
sbb eax, eax
pop eax
sub edx, eax
pop ecx
pop ebx
sbb edx, ecx
pop ebx
pop edx
pop ecx
adc ebx, eax
pop ebx
pop eax
pop edx
pop eax
pop ebx
pop ebx
pop edx
pop edx
pop edx
pop eax
popal
pushal
call fcn.004bb006
mov eax, ebx
mov eax, dword ds:[eax]
inc eax
call fcn.004bb012
inc eax
pop ebx
adc byte cs:[ecx + 0x43], 0xb
popal
jmp loc.004b802a
Function at 0x401480
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret 4

Function at 0x40e2ee
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
xor edi, edi
mov esi, 0x811c9dc5
test edx, edx
je 0x40e30c
movzx eax, byte [edi + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edi
cmp edi, edx
jb 0x40e2fb
pop edi
mov eax, esi
pop esi
ret

Function at 0x40e9bb
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6c10c8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00576720
add esp, 0xc
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x40ea02
mov eax, dword [0x6c8680]
mov ecx, 0x6c8680
push 0x8d339f
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
xor ecx, ebp
mov edx, dword [ebp - 0x3c]
call fcn.00573599
mov esp, ebp
pop ebp
ret

Function at 0x40ea77
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x6ce814]
test eax, eax
jne 0x40ea97
call fcn.0040e9bb
push edx
push eax
call fcn.0040ea16
mov dword [0x6ce814], eax
dec eax
cmp eax, 9
ja case.default.0x40ea9d
jmp dword [eax*4 + 0x40eaeb]
mov eax, 0x10000000
jmp 0x40eae3
mov eax, 0x20000000
jmp 0x40eae3
mov eax, 0x30000000
jmp 0x40eae3
mov eax, 0x40000000
jmp 0x40eae3
mov eax, SysReAllocString
jmp 0x40eae3
xor edx, edx
xor eax, eax
inc edx
jmp 0x40eae5
push 2
xor eax, eax
pop edx
jmp 0x40eae5
push 4
jmp 0x40ead0
push 8
jmp 0x40ead0
push 0x10
jmp 0x40ead0
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret

Function at 0x40f1dd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6c10c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x11c
lea eax, [ebp - 0x120]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.00576720
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40f230
push 0x323658
mov ecx, 0x6c8680
jmp 0x40f25d
cmp dword [ebp - 0x11c], 6
mov edi, 0x6c8680
jae 0x40f24d
mov eax, dword [0x6c8680]
mov ecx, edi
push 0x323659
call dword [eax + 4]
cmp dword [ebp - 0x110], 2
je 0x40f265
push 0x32365a
mov ecx, edi
mov eax, dword [0x6c8680]
call dword [eax + 4]
mov eax, dword [ebp - 0x11c]
mov cl, byte [ebp - 6]
mov edx, dword [ebp - 8]
test edx, 0x110
mov word [esi + 0xc], bx
mov dword [esi], eax
mov eax, dword [ebp - 0x118]
mov dword [esi + 4], eax
movzx eax, word [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, esi
mov byte [esi + 0xc], cl
setne cl
shr edx, 8
mov byte [esi + 0xd], cl
and dl, 1
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0xe], dl
xor ecx, ebp
pop esi
pop ebx
call fcn.00573599
mov esp, ebp
pop ebp
ret
Function at 0x413514
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
push ebx
push esi
push edi
mov edi, ecx
test edx, edx
jne 0x413529
mov edx, dword [edi]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0xffff
push dword [ebp + 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov edx, dword [ebp - 4]
cmp ebx, 2
jae 0x41355f
cmp edx, 1
je 0x41355c
cmp edx, 2
jne 0x41355f
push 2
pop esi
mov ecx, esi
call fcn.004129b9
test eax, eax
je 0x413572
push edi
call fcn.00412b66
jmp 0x4135b7
test esi, esi
jne 0x4135b0
cmp edx, 2
je 0x413580
cmp edx, 1
jne 0x41358f
mov eax, dword [ebp + 0xc]
shr ebx, 1
xor ecx, ecx
mov word [eax + ebx*2 - 2], cx
mov edx, dword [ebp - 4]
movzx eax, byte [ebp + 0x14]
cmp edx, eax
je 0x4135b0
sub edx, 1
je 0x4135a8
sub edx, 1
jne 0x4135ad
cmp eax, 1
jne 0x4135ad
jmp 0x4135b0
cmp eax, 2
je 0x4135b0
push 2
pop esi
mov ecx, edi
call fcn.00412c70
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4135e3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x5b86ec
call fcn.00573e11
mov esi, ecx
test esi, esi
jne 0x4135fc
xor eax, eax
jmp 0x41379d
and dword [ebp - 0x20], 0
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x413622
cmp dword [0x6e498c], ebx
je 0x413739
push 2
pop edi
jmp 0x413640
cmp ebx, 1
jne 0x413739
test byte [esi + 0x10], 0x10
jne 0x41363e
call fcn.0056d061
test eax, eax
jne 0x413736
xor edi, edi
and dword [ebp - 0x18], 0
xor bl, bl
cmp dword [0x6e4b28], 0
mov dword [ebp - 0x28], edi
mov byte [ebp - 0xd], bl
je 0x413665
inc bl
push 0x6cee28
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
movzx eax, word [esi + 0x10]
and dword [ebp - 0x1c], 0
shr eax, 1
and eax, 0x10
push 0
or eax, edi
jmp 0x4136ef
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x413688
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 2
mov edi, eax
jae 0x4136b4
cmp dword [ebp - 0x20], 1
je 0x4136b1
cmp dword [ebp - 0x20], 2
jne 0x4136b4
push 2
pop edi
mov ecx, edi
call fcn.004129b9
test eax, eax
je 0x41370b
mov eax, dword [esi + 0xc]
xor edi, edi
push dword [ebp - 0x18]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
mov dword [eax + 0x6c2310], edi
call fcn.00412b66
movzx eax, word [esi + 0x10]
shr eax, 1
and eax, 0x10
mov dword [ebp - 0x18], edi
or eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
push edi
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412cfe
mov edi, eax
test edi, edi
je 0x41367c
jmp 0x413717
mov ecx, dword [ebp - 0x18]
call fcn.00412c70
test edi, edi
je 0x413768
or dword [ebp - 4], 0xffffffff
cmp dword [0x6e4b28], 0
je 0x413733
test bl, bl
je 0x413733
push 0x6cee28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x24], ebx
cmp ebx, 2
jl 0x41360a
test edi, edi
jne 0x413792
cmp dword [ebp - 0x20], 2
je 0x413759
mov al, byte [esi + 0x10]
and al, 0xf
cmp al, 2
jne 0x41379b
cmp ecx, 0x82
jae 0x41378a
mov ecx, 0x208
jmp 0x41379b
cmp dword [0x6e4b28], 0
je 0x413785
test bl, bl
je 0x413785
push 0x6cee28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x14]
jmp 0x413746
mov ecx, dword [ebp - 0x14]
jmp 0x41374a
add ecx, 0x104
jmp 0x41379b
mov ecx, esi
call fcn.0040fe99
mov ecx, eax
mov eax, ecx
call fcn.00573dda
ret