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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f628
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x61e810]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x45f8ef
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ecx + 4]
push 0
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f948
xor edx, edx
push 0x5fc63c
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], dx
call fcn.0048aa3a
add esp, 4
mov ecx, 0x5fc63c
lea esi, [ebp - 0x28]
call fcn.00401741
mov eax, esi
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045f4d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x45f960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x45f9a7
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45f997
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045f4d0
cmp dword [ebp + 0xc], edi
je 0x45f9a7
add esi, 0xc
push esi
push 0xfffffffffffffff4
call fcn.0045f4d0
pop edi
pop esi
pop ebp
ret 8

Function at 0x45fca0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59f5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x61e810]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 8]
push 0
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45fd32
xor edx, edx
push 0x5fc63c
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], dx
call fcn.0048aa3a
add esp, 4
mov ecx, 0x5fc63c
lea esi, [esp + 8]
call fcn.00401741
mov eax, esi
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045f4d0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4600a0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push 2
mov dword [ebp - 4], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, 0x6f
jne 0x4600da
mov ecx, dword [ebp - 4]
push ecx
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea edx, [ebp - 4]
push edx
push esi
push 0
push 0
push 2
call edi
test eax, eax
jne 0x46013c
mov eax, esi
test esi, esi
je 0x46014c
mov ecx, 1
cmp dword [eax + 0x44], ecx
jne 0x460101
cmp dword [eax + 0x34], 0
jg 0x46010a
mov eax, dword [eax + 8]
test eax, eax
jne 0x4600f6
jmp 0x46013c
movzx ecx, byte [eax + 0x31]
movzx edx, byte [eax + 0x30]
push ecx
movzx ecx, byte [eax + 0x2f]
push edx
movzx edx, byte [eax + 0x2e]
push ecx
movzx ecx, byte [eax + 0x2d]
push edx
movzx edx, byte [eax + 0x2c]
push ecx
push edx
push str._02x_02x_02x_02x_02x_02x
push 0x14
push 0x634be0
call fcn.0048d0c0
add esp, 0x24
test esi, esi
je 0x46014c
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0x634be0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460154
sub eax, edx
sar eax, 1
je 0x460171
mov eax, 0x634be0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045fd80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4606c0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
push ebx
push esi
mov esi, dword [ecx]
mov ecx, dword [ebp + 8]
push edi
add ecx, 8
mov dword [ebp + 8], 8
lea ecx, [ecx]
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5ff160]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5ff360]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5ff560]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5ff760]
mov eax, dword [ecx - 0x14]
xor edx, edi
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5ff260]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5ff460]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5ff660]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5ff860]
xor edx, edi
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5ff160]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5ff360]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5ff560]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5ff760]
mov eax, dword [ecx - 0xc]
xor esi, edi
xor eax, edx
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5ff260]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5ff460]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5ff660]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5ff860]
xor esi, edi
dec dword [ebp + 8]
jne 0x4606e0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
pop edi
mov dword [ecx], esi
pop esi
mov dword [eax], edx
pop ebx
pop ebp
ret 0xc

Function at 0x463bf0
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x61e810]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x463c2a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x463c1a
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [esi + 4]
push 1
push eax
push ecx
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x62ec42
push 0x10f
call fcn.00492e12
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
je 0x463c1a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 4]
mov word [esi + 0xc], ax
xor ecx, ebp
mov eax, 1
call fcn.00489dc1
mov esp, ebp
pop ebp
ret
Function at 0x463d30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x61e810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebx + 0x10]
push edi
push 0x10f
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x18]
push 0
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
call fcn.0048b3f0
mov dx, word [ebx + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_htons]
add esp, 0xc
push pe_nt_image_headers32
mov word [esi], dx
call edi
push 1
mov word [esi + 2], ax
call edi
mov word [esi + 4], ax
xor eax, eax
xor edx, edx
push 1
mov dword [esi + 6], eax
mov word [esi + 0xa], dx
call edi
movzx eax, ax
push 1
mov dword [ebp - 0x1c], eax
call edi
movzx ecx, ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x463db8
sub eax, edi
movzx eax, ax
movzx edx, ax
add edx, 2
push edx
mov dword [ebp - 0x24], eax
call fcn.0048dde5
mov edi, eax
add esp, 4
test edi, edi
jne 0x463df0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x24]
add eax, 2
push eax
mov eax, dword [ebp - 0x18]
push edi
call fcn.00464390
test eax, eax
je 0x463ddc
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x463e10
sub eax, edx
inc eax
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, ax
push eax
add esi, 0xc
push edi
push esi
call fcn.00489dd0
movzx eax, word [ebp - 0x18]
mov cx, word [ebp - 0x1c]
mov dx, word [ebp - 0x20]
mov word [esi + eax], cx
push edi
mov word [esi + eax + 2], dx
call fcn.0048b2d8
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push 0x10
add ecx, 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x10]
movzx edx, cx
mov ecx, dword [ebx + 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
xor ecx, ebp
pop esi
mov eax, edx
call fcn.00489dc1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x467880
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599ff8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x1c], bl
mov dword [ebp - 4], ebx
lea edi, [esi + 0x30]
mov dword [esi], vtable.CCurlHttp.0
push ebx
mov dword [edi], ebx
call fcn.00456600
mov byte [esi + 0x58], bl
mov dword [esi + 0x70], 0xf
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x5c], bl
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x40], 0x2bc
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46a1f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x61e810]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
push edi
xor eax, eax
xor edi, edi
mov dword [ebp - 0x324], eax
test cl, cl
jne 0x46a2f9
call fcn.0046a5b0
xor ebx, ebx
jmp 0x46a230
lea edx, [ebp - 0x32c]
push edx
lea eax, [ebp - 0x320]
push eax
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x110]
push edx
push eax
mov dword [ebp - 0x32c], edi
mov dword [ebp - 0x334], edi
mov dword [ebp - 0x330], 0x1388
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x320], edi
call fcn.004acec0
mov eax, dword [ebp - 0x32c]
add esp, 0x14
cmp eax, edi
jl 0x46a2b0
lea ecx, [ebp - 0x334]
push ecx
lea edx, [ebp - 0x320]
push edx
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x110]
push edx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46a2c3
call fcn.0048dc90
cmp dword [eax], 4
je 0x46a230
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x328]
push eax
push ecx
mov dword [ebp - 0x328], edi
call fcn.004aef50
add esp, 8
cmp dword [ebp - 0x328], edi
jle 0x46a2ee
mov dword [ebp - 0x324], 1
cmp eax, 0xffffffff
je 0x46a2c3
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00489dc1
mov esp, ebp
pop ebp
ret
Function at 0x4706b0
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5987b6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x61e810]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [esi], vtable.CDownloadPeer.0
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ebx
mov dword [ebp - 0x28], esi
mov word [esi + 8], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], dx
mov byte [ebp - 4], 1
push 0x10
mov dword [esi + 0x5c], ebx
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x4707a9
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x58], eax
mov dword [eax], eax
mov eax, dword [esi + 0x58]
mov dword [eax + 4], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
call edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x78], ebx
mov byte [esi + 0x24], bl
call edi
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00491ec4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add esp, 4
push ebx
push 0x3e8
push ecx
push edx
call fcn.0049e740
mov ecx, eax
movzx eax, word [ebp - 0x18]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], edi
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
call fcn.0048a1c4
push 0x6111f0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.0049303f
int3
Function at 0x470f20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi + 4], 0
push ebx
push edi
ja 0x470f36
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, eax
sub ecx, dword [esi + 4]
mov dword [esi + 4], eax
je 0x470f6a
mov eax, dword [esi]
fild dword [esi]
test eax, eax
jns 0x470f56
fadd qword [0x60b628]
mov dword [ebp - 0xc], ecx
fild dword [ebp - 0xc]
test ecx, ecx
jns 0x470f66
fadd qword [0x60b628]
fdivp st(1)
jmp 0x470f6c
fldz
fmul qword [0x60b5f0]
mov dword [esi], 0
mov edi, dword [esi + 0x14]
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x18]
fstp qword [ebp - 0x18]
push ecx
push edx
push edi
call fcn.00471040
mov ecx, dword [esi + 0x18]
mov edx, 0x1ffffffe
sub edx, ecx
cmp edx, 1
jae 0x470fa5
push str.list_T__too_long
call fcn.004890a5
inc ecx
mov dword [esi + 0x18], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
cmp dword [esi + 0x18], 0xa
jbe 0x470fdb
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
cmp eax, ecx
je 0x470fdb
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push eax
mov dword [edx + 4], ecx
call fcn.0048a131
add esp, 4
dec dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
fldz
mov eax, dword [ecx]
cmp eax, ecx
je 0x470fef
fadd qword [eax + 8]
mov eax, dword [eax]
cmp eax, ecx
jne 0x470fe6
mov edx, dword [esi + 0x18]
fild dword [esi + 0x18]
test edx, edx
jns 0x470fff
fadd qword [0x60b628]
fdivp st(1)
fnstcw word [ebp - 2]
movzx eax, word [ebp - 2]
or eax, 0xc00
mov dword [ebp - 0xc], eax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], eax
fldcw word [ebp - 2]
test ecx, ecx
je 0x47102f
cmp eax, ecx
jb 0x47102f
call ebx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597c68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x485374
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x485350
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0048a1c4
push 0x6111f0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0049303f
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.0048a1c4
push 0x6111f0
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0049303f
int3

Function at 0x489dc1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61e810]
jne 0x489dcb
repz ret
jmp fcn.0049516c
Function at 0x4a480b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x61e810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00496866
and dword [ebp - 0x14], 0
cmp dword [0x62fcc8], 0
mov dword [ebp - 0x18], eax
jne 0x4a48be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a4966
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b5ab4
push ebx
call edi
test eax, eax
je 0x4a4966
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x62fcc8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x62fccc], eax
call edi
push eax
call esi
push 0x5b5a74
push ebx
mov dword [0x62fcd0], eax
call edi
push eax
call esi
mov dword [0x62fcd8], eax
test eax, eax
je 0x4a48be
push 0x5b5a5c
push ebx
call edi
push eax
call esi
mov dword [0x62fcd4], eax
mov eax, dword [0x62fcd4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4a4917
cmp dword [0x62fcd8], ecx
je 0x4a4917
push eax
call esi
push dword [0x62fcd8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a4917
test ebx, ebx
je 0x4a4917
call edi
test eax, eax
je 0x4a490e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a490e
test byte [ebp - 8], 1
jne 0x4a4917
or dword [ebp + 0x10], 0x200000
jmp 0x4a494a
mov eax, dword [0x62fccc]
cmp eax, dword [ebp - 0x18]
je 0x4a494a
push eax
call esi
test eax, eax
je 0x4a494a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a494a
mov eax, dword [0x62fcd0]
cmp eax, dword [ebp - 0x18]
je 0x4a494a
push eax
call esi
test eax, eax
je 0x4a494a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x62fcc8]
call esi
test eax, eax
je 0x4a4966
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a4968
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00489dc1
leave
ret

Function at 0x4ab090
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4ab0e0
mov ax, word [esp]
cmp al, 2
jne 0x4ab0da
cmp ah, al
jne 0x4ab0da
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00489dc1
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00489dc1
add esp, 0x194
ret
Function at 0x4ac130
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4ac152
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4ac146
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4ac182
cmp dword [esi + 8], 0
jne 0x4ac175
mov ecx, dword [eax + 8]
push 0x5ae1f8
push ecx
call fcn.0048df35
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x4ac175
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0048e196
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4ac1a4
mov eax, dword [esi + 8]
test eax, eax
je 0x4ac19e
push eax
call fcn.0048ba88
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x4b0890
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x4c8ae0
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x190]
push 2
push 1
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4c8b58
cmp eax, 1
jne 0x4c8b09
mov eax, 1
ret
cmp eax, 0xffffffff
jne 0x4c8b5b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x4c8b03
cmp eax, 0xb
je 0x4c8b03
cmp eax, 0x2733
je 0x4c8b03
cmp eax, 0x2746
je 0x4c8b58
cmp eax, 0x2745
je 0x4c8b58
cmp eax, 0x2742
je 0x4c8b58
cmp eax, 0x2744
je 0x4c8b58
cmp eax, 0x274a
je 0x4c8b58
cmp eax, 0x274c
je 0x4c8b58
cmp eax, 0x2749
jne 0x4c8b5b
xor eax, eax
ret
or eax, 0xffffffff
ret