joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aeee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f000]
push edi
or ebp, 0xffffffff
jmp 0x4aef02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4aef09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aeef8
mov eax, 1
add ebx, ebx
jne 0x4aef1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4aef2c
jne 0x4aef4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aef4b
dec eax
add ebx, ebx
jne 0x4aef38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4aef10
add ebx, ebx
jne 0x4aef47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4aef9d
xor ecx, ecx
sub eax, 3
jb 0x4aef63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4aefd2
sar eax, 1
mov ebp, eax
jmp 0x4aef6e
add ebx, ebx
jne 0x4aef6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aef3c
inc ecx
add ebx, ebx
jne 0x4aef7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aef3c
add ebx, ebx
jne 0x4aef89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4aef7e
jne 0x4aef9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4aef7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4aefbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4aefae
jmp 0x4aeefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4aefbc
add edi, ecx
jmp 0x4aeefe
pop esi
mov edi, esi
mov ecx, 0x3485
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4aefda
cmp byte [edi], 0x4a
jne 0x4aefda
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4aefdf
lea edi, [esi + 0xaa000]
mov eax, dword [edi]
or eax, eax
je 0x4af057
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb6144]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb6298]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4af00c
mov ecx, edi
jns 0x4af03b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb629c]
or eax, eax
je 0x4af051
mov dword [ebx], eax
add ebx, 4
jmp 0x4af029
call dword [esi + 0xb62ac]
mov ebp, dword [esi + 0xb62a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4af08b
sub esp, 0xffffff80
jmp 0x4177a0
Function at 0x401ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x401ff3
test esi, esi
je 0x401ff3
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f00
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x401ff5
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408730
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401f6f
cmp dword [0x418f08], 3
jne 0x401f6f
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [0x412020]
push 0x41699c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
jmp 0x401f81
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [0x41201c]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404ceb
push 0x4169a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.00404ee2
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401ff3
push eax
push 1
push 0x200
push edi
call fcn.004051b4
push dword [ebp - 0x210]
call fcn.004052cc
add esp, 0x14
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x4020b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor edx, edx
jmp 0x4020d0
not byte [esi + edx]
inc edx
cmp edx, 0x200
jb 0x4020d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408730
add esp, 0xc
mov dword [ebp - 0x214], 0
test esi, esi
je 0x402185
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [0x41201c]
push str.golfinfo.ini
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
push 0x4169c0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404ee2
mov eax, dword [ebp - 0x214]
add esp, 0x18
test eax, eax
je 0x402171
push eax
push 1
push 0x200
push esi
call fcn.0040549a
push dword [ebp - 0x214]
call fcn.004052cc
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x4033d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x4169a0
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00404ee2
add esp, 0xc
test eax, eax
je 0x403415
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00405cb0
push dword [ebp - 8]
call fcn.00406088
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00405cb0
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.00405b57
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004051b4
push dword [ebp - 8]
call fcn.004052cc
push edi
add ebx, esi
push 0
push ebx
call fcn.00408730
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [0x41202c]
push eax
call fcn.00406113
add esp, 4
xor esi, esi
test edi, edi
jle 0x40349d
lea ecx, [ecx]
call fcn.004060f0
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x403490
push 0x4169c0
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404ee2
add esp, 0xc
test eax, eax
je 0x4034c8
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0040549a
push dword [ebp - 8]
call fcn.004052cc
add esp, 0x14
test esi, esi
je 0x4034f1
push esi
call fcn.00405be9
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x403510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00408730
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00408730
push 0x103
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call fcn.00408730
mov ax, word [0x416a90]
movq xmm0, qword [str.sanfdr.bat]
mov word [ebp - 0x31c], ax
mov al, byte [0x416a92]
add esp, 0x24
mov byte [ebp - 0x31a], al
lea eax, [ebp - 0x20c]
movq qword [ebp - 0x324], xmm0
push eax
xorps xmm0, xmm0
push 0x104
movq qword [ebp - 0x319], xmm0
mov byte [ebp - 0x311], 0
call dword [0x412040]
lea edx, [ebp - 0x324]
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x4035d0
push edi
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4035e1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x108]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [0x412044]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00406123
lea eax, [ebp - 0x310]
push 0x5c
push eax
call fcn.00405a20
add esp, 0x14
pop edi
test eax, eax
je 0x40363c
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push 0x416a94
push eax
call fcn.0040623c
mov esi, eax
add esp, 8
test esi, esi
je 0x40379e
push esi
push 1
push 9
push str.:Repeat_r_n
call fcn.0040549a
push esi
push 1
push 5
push str.del__
call fcn.0040549a
lea ecx, [ebp - 0x108]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403684
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0040549a
push esi
push 1
push 2
push 0x416aac
call fcn.0040549a
push esi
push 1
push 0xa
push str.if_exist__
call fcn.0040549a
lea ecx, [ebp - 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4036c7
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0040549a
push esi
push 1
push 0xf
push str.__goto_Repeat_r_n
call fcn.0040549a
push esi
push 1
push 7
push str.rmdir__
call fcn.0040549a
lea ecx, [ebp - 0x310]
add esp, 0x30
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403710
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.0040549a
push esi
push 1
push 3
push 0x416aac
call fcn.0040549a
push esi
push 1
push 5
push str.del__
call fcn.0040549a
lea ecx, [ebp - 0x20c]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403753
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040549a
push esi
push 1
push 1
push 0x416ad4
call fcn.0040549a
push esi
call fcn.004052cc
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [0x412164]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x404a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040b930
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 4
mov esi, ecx
lea eax, [ebp - 0x1008]
push eax
push dword [esi]
mov ebx, edx
mov dword [ebp - 0x100c], esi
call dword [0x4121d4]
cmp eax, 4
je 0x404a70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x404ac0
jmp 0x404a80
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [esi]
call dword [0x4121d4]
mov esi, eax
test esi, esi
je 0x404ac0
push dword [ebx]
lea eax, [ebp - 0x1004]
push esi
push 1
push eax
call fcn.0040549a
add edi, esi
mov esi, dword [ebp - 0x100c]
add esp, 0x10
cmp edi, dword [ebp - 0x1008]
jb 0x404a80
push dword [ebx]
call fcn.004052cc
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x434a7f
push 0x14
push 0x44f608
call fcn.00433f00
push 1
call fcn.00434665
pop ecx
test al, al
jne 0x434936
push 7
call fcn.00435091
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00434630
mov byte [ebp - 0x24], al
mov eax, dword [0x457c3c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x43492f
test eax, eax
jne 0x4349a0
mov dword [0x457c3c], ecx
push 0x4442cc
push 0x4442b4
call fcn.0043b69d
pop ecx
pop ecx
test eax, eax
je 0x434983
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x434a79
push 0x4442b0
push 0x444260
call fcn.0043b641
pop ecx
pop ecx
mov dword [0x457c3c], 2
jmp 0x4349a5
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004347bf
pop ecx
call fcn.0043533b
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4349d5
push esi
call fcn.00434735
pop ecx
test al, al
je 0x4349d5
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00434e07
call esi
call fcn.00435341
mov esi, eax
cmp dword [esi], edi
je 0x4349f3
push esi
call fcn.00434735
pop ecx
test al, al
je 0x4349f3
push dword [esi]
call fcn.0043aade
pop ecx
call fcn.004351ac
movzx eax, ax
push eax
call fcn.0043b5ee
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0043a9ed
test al, al
jne 0x434a1e
push esi
call fcn.0043ab16
test bl, bl
jne 0x434a27
call fcn.0043aab9
push edi
push 1
call fcn.004347dc
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x434a79
call fcn.00433f46
ret
call fcn.00435234
jmp 0x434917
Function at 0x401fe3
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x40201a
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x40200d
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x402088
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x4020d5
cmp ebx, 4
jne 0x4020d8
cmp edi, 6
jbe 0x4020d8
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x402029
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402db1
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x451094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402dfa
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402dfa
push 0xc00
call eax
test eax, eax
jne 0x402e95
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e95
cmp eax, 0x104
ja 0x402e95
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402e31
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402e94
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402e5b
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402e52
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402e4e
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433e82
mov esp, ebp
pop ebp
ret
Function at 0x4079d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.0043a2de
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x4079fc
call fcn.004078e2
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409b5c
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x44233d
call fcn.0043413f
cmp byte [0x457910], 0
mov edi, dword [ebp + 8]
jne 0x409b9c
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00408acf
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004340f5
pop ecx
test esi, esi
je 0x409baa
mov al, 1
jmp 0x409bf0
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409bbb
xor al, al
jmp 0x409bf0
lea ecx, [ebp - 0x50]
call fcn.0040a404
lea ecx, [ebp - 0x28]
call fcn.00407e5b
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a620
test al, al
je 0x409be5
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004340f5
pop ecx
mov al, bl
call fcn.00434108
ret 4

Function at 0x409bf8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x409c32
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340f5
pop ecx
test esi, esi
pop esi
je 0x409c41
mov al, 1
jmp 0x409c43
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409c2c
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x409dd3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040ac3f
cmp eax, 0xffffffff
je 0x409e00
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x409e00
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a374
test al, al
je 0x409e38
cmp byte [0x457910], 0
push esi
jne 0x409e2e
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340f5
pop ecx
test esi, esi
je 0x409e38
mov al, 1
jmp 0x409e3a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x409e28
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a0b5
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x40a0ed
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340f5
pop ecx
test esi, esi
pop esi
je 0x40a0fa
mov al, 1
jmp 0x40a0fc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40a0e7
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2c8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x40a2ff
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340f5
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40a30e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40a374
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x40a3af
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340f5
pop ecx
test esi, esi
pop esi
je 0x40a3bf
mov al, 1
jmp 0x40a3c1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40a3a9
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40ac3f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x40ac73
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340f5
pop ecx
mov eax, esi
pop esi
jmp 0x40ac86
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae71
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ae9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ae9b
xor al, al
jmp 0x40aeaf
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41859f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443275
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x451094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.0041864e
lea ecx, [esi + 0x78]
call fcn.0041864e
push dword [esi + 0x30]
call fcn.004340f5
push dword [esi + 0x24]
call fcn.004340f5
push dword [esi + 0x18]
call fcn.004340f5
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x418603
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x418617
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x41862b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x41863e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ae78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442b8f
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x451094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00419ff2
lea ecx, [esi + 0x30]
call fcn.0041864e
push dword [esi + 0x24]
call fcn.004340f5
pop ecx
lea ecx, [esi + 0xc]
call fcn.00407a27
mov ecx, esi
call fcn.0041ae3e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b502
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x442447
call fcn.0043413f
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041b071
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0041a0fe
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040bece
push dword [ebp - 0x18]
call fcn.004340f5
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00434108
ret 8