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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c87a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x642ff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 4], 0
push dword [0x653eb4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x432a7f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x432a7f
mov eax, dword [ecx + 8]
test eax, eax
je 0x432a7f
mov dword [ecx + 8], 0
mov cl, byte [eax]
cmp cl, 0xe
jb 0x432a76
mov byte [eax + 0x38], cl
jmp 0x432a8d
push eax
call fcn.0043dbf0
add esp, 4
push 0x39
call fcn.0043dbb9
add esp, 4
mov byte [eax + 0x38], 0xe
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
test eax, eax
je 0x432aa9
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.00432c70
jmp 0x432aab
xor eax, eax
lea ecx, [ebp - 0x18]
mov dword [esi], eax
mov dword [ebp - 0x14], 0
call fcn.00432bd0
lea ecx, [ebp + 8]
call fcn.0042fe50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x34

Function at 0x432bd0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x432bea
add ecx, 4
call fcn.0042fe50
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x432c30
push dword [0x653eb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x432c20
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x432c20
cmp dword [ecx + 8], 0
jne 0x432c20
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.0043dbf0
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x432ff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c884e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x642ff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 4], 0
push dword [0x653eb4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433060
mov eax, dword [eax + 4]
test eax, eax
je 0x433060
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x433060
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xe
jb 0x433057
mov byte [ecx + 0x38], al
jmp 0x433070
push ecx
call fcn.0043dbf0
add esp, 4
push 0x39
call fcn.0043dbb9
mov ecx, eax
add esp, 4
mov byte [ecx + 0x38], 0xe
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x4330d8
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
movq xmm0, qword [ebp + 0xc]
movq qword [ecx + 8], xmm0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0x20], eax
movq xmm0, qword [ebp + 0x28]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
movq qword [ecx + 0x24], xmm0
mov eax, dword [ebp + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ecx + 0x30], eax
mov dword [ecx], 0x433340
jmp 0x4330da
xor ecx, ecx
mov dword [edi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00433280
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x43311a
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x43311a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x43311a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x433130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c884e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x642ff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 4], 0
push dword [0x653eb4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4331a0
mov eax, dword [eax + 4]
test eax, eax
je 0x4331a0
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4331a0
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xe
jb 0x433197
mov byte [ecx + 0x38], al
jmp 0x4331b0
push ecx
call fcn.0043dbf0
add esp, 4
push 0x39
call fcn.0043dbb9
mov ecx, eax
add esp, 4
mov byte [ecx + 0x38], 0xe
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x433218
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
movq xmm0, qword [ebp + 0xc]
movq qword [ecx + 8], xmm0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0x20], eax
movq xmm0, qword [ebp + 0x28]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
movq qword [ecx + 0x24], xmm0
mov eax, dword [ebp + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ecx + 0x30], eax
mov dword [ecx], 0x433440
jmp 0x43321a
xor ecx, ecx
mov dword [edi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00433280
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x43325a
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x43325a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x43325a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x433280
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6676
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x642ff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x4332e4
mov dword [ebp - 4], 0
mov esi, dword [esi + 0x20]
test esi, esi
je 0x4332dd
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4332dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4332dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x433322
push dword [0x653eb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433312
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x433312
cmp dword [ecx + 8], 0
jne 0x433312
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [ecx + 8], esi
jmp 0x43331b
push esi
call fcn.0043dbf0
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434d30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8c0e
mov eax, dword fs:[0]
push eax
sub esp, 0x640
push ebx
push esi
push edi
mov eax, dword [0x642ff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
cmp dword [esi + 8], 0x640
jne 0x434e2f
mov esi, dword [esi + 4]
lea edi, [ebp - 0x64c]
add esi, 8
mov ecx, 0x190
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x64c], 0
je 0x434e2f
mov edi, dword [ebx + 0x80]
lea esi, [ebp - 0x64c]
add edi, 0x978
mov ecx, 0x190
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x80]
test byte [eax + 0x97c], 1
je 0x434dc1
call fcn.004102f0
mov eax, dword [ebx + 0x80]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
test byte [eax + 0x97c], 0x10
je 0x434dfa
push 0x200000
push 0x618570
push 0x6185b8
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov eax, dword [ebx + 0x80]
test dword [eax + 0x97c], 0x200
je 0x434e2a
push 0x200000
push 0x618570
push 0x61858c
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
call fcn.0040f8d0
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x434e5e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x434e5e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x434e5e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x434e80
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c631e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x642ff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
call fcn.00406120
mov dword [esi + 0x30], eax
add edi, 0x1c
mov dword [esi + 0x34], edx
mov ecx, 0x65
push edi
mov eax, dword [edi + 0xc]
mov dword [edi + 8], 0
mov word [eax], cx
mov ecx, dword [edi + 0xc]
mov ax, word [edi + 8]
mov word [ecx + 2], ax
mov eax, dword [edi + 0xc]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
call fcn.00433e20
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x434f1d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x434f1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x434f1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x437d50
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x6189f4
push 1
mov edi, ecx
mov dword [ebp - 4], 0
push 0
push 0x6189e4
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x437d94
push esi
push 0x618748
jmp 0x437dc5
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x437daf
push esi
push 0x61876c
jmp 0x437dc5
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x437dcd
push esi
push 0x6187d0
call fcn.00437d20
add esp, 8
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x437dda
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x437de7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438370
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov eax, 2
mov dword [ebp - 0x18], ebx
push 0x618b38
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetBestInterfaceEx]
test eax, eax
je 0x4383d4
push eax
push 0x618bb8
call fcn.00437d20
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00582166
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x43845a
push dword [ebp - 0x18]
call fcn.0058fa74
mov esi, eax
add esp, 4
test esi, esi
jne 0x43840d
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00582166
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 0
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
jne 0x438451
mov ecx, dword [ebp - 0x1c]
mov eax, esi
cmp dword [eax + 4], ecx
je 0x438435
mov eax, dword [eax + 8]
test eax, eax
jne 0x438427
jmp 0x438451
push 0x104
push dword [ebp - 0x20]
push 0xffffffffffffffff
push dword [eax + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, 1
push esi
call fcn.0058b897
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x438680
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x618a7c
xor ebx, ebx
mov esi, ecx
push 0x618a60
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push 0x618bd8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x438758
push edi
push 0x828
call fcn.0043dbf5
mov edi, eax
add esp, 4
test edi, edi
je 0x438754
push 0x828
push ebx
push edi
call fcn.00588950
add esp, 0xc
lea eax, [ebp - 0x18]
push ebx
push eax
push 0x826
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
test eax, eax
je 0x438749
cmp dword [ebp - 0x18], ebx
jbe 0x438749
mov eax, dword [edi + 0x10]
test eax, eax
je 0x438749
cmp eax, 0xffffffff
je 0x438749
lea ecx, [eax + edi]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x438736
mov ebx, 1
push 0x28
push edi
call fcn.0058263a
add esp, 8
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x438768
cmp eax, 0xffffffff
je 0x438768
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x438860
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9200
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x642ff4]
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 esi, ecx
push 0x114
lea eax, [ebp - 0x168]
mov dword [ebp - 0x16c], 0x10
push 0
push eax
call fcn.00588950
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [esi + 0x44c]
call fcn.00438100
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], 0x10
push eax
lea eax, [esi + 0x582]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], 0x105
push eax
lea eax, [esi + 0x592]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00588950
add esp, 0xc
mov dword [ebp - 0x54], 0x40
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x438946
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
shrd ecx, eax, 0x14
shr eax, 0x14
mov eax, dword [ebp - 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x44]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [esi + 8], ecx
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x180]
push 0x114
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.00588950
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
mov dword [ebp - 0x168], 0x114
push 0x618a40
push 0x618aa4
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x4389a4
lea ecx, [ebp - 0x168]
push ecx
call eax
mov eax, dword [ebp - 0x164]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x160]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0x18], eax
call fcn.00406120
lea ecx, [esi + 0x697]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
call fcn.00438680
call fcn.00438470
mov dword [esi + 0x34], edx
lea ecx, [esi + 0x47d]
lea edx, [esi + 0x1c]
mov dword [esi + 0x30], eax
call fcn.00438780
call fcn.00438180
test eax, eax
je 0x4389fb
or dword [esi + 0x38], 1
call fcn.00438220
test eax, eax
je 0x438a08
or dword [esi + 0x38], 0x20
push 0x618ac8
push 0x618a60
call edi
push eax
call ebx
test eax, eax
je 0x438a25
call eax
test eax, eax
je 0x438a25
or dword [esi + 0x38], 0x40
push 0x618a50
push 0x618a60
mov dword [ebp - 0x170], 0
call edi
push eax
call ebx
mov edi, eax
test edi, edi
je 0x438a54
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x170], 0
je 0x438a64
or dword [esi + 0x38], 0x800
call fcn.004382f0
test al, al
je 0x438a74
or dword [esi + 0x38], 0x8000
xor eax, eax
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.00582166
mov esp, ebp
pop ebp
ret
Function at 0x438aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x438b0a
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x438b0a
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438ad0
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
je 0x438b0a
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x438af0
mov eax, dword [0x618b80]
mov dword [edi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x438b20
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x642ff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
xor edi, edi
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
xor esi, esi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
nop word [eax + eax]
push 0x206
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00588950
mov ax, word [esi + 0x618b84]
push 0x618c00
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0058fd93
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x438c11
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x438c11
mov ecx, dword [ebp - 0x214]
cmp ecx, edi
jb 0x438c11
mov eax, dword [ebp - 0x218]
ja 0x438bf3
cmp eax, ebx
jbe 0x438c11
mov ebx, eax
mov edi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
push dword [ebp - 0x21c]
call fcn.00590fc1
add esp, 0xc
add esi, 2
cmp esi, 0x30
jb 0x438b70
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x438c30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x62c260
push 0x589440
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x642ff4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x438c71
sub edx, ecx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
call fcn.0058fa74
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x438e00
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438ca2
sub ecx, edx
sar ecx, 1
lea edx, [ecx + 1]
test edx, edx
je 0x438cca
cmp edx, 0x7fffffff
ja 0x438cca
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004380b0
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x438d35
cmp word [edi + 2], 0x5c
jne 0x438d35
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop
movzx eax, word [esi]
test ax, ax
je 0x438d07
cmp eax, 0x5c
je 0x438d07
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x438cf0
cmp word [esi], 0
je 0x438d13
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x438d27
cmp eax, 0x5c
je 0x438d27
push esi
call ebx
mov esi, eax
jmp 0x438d10
cmp word [esi], 0
je 0x438d61
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x438d61
cmp word [edi + 2], 0x3a
jne 0x438d5b
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x438d5b
cmp eax, 0x5c
jne 0x438d5b
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
movzx eax, word [esi]
test ax, ax
je 0x438db2
cmp eax, 0x5c
jne 0x438da8
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x438d9c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x438da0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x438da0
push edi
jmp 0x438df8
test al, 0x10
je 0x438d99
mov eax, 0x5c
mov word [esi], ax
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x438d61
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.0058b897
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0058b897
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret