joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
push 0x10083db8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10029f3c
xor eax, eax
jmp 0x1002a006
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 0x20]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1005b700
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.1002a1b0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10029fdc
xor eax, eax
jmp 0x1002a006
mov ecx, dword [ebp - 0x10]
call fcn.1002a3d0
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 0x10]
call fcn.1002a400
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x1002a010
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
push 0x80
push 3
push 0
push 3
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1002a045
xor eax, eax
jmp 0x1002a104
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.1002a1b0
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
jne 0x1002a0da
xor eax, eax
jmp 0x1002a104
mov ecx, dword [ebp - 0xc]
call fcn.1002a3d0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp - 0xc]
call fcn.1002a400
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x10032180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10098f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov eax, dword [0x100849dc]
mov dword [ebp - 0x210], eax
push 0x204
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.1005bf00
add esp, 0xc
call fcn.10012930
mov ecx, eax
call fcn.1000e4b0
mov dword [ebp - 0x21c], eax
call fcn.10012930
mov ecx, eax
call fcn.1000e490
mov dword [ebp - 0x214], eax
fldz
fstp dword [ebp - 0x220]
fldz
fstp dword [ebp - 0x218]
cmp dword [ebp - 0x214], 0x400
jle 0x1003222e
fild dword [ebp - 0x214]
fdiv qword [0x10083928]
fstp dword [ebp - 0x220]
fld dword [ebp - 0x220]
sub esp, 8
fstp qword [esp]
push 0x100849e0
lea edx, [ebp - 0x210]
push edx
call fcn.1005c20c
add esp, 0x10
jmp 0x10032249
mov eax, dword [ebp - 0x214]
push eax
push 0x100849f8
lea ecx, [ebp - 0x210]
push ecx
call fcn.1005c20c
add esp, 0xc
cmp dword [ebp - 0x214], 0x14
jg 0x1003229a
cmp dword [ebp - 0x214], 0
jne 0x10032273
push 0x10084a0c
mov ecx, dword [ebp - 0x224]
add ecx, 0x8c
call fcn.10011070
jmp 0x1003228b
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x224]
add ecx, 0x8c
call fcn.10011070
push 0
mov ecx, dword [ebp - 0x224]
call fcn.100320d0
jmp 0x100322bf
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x224]
add ecx, 0x8c
call fcn.10011070
push 1
mov ecx, dword [ebp - 0x224]
call fcn.100320d0
cmp dword [ebp - 0x21c], 0x400
jle 0x100322ff
fild dword [ebp - 0x21c]
fdiv qword [0x10083928]
fstp dword [ebp - 0x218]
fld dword [ebp - 0x218]
sub esp, 8
fstp qword [esp]
push 0x10084a1c
lea ecx, [ebp - 0x210]
push ecx
call fcn.1005c20c
add esp, 0x10
jmp 0x1003231a
mov edx, dword [ebp - 0x21c]
push edx
push str.iRYO
lea eax, [ebp - 0x210]
push eax
call fcn.1005c20c
add esp, 0xc
cmp dword [ebp - 0x21c], 0x14
jg 0x1003235e
cmp dword [ebp - 0x21c], 0
jne 0x10032344
push 0x10084a48
mov ecx, dword [ebp - 0x224]
add ecx, 0xa8
call fcn.10011070
jmp 0x1003235c
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x224]
add ecx, 0xa8
call fcn.10011070
jmp 0x10032376
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x224]
add ecx, 0xa8
call fcn.10011070
mov ecx, dword [ebp - 0x224]
add ecx, 0xf4
call fcn.100136c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003239d
mov ecx, dword [ebp - 0x224]
call fcn.10032aa0
push 1
mov ecx, dword [ebp - 0x224]
call fcn.10033e00
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b2a2
mov esp, ebp
pop ebp
ret
Function at 0x10039db0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a897
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10098f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
push 0x10085738
lea ecx, [ebp - 0x2c]
call fcn.10001230
mov dword [ebp - 4], 0
push 0x1008573c
lea ecx, [ebp - 0x64]
call fcn.10001230
mov byte [ebp - 4], 1
call fcn.10012680
mov ecx, eax
call fcn.10017670
push eax
lea ecx, [ebp - 0x48]
call fcn.10001230
mov byte [ebp - 4], 2
push 0x10085740
lea ecx, [ebp - 0x48]
call fcn.100110b0
mov eax, dword [ebp + 8]
add eax, 0x48
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001f40
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x64]
call fcn.10001f40
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
lea ecx, [ebp - 0x64]
call fcn.10011090
push 0x10085750
lea ecx, [ebp - 0x64]
call fcn.100110b0
lea ecx, [ebp - 0x64]
call fcn.100110d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10039e91
lea ecx, [ebp - 0x64]
call fcn.100110d0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100110d0
push eax
call fcn.10012930
mov ecx, eax
call fcn.10010300
lea ecx, [ebp - 0x64]
call fcn.100110d0
push eax
lea ecx, [ebp - 0x80]
call fcn.10001230
mov byte [ebp - 4], 3
lea eax, [ebp - 0x80]
push eax
call fcn.10012930
mov ecx, eax
call fcn.1000df00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.10001270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.10001270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10001270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10001270
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005b2a2
mov esp, ebp
pop ebp
ret 4
Function at 0x10039f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a8cf
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10098f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
push 0
call fcn.10012930
mov ecx, eax
call fcn.1000da70
call fcn.100127a0
mov ecx, eax
call fcn.10037de0
mov dword [ebp - 0x10], eax
call fcn.100127a0
mov ecx, eax
call fcn.10037e00
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10022520
jmp 0x10039f80
push 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100112b0
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10033780
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003e630
movzx eax, al
test eax, eax
je 0x1003a107
lea ecx, [ebp - 0x1c]
call fcn.10022550
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
cmp dword [eax + 0x18], 1
je 0x1003a102
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.100337e0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov dword [eax + 0x18], 1
push 0x323232
push 0xc
push 0
push 0x1008575c
lea ecx, [ebp - 0x54]
call fcn.10001230
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call fcn.100127a0
mov ecx, eax
call fcn.10037690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10001270
push 0xac
call fcn.10048b29
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x5c], 0
je 0x1003a04c
mov ecx, dword [ebp - 0x5c]
call fcn.10037fc0
mov dword [ebp - 0x6c], eax
jmp 0x1003a053
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
call fcn.10001f40
mov edx, dword [ebp - 0x20]
add edx, 0x48
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x48
call fcn.10001f40
mov eax, dword [ebp - 0x20]
add eax, 0x64
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x64
call fcn.10001f40
mov ecx, dword [ebp - 0x20]
add ecx, 0x80
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x80
call fcn.10001f40
mov edx, dword [ebp - 0x20]
add edx, 0x2c
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x2c
call fcn.10001f40
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0x10039c80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10039f72
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1003a120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
sub ecx, 0xe0
push ecx
push 0x10039c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x1003a160
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
call fcn.10012930
mov ecx, eax
call fcn.1000da70
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x10039c80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x1003a5e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
call fcn.10012930
mov ecx, eax
call fcn.1000da70
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.10015350
push eax
push 0x1003a550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x10043f50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10043f6c
xor eax, eax
jmp 0x10043fcd
mov edx, dword [ebp - 4]
add edx, 8
push edx
call fcn.1005b570
add esp, 4
test eax, eax
jne 0x10043f83
xor eax, eax
jmp 0x10043fcd
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.10043d50
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x10043fe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10043ffc
xor eax, eax
jmp 0x10044010
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10045630
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1007b233
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10098f00]
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], 0x1009a9c4
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], 0x1009a9c4
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x100807d9
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.10048850
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 0x100456e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007b258
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10098f00]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x10045722
push edi
push edi
push edi
push 2
call fcn.10046e90
xor al, al
jmp 0x100458bf
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x10045741
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x10045730
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.10061cbe
push ebp
call fcn.10061bc9
push 0
push 0
push ebp
mov edi, eax
call fcn.10061cbe
add esp, 0x1c
test edi, edi
jne 0x10045785
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.10046e90
xor al, al
jmp 0x100458bf
mov dword [esp + 0x14], 0x1009a9c4
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.100487b0
lea eax, [edi + 1]
push eax
call fcn.10048b29
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.10061a16
add esp, 0x14
cmp eax, 1
je 0x100457f5
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.10046e90
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x1009a9c4
je 0x100457ee
push eax
call fcn.10048b59
add esp, 4
xor al, al
jmp 0x100458bf
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x10045867
mov cl, byte [esi]
cmp cl, 0xa
jne 0x10045825
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.10048940
add esi, 1
mov eax, esi
jmp 0x10045862
cmp cl, 0xd
jne 0x1004585f
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x1004583d
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.10048940
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.10048940
cmp byte [esi + 1], 0xa
jne 0x1004581e
add esi, 2
mov eax, esi
jmp 0x10045862
add esi, 1
cmp byte [esi], 0
jne 0x10045805
sub esi, eax
je 0x10045876
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.10048940
push ebp
call fcn.10048b59
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x100457de
cmp eax, 0x1009a9c4
je 0x100458bd
push eax
call fcn.10048b59
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc
Function at 0x1004c830
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x1004c8d8
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x1004db3f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x1004db72
push dword [ebp + 8]
call edi
push eax
call fcn.10059753
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x1004db9d
test byte [ebp - 4], 1
je 0x1004db9d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1004db9d
push dword [ebp + 8]
call edi
push eax
call fcn.10059753
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x1004dc4d
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.1004daa4
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x1004dbd3
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1004daa4
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x1004dbec
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.1004daa4
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1004dc17
push dword [ebp + 8]
call edi
push eax
call fcn.10059753
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1004dc37
push dword [ebp + 8]
call edi
push eax
call fcn.10059753
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1004dc4d
push dword [ebp + 8]
call edi
push eax
call fcn.10059753
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x1004dc75
test byte [ebp - 4], 1
jne 0x1004dc75
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1004dc75
push dword [ebp + 8]
call edi
push eax
call fcn.10059753
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1005b2a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10098f00]
jne 0x1005b2ac
repz ret
jmp fcn.100644dc
Function at 0x100717e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10063eb7
xor ebx, ebx
cmp dword [0x1009d370], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x100718b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10071820
xor eax, eax
jmp 0x10071979
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10071819
push eax
call fcn.10063e54
mov dword [esp], 0x1008b8b0
push edi
mov dword [0x1009d370], eax
call esi
push eax
call fcn.10063e54
mov dword [esp], 0x1008b89c
push edi
mov dword [0x1009d374], eax
call esi
push eax
call fcn.10063e54
mov dword [0x1009d378], eax
lea eax, [ebp - 8]
push eax
call fcn.100625c0
test eax, eax
pop ecx
pop ecx
je 0x10071883
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1005b440
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100718b5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10063e54
cmp eax, ebx
pop ecx
mov dword [0x1009d380], eax
je 0x100718b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10063e54
pop ecx
mov dword [0x1009d37c], eax
mov eax, dword [0x1009d37c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1007192e
cmp dword [0x1009d380], esi
je 0x1007192e
push eax
call fcn.10063ec0
pop ecx
call eax
cmp eax, ebx
je 0x100718fb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1009d380]
call fcn.10063ec0
pop ecx
call eax
test eax, eax
je 0x100718fb
test byte [ebp - 0x18], 1
jne 0x1007192e
lea eax, [ebp - 0xc]
push eax
call fcn.100625f7
test eax, eax
pop ecx
je 0x10071916
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1005b440
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10071925
or dword [ebp + 0x10], 0x200000
jmp 0x1007195f
or dword [ebp + 0x10], 0x40000
jmp 0x1007195f
mov eax, dword [0x1009d374]
cmp eax, esi
je 0x1007195f
push eax
call fcn.10063ec0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1007195f
mov eax, dword [0x1009d378]
cmp eax, esi
je 0x1007195f
push dword [ebp - 4]
push eax
call fcn.10063ec0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1009d370]
call fcn.10063ec0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10077c43
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10098f00]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10077bd8
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1005bf00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10077c92
cmp dword [ebp - 0x1c], 5
jb 0x10077caa
jmp 0x10077ca6
cmp dword [ebp - 0x10], 1
jne 0x10077caa
cmp dword [ebp - 0x1c], 4
ja 0x10077ca6
jne 0x10077caa
cmp dword [ebp - 0x18], 0
jbe 0x10077caa
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1008b938
call fcn.10077ac9
test eax, eax
jge 0x10077ccb
mov byte [0x1009a2e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005b2a2
add ebp, 0x78
leave
ret