joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100352d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003abd6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10042040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.10035400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10036850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10036a00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003691d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003689a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10042004]
ja 0x1003689a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003686a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100368c0
jmp 0x1003691d
cmp dword [ebp - 0x14], 0x10000
jne 0x10036903
cmp dword [ebp - 0x18], 0x10000
jb 0x10036903
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100368f6
mov eax, dword [ebp - 8]
jmp 0x1003691f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10036918
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10036a00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003686a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10036930
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10036a30
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100369f5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10036975
mov eax, dword [ebp - 4]
cmp eax, dword [0x10042004]
ja 0x10036975
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10036945
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003699b
jmp 0x100369f5
cmp dword [ebp - 0x14], 0x10000
jne 0x100369de
cmp dword [ebp - 0x18], 0x10000
jb 0x100369de
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100369d1
mov eax, dword [ebp - 8]
jmp 0x100369f7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100369f0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10036a30
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10036945
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4017fa
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47560b
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x30]
test edi, edi
je 0x40182b
mov ecx, edi
call fcn.004012a6
mov ecx, edi
call fcn.00404466
mov edi, dword [esi + 0x34]
test edi, edi
je 0x401840
mov ecx, edi
call fcn.004012a6
mov ecx, edi
call fcn.00404466
and dword [ebp - 4], 0
lea eax, [esi + 0x64]
push 0x410347
push 2
push 0xc
push eax
call fcn.00438522
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x402c8f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4871c0]
inc edi
sub esi, 1
jne 0x402c9d
not edx
pop edi
mov eax, edx
pop esi
pop ebp
ret

Function at 0x402cbd
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x402d23
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x402cea
cmp edi, 2
jb 0x402cea
cmp byte [esi], al
jne 0x402cea
cmp byte [esi + 1], al
jne 0x402cea
mov edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4871c0]
test edi, edi
jne 0x402cd2
jmp 0x402d2a
cmp al, 0x23
jne 0x402d11
cmp byte [esi], al
jne 0x402d11
cmp byte [esi + 1], al
jne 0x402d11
mov edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4871c0]
mov al, byte [esi]
inc esi
test al, al
jne 0x402d02
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x415f3d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x415f57
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.00404466
mov dword [esi + 8], edi
lea ecx, [esi + 0xc]
call fcn.004102b4
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x415f74
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
call fcn.00404466
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x415f95
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call fcn.00404466
mov dword [esi + 0x44], edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x415faa
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
call fcn.00404466
mov dword [esi + 0x50], edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x415fbf
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
call fcn.00404466
mov dword [esi + 0x5c], edi
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0041810f

Function at 0x41c395
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [0x4e4030]
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
lea edi, [eax + 8]
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x1000
call fcn.00402916
push 0x10
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.00402916
push 0x12
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.00402916
push 0x5d
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.00402916
pop edi
pop esi
pop ecx
ret
Function at 0x426ad7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x475933
call fcn.004755ec
sub esp, 0x1c8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 0x48b648
mov edx, esi
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x48]
call fcn.00435452
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x426b09
mov eax, dword [eax]
lea ecx, [ebp - 0x1d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.00433fae
cmp edi, 0xffffffff
je 0x426c44
push 0x48b64c
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.00435452
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0043549e
pop ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00433fae
test byte [ebp - 0x1d4], 0x10
je 0x426bf9
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x90]
call fcn.00432b9b
mov byte [ebp - 4], 3
or ebx, 1
push 0x48b650
mov ecx, eax
mov dword [ebp - 0x18], ebx
call fcn.00436be7
test al, al
jne 0x426bbb
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x78]
call fcn.00432b9b
push 0x48b654
mov ecx, eax
or ebx, 2
call fcn.00436be7
mov byte [ebp - 0x11], 1
test al, al
je 0x426bbf
mov byte [ebp - 0x11], 0
test bl, 2
je 0x426bcf
lea ecx, [ebp - 0x78]
and ebx, 0xfffffffd
call fcn.00433fae
mov dword [ebp - 4], 2
test bl, 1
je 0x426be9
lea ecx, [ebp - 0x90]
and ebx, 0xfffffffe
call fcn.00433fae
cmp byte [ebp - 0x11], 0
je 0x426c0c
lea ecx, [ebp - 0x30]
call fcn.00426ad7
jmp 0x426c0c
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
jb 0x426c05
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00433fae
lea eax, [ebp - 0x1d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x426b2a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x426c3d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x427358
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x42736e
xor al, al
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
Function at 0x427382
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
lea eax, [ebp - 0x13c]
push ebx
push esi
push 0x124
xor ebx, ebx
push ebx
push eax
call fcn.00450510
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4273b8
xor al, al
jmp 0x427424
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x42741b
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00432b9b
push str.CSO2_Global_Launcher.exe
lea ecx, [ebp - 0x18]
call fcn.00436be7
test al, al
je 0x4273ff
mov ecx, dword [ebp - 0x138]
call fcn.00427358
lea ecx, [ebp - 0x18]
call fcn.00433fae
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4273d4
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x427428
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4759c6
call fcn.004755ec
sub esp, 0x490
lea eax, [ebp - 0x14]
push ebx
push esi
push edi
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.CSO2Global
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [0x624930]
lea edx, [ebp - 0x49c]
push edx
push ebx
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
pop edi
test eax, eax
jne 0x42749a
push edi
lea eax, [ebp - 0x70]
push eax
push edi
push ebx
push str.DeviceID
push dword [ebp - 0x14]
call esi
push edi
lea eax, [ebp - 0x74]
push eax
push edi
push ebx
push str.VendorID
push dword [ebp - 0x14]
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x400
jge 0x4274d2
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push str.ScreenWidth
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x400
jge 0x4274eb
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push str.ScreenHeight
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c]
call fcn.00426047
push str.LauncherTemp
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x34]
call fcn.0043549e
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00426ad7
lea ecx, [ebp - 0x34]
call fcn.00433fae
lea ecx, [ebp - 0x4c]
call fcn.00433fae
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x427539
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x4759f7
call fcn.004755ec
sub esp, 0x70
push ebx
push esi
push edi
push str.GameSettings
push 0x66
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
lea ecx, [ebp - 0x78]
mov edi, eax
call fcn.00426047
push str._LauncherTemp
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x60]
call fcn.0043549e
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x42757e
mov eax, dword [eax]
push eax
call fcn.0045c27d
pop ecx
lea ecx, [ebp - 0x60]
call fcn.00433fae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00433fae
lea ecx, [ebp - 0x78]
call fcn.00426047
push str._LauncherTemp_cso2_defaultsettings.reg
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0043549e
pop ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00433fae
test edi, edi
je 0x427622
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
jb 0x4275d4
mov eax, dword [ebp - 0x30]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push esi
mov ebx, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor esi, esi
lea ecx, [ebp - 0x18]
push esi
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x30]
mov edx, str.import
push eax
lea ecx, [ebp - 0x48]
call fcn.004354d7
pop ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
jb 0x427644
mov eax, dword [ebp - 0x48]
push esi
push esi
push eax
push str.reg.exe
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push 0x20019
push esi
push str.CSO2Global
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x427687
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00427428
lea ecx, [ebp - 0x48]
call fcn.00433fae
lea ecx, [ebp - 0x30]
call fcn.00433fae
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4288ce
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0xffffffff
jne 0x428971
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1b8]
xor esi, esi
push eax
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x20
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00450510
add esp, 0xc
mov dword [ebp - 0x20], esi
lea eax, [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 6
push eax
lea eax, [ebp - 0x24]
push eax
push str.44188
push str.92.118.170.69
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, dword [ebp - 4]
test esi, esi
je 0x42896a
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x428942
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x10]
call fcn.0043889e
lea ebx, [esi + 0x14]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
and dword [esi + 0xc], 0
push 4
call fcn.00438b24
mov edi, dword [sym.imp.WS2_32.dll_recv]
pop ecx
pop ecx
push 0
push 4
push eax
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 8], eax
cmp eax, 1
jge 0x4289cd
xor al, al
jmp 0x428a86
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 4
push eax
mov ecx, esi
call fcn.00428a8b
push dword [esi + 0x10]
call fcn.0043889e
push dword [ebp - 4]
call fcn.00438b24
pop ecx
pop ecx
push 0
push dword [ebp - 4]
mov dword [esi + 0x10], eax
push eax
push dword [esi]
call edi
jmp 0x428a4e
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x428a2b
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
add eax, edi
cmp ecx, dword [ebx + 8]
je 0x428a1c
mov al, byte [eax]
mov byte [ecx], al
inc dword [ebx + 4]
jmp 0x428a25
push eax
push ecx
mov ecx, ebx
call fcn.00435c73
inc edi
cmp edi, dword [esi + 8]
jb 0x428a06
push dword [esi + 0x10]
call fcn.0043889e
push dword [ebp - 4]
call fcn.00438b24
pop ecx
pop ecx
push 0
push dword [ebp - 4]
mov dword [esi + 0x10], eax
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esi + 8], eax
cmp eax, 1
jge 0x4289ff
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push eax
mov dword [esi + 8], eax
call fcn.00438b24
xor edi, edi
mov dword [esi + 0x10], eax
pop ecx
cmp dword [esi + 8], edi
jbe 0x428a80
mov ecx, dword [ebx]
mov edx, dword [esi + 0x10]
mov cl, byte [edi + ecx]
mov byte [edi + edx], cl
inc edi
cmp edi, dword [esi + 8]
jb 0x428a6f
and dword [esi + 0xc], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452345
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00474f50
mov eax, dword [0x49401c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00462123
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x452387
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4524e3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00474ea0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e3bf8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00462332
mov ecx, dword [esi*4 + 0x4e3bf8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4524dc
cmp eax, dword [ecx + edi + 0x24]
jne 0x4524dc
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4524dc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00462332
add esp, 0x14
test edx, edx
jl 0x4524dc
jg 0x452452
test eax, eax
jb 0x4524dc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4524dc
jl 0x45246c
cmp dword [ebp - 0x1008], eax
ja 0x4524dc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45248a
test ebx, ebx
je 0x4524c3
cmp ecx, edi
jae 0x4524c3
mov al, byte [ecx]
cmp al, 0xd
jne 0x4524a4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4524b0
cmp byte [ecx + 1], 0xa
jne 0x4524b0
inc ecx
jmp 0x4524b0
movzx eax, al
movsx eax, byte [eax + 0x494278]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45248a
cmp edx, ebx
jne 0x45248a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4524e1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00439352
leave
ret

Function at 0x4595ba
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4595f9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4595f9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4595f9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4595f9
cmp dword [ecx + 0x74], 0xe
jbe 0x4595f9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4629d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e3bf8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x462a17
cmp byte [ebx], 0xa
jne 0x462a17
or byte [edi + eax + 0x28], 4
jmp 0x462a1c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x462b1b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x462afe
inc eax
cmp dl, 0xd
je 0x462a48
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x462a6e
cmp eax, ecx
jae 0x462a7c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x462a30
jmp 0x462b1b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462af9
cmp dword [ebp - 0x10], 0
je 0x462af9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e3bf8]
test byte [eax + edi + 0x28], 0x48
je 0x462ad3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x462abe
mov byte [esi], dl
jmp 0x462acf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e3bf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x462b1b
cmp byte [ebp - 1], 0xa
jne 0x462ae2
cmp esi, ebx
jne 0x462ae2
mov byte [esi], 0xa
jmp 0x462b1a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00462350
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x462b1b
mov byte [esi], 0xd
jmp 0x462b1a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e3bf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x462b18
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x462b1b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret