joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4958a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
push ebx
mov bx, word [esp + 0x4c]
cmp bx, 4
push esi
mov esi, dword [esp + 0x54]
mov word [esi], 0
jbe 0x4958c3
xor al, al
pop esi
pop ebx
sub esp, 0xffffffbc
ret 8
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.00495490
lea ecx, [esp + 0x28]
push 0x10
push ecx
call fcn.004954e0
lea edx, [esp + 8]
push 0x10
push edx
call fcn.00495580
lea eax, [esp + 8]
push eax
sub bl, 0xcf
call fcn.0047e8e0
and eax, 0xffff
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + eax + 0xc], bl
lea edx, [esp + 0x3c]
push 0x14
push edx
lea eax, [esp + 0x14]
push 0x4e75b4
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x49596f
lea edx, [esp + 0x38]
push 0x2c
push edx
call fcn.00495770
cmp ax, 0x10
jae 0x49596f
and eax, 0xffff
mov cl, byte [esp + eax + 0x39]
and cl, 0xdf
cmp cl, 0x54
jne 0x49596f
cmp byte [esp + eax + 0x3a], 0x3a
jne 0x49596f
lea edx, [esp + eax + 0x3b]
push esi
push edx
call fcn.0047e950
or al, al
je 0x49596a
mov ax, word [esi]
cmp ax, 1
jl 0x49596a
cmp ax, 7
jle 0x49596f
mov word [esi], 0
xor eax, eax
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x44
ret 8

Function at 0x495980
Capabilities:
Read .ini file

Disassembly:
add esp, 0xffffffb0
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.00495490
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.004954e0
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.00495640
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00495600
lea edx, [esp + 0x34]
lea eax, [esp + 4]
push eax
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x4e75b4
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
or esi, esi
je 0x4959f0
lea eax, [esp + 0x44]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.0047e790
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
or esi, esi
setne al
pop esi
sub esp, 0xffffffb0
ret 8
Function at 0x495a60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.0047e900
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.00495490
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.004954e0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00495530
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.00495690
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.00495720
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.004956e0
lea eax, [esp + 0x14]
lea edx, [esp + 4]
push eax
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x4e75b4
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x495b4e
lea eax, [esp + 4]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0047e790
test al, al
je 0x495b0f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
setne al
pop esi
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push ecx
push edx
call fcn.0047e790
test al, al
je 0x495b36
mov word [esi], 3
xor eax, eax
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 4]
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.0047e790
test al, al
je 0x495b4e
mov word [esi], 1
xor eax, eax
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
Function at 0x4a3614
Capabilities:
Link function at runtime on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, dword [ebp + 8]
or ebx, ebx
je 0x4a3683
push str.EAGLE_GetSharedLibraryLoggingVersion
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
je 0x4a3683
call eax
cmp eax, 2
jne 0x4a3683
mov byte [ebp - 0x1c], al
mov eax, fcn.004a3140
mov dword [ebp - 0x18], eax
mov eax, 0x4a3128
mov dword [ebp - 0x14], eax
mov eax, 0x4fde10
mov dword [ebp - 0x10], eax
mov eax, 0x4a35f4
mov dword [ebp - 0xc], eax
mov eax, 0x4a3604
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0
push str.EAGLE_SharedLibraryRegistrationCallbackV2
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
je 0x4a3683
lea edx, [ebp - 0x1c]
push edx
call eax
sub esp, 0xfffffffc
pop ebx
leave
ret

Function at 0x4a3688
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp byte [0x4fddf4], 0
mov ebx, eax
je 0x4a36bb
mov eax, dword [0x4fddf0]
test eax, eax
je 0x4a36bb
push dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
mov esi, eax
or esi, esi
jne 0x4a36cd
call fcn.004a3140
mov esi, eax
test esi, esi
jne 0x4a36e8
pop ebx
mov eax, esi
pop edi
pop esi
leave
ret
cmp byte [esi + 4], 0
je 0x4a36e4
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
pop ebx
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret
mov byte [esi + 4], 1
mov edx, dword [esi]
cmp edx, dword [esi + 0xc]
jbe 0x4a36f7
mov dword [esi + 0x18], edx
mov ecx, dword [esi + 8]
mov dword [esi], ecx
rdtsc
mov dword [ebp - 0xc], edx
mov edi, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov edx, ecx
xor edx, edi
or edx, dword [ebp - 4]
mov eax, dword [esi]
je 0x4a3727
mov dword [eax], ecx
mov dword [eax + 4], 3
sub eax, 0xfffffff8
mov dword [esi], eax
mov dword [esi + 0x10], edi
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4a4318
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x4fddf4], 0
je 0x4a4341
push dword [0x4fddec]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
test eax, eax
je 0x4a4341
push eax
push dword [ebp + 8]
call fcn.004a4014
add esp, 8
leave
ret
Function at 0x4a4f7c
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
push ebx
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push dword [esp + 0x1c]
push edi
push esi
push dword [esp + 0x1c]
mov eax, dword [edi]
call eax
add esp, 0x10
mov ebx, dword [esi + 0xc]
xor eax, eax
jmp 0x4a4feb
cmp dword [edi + 8], 0
jne 0x4a4fab
test byte [ebx + 6], 0x10
je 0x4a4fdf
cmp dword [edi + 0xc], 0
je 0x4a4fb7
test byte [ebx + 6], 4
je 0x4a4fdf
movsx eax, word [ebx + 4]
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax]
mov al, byte [ebx + 6]
and eax, 1
je 0x4a4fcc
mov edx, dword [edx]
push ebx
push edi
push dword [ebx]
push edx
call fcn.004a4f7c
sub esp, 0xfffffff0
cmp dword [edi + 0x10], 0
jne 0x4a5009
movzx eax, byte [ebx + 6]
shr eax, 1
and eax, 1
sub ebx, 0xfffffff8
or ebx, ebx
je 0x4a4ff3
test eax, eax
je 0x4a4f9f
mov eax, dword [edi + 4]
or eax, eax
je 0x4a5009
push dword [esp + 0x1c]
push edi
push esi
push dword [esp + 0x1c]
call eax
sub esp, 0xfffffff0
pop ebx
pop edi
pop esi
ret

Function at 0x4a5d9f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x4ced20
call fcn.004b64ec
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4a5c9f
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4a5c9f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4a5c9f
cmp dword [eax + 0x400074], 0xe
jbe 0x4a5c9f
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4a5ca3
and dword [ebp - 0x1c], 0
push 1
call fcn.004b64ba
pop ecx
test eax, eax
jne 0x4a5cb7
push 0x1c
call fcn.004a5c24
pop ecx
call fcn.004b632d
or eax, eax
jne 0x4a5cc8
push 0x10
call fcn.004a5c24
pop ecx
call fcn.004b5e20
and dword [ebp - 4], 0
call fcn.004b5bcc
or eax, eax
jge 0x4a5ce2
push 0x1b
call fcn.004a5f38
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5012f8], eax
call fcn.004b5a95
mov dword [0x4fde60], eax
call fcn.004b59da
or eax, eax
jge 0x4a5d08
push 8
call fcn.004a5f38
pop ecx
call fcn.004b5762
or eax, eax
jge 0x4a5d19
push 9
call fcn.004a5f38
pop ecx
push 1
call fcn.004a5ff7
pop ecx
test eax, eax
je 0x4a5d2c
push eax
call fcn.004a5f38
pop ecx
mov eax, dword [0x4fde7c]
mov dword [0x4fde80], eax
push eax
push dword [0x4fde74]
push dword [0x4fde70]
call main
mov dword [ebp - 0x20], eax
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x4a5d5a
push eax
call fcn.004a61a8
call fcn.004a61d4
jmp 0x4a5d8f
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004b6531
ret
call fcn.004b66dc
jmp 0x4a5c4d
Function at 0x4a633e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
mov eax, dword [0x4ef1f0]
mov edi, edi
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x324]
and dword [ebp - 0x328], 0
push ebx
push 0x4c
push 0
push eax
call fcn.004a7ae0
add esp, 0xc
lea eax, [ebp - 0x328]
mov dword [ebp - 0x2d8], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
lea ecx, [ebp + 4]
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x2d0], 0x10001
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x20c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x328], 0xc0000417
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x31c], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
or eax, eax
jne 0x4a6447
or ebx, ebx
jne 0x4a6447
push 2
call fcn.004b7a83
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b7a8b
leave
ret

Function at 0x4a648d
Capabilities:
Terminate process

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push dword [0x4fdea4]
call fcn.004b5ee7
test eax, eax
pop ecx
je 0x4a64a5
pop edx
jmp eax
push 2
call fcn.004b7a83
pop ecx
pop ebp
jmp fcn.004a633e
Function at 0x4a8f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x4a8fad
call fcn.004a6a4b
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a648d
sub esp, 0xffffffec
jmp 0x4a90a4
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4a90a4
test al, 0x40
jne 0x4a90a4
test al, 2
je 0x4a8fcf
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4a90a4
or eax, 1
test eax, 0x10c
mov dword [esi + 0xc], eax
jne 0x4a8fe5
push esi
call fcn.004b93d2
pop ecx
jmp 0x4a8fea
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004ac9b0
pop ecx
push eax
call fcn.004b31f3
add esp, 0xc
cmp eax, edi
mov dword [esi + 4], eax
je 0x4a9094
cmp eax, 0xffffffff
je 0x4a9094
test byte [esi + 0xc], 0x82
jne 0x4a9069
push esi
call fcn.004ac9b0
pop ecx
cmp eax, 0xffffffff
je 0x4a9054
push esi
call fcn.004ac9b0
pop ecx
cmp eax, 0xfffffffe
je 0x4a9054
push esi
call fcn.004ac9b0
sar eax, 5
lea edi, [eax*4 + 0x5001c0]
push esi
call fcn.004ac9b0
and eax, 0x1f
pop ecx
shl eax, 6
pop edx
add eax, dword [edi]
jmp 0x4a9059
mov eax, 0x4ef050
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4a9069
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4a9087
mov eax, dword [esi + 0xc]
test al, 8
je 0x4a9087
test eax, 0x400
jne 0x4a9087
mov dword [esi + 0x18], 0x1000
mov edx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [edx]
inc edx
mov dword [esi], edx
jmp 0x4a90a7
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x4a9356
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], edi
je 0x4a9395
cmp dword [ebp + 0x14], edi
je 0x4a9395
cmp ecx, edi
jne 0x4a939c
call fcn.004a6a4b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a648d
sub esp, 0xffffffec
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ebx, dword [ebp + 0x18]
cmp ebx, edi
je 0x4a93b0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a93d1
cmp esi, 0xffffffff
je 0x4a93c0
push esi
push edi
push ecx
call fcn.004a7ae0
sub esp, 0xfffffff4
cmp ebx, edi
je 0x4a937d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a937d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
mov esi, edi
test dword [ebx + 0xc], 0x10c
mov dword [ebp - 0x10], edi
je 0x4a93ee
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a93f5
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a94e7
test dword [ebx + 0xc], 0x10c
je 0x4a944a
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a944a
jl 0x4a9548
mov edi, esi
cmp esi, eax
jb 0x4a941b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a94ef
push edi
push dword [ebx]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004bad8c
sub dword [ebx + 4], edi
add dword [ebx], edi
add dword [ebp - 8], edi
sub esi, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a94df
cmp esi, dword [ebp - 0xc]
jb 0x4a94b7
cmp dword [ebp - 0xc], 0
je 0x4a9474
mov ecx, accept
xor edx, edx
cmp esi, ecx
jbe 0x4a9469
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a9470
mov eax, esi
div dword [ebp - 0xc]
mov eax, esi
sub eax, edx
jmp 0x4a947f
mov eax, accept
cmp esi, eax
ja 0x4a947f
mov eax, esi
cmp eax, dword [ebp - 4]
ja 0x4a951b
push eax
push dword [ebp - 8]
push ebx
call fcn.004ac9b0
pop ecx
push eax
call fcn.004b31f3
add esp, 0xc
test eax, eax
je 0x4a955a
cmp eax, 0xffffffff
je 0x4a9548
add dword [ebp - 8], eax
sub esi, eax
sub dword [ebp - 4], eax
jmp 0x4a94df
push ebx
call fcn.004a8f80
cmp eax, 0xffffffff
pop ecx
je 0x4a954c
cmp dword [ebp - 4], 0
je 0x4a951b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
dec esi
mov byte [ecx], al
mov eax, dword [ebx + 0x18]
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x4a93fd
mov eax, dword [ebp + 0x14]
jmp 0x4a9397
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a9506
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.004a7ae0
add esp, 0xc
call fcn.004a6a4b
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x22
push ebx
jmp 0x4a938d
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a9531
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a7ae0
sub esp, 0xfffffff4
call fcn.004a6a4b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a938d
or dword [ebx + 0xc], 0x20
mov eax, edi
sub eax, esi
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a9397
or dword [ebx + 0xc], 0x10
jmp 0x4a954c
Function at 0x4aa09c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov esi, esi
sub esp, 0x5c
cmp eax, 0xfffffffe
jne 0x4aa0bc
call fcn.004a6a4b
mov dword [eax], 9
leave
or eax, 0xffffffff
ret
push esi
xor esi, esi
cmp eax, esi
jl 0x4aa0e4
cmp eax, dword [0x5001a4]
jae 0x4aa0e4
mov ecx, eax
sar ecx, 5
and eax, 0x1f
mov ecx, dword [ecx*4 + 0x5001c0]
shl eax, 6
test byte [ecx + eax + 4], 1
jne 0x4aa104
call fcn.004a6a4b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 9
call fcn.004a648d
add esp, 0x14
or eax, 0xffffffff
jmp 0x4aa24f
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
jne 0x4aa125
lea eax, [ebp - 0x30]
push eax
call fcn.004ac95f
mov ecx, dword [ebp - 0x30]
lea ebx, [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x34], eax
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004baf72
pop ecx
pop ecx
test eax, eax
je 0x4aa14b
call fcn.004a6a4b
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4aa24e
mov eax, dword [ebp - 0x48]
add eax, 0x76c
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x4c]
inc eax
mov word [ebp - 0x26], ax
mov ax, word [ebp - 0x50]
mov word [ebp - 0x22], ax
mov ax, word [ebp - 0x54]
mov word [ebp - 0x20], ax
mov ax, word [ebp - 0x58]
mov word [ebp - 0x1e], ax
mov ax, word [ebp - 0x5c]
mov word [ebp - 0x1c], ax
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call edi
or eax, eax
je 0x4aa23f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4aa23f
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004baf72
pop ebx
pop ecx
or eax, eax
jne 0x4aa23f
lea ebx, [ebp - 8]
mov eax, dword [ebp - 0x48]
sub eax, 0xfffff894
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x4c]
inc eax
mov word [ebp - 0x26], ax
mov ax, word [ebp - 0x50]
mov word [ebp - 0x22], ax
mov ax, word [ebp - 0x54]
mov word [ebp - 0x20], ax
mov ax, word [ebp - 0x58]
mov word [ebp - 0x1e], ax
mov ax, word [ebp - 0x5c]
mov word [ebp - 0x1c], ax
xor eax, eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x28]
push ebx
push eax
call edi
test eax, eax
je 0x4aa23f
lea eax, [ebp - 8]
lea ebx, [ebp - 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4aa23f
lea eax, [ebp - 0x18]
lea ebx, [ebp - 0x10]
push ebx
push eax
push esi
push dword [ebp + 8]
call fcn.004a6b9b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4aa23f
xor eax, eax
jmp 0x4aa24d
call fcn.004a6a4b
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4ac2a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ebx
xor esi, esi
push edi
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.004ad9b6
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ac32d
push 2
push esi
push esi
push dword [ebp + 8]
call fcn.004ad9b6
mov ecx, eax
and ecx, edx
sub esp, 0xfffffff0
cmp ecx, 0xffffffff
je 0x4ac32d
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub ebx, eax
sbb edi, edx
js 0x4ac3c2
jg 0x4ac306
cmp ebx, esi
jbe 0x4ac3c2
mov esi, 0x1000
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ac339
call fcn.004a6a4b
mov dword [eax], 0xc
call fcn.004a6a4b
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004b3f4a
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4ac359
jg 0x4ac355
cmp ebx, esi
jb 0x4ac359
mov eax, esi
jmp 0x4ac35b
mov eax, ebx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004b32f0
sub esp, 0xfffffff4
cmp eax, 0xffffffff
je 0x4ac3a5
cdq
sub ebx, eax
sbb edi, edx
js 0x4ac37c
jg 0x4ac34b
test ebx, ebx
ja 0x4ac34b
mov ebx, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b3f4a
pop edi
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x4ac42b
call fcn.004a6a5e
cmp dword [eax], 5
jne 0x4ac3ba
call fcn.004a6a4b
mov dword [eax], 0xd
or ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
jmp 0x4ac37f
cmp edi, esi
jg 0x4ac437
jl 0x4ac3cc
cmp ebx, esi
jae 0x4ac437
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ad9b6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ac32d
push dword [ebp + 8]
call fcn.004a6b9b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
jne 0x4ac437
call fcn.004a6a4b
mov dword [eax], 0xd
call fcn.004a6a5e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov ebx, dword [ebp - 0x10]
and ebx, dword [ebp - 0xc]
cmp ebx, 0xffffffff
je 0x4ac32d
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004ad9b6
and eax, edx
sub esp, 0xfffffff0
cmp eax, 0xffffffff
je 0x4ac32d
xor eax, eax
jmp 0x4ac334
Function at 0x4b2358
Capabilities:
Create thread

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x4b2388
call fcn.004a6a4b
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a648d
add esp, 0x14
xor eax, eax
jmp 0x4b2404
push esi
call fcn.004b5f82
push 0x214
push 1
call fcn.004b7d03
pop ecx
mov esi, eax
cmp esi, edi
pop ecx
je 0x4b23ec
call fcn.004b6170
push dword [eax + 0x6c]
push esi
call fcn.004b6010
mov ecx, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], ecx
pop eax
pop ecx
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
cmp eax, edi
jne 0x4b23c9
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4b22d5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x4b2403
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.004a7a46
pop ecx
cmp dword [ebp - 4], edi
je 0x4b2401
push dword [ebp - 4]
call fcn.004a6a71
pop ecx
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4b3c58
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4b3c89
call fcn.004a6a5e
mov dword [eax], esi
call fcn.004a6a4b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004a648d
sub esp, 0xffffffec
or eax, 0xffffffff
jmp 0x4b3cc4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b3ca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a6a71
pop esi
jmp 0x4b3c84
test byte [ebp + 0xc], 0x80
je 0x4b3cb1
and eax, 0xfffffffe
jmp 0x4b3cb4
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4b3c97
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4b3d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4b3d71
call fcn.004a6a5e
mov dword [eax], esi
call fcn.004a6a4b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004a648d
add esp, 0x14
push 0x16
pop eax
jmp 0x4b3dc6
test dword [ebp + 0xc], 0xfffffff9
jne 0x4b3d4d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b3d9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a6a71
pop ecx
call fcn.004a6a4b
mov eax, dword [eax]
jmp 0x4b3dc6
test al, 0x10
jne 0x4b3dc4
test al, 1
je 0x4b3dc4
test byte [ebp + 0xc], 2
je 0x4b3dc4
call fcn.004a6a5e
mov dword [eax], 5
call fcn.004a6a4b
mov dword [eax], 0xd
jmp 0x4b3d95
xor eax, eax
pop esi
pop ebp
ret