joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x440652
xor eax, eax
jmp 0x44065e
cmp dword [ebp - 0x11c], 5
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a3e
mov esp, ebp
pop ebp
ret

Function at 0x442ac0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x442ad8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x442b2b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x442af9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x442b1c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x442af0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x4ef078], eax
jmp 0x442acf
jmp 0x442b36
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x442b6e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x4eec78]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x4ef078]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x4ef078], edx
jmp 0x442b2d
mov dword [0x4f1078], fcn.00442b90
call fcn.004404f0
test eax, eax
jne 0x442b8b
mov dword [0x4f1078], 0x442ca0
mov esp, ebp
pop ebp
ret

Function at 0x44b3a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x44b6e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x44b3d6
jmp 0x44b3f3
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0xffffffff
jne 0x44b3e1
jmp 0x44b3f3
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x44b400
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x44b700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x44b436
jmp 0x44b453
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0xffffffff
jne 0x44b441
jmp 0x44b453
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x450390
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x4503cf
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x450480
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x450434
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x450432
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00474d50
add esp, 0xc
jmp 0x4503bd
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00479d00
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x4503bd
mov esp, ebp
pop ebp
ret
Function at 0x450490
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x4504c6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 4], edx
jge 0x4505db
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x450542
push 0x4000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4504b4
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x1c]
lea edx, [eax + ecx*8 + 0x4eb9e0]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
je 0x450574
mov ecx, dword [ebp - 0x18]
or ecx, 0x200
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4505b4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x40
je 0x45059b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x20], edx
jmp 0x4505b4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
je 0x4505b4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jbe 0x4505d6
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4504b4
mov esp, ebp
pop ebp
ret
Function at 0x451590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c5253
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ed20c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x4f1180
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x4f1180
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4dc2bc
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00454520
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x45d2fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x45d33e
call fcn.0045ec9a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45d33e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45d359
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0045ceb5
test ebx, ebx
mov esi, eax
je 0x45d357
test edi, edi
je 0x45d357
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45f200
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x45f23d
push 0x4d07d0
push 4
push eax
call fcn.0047cf81
push eax
call fcn.0045491a
add esp, 0x10
jmp 0x45f24f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45f2ba
push edi
call fcn.0047b207
mov edi, dword [eax]
call fcn.0047b207
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00474d28
add esp, 0x18
mov ebx, eax
call fcn.0047b207
cmp dword [eax], 0
je 0x45f29a
call fcn.0047b207
push dword [eax]
call fcn.00457e41
pop ecx
jmp 0x45f2a1
call fcn.0047b207
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x45f2ba
cmp ebx, esi
jae 0x45f2ba
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x45f2bc
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00474a3e
leave
ret
Function at 0x460fa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x460fec
call fcn.0045ec9a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x460fec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x46102f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x461018
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 0x461018
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x46102c
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 0x4629c6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4629f4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x462a12
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00462930
jmp 0x462a12
mov eax, dword [esi + 0x14]
test eax, eax
je 0x462a12
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00462930
test edi, edi
mov eax, edi
jne 0x4629fc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4f2bac]
test ecx, ecx
je 0x462ad5
jmp 0x4629c5
ret 8

Function at 0x474a3e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ed20c]
jne 0x474a48
repz ret
jmp fcn.0047f7fc
Function at 0x47b351
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x47b38e
cmp dword [ebp + 0x14], edi
je 0x47b38e
cmp ecx, edi
jne 0x47b395
call fcn.0047b207
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004753c2
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x47b3a9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x47b3ca
cmp ebx, 0xffffffff
je 0x47b3b9
push ebx
push edi
push ecx
call fcn.00474d50
add esp, 0xc
cmp esi, edi
je 0x47b376
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x47b376
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x47b3e6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x47b3ed
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x47b4de
test word [esi + 0xc], 0x10c
je 0x47b441
mov eax, dword [esi + 4]
test eax, eax
je 0x47b441
jl 0x47b53f
cmp ebx, eax
mov edi, ebx
jb 0x47b412
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x47b4e6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00474e72
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x47b4d6
cmp ebx, dword [ebp - 0xc]
jb 0x47b4ae
cmp dword [ebp - 0xc], 0
je 0x47b46b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x47b460
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x47b467
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x47b476
mov eax, SysReAllocString
cmp ebx, eax
ja 0x47b476
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x47b512
push eax
push dword [ebp - 8]
push esi
call fcn.00489217
pop ecx
push eax
call fcn.0048b53f
add esp, 0xc
test eax, eax
je 0x47b551
cmp eax, 0xffffffff
je 0x47b53f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x47b4d6
push esi
call fcn.0048ae5e
cmp eax, 0xffffffff
pop ecx
je 0x47b543
cmp dword [ebp - 4], 0
je 0x47b512
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x47b3f5
mov eax, dword [ebp + 0x14]
jmp 0x47b390
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x47b4fd
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00474d50
add esp, 0xc
call fcn.0047b207
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x47b386
cmp dword [ebp + 0xc], 0xffffffff
je 0x47b528
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00474d50
add esp, 0xc
call fcn.0047b207
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x47b386
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x47b390
or dword [esi + 0xc], 0x10
jmp 0x47b543
Function at 0x47d807
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4ed420]
je 0x47d822
inc edi
cmp edi, 0x17
jb 0x47d813
cmp edi, 0x17
jae 0x47d9a2
push ebp
push 3
call fcn.0048ce12
cmp eax, 1
pop ecx
je 0x47d96e
push 3
call fcn.0048ce12
test eax, eax
pop ecx
jne 0x47d856
cmp dword [0x4ed208], 1
je 0x47d96e
cmp ebx, 0xfc
je 0x47d9a1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f3128
push ebp
call fcn.004807bf
add esp, 0xc
test eax, eax
je 0x47d88c
push esi
push esi
push esi
push esi
push esi
call fcn.004752c6
add esp, 0x14
push 0x104
mov esi, 0x4f3141
push esi
push 0
mov byte [0x4f3245], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47d8d0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004807bf
add esp, 0xc
test eax, eax
je 0x47d8d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004752c6
add esp, 0x14
push esi
call fcn.00474a50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47d915
push esi
call fcn.00474a50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f343c
push 0x4d3194
sub ecx, eax
push ecx
push eax
call fcn.00486a57
add esp, 0x14
test eax, eax
je 0x47d915
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004752c6
add esp, 0x14
jmp 0x47d917
xor esi, esi
push 0x4d3190
push ebx
push ebp
call fcn.004869e6
add esp, 0xc
test eax, eax
je 0x47d937
push esi
push esi
push esi
push esi
push esi
call fcn.004752c6
add esp, 0x14
push dword [edi*8 + 0x4ed424]
push ebx
push ebp
call fcn.004869e6
add esp, 0xc
test eax, eax
je 0x47d959
push esi
push esi
push esi
push esi
push esi
call fcn.004752c6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048cc55
add esp, 0xc
jmp 0x47d9a1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47d9a1
cmp ebp, 0xffffffff
je 0x47d9a1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4ed424]
push dword [esi]
call fcn.00474a50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48cc55
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047e3b7
xor ebx, ebx
cmp dword [0x4f3c34], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48cd2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48ce0b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x48ce0b
push eax
call fcn.0047e349
mov dword [esp], 0x4d45bc
push edi
mov dword [0x4f3c34], eax
call esi
push eax
call fcn.0047e349
mov dword [esp], 0x4d45a8
push edi
mov dword [0x4f3c38], eax
call esi
push eax
call fcn.0047e349
mov dword [0x4f3c3c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047cd0e
test eax, eax
pop ecx
pop ecx
je 0x48ccf9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004752c6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48cd2b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047e349
cmp eax, ebx
pop ecx
mov dword [0x4f3c44], eax
je 0x48cd2b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047e349
pop ecx
mov dword [0x4f3c40], eax
mov eax, dword [0x4f3c40]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48cdb0
cmp dword [0x4f3c44], ecx
je 0x48cdb0
push eax
call fcn.0047e3c0
push dword [0x4f3c44]
mov esi, eax
call fcn.0047e3c0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48cdb0
cmp edi, ebx
je 0x48cdb0
call esi
cmp eax, ebx
je 0x48cd7d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48cd7d
test byte [ebp - 0x18], 1
jne 0x48cdb0
lea eax, [ebp - 0x10]
push eax
call fcn.0047cd45
test eax, eax
pop ecx
je 0x48cd98
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004752c6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48cda7
or dword [ebp + 0x10], 0x200000
jmp 0x48cdeb
or dword [ebp + 0x10], 0x40000
jmp 0x48cdeb
mov eax, dword [0x4f3c38]
cmp eax, dword [ebp - 8]
je 0x48cdeb
push eax
call fcn.0047e3c0
cmp eax, ebx
pop ecx
je 0x48cdeb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48cdeb
mov eax, dword [0x4f3c3c]
cmp eax, dword [ebp - 8]
je 0x48cdeb
push eax
call fcn.0047e3c0
cmp eax, ebx
pop ecx
je 0x48cdeb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f3c34]
call fcn.0047e3c0
cmp eax, ebx
pop ecx
je 0x48ce0b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48ce0d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x493cc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4ed20c]
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 0x493d10
mov ax, word [esp]
cmp al, 2
jne 0x493d0a
cmp ah, al
jne 0x493d0a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00474a3e
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.00474a3e
add esp, 0x194
ret

Function at 0x495020
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x495042
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x495036
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x495072
cmp dword [esi + 8], 0
jne 0x495065
mov ecx, dword [eax + 8]
push 0x4cea18
push ecx
call fcn.0047b30f
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x495065
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0047b5ed
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x495094
mov eax, dword [esi + 8]
test eax, eax
je 0x49508e
push eax
call fcn.0047a4b1
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 0x49fff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4a0022
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4a0170
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4a018b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4a01bf
cmp eax, 2
jg 0x4a01bf
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4d6738]
push 2
push edx
call fcn.0047a68c
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0047a68c
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x4a054d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4a0524
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004a4830
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004a0350
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret