joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x18
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x38]
mov bl, byte [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call ebp
test eax, eax
jne 0x42b2ff
test esi, esi
je 0x42b314
push 8
lea eax, [esp + 0x18]
push eax
xor edx, edx
push 0x446378
mov word [esp + 0x20], dx
call fcn.004287b0
push 0x15
lea edx, [esp + 0x24]
push edx
movzx cx, bl
add word [esp + 0x28], cx
push 0
push esi
call section..text
add esp, 0x1c
cmp eax, 4
je 0x42b2a4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041919a
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041919a
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jg 0x42b35e
je 0x42b346
test eax, eax
je 0x42b365
cmp eax, 0xe1
jne 0x42b36a
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041919a
add esp, 0x18
ret
pop edi
pop esi
pop ebp
mov eax, 0x4d3
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041919a
add esp, 0x18
ret
cmp eax, 0x579
jne 0x42b36a
mov eax, 0x15
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041919a
add esp, 0x18
ret

Function at 0x42b410
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b43d
cmp esi, dword [esp + 4]
jne 0x42b43d
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jg 0x42b45f
je 0x42b457
test eax, eax
je 0x42b466
cmp eax, 0xe1
jmp 0x42b464
mov eax, 0x4d3
pop esi
pop ecx
ret
cmp eax, 0x579
jne 0x42b46b
mov eax, 0x1e
pop esi
pop ecx
ret

Function at 0x42b470
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b49d
cmp esi, dword [esp + 4]
jne 0x42b49d
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jg 0x42b4c7
je 0x42b4bf
test eax, eax
je 0x42b4ce
cmp eax, 0xe1
jne 0x42b4d3
mov eax, 0x1e
pop esi
pop ecx
ret
mov eax, 0x4d3
pop esi
pop ecx
ret
cmp eax, 0x579
jne 0x42b4d3
mov eax, 0x70
pop esi
pop ecx
ret
Function at 0x42b560
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x42b5b0
mov ecx, dword [ecx]
mov eax, 0x103
cmp ecx, 0xffffffff
je 0x42b5b2
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x42b595
cmp esi, eax
je 0x42b5b0
test eax, eax
je 0x42b59f
neg eax
pop esi
ret 8
push 0x103
call fcn.0042a330
add esp, 4
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x42b830
Capabilities:
Get file system object information

Disassembly:
sub esp, 0xab8
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0xab4], eax
push esi
mov esi, dword [esp + 0xac0]
push esi
call fcn.0042b7a0
add esp, 4
test eax, eax
jne 0x42b8c0
cmp si, 0x10
ja 0x42b864
lea esi, [eax + 1]
jmp 0x42b879
mov ax, 0x20
cmp ax, si
sbb esi, esi
and esi, 0xffffff00
add esi, 0x100
push 0x2b4
lea ecx, [esp + 8]
push 0
push ecx
call fcn.00419120
lea edx, [esp + 0x2c4]
push 0x400
push edx
call fcn.0040acc0
add esp, 0x14
or esi, 0x4000
push esi
push 0x2b4
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x2c8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esp + 0xab8]
pop esi
xor ecx, esp
call fcn.0041919a
add esp, 0xab8
ret
Function at 0x42c080
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x43bb2b
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x444fe0]
xor eax, esp
push eax
lea eax, [esp + 0x2030]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2040]
mov ecx, dword [esp + 0x2044]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x42c22f
lea edx, [esp + 0x20]
push 0x2002
mov eax, edx
push 0
push eax
mov dword [esp + 0x2030], edx
mov dword [esp + 0x2034], 0x2002
call fcn.00419120
add esp, 0xc
cmp word [ebx], 0
mov dword [esp + 0x2038], 0
mov esi, ebx
je 0x42c20b
jmp 0x42c130
movzx eax, word [esi]
cmp ax, 0x3d
je 0x42c1ef
mov ebp, esi
test ax, ax
je 0x42c169
cmp ax, 0x3d
je 0x42c158
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x42c144
jmp 0x42c169
movzx eax, word [esi]
test ax, ax
je 0x42c169
cmp ax, 0x3d
jne 0x42c169
add esi, 2
mov edi, esi
sub edi, ebp
sar edi, 1
test edi, edi
jle 0x42c1ef
dec edi
test edi, edi
jle 0x42c1ef
lea ebx, [edi + edi + 2]
cmp ebx, dword [esp + 0x2028]
jbe 0x42c1bb
lea ecx, [esp + 0x20]
cmp dword [esp + 0x2024], ecx
je 0x42c1a2
lea edx, [esp + 0x2024]
push edx
call fcn.00429d00
add esp, 4
push ebx
mov dword [esp + 0x202c], ebx
call fcn.00429cd0
add esp, 4
mov dword [esp + 0x2024], eax
jmp 0x42c1c2
mov eax, dword [esp + 0x2024]
mov ebx, eax
cmp ebp, eax
je 0x42c1d9
inc edi
push edi
xor ecx, ecx
push ebx
push ebp
mov word [eax], cx
call fcn.004287b0
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
push esi
push ebx
call dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x42c20b
cmp word [esi], 0
je 0x42c1fe
add esi, 2
cmp word [esi], 0
jne 0x42c1f5
add esi, 2
cmp word [esi], 0
jne 0x42c130
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [esp + 0x20]
cmp dword [esp + 0x2024], eax
je 0x42c22f
lea ecx, [esp + 0x2024]
push ecx
call fcn.00429d00
add esp, 4
mov ecx, dword [esp + 0x2030]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.0041919a
add esp, 0x2028
ret
Function at 0x42d320
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x884
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
mov ebx, dword [esp + 0x894]
push esi
mov esi, dword [esp + 0x890]
push edi
mov edi, dword [esp + 0x898]
push 0x802
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.00419120
push 0x3c
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00419120
add esp, 0x18
push 0x1f
lea eax, [esp + 0x4c]
push eax
push 0xffffffffffffffff
xor edx, edx
push str.properties
push edx
push edx
mov word [esp + 0x60], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x400
lea edx, [esp + 0x8c]
push edx
xor ecx, ecx
push ebx
mov word [esp + 0x92], cx
call fcn.004287b0
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x88]
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x42d40a
xor eax, eax
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.0041919a
add esp, 0x884
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jg 0x42d458
je 0x42d43e
test eax, eax
je 0x42d45f
cmp eax, 0xe1
jne 0x42d464
mov eax, 0x1e
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.0041919a
add esp, 0x884
ret
mov eax, 0x4d3
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.0041919a
add esp, 0x884
ret
cmp eax, 0x579
jne 0x42d464
mov eax, 5
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.0041919a
add esp, 0x884
ret
Function at 0x42e3b0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
mov esi, dword [esp + 0x10c]
xor eax, eax
cmp dword [esi], 4
jne 0x42e40d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42e3ed
push 0x80
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42e3f4
xor edx, edx
mov word [esp + 4], dx
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0042de90
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.0041919a
add esp, 0x104
ret
Function at 0x42f460
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x42f4a0
movsx ax, byte [str.Color]
mov word [esi], ax
lea eax, [esi + 2]
cmp eax, 0x44637a
je 0x42f4a0
dec edi
push edi
push eax
xor ecx, ecx
push 0x44637a
mov word [eax], cx
call fcn.004287b0
add esp, 0xc
pop edi
pop esi
ret

Function at 0x42f740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bc70
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x444fe0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x446f9c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test eax, eax
je 0x42f7b7
cmp eax, esi
je 0x42f79b
mov edx, dword [ebp + 0xc]
push edx
xor ecx, ecx
push esi
push eax
mov word [esi], cx
call fcn.004287b0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041919a
mov esp, ebp
pop ebp
ret
push 0x400
lea ecx, [ebp - 0x814]
xor eax, eax
push ecx
push eax
mov word [ebp - 0x814], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x814]
push edx
call fcn.00428270
mov edi, dword [ebp + 0xc]
add esp, 4
push esi
xor ecx, ecx
push edi
mov word [ebp + eax*2 - 0x814], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x814]
push edx
call fcn.00428230
add esp, 4
push edi
lea eax, [ebp + eax*2 - 0x814]
push esi
push eax
call fcn.0042d8d0
jmp 0x42f798

Function at 0x42f820
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push 0xd
call edi
mov ebp, eax
test ebp, ebp
je 0x42f8a1
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x42f8eb
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f855
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
lea ecx, [edi + edi]
push ecx
call fcn.00429cd0
mov esi, eax
add esp, 4
test esi, esi
je 0x42f8eb
cmp ebx, esi
je 0x42f8eb
push edi
xor edx, edx
push esi
push ebx
mov word [esi], dx
call fcn.004287b0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push 1
call edi
mov ebp, eax
test ebp, ebp
je 0x42f8f2
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x42f8eb
lea edx, [eax + 1]
jmp 0x42f8c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f8c0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
call fcn.00429cd0
mov esi, eax
add esp, 4
test esi, esi
je 0x42f8eb
push 0
push edi
push esi
push ebx
call fcn.00428710
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x42f990
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2018
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x2014], eax
push ebx
mov ebx, dword [esp + 0x2020]
push ebp
mov ebp, dword [esp + 0x2028]
push esi
push edi
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x42f9cf
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
jmp 0x42f9d1
xor eax, eax
lea edi, [eax + 1]
lea eax, [esp + 0x18]
push 0x2002
mov ecx, eax
push 0
push ecx
mov dword [esp + 0x2028], eax
mov dword [esp + 0x202c], 0x2002
call fcn.00419120
lea esi, [edi + edi + 2]
add esp, 0xc
cmp esi, dword [esp + 0x2020]
jbe 0x42fa3f
lea edx, [esp + 0x18]
cmp dword [esp + 0x201c], edx
je 0x42fa26
lea eax, [esp + 0x201c]
push eax
call fcn.00429d00
add esp, 4
push esi
mov dword [esp + 0x2024], esi
call fcn.00429cd0
add esp, 4
mov dword [esp + 0x201c], eax
jmp 0x42fa46
mov eax, dword [esp + 0x201c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x42fa9e
test ebx, ebx
je 0x42fa5f
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
jmp 0x42fa66
xor ecx, ecx
mov word [eax], cx
mov edi, ecx
test ebp, ebp
je 0x42fa95
mov esi, dword [esp + 0x2034]
mov byte [ebp], 0
test esi, esi
jle 0x42fa95
mov edx, dword [esp + 0x14]
push 0
push 0
dec esi
push esi
push ebp
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + ebp], 0
mov eax, dword [esp + 0x201c]
jmp 0x42faa2
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x42faba
lea edx, [esp + 0x201c]
push edx
call fcn.00429d00
add esp, 4
mov ecx, dword [esp + 0x2024]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041919a
add esp, 0x2018
ret

Function at 0x42fe50
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x2010
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2018]
mov eax, ebx
push esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fe76
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jl 0x42ff1e
push edi
lea eax, [esp + 0xc]
push 0x2002
mov ecx, eax
push 0
push ecx
add esi, 8
mov dword [esp + 0x201c], eax
mov dword [esp + 0x2020], 0x2002
call fcn.00419120
add esp, 0xc
push esi
lea ecx, [esp + 0x10]
call fcn.0042b010
mov edi, eax
test edi, edi
je 0x42fedc
push esi
push edi
push ebx
call fcn.0042c6d0
add esp, 0xc
jmp 0x42fede
mov edi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [esp + 0xc]
mov esi, eax
pop edi
cmp dword [esp + 0x200c], edx
je 0x42ff05
lea eax, [esp + 0x200c]
push eax
call fcn.00429d00
add esp, 4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x2014]
pop esi
pop ebx
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret
Function at 0x42ff40
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x2010
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2018]
mov eax, ebx
push esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ff66
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jl 0x430016
push edi
lea eax, [esp + 0xc]
push 0x2002
mov ecx, eax
push 0
push ecx
add esi, 8
mov dword [esp + 0x201c], eax
mov dword [esp + 0x2020], 0x2002
call fcn.00419120
add esp, 0xc
push esi
lea ecx, [esp + 0x10]
call fcn.0042b010
mov edi, eax
test edi, edi
je 0x42ffcc
push esi
push edi
push ebx
call fcn.0042c6d0
add esp, 0xc
jmp 0x42ffce
mov edi, ebx
mov edx, dword [esp + 0x2024]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
lea eax, [esp + 0xc]
pop edi
cmp dword [esp + 0x200c], eax
je 0x42fffd
lea ecx, [esp + 0x200c]
push ecx
call fcn.00429d00
add esp, 4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret
mov edx, dword [esp + 0x2020]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x2014]
pop esi
pop ebx
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret

Function at 0x430040
Capabilities:
Create directory

Disassembly:
mov eax, 0x2010
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x200c], eax
push edi
mov edi, dword [esp + 0x2018]
test edi, edi
je 0x43015d
cmp word [edi], 0
je 0x43015d
push ebp
mov eax, edi
push esi
mov ebp, edi
lea edx, [eax + 2]
jmp 0x430080
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430080
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esp + 0xc]
push 0x2002
mov ecx, eax
push 0
push ecx
mov dword [esp + 0x201c], eax
mov dword [esp + 0x2020], 0x2002
call fcn.00419120
add esp, 0xc
cmp esi, 0x104
jl 0x4300e3
push ebx
add esi, 8
push esi
lea ecx, [esp + 0x14]
call fcn.0042b010
mov ebx, eax
test ebx, ebx
je 0x4300e2
push esi
push ebx
push edi
call fcn.0042c6d0
add esp, 0xc
mov edi, ebx
pop ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x430124
push 0x20
call fcn.0042a330
mov esi, eax
add esp, 4
cmp esi, 0xa1
jne 0x430126
cmp word [ebp], 0x5c
jne 0x430126
cmp word [ebp + 2], 0x5c
jne 0x430126
push 0x5c
add ebp, 4
push ebp
call fcn.0041979e
add esp, 8
test eax, eax
jne 0x430126
xor esi, esi
lea edx, [esp + 0xc]
cmp dword [esp + 0x2010], edx
je 0x430143
lea eax, [esp + 0x2010]
push eax
call fcn.00429d00
add esp, 4
mov eax, esi
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret
mov ecx, dword [esp + 0x2010]
pop edi
xor ecx, esp
mov eax, 0x57
call fcn.0041919a
add esp, 0x2010
ret
Function at 0x430180
Capabilities:
Delete directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bcab
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2810
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x4302fa
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4301d0
sub eax, edx
sar eax, 1
mov esi, eax
je 0x4301fc
movzx eax, word [edi + esi*2 - 2]
dec esi
push eax
call fcn.0040b6f0
add esp, 4
test eax, eax
je 0x4301fc
xor ecx, ecx
mov word [edi + esi*2], cx
cmp word [edi], 0
je 0x4302fa
mov eax, edi
lea edx, [eax + 2]
jmp 0x430210
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430210
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x2820]
push 0x2002
mov esi, eax
mov eax, edx
push 0
push eax
mov dword [ebp - 0x81c], edx
mov dword [ebp - 0x818], 0x2002
call fcn.00419120
add esp, 0xc
cmp esi, 0x104
mov byte [ebp - 4], 1
jl 0x430277
add esi, 8
push esi
lea ecx, [ebp - 0x2820]
call fcn.0042b010
mov ebx, eax
test ebx, ebx
je 0x430277
push esi
push ebx
push edi
call fcn.0042c6d0
add esp, 0xc
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call ebx
test eax, eax
jne 0x4302d9
push 0x20
call fcn.0042a330
mov esi, eax
add esp, 4
cmp esi, 5
je 0x4302c7
cmp esi, 0x20
jne 0x4302db
lea ecx, [ebp - 0x814]
push 0x400
push ecx
call fcn.0040acc0
add esp, 8
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x4302d2
push 0x10
push edi
call fcn.0042ff40
add esp, 8
push edi
call ebx
test eax, eax
je 0x4302db
xor esi, esi
lea eax, [ebp - 0x2820]
cmp dword [ebp - 0x81c], eax
je 0x4302ff
lea ecx, [ebp - 0x81c]
push ecx
call fcn.00429d00
add esp, 4
jmp 0x4302ff
mov esi, 0x57
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041919a
mov esp, ebp
pop ebp
ret
Function at 0x430320
Capabilities:
Set current directory

Disassembly:
mov eax, 0x2010
call fcn.004196a0
mov eax, dword [0x444fe0]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2018]
mov eax, ebx
push esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430346
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jl 0x4303d3
push edi
lea eax, [esp + 0xc]
push 0x2002
mov ecx, eax
push 0
push ecx
add esi, 8
mov dword [esp + 0x201c], eax
mov dword [esp + 0x2020], 0x2002
call fcn.00419120
add esp, 0xc
push esi
lea ecx, [esp + 0x10]
call fcn.0042b010
mov edi, eax
test edi, edi
je 0x4303a8
push esi
push edi
push ebx
call fcn.0042c6d0
add esp, 0xc
jmp 0x4303aa
mov edi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [esp + 0xc]
mov esi, eax
pop edi
cmp dword [esp + 0x200c], edx
je 0x4303dc
lea eax, [esp + 0x200c]
push eax
call fcn.00429d00
add esp, 4
jmp 0x4303dc
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
test esi, esi
pop esi
pop ebx
je 0x4303f9
xor eax, eax
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jg 0x430447
je 0x43042d
test eax, eax
je 0x43044e
cmp eax, 0xe1
jne 0x430453
mov eax, 0x1e
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret
mov eax, 0x4d3
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret
cmp eax, 0x579
jne 0x430453
mov eax, 0x15
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0041919a
add esp, 0x2010
ret
Function at 0x430cb0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x80
push 3
push 1
mov esi, ecx
push 0x80000000
push esi
push eax
call fcn.004306b0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x430d40
mov edx, dword [esi]
push ebx
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push edi
mov ebx, eax
mov eax, dword [esp + 0x18]
push edi
push eax
call fcn.004197f0
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x14], edx
mov edx, eax
or edx, dword [esi + 0x14]
mov dword [esi + 0x10], eax
pop ebx
je 0x430d47
mov eax, dword [esi]
push ecx
push ecx
push ecx
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x430d33
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x430d47
mov ecx, esi
call fcn.0042b4f0
mov edi, eax
test edi, edi
je 0x430d47
mov ecx, esi
call fcn.00427870
mov eax, edi
pop edi
pop esi
ret 4