joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043401
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10043443
call fcn.10046d86
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10043443
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1004343a
xor eax, eax
jmp 0x1004344b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10043451
pop edi
pop esi
pop ebx
ret 4

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401220
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x430ee0], 0x24e1
mov eax, dword [0x430ee0]
sub eax, 0x24e1
mov dword [0x430ee0], eax
mov ecx, 1
test ecx, ecx
je 0x4012cb
mov edx, dword [0x430ee0]
cmp edx, dword [ebp + 0xc]
jb 0x401257
jmp 0x4012cb
cmp dword [0x430ee0], 0
jne 0x401275
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401275
xor eax, eax
jmp 0x4012cb
mov eax, dword [ebp + 8]
add eax, dword [0x430ee0]
mov ecx, dword [eax]
add ecx, dword [0x430ee0]
mov edx, dword [ebp + 8]
add edx, dword [0x430ee0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x141ec
mov eax, dword [0x430ee0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x430ee0]
push eax
jmp 0x45bfc5
mov esp, ebp
pop ebp
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1000cd63
pop dword [ebp - 0x30]
mov eax, 0x1000cd63
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x38ba7
push 0
mov eax, 0xb85eb78
add eax, 0x47b54ec
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xdd000b6a
add ecx, 0x23003b76
mov edi, eax
mov edx, 0xbad7364c
add edx, 0x552a4fb4
add edx, dword [ebp - 0x30]
mov esi, 0x5708a1ec
add esi, 0xc36314a5
xor dword [ebp - 0x14], edi
mov ebx, dword [edx]
sub dword [ebp - 0x28], 0x34967d3
xor ebx, esi
xor dword [ebp - 0x14], 0x5ecbb9b5
mov dword [edi], ebx
add dword [ebp - 0x14], 0x1dbe14fb
add edi, 4
add edx, 0xb830f9d
add edx, 0xf47cf067
loop 0x1000cdbd
add eax, 0x5fed478a
sub eax, 0x5fec3937
mov ebx, eax
add eax, 0x29581310
add eax, 0xd6a7ecf5
mov ecx, 0xc4cda6ef
add ecx, 0x4b325911
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4011ae
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x459210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x401214
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00435420
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x401214
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401248
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004351af
leave
ret

Function at 0x401681
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x459210]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
cmp dword [eax + 0x18], 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
jb 0x4016b4
mov eax, dword [eax + 4]
jmp 0x4016b7
add eax, 4
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x449dac
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401743
cmp dword [ebp - 0x74], ebx
je 0x401743
mov eax, 0x208
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00435420
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x401704
mov edi, dword [edi + 4]
jmp 0x401707
add edi, 4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x40172c
lea eax, [ebp - 0x70]
call fcn.00401248
cmp dword [ebp - 0x74], ebx
je 0x40173a
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
jmp 0x401745
xor al, al
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004351af
add ebp, 0x19c
leave
ret 4

Function at 0x40175f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, ecx
jb 0x401773
mov eax, dword [eax + 4]
jmp 0x401776
add eax, 4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x449dac
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4017eb
cmp dword [ebp - 4], ebx
je 0x4017eb
mov eax, dword [esi + 0x14]
add eax, eax
cmp dword [esi + 0x18], 8
jb 0x4017b2
mov esi, dword [esi + 4]
jmp 0x4017b5
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x4017c0
mov ecx, dword [edi + 4]
jmp 0x4017c3
lea ecx, [edi + 4]
push eax
push esi
push 1
push ebx
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x4017e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4017ed
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x402cd4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00435420
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00435420
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x402d1a
mov esi, dword [esi + 4]
jmp 0x402d1d
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x402d2b
mov eax, dword [eax + 4]
jmp 0x402d2e
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402d5a
cmp dword [ebp - 0x14], ebx
je 0x402d56
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x402d5c
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x403bd3
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x44563b
call fcn.004372b5
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
jb 0x403bf5
mov eax, dword [eax + 4]
jmp 0x403bf8
add eax, 4
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, esi
jne 0x403c0d
xor al, al
jmp 0x403c60
xor edi, edi
cmp dword [ebp - 0x30], esi
jle 0x403c4c
jmp 0x403c18
xor esi, esi
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x2c]
call fcn.00401222
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], esi
je 0x403c37
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403cbd
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea esi, [ebp - 0x2c]
call fcn.004012b6
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x403c16
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x34]
call fcn.00403ca7
test eax, eax
setne al
call fcn.00437338
ret 4
Function at 0x40608a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x459210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4060ab
mov eax, dword [eax + 4]
jmp 0x4060ae
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4060d5
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004351af
leave
ret 4

Function at 0x408b24
Capabilities:
Get graphical window text

Disassembly:
push 0x274
mov eax, 0x44636b
call fcn.004372b5
lea eax, [ebp - 0x258]
mov edi, ecx
push 0x5087
push eax
mov dword [ebp - 0x264], edi
call fcn.00402c83
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x408b67
lea eax, [ebp - 0x254]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00435420
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x25c], eax
je 0x408be2
push eax
call ebx
test eax, eax
je 0x408be2
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x408be2
and word [ebp - 0x18], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x220]
call fcn.00401248
jmp 0x408c0b
push dword [ebp - 0x25c]
call ebx
test eax, eax
je 0x408c0b
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x408bff
mov eax, dword [eax + 4]
jmp 0x408c02
add eax, 4
push eax
push dword [ebp - 0x25c]
call esi
add edi, 0x298
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x25c], edi
call fcn.0042d3c0
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401322
push ebx
push 1
lea esi, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.004012b6
push 0x44a09c
mov eax, edi
call fcn.0040c1c0
mov edi, dword [ebp - 0x264]
cmp byte [edi + 0x90], bl
pop ecx
je 0x408d32
cmp dword [edi + 0x88], ebx
je 0x408d32
mov eax, dword [ebp - 0x25c]
lea esi, [edi + 0x74]
call fcn.0040bf70
test eax, eax
je 0x408d32
lea eax, [edi + 0x324]
lea esi, [ebp - 0x23c]
call fcn.00403d1d
mov ebx, esi
mov byte [ebp - 4], 2
call fcn.0040c2c0
push 0x25
push 0x3a
mov edi, esi
call fcn.0040c0f0
push 0x25
push 0x5c
call fcn.0040c0f0
mov edi, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, edi
lea ecx, [ebp - 0x280]
call fcn.00401222
lea eax, [ebp - 0x280]
call fcn.0040162e
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x280]
mov byte [ebp - 0x25d], al
call fcn.004012b6
cmp byte [ebp - 0x25d], bl
je 0x408d22
mov eax, edi
lea ecx, [ebp - 0x280]
call fcn.00401222
mov ecx, dword [ebp - 0x25c]
lea edi, [ebp - 0x23c]
lea eax, [ebp - 0x280]
call fcn.0040175f
push ebx
push 1
lea esi, [ebp - 0x280]
call fcn.004012b6
push ebx
push 1
lea esi, [ebp - 0x23c]
call fcn.004012b6
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x258]
call fcn.004012b6
call fcn.00437338
ret
Function at 0x40b7e0
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x40b7ef
mov eax, dword [eax + 4]
jmp 0x40b7f2
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x40b808
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40b820
Capabilities:
Create directory

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40b838
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

Function at 0x40b850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x446648
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov eax, dword [0x459210]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
push 0x44a454
mov esi, ecx
call fcn.0043551d
add esp, 4
push eax
mov eax, esi
call fcn.0040bde0
cmp eax, 0xffffffff
jne 0x40b8bd
cmp dword [esi + 0x18], 8
jb 0x40b8a7
mov esi, dword [esi + 4]
jmp 0x40b8aa
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40b922
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x68], eax
call fcn.0040e7a0
add esp, 8
cmp dword [esp + 0x4c], 8
mov bl, al
jb 0x40b920
mov eax, dword [esp + 0x38]
push eax
call fcn.00435578
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004351af
add esp, 0x58
ret
Function at 0x40d4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x445b38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x459210]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401322
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.0040cee0
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x40d56a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d58d
cmp dword [esp + 0x24], esi
jb 0x40d589
mov edx, dword [esp + 0x10]
push edx
call fcn.00435578
add esp, 4
mov al, 1
jmp 0x40d5a2
cmp dword [esp + 0x24], esi
jb 0x40d5a0
mov eax, dword [esp + 0x10]
push eax
call fcn.00435578
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004351af
add esp, 0x2c
ret

Function at 0x40d5c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x445b38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x459210]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401322
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.0040cee0
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x40d63a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d661
test al, 0x10
jne 0x40d661
cmp dword [esp + 0x24], esi
jb 0x40d65d
mov edx, dword [esp + 0x10]
push edx
call fcn.00435578
add esp, 4
mov al, 1
jmp 0x40d676
cmp dword [esp + 0x24], esi
jb 0x40d674
mov eax, dword [esp + 0x10]
push eax
call fcn.00435578
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004351af
add esp, 0x2c
ret
Function at 0x40d6a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x445b38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x459210]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401322
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.0040cee0
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x40d71a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d741
test al, 0x10
je 0x40d741
cmp dword [esp + 0x24], esi
jb 0x40d73d
mov edx, dword [esp + 0x10]
push edx
call fcn.00435578
add esp, 4
mov al, 1
jmp 0x40d756
cmp dword [esp + 0x24], esi
jb 0x40d754
mov eax, dword [esp + 0x10]
push eax
call fcn.00435578
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004351af
add esp, 0x2c
ret

Function at 0x40d780
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d78e
mov eax, dword [esi]
jmp 0x40d790
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [edi + 0x18], 8
jb 0x40d7a4
mov ecx, dword [esi]
jmp 0x40d7a6
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x40d7b6
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x40dcd0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x444d18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x459210]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x40de01
cmp edi, dword [ebp + 0x14]
jbe 0x40dd21
call fcn.004358e5
mov ebx, 8
cmp dword [ebp + 0x18], ebx
lea esi, [ebp + 4]
jb 0x40dd32
mov eax, dword [esi]
jmp 0x40dd34
mov eax, esi
cmp word [eax + edi*2], 0x2f
je 0x40dd5b
cmp edi, dword [ebp + 0x14]
jbe 0x40dd45
call fcn.004358e5
cmp dword [ebp + 0x18], ebx
jb 0x40dd4e
mov eax, dword [esi]
jmp 0x40dd50
mov eax, esi
cmp word [eax + edi*2], 0x5c
jne 0x40ddf4
push edi
push ebp
xor ebx, ebx
lea esi, [esp + 0x20]
call fcn.00407da2
xor esi, esi
mov dword [esp + 0x40], esi
cmp dword [esp + 0x2c], esi
jne 0x40dd83
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jmp 0x40ddd4
lea ecx, [esp + 0x18]
push ecx
call fcn.0040d4f0
add esp, 4
test al, al
mov ebx, 8
jne 0x40ddc8
cmp dword [esp + 0x30], ebx
mov eax, dword [esp + 0x1c]
jae 0x40dda7
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ddc8
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x40dde3
mov edx, dword [esp + 0x1c]
push edx
jmp 0x40dddb
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x40dde3
mov eax, dword [esp + 0x1c]
push eax
call fcn.00435578
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x40dd17
push ebp
call fcn.0040d4f0
add esp, 4
test al, al
jne 0x40de2d
cmp dword [ebp + 0x18], 8
jb 0x40de19
mov eax, dword [ebp + 4]
jmp 0x40de1c
lea eax, [ebp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40de2d
xor al, al
jmp 0x40de36
push ebp
call fcn.0040d6a0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004351af
add esp, 0x30
ret