joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003bff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10043248
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b894]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1006bd68]
test eax, eax
jne 0x1003bdb2
xor esi, esi
jmp 0x1003bdbb
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x1003bdfd
cmp dword [esi + 0x14], 0
jne 0x1003be3f
cmp dword [esi + 0x10], 0
jne 0x1003be45
push 0x1003b950
push 0x1006bd64
call fcn.1002d1c0
mov eax, dword [0x1006bd68]
add esp, 8
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x1003be2b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003be2b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x1003be85
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1003be73
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x1003be45
cmp dword [esi + 0x14], 0
je 0x1003bdd7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1003beaa
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1003bedb
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003bedb
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003bedb
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x1003be8f
jmp 0x1003bdd1
jmp 0x1003bd80

Function at 0x1003c1ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006b894]
jne 0x1003c1f4
repz ret
jmp fcn.1003c9ee
Function at 0x4169e0
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x432660
call fcn.004318dd
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x416a05
xor eax, eax
jmp 0x416b84
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x416a31
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x416a31
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x416b84
cmp dword [esi + 0x50], 0
je 0x416b81
mov ecx, esi
call fcn.004175b0
xor eax, eax
cmp dword [esi + 0x40], eax
jne 0x416a66
push dword [esi + 0x50]
push edi
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x416b81
movzx ebx, di
jmp 0x416b81
push eax
push 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x2c], di
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00419bb0
and dword [ebp - 4], 0
lea eax, [esi + 0x48]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x416a9e
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x40]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [0x43b26c]
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x416b75
cmp eax, 1
jg 0x416b51
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x416ae8
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x38]
sub edi, edx
je 0x416b16
cmp eax, 0x10
jae 0x416af7
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
push dword [esi + 0x50]
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x416b49
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x416b19
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x46], 1
cmp dword [ebp - 0x3c], edx
jne 0x416b43
test edi, edi
jne 0x416a92
cmp dword [ebp - 0x18], 0x20
jae 0x416b4c
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.00417551
jmp 0x416a8c
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
movzx ebx, bx
jmp 0x416b72
cmp eax, 3
jne 0x416b75
mov eax, dword [ebp - 0x30]
push dword [eax + 0x50]
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x416b72
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004120db
mov ax, bx
call fcn.0043188c
ret 4
Function at 0x417639
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4326ed
call fcn.004318dd
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x417748
cmp byte [ebx + 0x46], 0
je 0x417748
mov esi, 0xffff
push esi
call fcn.004169e0
movzx eax, ax
cmp si, ax
jne 0x417675
xor al, al
jmp 0x41774a
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.00419bb0
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, ecx
cmp eax, 0x10
jae 0x4176a5
lea edx, [ebp - 0x2c]
mov ecx, edx
mov edi, dword [ebx + 0x40]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x48]
mov ecx, dword [esi + 0x20]
push eax
call dword [0x43b26c]
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x4176db
sub eax, 1
je 0x4176df
dec eax
sub eax, 1
je 0x417736
xor bl, bl
jmp 0x417738
mov byte [ebx + 0x46], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
cmp eax, 0x10
jae 0x4176ef
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x417718
cmp eax, 0x10
jae 0x4176fe
lea ecx, [ebp - 0x2c]
push dword [ebx + 0x50]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4176d7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp byte [ebx + 0x46], 0
je 0x417736
test esi, esi
jne 0x417699
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00417551
jmp 0x417693
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004120db
mov al, bl
jmp 0x41774a
mov al, 1
call fcn.0043188c
ret
Function at 0x430412
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x43565b
call fcn.004318dd
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x430526
cmp byte [ebx + 0x45], 0
je 0x430526
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x43b26c]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
jne 0x430453
xor al, al
jmp 0x430528
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00419bb0
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x430483
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x48]
mov ecx, dword [esi + 0x20]
push eax
call dword [0x43b26c]
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x4304b9
sub eax, 1
je 0x4304bd
dec eax
sub eax, 1
je 0x430514
xor bl, bl
jmp 0x430516
mov byte [ebx + 0x45], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x4304cd
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x4304f6
cmp eax, 0x10
jae 0x4304dc
lea ecx, [ebp - 0x28]
push dword [ebx + 0x50]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4304b5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x45], 0
je 0x430514
test esi, esi
jne 0x430477
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00417551
jmp 0x430471
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004120db
mov al, bl
jmp 0x430528
mov al, 1
call fcn.0043188c
ret
Function at 0x4314d3
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x439388
call fcn.00431d78
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x43a80c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x431518
cmp eax, esi
jne 0x43150b
xor esi, esi
inc esi
mov edi, esi
jmp 0x43151b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4314ef
xor esi, esi
inc esi
cmp dword [0x43a810], esi
jne 0x43152d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x431567
cmp dword [0x43a810], ebx
jne 0x431561
mov dword [0x43a810], esi
push 0x4018ec
push 0x4018e0
call fcn.0043164c
pop ecx
pop ecx
test eax, eax
je 0x431567
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x43163c
mov dword [0x43a474], esi
cmp dword [0x43a810], esi
jne 0x43158a
push 0x4018dc
push 0x401894
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x43a810], 2
test edi, edi
jne 0x431597
xor eax, eax
mov ecx, 0x43a80c
xchg dword [ecx], eax
cmp dword [0x43a81c], 0
je 0x4315c3
push 0x43a81c
call fcn.00431bd0
pop ecx
test eax, eax
je 0x4315c3
push ebx
push 2
push ebx
mov esi, dword [0x43a81c]
mov ecx, esi
call dword [0x43b26c]
call esi
push dword [0x43a480]
push dword [0x43a47c]
push dword [0x43a478]
call fcn.0042ac1b
add esp, 0xc
mov dword [0x43a470], eax
cmp dword [0x43a488], 0
jne 0x431621
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x43a474], 0
jne 0x431635
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x43a470]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004cc000
jmp 0x4314d3

Function at 0x431ac4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4393c8
call fcn.00431d78
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x431b24
cmp eax, 0xffffffff
je 0x431b24
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x431b1d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x431b1d
cmp edx, 0x10000000
jae 0x431b1d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x431b1a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x431b80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x431bbe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x431bb6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x431bc0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x431ba6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x431c90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x431cc1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x431cc1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x431cc1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4659e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x40000]
push edi
or ebp, 0xffffffff
jmp 0x465a02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x465a09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659f8
mov eax, 1
add ebx, ebx
jne 0x465a1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x465a2c
jne 0x465a4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x465a4b
dec eax
add ebx, ebx
jne 0x465a38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x465a10
add ebx, ebx
jne 0x465a47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x465a9d
xor ecx, ecx
sub eax, 3
jb 0x465a63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465ad2
sar eax, 1
mov ebp, eax
jmp 0x465a6e
add ebx, ebx
jne 0x465a6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x465a3c
add ebx, ebx
jne 0x465a89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a7e
jne 0x465a9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465abc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465aae
jmp 0x4659fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465abc
add edi, ecx
jmp 0x4659fe
pop esi
mov edi, esi
mov ecx, 0xacf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465ada
cmp byte [edi], 9
jne 0x465ada
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 0x465adf
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465b4e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7c718]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7c7b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465b0c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7c7bc]
or eax, eax
je 0x465b48
mov dword [ebx], eax
add ebx, 4
jmp 0x465b29
call dword [esi + 0x7c7cc]
mov ebp, dword [esi + 0x7c7c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x465b82
sub esp, 0xffffff80
jmp 0x424648
Function at 0x403339
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f01c]
jne 0x403343
repz ret
jmp fcn.004036c0

Function at 0x4041d0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4098eb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push esi
lea edx, [esp + 0xc]
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00403f20
test eax, eax
je 0x404244
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x404232
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x404244
mov esi, 1
jmp 0x404246
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00403339
add esp, 0x2c
ret

Function at 0x404280
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40991c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push esi
lea edx, [esp + 0xc]
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00403f20
test eax, eax
je 0x4042f6
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4042e2
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4042f6
mov esi, 1
jmp 0x4042f8
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00403339
add esp, 0x2c
ret
Function at 0x404330
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x409956
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebp
push esi
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
mov esi, ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push esi
lea edx, [esp + 0x30]
mov ecx, edi
mov byte [esp + 0x58], 1
call fcn.00403f20
test eax, eax
je 0x4043db
push esi
lea edx, [esp + 0x14]
mov ecx, ebp
call fcn.00403f20
test eax, eax
je 0x4043db
mov ecx, dword [esp + 0x14]
mov eax, 0x10
cmp dword [esp + 0x28], eax
jae 0x4043ba
lea ecx, [esp + 0x14]
cmp dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
jae 0x4043c8
lea eax, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4043db
mov esi, 1
jmp 0x4043dd
xor esi, esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00403339
add esp, 0x4c
ret 4

Function at 0x404420
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409987
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push esi
lea edx, [esp + 0xc]
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00403f20
test eax, eax
je 0x404494
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x404482
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x404494
mov esi, 1
jmp 0x404496
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00403339
add esp, 0x2c
ret
Function at 0x4045a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4099e9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
push edi
mov eax, esi
mov dword [esp + 0x34], ebx
call fcn.00403e00
test eax, eax
je 0x404601
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
jmp 0x404646
push esi
lea edx, [esp + 0xc]
mov ecx, edi
call fcn.00403f20
test eax, eax
je 0x4045eb
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x404620
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404632
test al, 0x10
je 0x404632
mov bl, 1
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00403339
add esp, 0x2c
ret