joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b5a
Capabilities:
Check if file exists
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push edi
xor edi, edi
push 0x20a
lea eax, [ebp - 0x76]
push edi
push eax
xor ebx, ebx
mov dword [ebp - 0x7c], edi
mov word [ebp - 0x78], di
call fcn.0040a2d0
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push edi
mov dword [ebp - 0x80], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TencentQMDownloadTxdlService.dat
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401c74
push 0x425b40
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00409a6c
add esp, 0xc
cmp dword [ebp - 0x7c], edi
je 0x401c82
push esi
push 2
push edi
push dword [ebp - 0x7c]
call fcn.00409b43
push dword [ebp - 0x7c]
call fcn.00409dbb
mov esi, eax
add esp, 0x10
cmp esi, 4
jbe 0x401c73
cmp esi, 0x19000
jge 0x401c73
lea eax, [esi + 2]
push 0x42bb00
push eax
call fcn.0040960a
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x401c73
lea eax, [esi + 2]
push eax
push edi
push ebx
call fcn.0040a2d0
push edi
push edi
push dword [ebp - 0x7c]
call fcn.00409b43
push dword [ebp - 0x7c]
lea eax, [ebp - 0x80]
push 1
push 4
push eax
call fcn.0040a0c5
push dword [ebp - 0x7c]
add esi, 0xfffffffc
push esi
push 1
push ebx
call fcn.0040a0c5
push ebx
call fcn.004098a0
add esp, 0x3c
mov edx, ebx
call section..text
cmp eax, dword [ebp - 0x80]
je 0x401c73
push ebx
call fcn.0040960f
pop ecx
xor ebx, ebx
pop esi
cmp dword [ebp - 0x7c], edi
je 0x401c82
push dword [ebp - 0x7c]
call fcn.0040a152
pop ecx
mov ecx, dword [ebp + 0x194]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004092a8
add ebp, 0x198
leave
ret
Function at 0x401e42
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.ZwQueryInformationProcess
stosd dword es:[edi], eax
push str.ntdll.dll
mov dword [ebp - 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x401eeb
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push 0x400
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x401eeb
push ebx
push 0x18
lea ecx, [ebp - 0x28]
push ecx
push ebx
push eax
call dword [ebp - 0xc]
test eax, eax
jne 0x401ed9
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov eax, dword [ebp - 0x14]
je 0x401eb1
mov dword [ecx], eax
push eax
push ebx
push 0x410
call esi
mov edi, eax
cmp edi, ebx
je 0x401ed9
push 0x104
push dword [ebp + 0xc]
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x401ed9
mov dword [ebp - 8], 1
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp edi, ebx
je 0x401eeb
push edi
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401ef3
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1238
call fcn.0041b400
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov edi, 0x208
push edi
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 0x224], esi
mov word [ebp - 0x21c], si
call fcn.0040a2d0
add esp, 0xc
push 0xffc
lea eax, [ebp - 0x1230]
push esi
push eax
mov dword [ebp - 0x1234], esi
call fcn.0040a2d0
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push 0x1000
lea eax, [ebp - 0x1234]
push eax
mov dword [ebp - 0x22c], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x402036
mov ebx, dword [ebp - 0x22c]
shr ebx, 2
mov dword [ebp - 0x220], esi
je 0x402036
push edi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0040a2d0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x220]
push dword [ebp + eax*4 - 0x1234]
mov dword [ebp - 0x228], esi
call fcn.00401e42
add esp, 0xc
test eax, eax
je 0x401ff4
lea eax, [ebp - 0x21c]
push eax
call fcn.0040aed8
lea eax, [ebp - 0x21c]
mov dword [esp], str.EXPLORER.EXE
push eax
call fcn.0040a9ea
test eax, eax
pop ecx
pop ecx
jne 0x402004
inc dword [ebp - 0x220]
cmp dword [ebp - 0x220], ebx
jb 0x401f91
jmp 0x402036
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x228]
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push dword [ebp - 0x230]
push dword [ebp - 0x220]
call fcn.0040204b
pop ecx
pop ecx
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x224]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092a8
leave
ret
Function at 0x40254b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push esi
xor esi, esi
cmp ebx, esi
je 0x402604
push 0x208
lea eax, [ebp - 0x6e]
push esi
push eax
mov dword [ebp - 0x7c], esi
mov word [ebp - 0x70], si
call fcn.0040a2d0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x20019
push esi
push str.SOFTWARETencentQQ2009
push 0x80000002
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4025ff
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push str.Install
push dword [ebp - 0x74]
xor edi, edi
inc edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4025f5
cmp dword [ebp - 0x80], edi
jne 0x4025f5
cmp dword [ebp - 0x78], esi
jbe 0x4025f5
push str.binQQPCDetector.dll
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x7c], edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 0x7c]
jmp 0x402606
xor eax, eax
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
pop esi
call fcn.004092a8
add ebp, 0x1a0
leave
ret

Function at 0x402743
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x3c0]
sub esp, 0x440
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
mov eax, dword [ebp + 0x3c8]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x80], eax
jne 0x402775
xor eax, eax
jmp 0x402832
push ebx
push edi
push 2
mov dword [ebp - 0x7c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40282e
push esi
mov esi, 0x22c
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0040a2d0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push ebx
mov dword [ebp - 0x78], esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x402819
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
cmp esi, edi
je 0x40280f
push 0x206
lea eax, [ebp + 0x1b6]
push edi
push eax
mov word [ebp + 0x1b4], di
call fcn.0040a2d0
push 0x103
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.0040a1ce
add esp, 0x18
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push dword [ebp - 0x80]
lea eax, [ebp + 0x1b4]
push eax
call fcn.0040a5e2
test eax, eax
pop ecx
pop ecx
je 0x40281f
lea eax, [ebp - 0x78]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4027af
jmp 0x402826
mov dword [ebp - 0x7c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 0x7c]
pop ebx
mov ecx, dword [ebp + 0x3bc]
xor ecx, ebp
pop edi
call fcn.004092a8
add ebp, 0x3c0
leave
ret
Function at 0x402848
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x10
mov eax, 0x422514
call fcn.0041610d
mov eax, dword [ebp + 0x218]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push str.SOFTWARETencentQQPCMgr
mov dword [ebp - 4], ebx
push 0x80000002
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4028f9
mov eax, dword [ebp - 0x18]
push 0x208
mov dword [ebp - 0x14], eax
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call fcn.0040a2d0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x1c]
lea edi, [ebp]
mov dword [ebp - 0x1c], 0x104
call fcn.00401300
test eax, eax
jne 0x4028f9
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4028f9
mov eax, edi
push eax
push dword [ebp - 0x10]
call fcn.00403c85
cmp dword [ebp - 0x18], ebx
je 0x402914
push dword [ebp - 0x18]
jmp 0x40290e
push 0x425a10
push dword [ebp - 0x10]
call fcn.00403c85
cmp dword [ebp - 0x14], ebx
je 0x402914
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004092a8
add ebp, 0x210
leave
ret

Function at 0x402e38
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push 2
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x402e5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402ebf
push ebx
push esi
push edi
push edi
push edi
push edi
push str.COM_Infrastructure
push dword [ebp + 8]
mov esi, str.Installer_Service
push 1
push 3
push 0x110
push 0xf01ff
push esi
push str.QQPCMgrInstallerSvc
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x402ea2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x402eb5
lea eax, [ebp - 8]
push eax
push 1
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebx
call edi
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x402f2a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push esi
push edi
lea eax, [ebp - 0x80]
xor esi, esi
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x80], 2
mov edi, eax
jle 0x402f6d
xor eax, eax
inc eax
jmp 0x4030af
cmp dword [ebp - 0x80], 2
push ebx
jne 0x4030ac
mov ebx, 0x425e08
push ebx
push dword [edi + 4]
call fcn.0040a5e2
test eax, eax
pop ecx
pop ecx
jne 0x402f96
call fcn.00401c9b
jmp 0x4030ac
push 0x425e38
push dword [edi + 4]
call fcn.0040a5e2
test eax, eax
pop ecx
pop ecx
jne 0x402fcf
mov dword [0x42c89c], 1
call fcn.00401c9b
mov eax, dword [0x42c878]
mov ecx, 0x42c878
call dword [eax + 0xc]
call fcn.00401369
jmp 0x4030ac
push 0x425e40
push dword [edi + 4]
call fcn.0040a5e2
test eax, eax
pop ecx
pop ecx
jne 0x40307a
mov edi, 0x208
push edi
lea eax, [ebp - 0x7a]
push esi
push eax
mov word [ebp - 0x7c], si
call fcn.0040a2d0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
and word [ebp + 0x190], 0
push edi
lea eax, [ebp + 0x192]
push 0
push eax
call fcn.0040a2d0
push 0x425e48
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00409590
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00409590
push 0x425e4c
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00409590
push ebx
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00409590
lea eax, [ebp + 0x190]
push eax
call fcn.00402e38
add esp, 0x40
jmp 0x4030ac
push 0x425e78
push dword [edi + 4]
call fcn.0040a5e2
test eax, eax
pop ecx
pop ecx
jne 0x403094
call fcn.00402ec2
jmp 0x4030ae
push 0x425e80
push dword [edi + 4]
call fcn.0040a5e2
test eax, eax
pop ecx
pop ecx
jne 0x4030ac
call fcn.004031aa
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
xor ecx, ebp
pop esi
call fcn.004092a8
add ebp, 0x3a0
leave
ret 0x10
Function at 0x4030c8
Capabilities:
Check if file exists

Disassembly:
push 0x44
mov eax, 0x4222aa
call fcn.00416176
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0xc]
push 0x22
push eax
mov dword [ebp - 0x4c], ecx
call fcn.0040ac00
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4031a2
lea edi, [esi + 1]
push 0x22
push edi
call fcn.0040ac00
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4031a2
cmp ebx, edi
jbe 0x4031a2
sub eax, esi
dec eax
push eax
push edi
lea esi, [ebp - 0x2c]
call fcn.00403bfa
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x403131
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403197
inc ebx
push ebx
lea ecx, [ebp - 0x48]
call fcn.00403c1e
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x403156
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x50]
call fcn.00403d38
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x40316b
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call fcn.00403d38
mov eax, dword [ebp - 0x4c]
call fcn.00403e03
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040430b
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040430b
xor eax, eax
inc eax
jmp 0x4031a4
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040430b
xor eax, eax
call fcn.004161c0
ret
Function at 0x40329d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x268
mov eax, 0x4224e4
call fcn.00416176
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00403c85
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x264]
cmp dword [eax - 0xc], 0
je 0x403463
lea ecx, [ebp - 0x26c]
lea eax, [ebp - 0x264]
call fcn.00403e9e
mov esi, 0x425e94
push esi
push eax
mov byte [ebp - 4], 1
call fcn.004043ce
test eax, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x26c]
setne bl
add eax, 0xfffffff0
call fcn.00401369
test bl, bl
je 0x403319
mov eax, esi
lea ecx, [ebp - 0x264]
call fcn.00403d9c
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.004047c6
lea esi, [eax + 0x10]
mov dword [ebp - 0x274], esi
mov eax, 0x425e98
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.00403d9c
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40336d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi - 0x10]
jmp 0x403458
add esi, 0xfffffff0
mov dword [ebp - 0x26c], esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [ebp - 0x26c]
call fcn.004047c6
add eax, 0x10
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call fcn.00403d9c
lea eax, [ebp - 0x234]
push 0x425e9c
push eax
call fcn.0040a4a1
test eax, eax
pop ecx
pop ecx
je 0x40341c
lea eax, [ebp - 0x234]
push 0x425ea0
push eax
call fcn.0040a4a1
test eax, eax
pop ecx
pop ecx
je 0x40341c
test byte [ebp - 0x260], 0x10
mov ebx, dword [ebp - 0x268]
je 0x4033eb
push ebx
call fcn.0040329d
pop ecx
jmp 0x403403
mov eax, dword [0x42caf4]
push eax
mov ecx, 0x42caf0
push ecx
lea eax, [ebp - 0x268]
push eax
call fcn.004044c5
lea eax, [ebp - 0x260]
push eax
push edi
call esi
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 2
lea eax, [ebx - 0x10]
jmp 0x403439
lea eax, [ebp - 0x260]
push eax
push edi
call esi
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00401369
cmp dword [ebp - 0x270], 0
jne 0x40337c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x26c]
call fcn.00401369
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.00401369
call fcn.004161c0
ret
Function at 0x4053a4
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x4053d6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x4053d3
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x4053f7
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x4092a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a080]
jne 0x4092b2
repz ret
jmp fcn.0040b5fb
Function at 0x409e29
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 0x409e66
cmp dword [ebp + 0x14], edi
je 0x409e66
cmp ecx, edi
jne 0x409e6d
call fcn.0040b73a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040971a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x409e81
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x409ea2
cmp ebx, 0xffffffff
je 0x409e91
push ebx
push edi
push ecx
call fcn.0040a2d0
add esp, 0xc
cmp esi, edi
je 0x409e4e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x409e4e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x409ebe
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x409ec5
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x409fb6
test word [esi + 0xc], 0x10c
je 0x409f19
mov eax, dword [esi + 4]
test eax, eax
je 0x409f19
jl 0x40a017
cmp ebx, eax
mov edi, ebx
jb 0x409eea
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x409fbe
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040992b
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 0x409fae
cmp ebx, dword [ebp - 0xc]
jb 0x409f86
cmp dword [ebp - 0xc], 0
je 0x409f43
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x409f38
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x409f3f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x409f4e
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x409f4e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x409fea
push eax
push dword [ebp - 8]
push esi
call fcn.0040e17d
pop ecx
push eax
call fcn.0040efda
add esp, 0xc
test eax, eax
je 0x40a029
cmp eax, 0xffffffff
je 0x40a017
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x409fae
push esi
call fcn.0040e8f9
cmp eax, 0xffffffff
pop ecx
je 0x40a01b
cmp dword [ebp - 4], 0
je 0x409fea
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 0x409ecd
mov eax, dword [ebp + 0x14]
jmp 0x409e68
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x409fd5
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040a2d0
add esp, 0xc
call fcn.0040b73a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x409e5e
cmp dword [ebp + 0xc], 0xffffffff
je 0x40a000
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040a2d0
add esp, 0xc
call fcn.0040b73a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x409e5e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x409e68
or dword [esi + 0xc], 0x10
jmp 0x40a01b
Function at 0x411ea7
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 + 0x42ac80]
je 0x411ec2
inc edi
cmp edi, 0x17
jb 0x411eb3
cmp edi, 0x17
jae 0x412042
push ebp
push 3
call fcn.0041b5e8
cmp eax, 1
pop ecx
je 0x41200e
push 3
call fcn.0041b5e8
test eax, eax
pop ecx
jne 0x411ef6
cmp dword [0x42a03c], 1
je 0x41200e
cmp ebx, 0xfc
je 0x412041
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42bf10
push ebp
call fcn.0040cba3
add esp, 0xc
test eax, eax
je 0x411f2c
push esi
push esi
push esi
push esi
push esi
call fcn.0040961e
add esp, 0x14
push 0x104
mov esi, 0x42bf29
push esi
push 0
mov byte [0x42c02d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411f70
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040cba3
add esp, 0xc
test eax, eax
je 0x411f70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040961e
add esp, 0x14
push esi
call fcn.004098a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411fb5
push esi
call fcn.004098a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42c224
push 0x423b5c
sub ecx, eax
push ecx
push eax
call fcn.00419003
add esp, 0x14
test eax, eax
je 0x411fb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040961e
add esp, 0x14
jmp 0x411fb7
xor esi, esi
push 0x423b58
push ebx
push ebp
call fcn.00418f92
add esp, 0xc
test eax, eax
je 0x411fd7
push esi
push esi
push esi
push esi
push esi
call fcn.0040961e
add esp, 0x14
push dword [edi*8 + 0x42ac84]
push ebx
push ebp
call fcn.00418f92
add esp, 0xc
test eax, eax
je 0x411ff9
push esi
push esi
push esi
push esi
push esi
call fcn.0040961e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041b42b
add esp, 0xc
jmp 0x412041
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x412041
cmp ebp, 0xffffffff
je 0x412041
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42ac84]
push dword [esi]
call fcn.004098a0
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