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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac030
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4c8104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x49b31a
mov edi, 0x5c
jmp 0x49b190
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x4cb600]
lea ecx, [eax*4 + 0x4cb600]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x49b1b8
cmp esi, 0xffffffff
jne 0x49b347
jmp 0x49b30f
mov esi, dword [eax*4 + 0x4b2cd8]
cmp byte [0x4cb5f8], 0
mov dword [ebp - 4], 0
je 0x49b1ed
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x49b2ff
test esi, esi
je 0x49b2fd
cmp word [esi], 0
je 0x49b2fd
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x49b2f4
cmp eax, 0x200
jae 0x49b2f4
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x49b2f4
movzx ecx, word [esi]
test cx, cx
je 0x49b264
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x49b2f4
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x49b242
add eax, eax
cmp eax, 0x400
jae 0x49b34b
mov edi, dword [0x4c8104]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x4cb5fc]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x49b2d0
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x49b2ff
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
mov edi, 0x5c
jmp 0x49b2ff
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x49b338
or eax, 0xffffffff
xchg dword [ecx], eax
add ebx, 4
cmp ebx, edx
jne 0x49b190
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x49b347
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x49b31c
call fcn.00479f70
int3
Function at 0x10016ec
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001138
call fcn.010018d0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001727
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001727
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100173f
cmp eax, 0x20b
je 0x100172c
mov dword [ebp - 0x1c], edi
jmp 0x1001753
cmp dword [ecx + 0x84], 0xe
jbe 0x1001727
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100174d
cmp dword [ecx + 0x74], 0xe
jbe 0x1001727
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100201c], 0xffffffff
or dword [0x1002020], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002024], eax
call fcn.010018cc
cmp dword [section..data], edi
jne 0x10017ae
push fcn.010018cc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010018ba
push 0x10010c4
push 0x10010c0
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010bc
push 0x10010b8
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001468
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001825
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100185a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001909
ret

Function at 0x10450ba0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10450baa
pushal
call 0x10450bb0
pop ebp
sub ebp, 0x10
sub ebp, 0x450ba0
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10450bd4
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10450bdd
mov eax, 0x450ba0
add eax, ebp
add eax, 0x63
mov ecx, 0x5e5
mov edx, 0xf51b7ab9
xor byte [eax], dl
inc eax
dec ecx
jne 0x10450bf4
jmp 0x10450c07
xor dh, byte [edx + esi + 0x30]
test dword [ecx + 0x7838b9b9], edi
inc ecx
mov ecx, 0x74bab9b9
add dword [edi + 0x3b9b9b9], edi
xchg ecx, eax
mov ecx, 0x5b4eb9b9
mov edx, 0xb5383271
mov ecx, 0x7cbab9b9
jmp 0x8f5ade1b

Function at 0x8ccbbc
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x8cc92e
inc ebx
dec edx
call fcn.008ccbe7
mov ebx, 0x52953ef1
add edx, edx
xor dword [eax], edi
sub ebx, ebx
sub edx, edx
inc eax
add ebx, 0x734d0ff8
cmp eax, esi
jne fcn.008ccbbc
mov ebx, edx
ret
Function at 0x403be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426f29
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esi + 0xc]
push eax
call dword [0x42f9d0]
mov eax, 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x60], eax
mov eax, 0x82
lea edi, [esp + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 4], 0
mov dword [esi + 0x38], 0x1e
mov dword [esi + 0x50], 0x1312d00
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
call fcn.00404270
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0xc]
mov edx, dword [0x43e600]
push ecx
push 0
push edx
push 0x432b74
call dword [0x42f0c8]
neg eax
sbb eax, eax
neg eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00405130
push esi
call fcn.00405450
mov ecx, edi
call dword [0x42f648]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret

Function at 0x404150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424442
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00403de0
push 0x5c
push eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x24], 0
call fcn.00405770
push 0x432ee4
push eax
push edi
mov byte [esp + 0x30], 1
call fcn.00401f70
add esp, 0x18
lea ecx, [esp + 8]
call dword [0x42f648]
mov ecx, esi
call dword [0x42f648]
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x4041e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424442
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00403de0
push 0x5c
push eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x24], 0
call fcn.00405770
push 0x432ed8
push eax
push edi
mov byte [esp + 0x30], 1
call fcn.00401f70
add esp, 0x18
lea ecx, [esp + 8]
call dword [0x42f648]
mov ecx, esi
call dword [0x42f648]
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x413e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424033
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00422198
mov dword [esi], 0x4304a4
push 1
push 0xf
push 0x11
xor edi, edi
push 8
lea ecx, [esi + 0x54]
mov dword [esp + 0x48], edi
call fcn.0041f880
push edi
push edi
push 1
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x90]
mov byte [esp + 0x50], 1
mov dword [esi], 0x430b1c
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call fcn.0041fbe0
lea ecx, [esi + 0xc8]
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
call dword [0x42f624]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x414b60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x424183
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00422198
mov dword [esi], 0x430d84
push 1
push 0xf
push 0x11
xor edi, edi
push 0x12
lea ecx, [esi + 0x54]
mov dword [esp + 0x48], edi
call fcn.0041f880
push edi
push edi
push 1
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x90]
mov byte [esp + 0x50], 1
mov dword [esi], 0x430ecc
call fcn.0041fbe0
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], 0x64
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x4177b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42474f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 4]
mov dword [esi], 0x4315fc
call dword [0x42f624]
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0
call dword [0x42f624]
lea ecx, [esi + 0xc]
call dword [0x42f624]
push 0xa
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], 0
call fcn.00416a40
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 3
call fcn.00417c60
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x417890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42474f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x4315fc
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 3
call fcn.00417d10
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 2
call fcn.00417710
lea ecx, [esi + 0xc]
call dword [0x42f648]
lea ecx, [esi + 8]
call dword [0x42f648]
lea ecx, [esi + 4]
call dword [0x42f648]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x419190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x424b9b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00418bd0
push 0
mov dword [esp + 0x2c], 0
call fcn.00417b10
add esp, 0xc
push 0
mov esi, eax
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
push 0xf
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
push 0
push 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call eax
push 0x431788
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call dword [0x42f260]
test eax, eax
mov ecx, edi
jne 0x419228
push eax
jmp 0x41922a
push 1
call fcn.00422738
push 0x431788
lea ecx, [esp + 0x14]
call dword [0x42f260]
test eax, eax
mov ecx, edi
jne 0x419247
push eax
jmp 0x419249
push 5
call fcn.0042266c
lea ecx, [esp + 0x10]
call dword [0x42f648]
lea ecx, [esp + 0x14]
call dword [0x42f648]
lea ecx, [esp + 0xc]
call dword [0x42f648]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x421e20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x425ab0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea edi, [esi + 4]
mov ecx, edi
call dword [0x42f624]
lea ebx, [esi + 0x14]
mov ecx, ebx
mov dword [esp + 0x20], 0
call dword [0x42f624]
lea ebp, [esi + 0x24]
mov ecx, ebp
call dword [0x42f624]
lea ecx, [esi + 0x2c]
call dword [0x42f624]
mov dword [esi], 0x9a
mov eax, dword [0x43d3a0]
mov dword [esi + 8], eax
mov ecx, dword [0x43d3a4]
xor eax, eax
mov dword [esi + 0xc], ecx
push 0x431e4c
mov ecx, ebp
mov byte [esp + 0x24], 3
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
call dword [0x42f204]
mov ecx, esi
call fcn.00421b70
push 0x431e6c
mov ecx, ebx
call dword [0x42f204]
push 0x431e6c
mov ecx, edi
call dword [0x42f204]
push 0x431e6c
lea ecx, [esi + 0x2c]
call dword [0x42f204]
or eax, 0xffffffff
or ecx, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], 0xcdfe60
mov dword [esi + 0x34], ecx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1004123
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
or ecx, 0xffffffff
sub ecx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 0
je 0x1004155
mov eax, dword [ebp + 8]
push esi
movzx edx, byte [eax]
dec dword [ebp + 0xc]
movzx esi, cl
xor edx, esi
shr ecx, 8
xor ecx, dword [edx*4 + section..data]
inc eax
cmp dword [ebp + 0xc], 0
jne 0x1004138
pop esi
or eax, 0xffffffff
sub eax, ecx
pop ebp
ret 0xc

Function at 0x1006c58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [edi], ebx
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1006ca3
push dword [ebp + 8]
push 0x10018a0
push 0x10024c0
push dword [ebp + 0x10]
call fcn.01009022
add esp, 0x10
xor eax, eax
jmp 0x1006d2c
lea eax, [ebp - 0xc]
push eax
push 0x8000
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__open]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1006cff
push dword [ebp + 8]
push 0x10018a0
push 0x10024a8
push dword [ebp + 0x10]
call fcn.01009022
add esp, 0x10
jmp 0x1006d1f
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x1006d33
test eax, eax
je 0x1006cff
push dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.01004123
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.msvcrt.dll__eof]
pop ecx
test eax, eax
je 0x1006cd9
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 1
mov dword [edi], eax
push ebx
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
push 0x10018a0
push 0x1002484
push dword [ebp + 0x10]
call fcn.01009022
add esp, 0x10
jmp 0x1006d17
Function at 0x1008de6
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1016a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x220], eax
call fcn.01005ac0
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [sym.imp.msvcrt.dll_setvbuf]
xor ebx, ebx
push ebx
push 4
add eax, 0x20
push ebx
push eax
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
push 4
add eax, 0x40
push ebx
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x21c]
push eax
call fcn.01009052
push 0xc10
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x1008e7e
lea eax, [ebp - 0x21c]
push 0x1002fd4
push eax
call fcn.01009022
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.01006515
push 1
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
push 0x4f
mov word [esi + 0x80], ax
lea eax, [esi + 0x9b4]
push 0x20
push eax
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x84], ebx
mov byte [esi + 0xb04], bl
mov dword [esi + 0xac], ebx
mov dword [esi + 0xc0c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
mov byte [esi + 0xa03], bl
call fcn.01006463
push 0x1002604
mov edi, 0x10018a0
push edi
push 0x1002fa0
lea eax, [esi + 0x1b4]
push 0x800
push eax
call fcn.0100cc3f
lea eax, [esi + 0x1b4]
push eax
push edi
mov edi, dword [sym.imp.msvcrt.dll_printf]
call edi
add esp, 0x1c
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01004b62
cmp eax, ebx
jne 0x1008f4b
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01006515
xor eax, eax
inc eax
jmp 0x100900e
mov dword [esi + 8], eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
push dword [ebp + 8]
push esi
call fcn.01007bdc
test eax, eax
je 0x1008f36
cmp dword [esi], 1
jne 0x1008f7b
push 0x1002ce8
call edi
xor eax, eax
jmp 0x100900d
call dword [sym.imp.msvcrt.dll_clock]
mov dword [esi + 0x74], eax
mov eax, dword [esi]
dec eax
dec eax
je 0x1008f9c
dec eax
jne 0x1008fc2
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01008b12
jmp 0x1008fba
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01006b22
test eax, eax
je 0x1008f43
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.010077b5
test eax, eax
je 0x1008f36
xor eax, eax
cmp dword [esi + 0x38], ebx
setg al
mov edi, eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1008fe0
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0100d4d7
mov eax, dword [esi + 0x84]
cmp eax, ebx
je 0x1008ff0
push eax
call fcn.0100a679
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1009004
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0100916a
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100dc5b
leave
ret
Function at 0x100931e
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
test eax, eax
je 0x1009336
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_remove]
pop ecx
test eax, eax
je 0x100935f
push dword [esi + 4]
push dword [esi + 8]
push 0x1001b4c
push 0x1003064
push dword [ebp + 0xc]
call fcn.01009022
add esp, 0x14
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll_free]
test eax, eax
je 0x1009370
push eax
call edi
pop ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x100937b
push eax
call edi
pop ecx
push esi
call edi
pop ecx
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 8
Function at 0x1009ad2
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
push esi
push esi
push 3
push esi
push esi
mov ebx, 0x40000000
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1009b1a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push 3
push esi
push esi
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1009b90
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
or ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
or ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [edi + 4]
push eax
call fcn.0100947f
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, ebx
jne 0x1009b90
push dword [ebp + 8]
push 0x10018a0
push 0x10031f8
push dword [ebp + 0x10]
call fcn.01009022
add esp, 0x10
xor eax, eax
jmp 0x1009b93
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1009b9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.msvcrt.dll__open]
push edi
mov edi, dword [ebp + 0xc]
push 0x8000
push edi
call esi
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1009be7
push edi
push 0x10018a0
push 0x1003284
push dword [ebp + 0x20]
call fcn.01009022
add esp, 0x10
jmp 0x1009d37
push ebx
mov ebx, dword [ebp + 0x20]
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.01009a59
test eax, eax
je 0x1009d1c
cmp dword [ebp + 0x18], 0
je 0x1009c17
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push eax
call dword [ebp + 0x18]
test eax, eax
je 0x1009d1c
cmp dword [ebp + 0x10], 0
jne 0x1009c29
mov dword [ebp - 0xc], 1
jmp 0x1009d1c
mov ecx, dword [ebp + 0x14]
xor edx, edx
inc edx
cmp ecx, edx
ja 0x1009c35
mov ecx, edx
mov eax, 0x100000
cmp ecx, eax
jae 0x1009c48
cmp dword [ebp + 0x14], edx
ja 0x1009c4b
mov dword [ebp + 0x14], edx
jmp 0x1009c4b
mov dword [ebp + 0x14], eax
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009c78
push dword [ebp + 8]
push edi
push 0x1001b4c
push 0x1003258
push ebx
call fcn.01009022
add esp, 0x14
jmp 0x1009d1c
push 0x180
push 0x8301
push dword [ebp + 8]
call esi
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x1009ca9
push dword [ebp + 8]
push 0x10018a0
push 0x1003284
push ebx
call fcn.01009022
add esp, 0x10
jmp 0x1009d0f
mov ebx, dword [sym.imp.msvcrt.dll__eof]
jmp 0x1009ce0
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1009d40
test esi, esi
je 0x1009ce0
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
cmp eax, esi
jne 0x1009d55
push dword [ebp - 8]
call ebx
pop ecx
test eax, eax
je 0x1009cb1
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.01009ad2
test eax, eax
je 0x1009d1c
mov dword [ebp - 0xc], 1
cmp edi, 0xffffffff
je 0x1009d1c
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__close]
cmp dword [ebp - 4], 0
pop ecx
pop ebx
je 0x1009d37
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 0x1c
push dword [ebp + 0xc]
push 0x10018a0
push 0x1003240
push dword [ebp + 0x20]
jmp 0x1009c9f
push dword [ebp + 0xc]
push 0x10018a0
push 0x1003228
jmp 0x1009d4d