joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412530
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x47c8e4]
sub esp, 0x104
test eax, eax
push ebx
push esi
mov ebx, ecx
je 0x412553
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret 8
push ebp
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.AntiRk.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004124c0
pop edi
pop ebp
test eax, eax
jne 0x4125b0
pop esi
pop ebx
add esp, 0x104
ret 8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebx + 0x10], eax
jne 0x4125cd
pop esi
pop ebx
add esp, 0x104
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44af74
push eax
call esi
test eax, eax
mov dword [ebx], eax
jne 0x4125ec
pop esi
pop ebx
add esp, 0x104
ret 8
mov edx, dword [ebx + 0x10]
push 0x44af64
push edx
call esi
test eax, eax
mov dword [ebx + 4], eax
jne 0x412609
pop esi
pop ebx
add esp, 0x104
ret 8
mov eax, dword [ebx + 0x10]
push 0x44af50
push eax
call esi
test eax, eax
mov dword [ebx + 8], eax
jne 0x412626
pop esi
pop ebx
add esp, 0x104
ret 8
mov ecx, dword [ebx + 0x10]
push 0x44af40
push ecx
call esi
test eax, eax
mov dword [ebx + 0xc], eax
jne 0x412643
pop esi
pop ebx
add esp, 0x104
ret 8
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push edx
push eax
call dword [ebx + 8]
add esp, 8
test eax, eax
jne 0x412668
pop esi
pop ebx
add esp, 0x104
ret 8
mov eax, 1
pop esi
mov dword [ebx + 0x14], eax
mov dword [0x47c8e4], eax
pop ebx
add esp, 0x104
ret 8
Function at 0x4126e0
Capabilities:
Delete file
Move file
Print debug messages
Set file attributes

Disassembly:
sub esp, 0x400
push ebx
push esi
mov esi, dword [esp + 0x40c]
push edi
mov ebx, ecx
push esi
call fcn.0041ebf0
add esp, 4
test eax, eax
jne case.default.0x412756
mov ecx, 0xff
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push str.TFW_333__s
push eax
call dword [sym.imp.ntdll.dll_sprintf]
push esi
call fcn.00433bb0
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00412890
mov edx, dword [esp + 0x418]
add esp, 4
lea eax, [edx - 1]
cmp eax, 5
ja case.default.0x412756
jmp dword [eax*4 + 0x412878]
push 1
jmp 0x41279b
push 1
push esi
call fcn.0041c630
mov ecx, eax
call fcn.0041c830
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 4
jmp 0x41279b
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 2
push esi
call fcn.0041c630
mov ecx, eax
call fcn.0041c830
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x400
ret 8
push esi
mov ecx, ebx
call fcn.004128d0
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
push 4
push esi
call fcn.0041a570
add esp, 8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0
push 1
push esi
mov ecx, ebx
call fcn.00412690
push esi
call fcn.00414940
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
push 1
push esi
mov ecx, ebx
call fcn.00412690
push esi
call fcn.00414940
add esp, 4
call fcn.004104c0
mov edi, eax
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.00411d60
test eax, eax
je 0x412856
push 0
push eax
mov ecx, edi
call fcn.00410aa0
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.00411d60
test eax, eax
jne 0x41283e
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x400
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret 8

Function at 0x4128d0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0041ebf0
add esp, 4
test eax, eax
je 0x4128e8
xor eax, eax
pop esi
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4128fc
mov eax, 1
pop esi
ret 4
push 1
push esi
call fcn.0041bd90
add esp, 8
test eax, eax
je 0x412914
mov eax, 1
pop esi
ret 4
push esi
call fcn.00414940
add esp, 4
mov eax, 0xfffffffe
pop esi
ret 4
Function at 0x413fe0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x58
lea eax, [esp]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x60]
push edi
push 0
push eax
push ecx
call fcn.004147f0
add esp, 0xc
test eax, eax
je 0x4140c0
lea edx, [esp + 0x3c]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.00413f90
mov ecx, 8
lea esi, [esp + 0x3c]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ntdll.dll__strupr]
add esp, 4
lea ecx, [esp + 0x18]
mov eax, 0x811c9dc5
mov edx, 0x21
movsx esi, byte [ecx]
imul eax, eax, 0x1000193
xor eax, esi
inc ecx
dec edx
jne 0x414040
xor edx, edx
push 0x47c904
div dword [0x47c8f8]
mov esi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x47c8f4]
mov esi, dword [edx + esi*4]
test esi, esi
je 0x41408c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [esp + 0x3c]
lea ecx, [esi + 4]
push eax
push ecx
call edi
test eax, eax
je 0x4140a1
mov esi, dword [esi]
test esi, esi
jne 0x414077
push 0x47c904
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0x58
ret 4
push 0x47c904
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x28]
test eax, eax
je 0x4140c0
pop edi
mov eax, 1
pop esi
add esp, 0x58
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x58
ret 4

Function at 0x414125
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0x10], eax
mov eax, 0x400
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x34], 0x2c
mov dword [esi + 0x50], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov ecx, dword [esi + 0x10]
mov eax, 0x4417e0
cmp dword [eax], ecx
jae 0x414179
add eax, 4
cmp eax, 0x441850
jne 0x414164
mov eax, dword [0x44184c]
jmp 0x414189
cmp eax, 0x441850
jne 0x414187
mov eax, dword [0x44184c]
jmp 0x414189
mov eax, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4141a0
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + 4], ebx
mov ecx, dword [esi + 8]
shl ecx, 2
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esi + 8]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 4], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esi + 0x14]
mov dword [esi + 0xc], ebx
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x414212
push esi
mov esi, eax
and ecx, 0xff
and esi, 0xff
xor esi, ecx
shr eax, 8
mov ecx, dword [esi*4 + 0x441850]
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x4141ed
pop esi
ret
Function at 0x4146d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push 0x104
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [esp + 0x10c]
movsx eax, byte [ecx]
sub eax, 0x31
je 0x414718
dec eax
je 0x414708
xor eax, eax
pop esi
add esp, 0x104
ret
add ecx, 2
push ecx
lea ecx, [esp + 8]
push ecx
push 0x45f000
jmp 0x414726
add ecx, 2
push ecx
lea ecx, [esp + 8]
push ecx
push 0x44aae4
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push edx
push eax
call fcn.00407080
add esp, 0x14
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x414750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441c70
push 0x43e794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp word [ecx], 0x5a4d
jne 0x4147c7
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x4147c7
cmp word [eax + 6], 0
je 0x4147c7
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414870
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push esi
call edi
mov ebp, dword [esp + 0x11c]
push 0x80
push ebp
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
push esi
push ebp
call ebx
test eax, eax
je 0x4148c3
push 1
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
push 0x45f010
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00407080
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x80
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push 1
push eax
push esi
call ebx
test eax, eax
je 0x414929
push 4
lea ecx, [esp + 0x14]
push 0
push ecx
call ebx
test eax, eax
je 0x414929
push 1
push esi
push ebp
call ebx
test eax, eax
je 0x414929
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x414940
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call edi
pop edi
pop esi
ret
Function at 0x414970
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x140
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x414ac9
mov ecx, dword [esp + 0x160]
test ecx, ecx
je 0x414ac9
mov ebp, dword [esp + 0x164]
test ebp, ebp
je 0x414ac9
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [0x47d648]
mov esi, eax
cmp esi, 0xffffffff
je 0x414ac9
mov ebx, dword [esp + 0x158]
test ebx, ebx
jne 0x4149d4
lea ebx, [esp + 0x18]
mov edi, dword [esp + 0x15c]
test edi, edi
jne 0x4149e3
lea edi, [esp + 0x58]
lea eax, [esp + 0x10]
push 0
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414ac2
cmp dword [esp + 0x10], 0x40
jne 0x414ac2
cmp word [ebx], 0x5a4d
jne 0x414ac2
mov ecx, dword [ebx + 0x3c]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebx + 0x3c]
jne 0x414ac2
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
push 0xf8
push edi
push esi
call ebx
test eax, eax
je 0x414ac2
cmp dword [esp + 0x10], 0xf8
jne 0x414ac2
cmp dword [edi], 0x4550
jne 0x414ac2
cmp word [edi + 6], 0
je 0x414ac2
xor eax, eax
push 1
mov ax, word [edi + 0x14]
push 0
sub eax, 0xe0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov ax, word [edi + 6]
cmp ebp, eax
jbe 0x414a80
mov ebp, eax
mov edx, dword [esp + 0x160]
lea eax, [ebp + ebp*4]
lea ecx, [esp + 0x14]
push 0
shl eax, 3
push ecx
push eax
push edx
push esi
mov dword [esp + 0x28], eax
call ebx
test eax, eax
je 0x414ac2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xcccccccd
pop edi
mul dword [esp + 0x10]
mov eax, edx
pop esi
pop ebp
pop ebx
shr eax, 5
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
Function at 0x414f90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x414fb1
pop esi
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414fe3
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x414fd8
xor eax, eax
pop esi
add esp, 0x140
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 4]
not al
and eax, 0xff
pop esi
shr eax, 4
and eax, 1
add esp, 0x140
ret

Function at 0x415030
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov esi, ebp
cmp byte [ebp], 0
je 0x4150ae
mov ebx, dword [sym.imp.ntdll.dll_strchr]
push 0x5c
push esi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x4150ae
sub eax, ebp
lea ecx, [esp + 0x10]
push eax
push ebp
push ecx
call fcn.00415000
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x415088
cmp byte [esp + 0x11], 0x3a
je 0x4150a6
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4150a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4150be
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41504f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x415170
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x41518d
mov eax, connect
mov esi, 2
mov ebp, 4
jmp 0x41519c
mov eax, 0xc0000000
mov esi, 4
mov ebp, 6
push 0
push 0
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x415205
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4151cc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
push 0
push 0
push 0
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov esi, eax
call ebx
test esi, esi
je 0x415205
push 0
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov edi, eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x415220
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x415299
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 4
push 0x1000
lea ecx, [esi + 0x100]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x415292
lea edx, [esp + 0x10]
push 0
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415285
mov dword [eax], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4152c0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x174
push ebx
mov eax, dword [esp + 0x17c]
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push connect
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4154e8
push ebp
lea ecx, [esp + 0x18]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4154d2
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4154d2
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x2c]
push 0x40
push eax
push ebx
call ebp
test eax, eax
je 0x4154d2
cmp dword [esp + 0x10], 0x40
jne 0x4154d2
cmp word [esp + 0x24], 0x5a4d
jne 0x4154d2
mov ecx, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
push ecx
push ebx
call edi
cmp eax, dword [esp + 0x60]
jne 0x4154d2
lea edx, [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x94]
push 0xf8
push eax
push ebx
call ebp
test eax, eax
je 0x4154d2
cmp dword [esp + 0x8c], 0x4550
jne 0x4154d2
mov eax, dword [esp + 0x92]
test ax, ax
je 0x4154d2
mov edx, dword [esp + 0xa0]
and eax, 0xffff
add eax, 0x6666666
and edx, 0xffff
push 0
push 0
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x68]
add eax, edx
lea esi, [eax + ecx*8]
push esi
push ebx
call edi
cmp eax, esi
jne 0x4154d2
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x6c]
push 0x28
push edx
push ebx
call ebp
test eax, eax
je 0x4154d2
cmp dword [esp + 0x10], 0x28
jne 0x4154d2
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x14]
lea edi, [ecx + eax]
cmp edi, ebp
mov dword [esp + 0x20], edi
jae 0x4154d2
sub ebp, edi
push 4
push 0x1000
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4154d2
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x4154c4
lea edx, [esp + 0x10]
push 0
push edx
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4154c4
cmp dword [esp + 0x10], ebp
jne 0x4154c4
mov eax, dword [esp + 0x18c]
mov dword [esp + 0x18], esi
test eax, eax
je 0x415483
mov ecx, 0x3e
lea esi, [esp + 0x8c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x198]
test eax, eax
je 0x415490
mov dword [eax], ebp
mov eax, dword [esp + 0x194]
test eax, eax
je 0x4154a1
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x190]
test eax, eax
je 0x4154d2
push ebx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x174
ret
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x174
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x174
ret
Function at 0x415560
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x3c]
push edi
add esi, eax
xor eax, eax
xor ebp, ebp
mov ax, word [esi + 0x14]
mov bp, word [esi + 6]
lea eax, [eax + esi + 0x18]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0xc]
lea edi, [eax + 0xc]
mov eax, dword [esp + 0x18]
cmp eax, ecx
jb 0x4155bc
xor ebx, ebx
test ebp, ebp
jbe 0x4155b9
mov ecx, dword [esi + 0x38]
mov edx, dword [edi - 4]
push ecx
push edx
call fcn.00415530
mov ecx, dword [edi]
add esp, 8
add ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
jb 0x4155c1
inc ebx
add edi, 0x28
cmp ebx, ebp
jb 0x415595
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
lea edx, [ebx + ebx*4]
push ecx
lea edi, [eax + edx*8]
mov edx, dword [eax + edx*8 + 0x14]
push edx
call fcn.00415500
mov ecx, dword [esp + 0x20]
mov esi, dword [edi + 0xc]
add esp, 8
sub ecx, esi
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x415630
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x4156ed
mov esi, dword [esp + 0x1c]
push 0
mov ecx, esi
push 0
neg ecx
sbb ecx, ecx
push 3
and ecx, 0x40000000
push 0
add ecx, 0x80000000
push 3
push ecx
push eax
call dword [0x47d648]
mov edi, eax
cmp edi, 0xffffffff
je 0x4156ed
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4156e6
test ebp, ebp
je 0x4156e6
mov eax, esi
push 0
neg eax
sbb eax, eax
push 0
and eax, 2
push 0
add eax, 2
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
test ebx, ebx
je 0x4156ed
neg esi
sbb esi, esi
push 0
and esi, 2
push 0
add esi, 4
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call edi
test esi, esi
je 0x4156ed
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4156df
mov dword [eax], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x415700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov ax, word [ebp]
test ax, ax
je 0x4158f4
mov ecx, dword [esp + 0x28]
and eax, 0xffff
mov edi, 0x45f034
xor edx, edx
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8 - 0x28]
mov ecx, 3
mov esi, ebx
repe cmpsw word [esi], word es:[edi]
mov edi, dword [esp + 0x24]
jne 0x4157a1
mov eax, dword [ebx + 0x10]
cmp eax, 0x200
jbe 0x4157a1
add eax, 0xfffffe00
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x41579d
mov esi, dword [ebx + 0x14]
push 0
add esi, ebp
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, eax
jne 0x41579d
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415794
cmp dword [esp + 0x1c], 0x5a4de1ff
je 0x415824
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x415758
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebx + 0x24]
cmp eax, 0xe00000e0
je 0x415838
and eax, 0xf0000000
cmp eax, 0xe0000000
jne 0x4158f4
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x38]
cmp esi, eax
jb 0x4158f8
mov edx, dword [ebx + 0x10]
add edx, eax
cmp esi, edx
jae 0x4158f8
mov eax, dword [ebx + 0x14]
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x20]
push 8
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4158f8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x4158f8
dec word [ebp]
mov ecx, dword [esp + 0x1c]
jmp 0x4158d7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x10
ret 0x18
mov ecx, dword [ebx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
add ecx, 0xa1
push 0
push ecx
push edi
call esi
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x18]
push 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415899
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x415899
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
dec word [ebp]
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push ebp
push eax
push edi
call fcn.00415700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
mov ecx, dword [ebx + 0x14]
push 0
add ecx, 0xa3
push 0
push ecx
push edi
call esi
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x18]
push 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4158f4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x4158f4
dec word [ebp]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push ebp
push eax
push edi
call fcn.00415700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
mov esi, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18