joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c890
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x41c938
mov eax, dword [ebx + 0x1c]
shr eax, 3
push esi
cmp eax, ecx
jbe 0x41c9e0
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
cmp edx, eax
je 0x41c937
mov eax, dword [edx + 4]
mov esi, edx
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edi
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.0041f7c3
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x41c93d
cmp esi, dword [ebp - 4]
jne 0x41c903
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x41c92e
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x41c951
mov dword [ecx], edx
mov eax, edx
jmp 0x41c954
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
cmp esi, edx
je 0x41c92e
nop dword [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
nop
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.0041f7c3
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x41c9c2
cmp esi, dword [ebp - 4]
jne 0x41c990
mov eax, dword [ebp - 0x14]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp esi, edx
jne 0x41c960
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x41ca05
mov esi, dword [eax]
push 0xc
push eax
call fcn.0041f7c3
add esp, 8
mov eax, esi
test esi, esi
jne 0x41c9f2
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.004127d0
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420693
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4206d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4206d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4206d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4206d2
cmp dword [ecx + 0x74], 0xe
jbe 0x4206d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44bbd4
push 0x44bbcc
push str.FlsAlloc
push 0x1e
call fcn.0043460a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434811
push dword [ebp + 8]
mov ecx, esi
call dword [0x4461dc]
call esi
jmp 0x434817
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43485b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44bbe4
push 0x44bbdc
push str.FlsGetValue
push 0x20
call fcn.0043460a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434892
push dword [ebp + 8]
mov ecx, esi
call dword [0x4461dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43903e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438cd9

Function at 0x439049
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438e68

Function at 0x43949f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041fc30
mov eax, dword [0x455100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042dfb2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4394e1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43963d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00443490
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x457e00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004398c5
mov ecx, dword [esi*4 + 0x457e00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x439636
cmp eax, dword [edi + ecx + 0x24]
jne 0x439636
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x439636
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004398c5
add esp, 0x14
test edx, edx
jl 0x439636
jg 0x4395ac
test eax, eax
jb 0x439636
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x439636
jl 0x4395c6
cmp dword [ebp - 0x1008], eax
ja 0x439636
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4395e4
test ebx, ebx
je 0x43961d
cmp ecx, edi
jae 0x43961d
mov al, byte [ecx]
cmp al, 0xd
jne 0x4395fe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43960a
cmp byte [ecx + 1], 0xa
jne 0x43960a
inc ecx
jmp 0x43960a
movzx eax, al
movsx eax, byte [eax + 0x455a80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4395e4
cmp edx, ebx
jne 0x4395e4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43963b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041fc22
leave
ret
Function at 0x43ad17
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43adb4
push ebx
push esi
call fcn.0043ace0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00439c3e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43ad61
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43adb3
push edi
push eax
call fcn.00434e79
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43ad81
call fcn.00434200
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43adb2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00439c3e
add esp, 0x20
test eax, eax
jne 0x43ada0
push edi
call fcn.00434200
jmp 0x43ada8
push ebx
call fcn.00434200
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x43fb23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x457e00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43fb63
cmp byte [ebx], 0xa
jne 0x43fb63
or byte [eax + edi + 0x28], 4
jmp 0x43fb68
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43fc66
mov al, byte [edx]
cmp al, 0x1a
je 0x43fc48
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43fb97
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43fbbc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43fbc6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x43fb79
jmp 0x43fc66
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43fc43
cmp dword [ebp - 0xc], 0
je 0x43fc43
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x457e00]
test byte [eax + edi + 0x28], 0x48
je 0x43fc1d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43fc08
mov byte [esi], dl
jmp 0x43fc19
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457e00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43fc66
cmp byte [ebp - 1], 0xa
jne 0x43fc2c
cmp esi, ebx
jne 0x43fc2c
mov byte [esi], 0xa
jmp 0x43fc65
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004398e3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43fc66
mov byte [esi], 0xd
jmp 0x43fc65
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x457e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43fc62
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43fc66
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43fc6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x457e00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43fcb2
cmp word [esi], dx
jne 0x43fcb2
or byte [edi + eax + 0x28], 4
jmp 0x43fcb7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x43fdf0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x43fdd0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43fcf9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43fd2f
cmp eax, edx
jae 0x43fd3b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x43fcd1
jmp 0x43fdf0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43fdcc
cmp dword [ebp - 0x14], 0
je 0x43fdcc
mov eax, dword [ebx*4 + 0x457e00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43fda4
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x43fdea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x457e00]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x457e00]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x457e00]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x43fded
pop ebx
cmp word [ebp - 4], bx
jne 0x43fdb5
cmp esi, dword [ebp + 0xc]
jne 0x43fdb5
mov word [esi], bx
jmp 0x43fded
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004398e3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43fdf0
push 0xd
jmp 0x43fde9
mov ecx, dword [ebx*4 + 0x457e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43fde7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43fdf0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x442015
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00441f91
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44218d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44218d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44213c
jg 0x44206e
test eax, eax
je 0x442132
push 1
push 0x1000
call fcn.0043430c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x442094
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x442129
push 0x8000
push ebx
call fcn.0042e711
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4420c0
jg 0x4420bb
cmp ecx, 0x1000
jb 0x4420c0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00436bdc
add esp, 0x10
cmp eax, 0xffffffff
je 0x442105
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4420bb
jl 0x4420ec
test ecx, ecx
jne 0x4420ad
push dword [ebp - 0xc]
push ebx
call fcn.0042e711
push esi
call fcn.00434200
add esp, 0xc
xor edi, edi
jmp 0x44219e
cmp byte [edi + 0x24], 0
je 0x44211c
cmp dword [edi + 0x20], 5
jne 0x44211c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x442127
mov edi, dword [edi + 0x18]
jmp 0x442129
xor edi, edi
push esi
call fcn.00434200
pop ecx
jmp 0x44219e
test ecx, ecx
jg 0x4420fe
jl 0x44213c
test eax, eax
jae 0x4420fe
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004398e3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44215f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4420fe
jmp 0x442196
push ebx
call fcn.00437a18
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4420fe
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x44219e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44219b
mov edi, dword [edi + 0x18]
jmp 0x44219e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004398e3
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x443290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4432bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4432bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401080
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x140
mov eax, dword [0x409034]
push esi
push edi
push 0
push 0x20
push 4
push 0
push 3
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x160]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x40
lea edx, [esp + 0x110]
mov esi, eax
push edx
push esi
call edi
mov eax, dword [esp + 0x140]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xf8
lea edx, [esp + 0x18]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x140]
test eax, eax
pop edi
pop esi
jle 0x401126
cmp word [esp + 0x60], 2
sete al
mov ecx, dword [esp + 0x13c]
call fcn.00403267
add esp, 0x140
ret 4
mov ecx, dword [esp + 0x13c]
xor al, al
call fcn.00403267
add esp, 0x140
ret 4
Function at 0x401a30
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 4
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x4092a0]
push 2
push 0
neg ecx
mov edi, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [0x4092a0]
inc edx
push edx
call fcn.00403228
mov ecx, dword [0x4092a0]
add esp, 4
push 0
mov esi, eax
lea eax, [esp + 0xc]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x4092a0]
mov byte [edx + esi], 0
mov eax, dword [0x4092ac]
push eax
push esi
call fcn.00406e38
add esp, 8
test eax, eax
push edi
jne 0x401abe
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00403275
add esp, 4
pop edi
mov al, 1
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00403275
add esp, 4
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x401ae0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x401b00
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
push 0x1f4
call fcn.00403228
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, esi
lea esp, [esp]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x401b20
cmp byte [esi], 0x22
jne 0x401b30
inc esi
xor eax, eax
cmp byte [eax + esi], 0x22
jne 0x401b3c
mov byte [eax + esi], 0
inc eax
cmp eax, 0x1f3
jl 0x401b32
mov ecx, esi
xor eax, eax
lea edi, [ecx + 1]
jmp 0x401b50
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401b50
sub ecx, edi
add ecx, 0xfffffffc
test ecx, ecx
jle 0x401bf9
mov dl, byte [eax + esi]
cmp dl, 0x2e
jne 0x401bdf
mov cl, byte [eax + esi + 1]
cmp cl, 0x65
je 0x401b7a
cmp cl, 0x45
jne 0x401ba3
mov cl, byte [eax + esi + 2]
cmp cl, 0x78
je 0x401b88
cmp cl, 0x58
jne 0x401ba3
mov cl, byte [eax + esi + 3]
cmp cl, 0x65
je 0x401b96
cmp cl, 0x45
jne 0x401ba3
mov cl, byte [eax + esi + 4]
cmp cl, 0x20
je 0x401bf9
test cl, cl
je 0x401bf9
cmp dl, 0x2e
jne 0x401bdf
mov cl, byte [eax + esi + 1]
cmp cl, 0x73
je 0x401bb6
cmp cl, 0x53
jne 0x401bdf
mov cl, byte [eax + esi + 2]
cmp cl, 0x63
je 0x401bc4
cmp cl, 0x43
jne 0x401bdf
mov cl, byte [eax + esi + 3]
cmp cl, 0x72
je 0x401bd2
cmp cl, 0x52
jne 0x401bdf
mov cl, byte [eax + esi + 4]
cmp cl, 0x20
je 0x401bf9
test cl, cl
je 0x401bf9
mov ecx, esi
inc eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401be5
sub ecx, edi
add ecx, 0xfffffffc
cmp eax, ecx
jl 0x401b64
mov ecx, esi
lea edi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401c00
sub ecx, edi
add ecx, 0xfffffffc
cmp eax, ecx
jl 0x401c47
mov edx, dword [esp + 0xc]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401c18
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401c30
dec esi
push esi
call fcn.00403275
add esp, 4
pop edi
pop esi
ret
push ebx
mov ebx, dword [esp + 0x10]
mov edi, ebx
mov ecx, esi
sub edi, esi
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x401c52
add eax, 3
lea ecx, [eax + ebx]
mov byte [ecx + 1], dl
js 0x401c79
mov edx, esi
sub edx, ebx
lea edi, [eax + 1]
mov edi, edi
mov al, byte [edx + ecx]
mov byte [ecx], al
dec ecx
dec edi
jne 0x401c70
mov edx, dword [esp + 0x14]
mov eax, esi
sub edx, esi
pop ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401c82
dec esi
push esi
call fcn.00403275
add esp, 4
pop edi
pop esi
ret
Function at 0x401ca0
Capabilities:
Delete file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
push edi
call fcn.00401a30
add esp, 4
test al, al
je 0x401e00
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cc0
push ebx
push ebp
sub eax, edx
inc eax
push esi
push eax
call fcn.00403228
mov ebx, eax
mov edx, ebx
add esp, 4
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401ce0
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cf0
sub eax, edx
mov ecx, 0x4092b0
lea edx, [eax + ebx - 3]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x401d04
push ebx
call fcn.004019d0
add esp, 4
test al, al
je 0x401d2b
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0x40000000
push ebx
call esi
push 0
push 0x20
push 4
push 0
push 3
push 0x80000000
push edi
mov ebp, eax
call esi
mov ecx, dword [0x4092a0]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
push 2
push 0
mov eax, 0xfffffff8
sub eax, ecx
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
inc eax
push eax
call fcn.00403228
mov edx, dword [esp + 0x14]
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
push edi
call fcn.00403275
push ebx
call fcn.00403275
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret