joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4af88e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4d5fd4]
mov eax, dword [eax + 0x14]
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
mov ecx, eax
sub ecx, edi
cmp ecx, 0xbb8
jbe 0x46e42d
mov dword [esi], eax
mov al, byte [0x523bcc]
mov edx, dword [0x4d5fd4]
push ebx
xor bl, bl
test al, 1
push ebp
mov ebp, dword [edx + 0x2c]
jne 0x46e2ba
or dword [0x523bcc], 1
mov ecx, 0x523bac
mov dword [esp + 0x1c], 0
call fcn.0047d7e0
push 0x4b14c0
call fcn.00497919
add esp, 4
mov dword [esp + 0x1c], 0xffffffff
mov ecx, 0x523bac
call fcn.0047d5f0
push 0x402
mov ecx, 0x523bac
call fcn.0047d600
push 0xb
mov ecx, 0x523bac
call fcn.0047d590
xor eax, eax
mov ax, word [esi + 0x20]
mov ecx, 0x523bac
push eax
call fcn.0047d600
lea edi, [esi + 0x78]
mov dword [esp + 0x10], 5
jmp 0x46e300
mov esi, dword [edi - 0x24]
test esi, esi
je 0x46e405
cmp esi, ebp
je 0x46e405
mov ecx, dword [esi + 0x2ec]
cmp ecx, dword [ebp + 0x2ec]
jne 0x46e353
movsx edx, word [ebp + 0x2ea]
movsx eax, word [ebp + 0x2e8]
movsx ecx, word [esi + 0x2ea]
push 0x19
push edx
movsx edx, word [esi + 0x2e8]
push eax
push ecx
push edx
call fcn.0047d470
add esp, 0x14
test eax, eax
jne 0x46e405
mov eax, dword [edi - 0x48]
push eax
mov ecx, 0x523bac
mov bl, 1
call fcn.0047d640
mov eax, dword [esi + 0x2ec]
test eax, eax
je 0x46e376
mov cx, word [eax + 4]
mov word [edi], cx
jmp 0x46e37b
mov word [edi], 0xffff
movsx edx, word [esi + 0x2da]
xor ecx, ecx
mov cx, word [edi]
mov dword [edi - 0x10], edx
movsx eax, word [esi + 0x2dc]
mov dword [edi - 0xc], eax
push ecx
mov ecx, 0x523bac
call fcn.0047d600
xor edx, edx
mov dx, word [edi - 0x10]
mov ecx, 0x523bac
push edx
call fcn.0047d600
xor eax, eax
mov ax, word [edi - 0xc]
mov ecx, 0x523bac
push eax
call fcn.0047d600
push 4
mov ecx, esi
call fcn.00421c10
push eax
mov ecx, 0x523bac
call fcn.0047d640
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, 0x523bac
call fcn.0047d640
push 5
mov ecx, esi
call fcn.00421c10
push eax
mov ecx, 0x523bac
call fcn.0047d640
mov edx, dword [esi + 0x40]
push edx
mov ecx, 0x523bac
call fcn.0047d640
mov eax, dword [esp + 0x10]
add edi, 0x54
dec eax
mov dword [esp + 0x10], eax
jne 0x46e300
test bl, bl
je 0x46e42b
mov eax, dword [ebp]
push 0x523bac
mov ecx, ebp
call dword [eax + 0xb0]
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47b630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4afdb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x20], bl
push fcn.004451e0
push 0x447830
push 8
push 0x10
lea eax, [esi + 0x9c8]
push eax
mov byte [esp + 0x2c], 1
call fcn.00497cd8
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov word [esi + 0x44], bx
mov word [esi + 0x46], bx
mov word [esi + 0x48], bx
mov word [esi + 0x4a], bx
mov word [esi + 0x4c], bx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov word [esi + 0x58], bx
mov word [esi + 0x5a], bx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov byte [esi + 0x6c], bl
mov byte [esi + 0x6d], bl
mov dword [esi + 0x70], ebx
mov word [esi + 0x74], bx
mov word [esi + 0x76], bx
mov word [esi + 0x78], bx
mov dword [esi + 0x40], 0xffffffff
xor eax, eax
lea edi, [esi + 0x7c]
mov ecx, 0x253
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x47c2b0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov ebp, ecx
xor eax, eax
mov ecx, 0x100
mov edi, 0x524540
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x47c325
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x47c2f2
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
push str.SELECT__s_FROM__s
push 0x524540
call fcn.00496d86
add esp, 0x10
jmp 0x47c30d
mov edx, dword [ebx + 4]
push eax
mov eax, dword [ebx + 0xc]
push edx
push eax
push str.SELECT__s_FROM__s_WHERE__s
push 0x524540
call fcn.00496d86
add esp, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp]
push ecx
push 0
push 0x524540
push edx
mov ecx, ebp
call fcn.0047c080
jmp 0x47c395
xor eax, eax
mov ecx, 0x100
mov edi, 0x524138
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
push str.SELECT__s_FROM__s_WHERE
push 0x524138
call fcn.00496d86
mov eax, 0x524138
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c356
mov ecx, dword [ebx + 0x14]
push esi
mov esi, dword [ebx + 0x10]
sub eax, edx
mov edx, ecx
shr ecx, 2
lea edi, [eax + 0x524138]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x14]
mov edx, dword [ebp]
push ecx
add eax, esi
push eax
push 0x524138
push edx
mov ecx, ebp
call fcn.0047c080
pop esi
test al, al
jne 0x47c3b3
push str._nSelect_record_Failed__
push 0x524948
call fcn.00480c40
add esp, 8
pop edi
pop ebp
xor al, al
pop ebx
ret 4
pop edi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x47f150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4aff1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esp + 8], esi
mov dword [esi], 0x4b8f4c
call fcn.00482df0
xor ebx, ebx
push 0x4000
mov ecx, 0x534e18
mov dword [esp + 0x18], ebx
call fcn.0047d4f0
push 0x4000
mov ecx, 0x53ee5c
call fcn.0047d4f0
mov ecx, esi
mov byte [esi + 0x5c], bl
mov byte [esi + 0x5d], 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ebx
call fcn.0047ef70
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4807db
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4cb400]
push esi
mov esi, ecx
mov edx, dword [esi + 0x1c]
test edx, edx
mov dword [esp + 0x10c], eax
je 0x48089f
cmp edx, 0xffffffff
je 0x48089f
push ebp
push edi
mov edi, dword [esp + 0x11c]
mov eax, edi
mov dword [esp + 0xc], 0
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480810
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, ebp
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x24]
inc ecx
mov eax, ecx
cmp eax, 0xf4240
pop edi
mov dword [esi + 0x24], ecx
pop ebp
jle 0x48089f
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x14]
inc ecx
cmp eax, 0xc8
mov dword [esi + 0x20], ecx
jae 0x480898
cmp dword [esi + 0x18], 0x10
jb 0x480861
mov eax, dword [esi + 4]
jmp 0x480864
lea eax, [esi + 4]
push ecx
push eax
lea eax, [esp + 0x10]
push str._s_d.txt
push eax
call fcn.00496d86
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], 0
mov ecx, dword [esp + 0x10c]
pop esi
call fcn.00496e0f
add esp, 0x10c
ret 4
Function at 0x480c30
Capabilities:
Create directory

Disassembly:
sub esp, 0x534
mov eax, dword [0x4cb400]
push ebp
push esi
push edi
push 0
mov dword [esp + 0x540], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [esp + 0x33c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x43c]
push edx
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x348]
push eax
call fcn.004996df
lea ecx, [esp + 0x24]
push ecx
call fcn.00497e09
lea edx, [esp + 0x28]
push edx
call fcn.004991cc
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
push ecx
inc edx
push edx
lea eax, [esp + 0x40]
push str._d._d__d._d
push eax
call fcn.00496d86
lea eax, [esp + 0x40]
add esp, 0x34
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480af8
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00404fa0
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480b15
sub eax, edx
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0043cb20
push 5
push str.GmLog
mov ecx, esi
call fcn.0043cb20
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x480b46
mov eax, dword [edi]
jmp 0x480b48
mov eax, edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call ebp
push 1
push 0x4b5590
mov ecx, esi
call fcn.0043cb20
lea eax, [esp + 0x134]
lea edx, [eax + 1]
jmp 0x480b70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480b70
sub eax, edx
push eax
lea eax, [esp + 0x138]
push eax
mov ecx, esi
call fcn.0043cb20
push 0x5f
push 1
mov ecx, esi
call fcn.00404cb0
lea eax, [esp + 0x14]
lea edx, [eax + 1]
jmp 0x480ba0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480ba0
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0043cb20
cmp dword [esi + 0x18], 0x10
jb 0x480bc0
mov eax, dword [edi]
jmp 0x480bc2
mov eax, edi
push 0
push eax
call ebp
mov eax, dword [esi + 0x18]
xor ebp, ebp
cmp eax, 0x10
mov dword [esi + 0x20], ebp
jb 0x480bd8
mov eax, dword [edi]
jmp 0x480bda
mov eax, edi
push ebp
push eax
lea edx, [esp + 0x23c]
push str._s_d.txt
push edx
call fcn.00496d86
add esp, 0x10
push ebp
push 0x80
push 2
push ebp
push 1
push 0xc0000000
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x53c]
pop edi
mov dword [esi + 0x24], ebp
mov dword [esi + 0x1c], eax
pop esi
pop ebp
call fcn.00496e0f
add esp, 0x534
ret
mov ecx, 0x5490b8
jmp 0x480a60
Function at 0x482980
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4cb400]
push ebx
mov ebx, dword [esp + 0x1a0]
xor ecx, ecx
mov ch, bl
mov dword [esp + 0x194], eax
lea eax, [esp + 4]
push eax
mov cl, byte [esp + 0x1a0]
push ecx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4829bb
push str.WSAStartup_error
jmp 0x482a08
mov ax, word [esp + 4]
movzx ecx, al
cmp ecx, ebx
jne 0x482a03
movzx edx, ah
cmp edx, dword [esp + 0x19c]
jne 0x482a03
mov eax, dword [0x524e14]
mov ecx, dword [eax]
push str.WSAStartup_ok
push str.NetLib:1
push eax
call dword [ecx + pe_nt_image_headers32]
add esp, 0xc
mov al, 1
pop ebx
mov ecx, dword [esp + 0x190]
call fcn.00496e0f
add esp, 0x194
ret 8
push str.WSAStartup_version_error
mov eax, dword [0x524e14]
mov edx, dword [eax]
push str.NetLib:1
push eax
call dword [edx + pe_nt_image_headers32]
add esp, 0xc
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [esp + 0x194]
xor al, al
pop ebx
call fcn.00496e0f
add esp, 0x194
ret 8

Function at 0x482b20
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4cb400]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x20]
test esi, esi
mov word [esp + 0xa], ax
je 0x482b67
push esi
call sub.WS2_32.dll_inet_addr
jmp 0x482b6b
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x482b9f
test esi, esi
je 0x482bda
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x482bda
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
push edi
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov edx, dword [ebx + 4]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x482bed
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x482bed
mov ecx, dword [0x524e14]
mov edx, dword [ecx]
push eax
push str.Socket_connect_error___d
push str.NetLib:1
push ecx
call dword [edx + pe_nt_image_headers32]
add esp, 0x10
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
call fcn.00496e0f
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x18]
pop esi
mov al, 1
pop ebx
call fcn.00496e0f
add esp, 0x14
ret 0xc

Function at 0x482c00
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
xor eax, eax
lea edx, [esp + 4]
push edx
push eax
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
mov esi, ecx
mov ecx, dword [esi + 4]
push eax
push 0x40
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x482c55
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x482c55
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret
Function at 0x482c60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
xor eax, eax
lea edx, [esp + 4]
push edx
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x482cb5
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x482cb5
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret

Function at 0x482d20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 4]
push edx
xor eax, eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push eax
push 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
call sub.WS2_32.dll_select
test eax, eax
jle 0x482d75
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x482d75
mov al, 1
pop esi
add esp, 0x10c
ret
xor al, al
pop esi
add esp, 0x10c
ret

Function at 0x482d90
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [ecx + 4]
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x482dce
mov eax, dword [0x524e14]
mov edx, dword [eax]
push 0xffffffffffffffff
push str.SetNonBlocking_Failed_IOCTLSOCKET___d
push str.NetLib:1
push eax
call dword [edx + pe_nt_image_headers32]
add esp, 0x10
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x482e60
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
call fcn.00482c60
test al, al
jne 0x482e72
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x482e9a
call sub.WS2_32.dll_WSAGetLastError
sub eax, 0x2733
neg eax
sbb eax, eax
pop esi
ret 8

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

Disassembly:
push esi
mov esi, ecx
call fcn.00482c00
test al, al
jne 0x482eb2
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_recv
mov esi, eax
test esi, esi
je 0x482ede
cmp esi, 0xffffffff
jne 0x482ee5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x482ee5
or eax, 0xffffffff
pop esi
ret 8
mov eax, esi
pop esi
ret 8

Function at 0x482f40
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx + 4], eax
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x10], 1
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x482f7e
mov eax, dword [0x524e14]
mov edx, dword [eax]
push 0xffffffffffffffff
push str.SetNonBlocking_Failed_IOCTLSOCKET___d
push str.NetLib:1
push eax
call dword [edx + pe_nt_image_headers32]
add esp, 0x10
mov al, 1
ret 4
Function at 0x484800
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x484820
mov edx, dword [esp + 8]
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
push 1
add eax, 4
push eax
call fcn.00499828
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.004986cb
int3

Function at 0x484d00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ebp, edi
sub ebp, ecx
cmp eax, 6
je 0x484d20
call fcn.00484c70
mov edi, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x484d64
mov ax, word [esi + 0x2c]
cmp ax, 0x1000
jbe 0x484d3f
push 5
push esi
call fcn.00484800
movzx ecx, ax
shl ecx, 1
push ecx
push esi
call fcn.00484970
add esp, 8
cmp word [esi + 0x2c], 0x1000
jbe 0x484d64
push str.stack_overflow
push esi
call fcn.0048a5a0
add esp, 8
mov eax, dword [edi + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x484e27
push ebx
mov ebx, dword [eax + 0xc]
mov al, byte [ebx + 0x46]
test al, al
je 0x484d8d
movzx eax, byte [ebx + 0x45]
lea edx, [edi + 0x10]
push eax
call fcn.00484b30
add esp, 4
movzx eax, byte [ebx + 0x47]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, edx
mov edx, eax
shl edx, 4
cmp ecx, edx
jg 0x484dac
push eax
push esi
call fcn.004849e0
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add eax, 0x18
mov dword [esi + 0x14], eax
lea edx, [ecx + ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
movzx edx, byte [ebx + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x484e1a
mov ecx, 0x10
jmp 0x484e00
mov edx, dword [esi + 8]
mov dword [edx], 0
mov ebx, dword [esi + 8]
add ebx, ecx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov edx, ebx
cmp edx, edi
jb 0x484e00
mov eax, dword [eax + 4]
pop ebx
pop edi
mov dword [esi + 8], eax
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 8]
cmp ecx, 0x140
jg 0x484e40
push 0x14
push esi
call fcn.004849e0
add esp, 8
mov edx, dword [esi + 0x14]
add edx, 0x18
mov dword [esi + 0x14], edx
mov eax, edx
mov edx, dword [esi + 0x1c]
lea ecx, [edx + ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
mov edx, dword [esi + 8]
mov dword [esi + 0xc], ecx
add edx, 0x140
mov ecx, 1
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
test byte [esi + 0x30], cl
je 0x484e82
push 0xffffffffffffffff
push 0
push esi
call fcn.00484a60
add esp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
push esi
call dword [ecx + pe_nt_image_headers32]
add esp, 4
shl eax, 4
mov edx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
sub eax, edx
pop ebp
ret
Function at 0x4885a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
shr ecx, 5
push ebp
push esi
mov esi, dword [esp + 0x14]
inc ecx
cmp ebx, ecx
push edi
mov edx, ebx
mov eax, ebx
jb 0x4885db
lea ebx, [ebx]
movzx edi, byte [esi + eax - 1]
mov ebp, edx
shl ebp, 5
add edi, ebp
mov ebp, edx
shr ebp, 2
add edi, ebp
sub eax, ecx
xor edx, edi
cmp eax, ecx
jae 0x4885c0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x48860b
cmp dword [eax + 0xc], ebx
jne 0x488605
mov ecx, ebx
lea edi, [eax + 0x10]
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x48861c
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x4885f1
mov ecx, dword [esp + 0x14]
push ebx
push esi
push ecx
mov eax, edx
call fcn.00488500
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x498608
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4bb0d8
call fcn.0049d464
push 8
call fcn.0049c81b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x549168], esi
jne 0x49863c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x549164], esi
mov al, byte [ebp + 0x10]
mov byte [0x549160], al
cmp dword [ebp + 0xc], edi
jne 0x498686
cmp dword [0x54ab90], edi
je 0x498676
mov eax, dword [0x54ab8c]
sub eax, 4
mov dword [0x54ab8c], eax
cmp eax, dword [0x54ab90]
jb 0x498676
mov eax, dword [eax]
cmp eax, edi
je 0x498657
call eax
jmp 0x498657
push 0x4ca0e4
mov eax, 0x4ca0d8
call fcn.00498586
pop ecx
push 0x4ca0f0
mov eax, 0x4ca0e8
call fcn.00498586
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4986b7
cmp dword [ebp + 0x10], edi
jne 0x4986c5
mov dword [0x549168], esi
push dword [ebp + 8]
call fcn.00498544
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4986c4
push 8
call fcn.0049c766
pop ecx
ret
call fcn.0049d49f
ret
Function at 0x49d81b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4cb400]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x49d84c
xor eax, eax
jmp 0x49d9d5
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x549a40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x49d888
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004a900a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x49d963
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x49d9a1
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x49d8ec
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x49d8dd
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x49d8bd
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49d92c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x49d935
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x49d8ae
jmp 0x49d937
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x49d9d0
cmp dword [ebp - 0x6c], edi
je 0x49d9a1
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x49d996
call fcn.00499cb6
mov dword [eax], 9
call fcn.00499cbf
mov dword [eax], esi
jmp 0x49d9cb
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49d98b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x49d937
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x49d937
push dword [ebp - 0x6c]
call fcn.00499cc8
pop ecx
jmp 0x49d9cb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x49d9b9
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x49d9b9
xor eax, eax
jmp 0x49d9d3
call fcn.00499cb6
mov dword [eax], 0x1c
call fcn.00499cbf
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x49d9d3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00496e0f
add ebp, 0x3a0
leave
ret