joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063ca
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00464db0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x406437
push 0x2a
push 0x401a9c4
push 6
call fcn.004627a3
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406447
push ebx
call fcn.00462791
add esp, 4
cmp dword [ebp - 4], 0
jg 0x406458
mov dword [ebp - 4], pe_nt_image_headers32
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00465830
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40648b
push ebx
call fcn.00462791
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4064c4
push 0x125
push 0x401a9c4
push 6
call fcn.004627a3
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4064d7
mov eax, 0x477230
push eax
push 1
mov ebx, 0x174
call fcn.00465f80
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406501
push ebx
call fcn.00462791
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x477230
push dword [ebp - 8]
call fcn.0040109b
add esp, 8
cmp eax, 0
jne 0x40653e
call fcn.00406575
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40653a
push ebx
call fcn.00462791
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x40655a
push eax
mov ebx, eax
call fcn.00401030
inc eax
push eax
call fcn.0046278b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40655f
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406570
push ebx
call fcn.00462791
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x406c4b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push VariantClear
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.00464cb0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406c95
mov eax, 0
jmp 0x406cfe
mov dword [ebp - 0xc], esp
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x406cd4
push pe_nt_image_headers32
push 0x401a75c
push 6
call fcn.004627a3
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0x18], 0
jne 0x406cee
push dword [ebp - 8]
call fcn.00402928
jmp 0x406cf6
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
jmp 0x406cfe
mov esp, ebp
pop ebp
ret 0x24
Function at 0x40d0f8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40d128
mov edx, 0xffffffff
mov eax, 0xffffffff
jmp 0x40d163
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40d158
push 0xa0
push 0x401a3f3
push 6
call fcn.004627a3
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x40d163
mov esp, ebp
pop ebp
ret 4

Function at 0x40eecf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40eefa
mov eax, 0x477573
jmp 0x40f05c
cmp dword [ebp + 0xc], 0
jg 0x40ef52
mov dword [ebp - 0xc], esp
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40ef3e
push 0xe2
push 0x401a3f2
push 6
call fcn.004627a3
add esp, 0xc
cmp dword [ebp + 0xc], 0
jg 0x40ef52
mov eax, 0x477573
jmp 0x40f05c
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0040f074
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ef89
mov eax, 0x477573
jmp 0x40f05c
mov dword [ebp - 0xc], esp
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40efc3
push 0x2a4
push 0x401a3f2
push 6
call fcn.004627a3
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40efda
mov eax, 0x477573
jmp 0x40f05c
push 0x80000301
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.00465d90
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f019
push ebx
call fcn.00462791
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040f101
mov eax, dword [ebp - 8]
test eax, eax
je 0x40f057
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0046278b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f05c
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f06d
push ebx
call fcn.00462791
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x412968
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x477230
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.0040109b
add esp, 8
cmp eax, 0
jne 0x4129d0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00464db0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4129ca
push ebx
call fcn.00462791
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 0x477230
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.0040109b
add esp, 8
cmp eax, 0
jne 0x412a28
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00464db0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x412a22
push ebx
call fcn.00462791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0x1c], 0
jne 0x412a39
mov dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x412a57
push eax
mov ebx, eax
call fcn.00401030
inc eax
push eax
call fcn.0046278b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412a68
push ebx
call fcn.00462791
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x477230
push dword [ebp - 4]
call fcn.0040109b
add esp, 8
cmp eax, 0
jne 0x412a9f
mov eax, str.open
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412a9b
push ebx
call fcn.00462791
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x477230
mov ebx, dword [ebp + 0x30]
push dword [ebx]
call fcn.0040109b
add esp, 8
cmp eax, 0
jne 0x412af7
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00464db0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp + 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x412af1
push ebx
call fcn.00462791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp + 0x18]
mov ebx, dword [ebp + 0x30]
push dword [ebx]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
push dword [ebp + 0x20]
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 8], esp
je 0x412b38
push 0x35e
push 0x401a8eb
push 6
call fcn.004627a3
add esp, 0xc
jmp 0x412b3d
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412b4e
push ebx
call fcn.00462791
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x30
Function at 0x41329c
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x4819e2], 0
je 0x4132bc
mov eax, 1
jmp 0x41333c
mov dword [ebp - 4], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
cmp dword [ebp - 4], esp
je 0x4132e5
push 0x9e
push 0x4019a7f
push 6
call fcn.004627a3
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 0x4134de
push 3
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x413323
push 0x9e
push 0x4019a7f
push 6
call fcn.004627a3
add esp, 0xc
mov dword [0x4819e2], eax
cmp dword [0x4819e2], 0
mov eax, 0
setne al
jmp 0x41333c
mov esp, ebp
pop ebp
ret
Function at 0x414540
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x41455d
mov eax, 0
jmp 0x4145a8
mov dword [ebp - 4], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x41458c
push 0xac
push 0x401a736
push 6
call fcn.004627a3
add esp, 0xc
test eax, eax
je 0x41459e
mov eax, 1
jmp 0x4145a8
mov eax, 0
jmp 0x4145a8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4167a4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x4167c1
mov eax, 0
jmp 0x4167f5
mov dword [ebp - 4], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 4], esp
je 0x4167f0
push 0xac
push 0x401a9ab
push 6
call fcn.004627a3
add esp, 0xc
jmp 0x4167f5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x445ed2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x445f17
push 0x59
push 0x401ddc2
push 6
call fcn.004627a3
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00467ce0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x445f7a
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00464d90
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x445fa8
push 0xfb
push 0x401ddc2
push 6
call fcn.004627a3
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00467ce0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44600b
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00464d90
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x446039
push 0x19d
push 0x401ddc2
push 6
call fcn.004627a3
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00467ce0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44609c
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00464d90
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4460a4
mov esp, ebp
pop ebp
ret
Function at 0x4648d0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0046aae9
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x46493a
push esi
lea edi, [eax + 0x400]
call fcn.0046aade
push edi
call fcn.0046aae9
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x46490a
push esi
xor edi, edi
call dword [0x4824bc]
add esp, 4
test eax, eax
je 0x464956
push eax
push esi
call fcn.00469ff0
add esp, 8
mov edi, eax
push esi
call fcn.0046aade
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4657e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4657fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4657f3
pop esi
ret

Function at 0x466030
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret
Function at 0x468440
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4684d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4684c4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4684bc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x468485
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x468540
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x468581.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x468581.2
jmp dword [eax*4 + 0x46860c]
mov word [esp + 0x48], di
jmp 0x4685ba
mov word [esp + 0x48], 2
jmp 0x4685ba
mov word [esp + 0x48], 3
jmp 0x4685ba
mov word [esp + 0x48], 4
jmp 0x4685ba
mov word [esp + 0x48], 7
jmp 0x4685ba
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x468604
cmp dword [esp + 0x70], edi
je 0x4685f0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x468660
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x4686e0
push edi
call dword [0x4824bc]
add esp, 4
test eax, eax
jbe 0x4686e0
test esi, esi
je 0x46869e
cmp esi, 0xffffffff
je 0x46869e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x468722
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x4686cc
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x4686e0
jmp 0x4686db
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x4686e0
mov ebp, 1
test esi, esi
je 0x468722
cmp esi, 0xffffffff
je 0x468722
test ebp, ebp
jne 0x468759
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x46872f
call edi
test eax, eax
je 0x468722
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x468759
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x46870a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x468722
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x468759
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x46873c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x4824bc]
inc eax
push eax
call fcn.00464360
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x468b10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x468b79
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00464360
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x468ce0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x468cee
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.0046a640
add esp, 4
test eax, eax
jne 0x468d00
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x468d1e
cmp ecx, 3
je 0x468d1e
cmp ecx, 2
jne 0x468d2d
mov ecx, dword [esi + 4]
call fcn.0046a970
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
Function at 0x468d30
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x468d45
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.0046a640
add esp, 4
test eax, eax
jne 0x468d58
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
test esi, esi
jg 0x468d68
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 1
jne 0x468dc1
mov edi, dword [edi + 4]
push esi
call fcn.0046aae9
add esp, 4
mov ebp, eax
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x468da3
push ebp
call fcn.0046aade
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.0046a460
push ebp
mov ebx, eax
call fcn.0046aade
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x468e0c
mov edi, dword [edi + 4]
lea edx, [esi + 8]
push edx
call fcn.00464360
mov ebx, eax
add esp, 4
lea ecx, [ebx + 8]
mov dword [ebx], 1
mov dword [ebx + 4], esi
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
jne 0x468e01
push ebx
call fcn.00464500
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [ebx + 4], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
cmp eax, 3
jne 0x468e85
mov ebx, dword [edi + 4]
push esi
call fcn.0046aae9
add esp, 4
mov ebp, eax
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x468e55
push ebp
call fcn.0046aade
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0x10]
add edi, 0x34
push ecx
push edx
push edi
mov esi, eax
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.00469d60
push esi
push ebp
call fcn.0046a460
push ebp
mov ebx, eax
call fcn.0046aade
add esp, 0x24
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x468f60
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x468f76
mov eax, 1
pop edi
add esp, 0x10
ret
push edi
call fcn.0046a640
add esp, 4
test eax, eax
jne 0x468f8d
mov eax, 1
pop edi
add esp, 0x10
ret
mov eax, dword [edi]
push ebx
push ebp
mov ebp, 1
cmp eax, ebp
push esi
mov dword [esp + 0x10], ebp
je 0x469031
cmp eax, 3
je 0x469031
cmp eax, 2
jne 0x4690d5
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.0046a970
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x4690d5
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4690d5
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4690d5
mov edx, dword [esi]
lea eax, [esp + 0x28]
push ebp
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebx, eax
call dword [edx + 0x18]
test ebx, ebx
je 0x4690d5
mov al, byte [esp + 0x28]
test al, al
je 0x469023
cmp al, 0x1a
jne 0x4690d5
mov dword [esp + 0x10], ebp
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
mov esi, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push esi
mov dword [esp + 0x24], eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4690d5
cmp ebx, dword [esp + 0x14]
jae 0x4690d5
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4690d5
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4690d5
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x30]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push ebx
push esi
mov dword [esp + 0x24], eax
call ebp
cmp dword [edi], 3
jne 0x4690b9
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x10]
push eax
add edi, 0x34
push ecx
push edi
lea edx, [esp + 0x34]
push 1
push edx
push ebx
call fcn.00469d60
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4690d5
mov al, byte [esp + 0x28]
test al, al
je 0x4690cd
cmp al, 0x1a
jne 0x4690d5
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret