joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f200
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x210], eax
call fcn.00448020
cmp dword [eax + 0x14], 8
jb 0x45f229
mov eax, dword [eax]
lea edx, [ebp - 0x20c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x45f231
push esi
push str.msvcr100.dll
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 2
lea edx, [ebp - 0x220]
push edx
push 3
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x220], 0xc
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45f31b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.RESDLL
push 0x9c
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45f319
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45f319
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45f319
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 0x214]
push ecx
push eax
push ebx
push esi
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x210]
mov byte [edx + 0x6c], 1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048b951
mov esp, ebp
pop ebp
ret 4
Function at 0x4606e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a16b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x621810]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x46071f
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 0x460778
xor edx, edx
push 0x5fe734
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], dx
call fcn.0048c5ca
add esp, 4
mov ecx, 0x5fe734
lea esi, [ebp - 0x28]
call fcn.00401834
mov eax, esi
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00460300
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 0x460790
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 0x4607d7
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 0x4607c7
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00460300
cmp dword [ebp + 0xc], edi
je 0x4607d7
add esi, 0xc
push esi
push 0xfffffffffffffff4
call fcn.00460300
pop edi
pop esi
pop ebp
ret 8

Function at 0x460ad0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1628
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x621810]
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 0x460b62
xor edx, edx
push 0x5fe734
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], dx
call fcn.0048c5ca
add esp, 4
mov ecx, 0x5fe734
lea esi, [esp + 8]
call fcn.00401834
mov eax, esi
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00460300
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x460ed0
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 0x460f0a
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 0x460f6c
mov eax, esi
test esi, esi
je 0x460f7c
mov ecx, 1
cmp dword [eax + 0x44], ecx
jne 0x460f31
cmp dword [eax + 0x34], 0
jg 0x460f3a
mov eax, dword [eax + 8]
test eax, eax
jne 0x460f26
jmp 0x460f6c
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 0x637dc0
call fcn.0048ec41
add esp, 0x24
test esi, esi
je 0x460f7c
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0x637dc0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460f84
sub eax, edx
sar eax, 1
je 0x460fa1
mov eax, 0x637dc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00460bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4614f0
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 + 0x601078]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x601278]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x601478]
and eax, 0x3f
xor edi, dword [eax*4 + 0x601678]
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 + 0x601178]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x601378]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x601578]
and eax, 0x3f
xor edi, dword [eax*4 + 0x601778]
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 + 0x601078]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x601278]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x601478]
and eax, 0x3f
xor edi, dword [eax*4 + 0x601678]
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 + 0x601178]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x601378]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x601578]
and eax, 0x3f
xor edi, dword [eax*4 + 0x601778]
xor esi, edi
dec dword [ebp + 8]
jne 0x461510
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 0x464a40
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x621810]
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 0x464a7a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b951
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 0x464a6a
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 0x631e22
push 0x10f
call fcn.00494abb
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
je 0x464a6a
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.0048b951
mov esp, ebp
pop ebp
ret
Function at 0x464b80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x621810]
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.0048cf80
mov dx, word [ebx + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_htons]
add esp, 0xc
push 0x100
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 0x464c08
sub eax, edi
movzx eax, ax
movzx edx, ax
add edx, 2
push edx
mov dword [ebp - 0x24], eax
call fcn.0048f966
mov edi, eax
add esp, 4
test edi, edi
jne 0x464c40
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b951
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.004651e0
test eax, eax
je 0x464c2c
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464c60
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.0048b960
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.0048ce68
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.0048b951
mov esp, ebp
pop ebp
ret 0x14
Function at 0x468890
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c598
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
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.00455d30
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 0x46b1c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x621810]
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 0x46b2c9
call fcn.0046b5b0
xor ebx, ebx
jmp 0x46b200
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.004aec90
mov eax, dword [ebp - 0x32c]
add esp, 0x14
cmp eax, edi
jl 0x46b280
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 0x46b293
call fcn.0048f811
cmp dword [eax], 4
je 0x46b200
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x328]
push eax
push ecx
mov dword [ebp - 0x328], edi
call fcn.004b0d10
add esp, 8
cmp dword [ebp - 0x328], edi
jle 0x46b2be
mov dword [ebp - 0x324], 1
cmp eax, 0xffffffff
je 0x46b293
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b951
mov esp, ebp
pop ebp
ret
Function at 0x4715f0
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a4e6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x621810]
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.0048bf08
add esp, 4
cmp eax, ebx
je 0x4716e9
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.00493a64
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add esp, 4
push ebx
push 0x3e8
push ecx
push edx
call fcn.004a0460
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.0048b951
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
call fcn.0048bd54
push 0x613a90
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.00494d66
int3
Function at 0x471e70
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 0x471e86
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 0x471eba
mov eax, dword [esi]
fild dword [esi]
test eax, eax
jns 0x471ea6
fadd qword [0x60da10]
mov dword [ebp - 0xc], ecx
fild dword [ebp - 0xc]
test ecx, ecx
jns 0x471eb6
fadd qword [0x60da10]
fdivp st(1)
jmp 0x471ebc
fldz
fmul qword [0x60d978]
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.00471f90
mov ecx, dword [esi + 0x18]
mov edx, 0x1ffffffe
sub edx, ecx
cmp edx, 1
jae 0x471ef5
push str.list_T__too_long
call fcn.0048ac2a
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 0x471f2b
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
cmp eax, ecx
je 0x471f2b
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.0048bcc1
add esp, 4
dec dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
fldz
mov eax, dword [ecx]
cmp eax, ecx
je 0x471f3f
fadd qword [eax + 8]
mov eax, dword [eax]
cmp eax, ecx
jne 0x471f36
mov edx, dword [esi + 0x18]
fild dword [esi + 0x18]
test edx, edx
jns 0x471f4f
fadd qword [0x60da10]
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 0x471f7f
cmp eax, ecx
jb 0x471f7f
call ebx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486e10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5999a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x621810]
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.0048bf08
add esp, 4
cmp eax, ebx
je 0x486ef4
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.0048bf08
add esp, 4
cmp eax, ebx
je 0x486ed0
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.0048bd54
push 0x613a90
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.00494d66
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.0048bd54
push 0x613a90
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.00494d66
int3

Function at 0x48b951
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x621810]
jne 0x48b95b
repz ret
jmp fcn.00496e8c
Function at 0x4a65db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x621810]
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.00498586
and dword [ebp - 0x14], 0
cmp dword [0x632ea8], 0
mov dword [ebp - 0x18], eax
jne 0x4a668e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a6736
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b7ad4
push ebx
call edi
test eax, eax
je 0x4a6736
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x632ea8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x632eac], eax
call edi
push eax
call esi
push 0x5b7a94
push ebx
mov dword [0x632eb0], eax
call edi
push eax
call esi
mov dword [0x632eb8], eax
test eax, eax
je 0x4a668e
push 0x5b7a7c
push ebx
call edi
push eax
call esi
mov dword [0x632eb4], eax
mov eax, dword [0x632eb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4a66e7
cmp dword [0x632eb8], ecx
je 0x4a66e7
push eax
call esi
push dword [0x632eb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a66e7
test ebx, ebx
je 0x4a66e7
call edi
test eax, eax
je 0x4a66de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a66de
test byte [ebp - 8], 1
jne 0x4a66e7
or dword [ebp + 0x10], 0x200000
jmp 0x4a671a
mov eax, dword [0x632eac]
cmp eax, dword [ebp - 0x18]
je 0x4a671a
push eax
call esi
test eax, eax
je 0x4a671a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a671a
mov eax, dword [0x632eb0]
cmp eax, dword [ebp - 0x18]
je 0x4a671a
push eax
call esi
test eax, eax
je 0x4a671a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x632ea8]
call esi
test eax, eax
je 0x4a6736
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a6738
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b951
leave
ret

Function at 0x4ace60
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x621810]
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 0x4aceb0
mov ax, word [esp]
cmp al, 2
jne 0x4aceaa
cmp ah, al
jne 0x4aceaa
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0048b951
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.0048b951
add esp, 0x194
ret
Function at 0x4adf00
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4adf22
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4adf16
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4adf52
cmp dword [esi + 8], 0
jne 0x4adf45
mov ecx, dword [eax + 8]
push 0x5b0218
push ecx
call fcn.0048fab6
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x4adf45
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0048fd17
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4adf74
mov eax, dword [esi + 8]
test eax, eax
je 0x4adf6e
push eax
call fcn.0048d609
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 0x4b2660
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x4ca8c0
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 0x4ca938
cmp eax, 1
jne 0x4ca8e9
mov eax, 1
ret
cmp eax, 0xffffffff
jne 0x4ca93b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x4ca8e3
cmp eax, 0xb
je 0x4ca8e3
cmp eax, 0x2733
je 0x4ca8e3
cmp eax, 0x2746
je 0x4ca938
cmp eax, 0x2745
je 0x4ca938
cmp eax, 0x2742
je 0x4ca938
cmp eax, 0x2744
je 0x4ca938
cmp eax, 0x274a
je 0x4ca938
cmp eax, 0x274c
je 0x4ca938
cmp eax, 0x2749
jne 0x4ca93b
xor eax, eax
ret
or eax, 0xffffffff
ret