joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b5f2
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 0x41b68f
push ebx
push esi
call fcn.0041b6e0
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.0041b4f6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b63c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b68e
push edi
push eax
call fcn.00418704
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b65c
call fcn.004180b9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b68d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b4f6
add esp, 0x20
test eax, eax
jne 0x41b67b
push edi
call fcn.004180b9
jmp 0x41b683
push ebx
call fcn.004180b9
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 0x41b692
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b6a3
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b6e0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00418704
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b6cb
push ebx
push esi
push edi
call fcn.00419730
add esp, 0xc
push 0
call fcn.004180b9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41b722
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b98d
Function at 0x41f059
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4354c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f099
cmp byte [ebx], 0xa
jne 0x41f099
or byte [edi + eax + 0x28], 4
jmp 0x41f09e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41f19d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41f180
inc eax
cmp dl, 0xd
je 0x41f0ca
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41f0f0
cmp eax, ecx
jae 0x41f0fe
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41f0b2
jmp 0x41f19d
push 0
lea eax, [ebp - 0x10]
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 0x41f17b
cmp dword [ebp - 0x10], 0
je 0x41f17b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4354c0]
test byte [eax + edi + 0x28], 0x48
je 0x41f155
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f140
mov byte [esi], dl
jmp 0x41f151
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4354c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f19d
cmp byte [ebp - 1], 0xa
jne 0x41f164
cmp esi, ebx
jne 0x41f164
mov byte [esi], 0xa
jmp 0x41f19c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041f53a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f19d
mov byte [esi], 0xd
jmp 0x41f19c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4354c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f19a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f19d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f1a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4354c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f1ec
cmp word [ebx], dx
jne 0x41f1ec
or byte [eax + edi + 0x28], 4
jmp 0x41f1f1
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41f354
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41f334
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41f232
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f268
cmp eax, edx
jae 0x41f276
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41f20d
jmp 0x41f354
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f32f
cmp dword [ebp - 0x18], 0
je 0x41f32f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4354c0]
test byte [eax + edi + 0x28], 0x48
je 0x41f305
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41f2c9
mov word [esi], cx
jmp 0x41f300
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4354c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4354c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4354c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41f354
pop eax
cmp word [ebp - 4], ax
jne 0x41f315
cmp esi, ebx
jne 0x41f315
mov word [esi], ax
jmp 0x41f351
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041f53a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41f354
push 0xd
pop eax
jmp 0x41f310
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4354c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41f34e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41f354
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x426948
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00426adf
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x426ab7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x426ab7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x426a6c
jg 0x4269a4
test eax, eax
je 0x426a62
push 1
push 0x1000
call fcn.004185bc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4269c7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x426a59
push 0x8000
push ebx
call fcn.00413aaf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4269f0
jg 0x4269eb
cmp ecx, 0x1000
jb 0x4269f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041dcb9
add esp, 0x10
cmp eax, 0xffffffff
je 0x426a35
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 0x4269eb
jl 0x426a1c
test ecx, ecx
jne 0x4269dd
push dword [ebp - 0xc]
push ebx
call fcn.00413aaf
push esi
call fcn.004180b9
add esp, 0xc
xor ebx, ebx
jmp 0x426ac5
cmp byte [edi + 0x24], 0
je 0x426a4c
cmp dword [edi + 0x20], 5
jne 0x426a4c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x426a57
mov ebx, dword [edi + 0x18]
jmp 0x426a59
xor ebx, ebx
push esi
call fcn.004180b9
pop ecx
jmp 0x426ac5
test ecx, ecx
jg 0x426a2e
jl 0x426a6c
test eax, eax
jae 0x426a2e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f53a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x426a8c
cmp byte [edi + 0x1c], 0
je 0x426a2e
jmp 0x426abd
push ebx
call fcn.0041ce5b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x426a2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x426ac5
cmp byte [edi + 0x1c], 0
je 0x426ac2
mov ebx, dword [edi + 0x18]
jmp 0x426ac5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041f53a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4010a0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x435c24]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x43a130
push 0x67
push esi
call edi
push 0x64
push 0x43a068
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401250
mov eax, dword [ebp + 0x10]
mov edx, 0x43ac38
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4010f0
call fcn.00403cc0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x436f90], eax
call edi
call fcn.004015f0
test eax, eax
je 0x40112c
call fcn.00403360
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.004020e0
add esp, 4
test eax, eax
jne 0x40114f
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.004155bb
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00417c10
mov eax, dword [0x43a880]
add esp, 0xc
test eax, eax
jbe 0x4011a1
cmp word [0x43a884], 0
jbe 0x4011a1
push eax
mov esi, 0x4374d8
call fcn.00403c40
mov dx, word [0x43a884]
add esp, 4
mov word [0x4374e8], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x42e7c8
mov edx, 0x43ae40
call fcn.00403340
call fcn.00402b80
lea esi, [esp + 0x10]
call fcn.00403500
push 0x42e7e0
mov edx, esi
push 0x104
push edx
call fcn.004157b3
add esp, 0x14
push 0x43ae40
mov eax, esi
push 0x104
push eax
call fcn.004157b3
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401231
push 0x1f4
call edi
push 1
push 0
push 0x42ea04
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004028e0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x42e7fc
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.004159c6
add esp, 0xc
test eax, eax
je 0x401544
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00415aa3
mov eax, dword [esp + 0x1c]
push eax
call fcn.00415cc5
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00415aa3
lea ebp, [esi + 0x32]
push ebp
call fcn.00415619
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00415fd3
mov eax, dword [esp + 0x40]
push eax
call fcn.00416067
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403ff0
mov ecx, dword [esp + 0x4c]
push 0x42e804
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.004159c6
add esp, 0x40
test eax, eax
je 0x4015c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00416245
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00416067
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402640
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402671
mov eax, ebx
call fcn.00403dc0
cmp eax, edi
jne 0x402671
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.00415619
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00406e60
add esp, 8
test eax, eax
je 0x40273c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004162c7
add esp, 4
call fcn.004162d9
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x430c08]
fmul qword [0x430c30]
fadd qword [0x430c28]
call fcn.00419930
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00403ff0
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.00406df0
mov esi, eax
cmp esi, 0xffffffff
je 0x40273a
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x402719
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x40273a
push ebp
mov esi, ebx
call fcn.004156e3
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.004156e3
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x435c24]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x43c]
push ebx
push ebp
mov ebp, dword [esp + 0x440]
push esi
push edi
push eax
mov ecx, ebp
call fcn.00406530
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x402e3f
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.00417c10
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x23a]
push ecx
mov word [esp + 0x23c], ax
call fcn.00417c10
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.00403500
push 0x42e7e0
mov edx, esi
push 0x104
push edx
call fcn.004157b3
xor eax, eax
lea ebx, [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov esi, 0x43a208
sub ebx, 0x43a30c
cmp word [esi], 0
je 0x402db7
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push 0x104
push ecx
call fcn.00415830
add esp, 0xc
push esi
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.004157b3
lea eax, [esp + 0x23c]
add esp, 0xc
push eax
lea edi, [esp + 0x18]
call fcn.00405ba0
add esp, 4
test eax, eax
je 0x402db7
mov ecx, 0x14
lea eax, [esi + 0x104]
lea ecx, [ecx]
mov edx, dword [ebx + eax]
cmp edx, dword [eax]
jne 0x402db7
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x402da0
xor eax, eax
mov word [esi], ax
add esi, 0x118
sub ebx, 0x118
cmp esi, 0x43a780
jl 0x402d44
mov edi, dword [esp + 0x44c]
mov esi, 0x43a208
jmp 0x402de0
cmp word [esi], 0
je 0x402dfe
mov ecx, dword [esi + 0x100]
mov dword [0x43a1fc], ecx
push edi
push ebp
mov ecx, esi
call fcn.00406730
add esp, 8
add esi, 0x118
cmp esi, 0x43a780
jl 0x402de0
push 0x43ae40
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.004157b3
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402e3b
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155bb
add esp, 0x434
ret
Function at 0x402fa0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x68c
mov eax, dword [0x435c24]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push ebp
push esi
push edi
push 0x42e968
push 0x42e96c
call fcn.004163bf
mov esi, eax
add esp, 8
test esi, esi
je 0x402ff8
push 0
push 0x2580
push esi
call fcn.00415aa3
add esp, 0xc
push esi
push 5
push 1
push 0x42e978
call fcn.00416245
push esi
call fcn.00416067
add esp, 0x14
cmp byte [0x43a78b], 1
jne 0x403176
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x492]
push ecx
mov word [esp + 0x494], ax
call fcn.00417c10
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push 0x42e980
mov dword [esp + 0x18], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x40307e
test al, 1
je 0x403058
xor eax, 1
test al, 4
je 0x40305f
xor eax, 4
test al, 2
je 0x403066
xor eax, 2
test al, 0x20
je 0x40306d
xor eax, 0x20
push eax
push 0x42e980
call edi
push 0x42e980
call ebx
call ebp
push 0x42e99c
call esi
cmp eax, 0xffffffff
je 0x4030b7
test al, 1
je 0x403091
xor eax, 1
test al, 4
je 0x403098
xor eax, 4
test al, 2
je 0x40309f
xor eax, 2
test al, 0x20
je 0x4030a6
xor eax, 0x20
push eax
push 0x42e99c
call edi
push 0x42e99c
call ebx
call ebp
push 0x42e9c8
call esi
cmp eax, 0xffffffff
je 0x4030f0
test al, 1
je 0x4030ca
xor eax, 1
test al, 4
je 0x4030d1
xor eax, 4
test al, 2
je 0x4030d8
xor eax, 2
test al, 0x20
je 0x4030df
xor eax, 0x20
push eax
push 0x42e9c8
call edi
push 0x42e9c8
call ebx
call ebp
push 0x104
lea edx, [esp + 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 0x488]
sub eax, 0x41
push eax
lea ebx, [esp + 0x18]
call fcn.00404470
mov ebx, dword [esp + 0x18]
add esp, 4
call fcn.004042f0
mov edi, eax
cmp edi, 0xffffffff
je 0x403176
lea esi, [esp + 0x250]
call fcn.004047b0
test eax, eax
je 0x403176
mov ecx, edi
call fcn.004031f0
mov ecx, 0x8d
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x250]
push 0x236
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
push 0x1e
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0x5042475f
call fcn.00404280
add esp, 0xc
mov ecx, dword [esp + 0x694]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155bb
add esp, 0x68c
ret
Function at 0x4031f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x22c
mov eax, dword [0x435c24]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
xor eax, eax
push edi
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
cmp edi, 0xffffffff
je 0x40325a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x200
lea edx, [esp + 0x3c]
push edx
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
jne 0x403261
xor eax, eax
jmp 0x403320
lea esi, [esp + 0x30]
call fcn.00404920
test eax, eax
jne 0x40331c
mov eax, dword [esp + 0x30]
mov byte [esp + 0x28], 0x33
mov byte [esp + 0x29], 0xf6
mov byte [esp + 0x2a], 0xb8
mov byte [esp + 0x2b], 0x40
cmp eax, dword [esp + 0x28]
jne 0x40330e
cmp byte [esp + 0x34], 7
jne 0x40330e
cmp byte [esp + 0x35], 0x8e
jne 0x40330e
mov eax, esi
call fcn.00403190
mov ebx, eax
cmp ebx, ebp
jne 0x4032b1
mov dword [esp + 0x10], ebp
jmp 0x40331c
lea ecx, [esp + 0x30]
push ecx
push ebx
mov eax, 1
call fcn.00404080
add esp, 8
test eax, eax
je 0x40325a
lea esi, [esp + 0x30]
call fcn.00404920
cmp eax, 1
je 0x40331c
mov edx, esi
push edx
lea eax, [ebx + 1]
push eax
mov eax, 1
call fcn.00404080
add esp, 8
test eax, eax
je 0x40325a
cmp byte [esp + 0x30], 0x56
jne 0x40325a
push ebx
mov ecx, edi
call fcn.00404860
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x40331c
mov esi, edi
call fcn.004043b0
mov ecx, edi
call fcn.004049b0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155bb
add esp, 0x22c
ret