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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x5ca60
cmp dword [esi + 4], 0xffffffff
jne 0x5ca60
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5c9f2
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x5ca23
cmp al, 0x2f
je 0x5ca23
dec edi
nop dword [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x5ca10
mov ax, word [0x77c10]
mov word [edi], ax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0005b6c0
add esp, 8
pop edi
test eax, eax
jne 0x5ca42
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.0005bb40
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5d0f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x5d122
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5d122
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x5d1e8
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x5d139
cmp al, 0x5c
jne 0x5d13b
mov edi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x5d131
cmp edi, ebx
je 0x5d17b
sub edi, ebx
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.0006ec20
add esp, 0xc
cmp edi, 0x104
jae 0x5d1f8
lea edx, [ebp - 0x20c]
mov byte [ebp + edi - 0x20c], 0
mov ecx, esi
call fcn.0005d0f0
mov byte [ebp - 0x108], 0
test esi, esi
je 0x5d19d
lea ecx, [ebp - 0x108]
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5d190
mov esi, ebx
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5d1a0
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5d1b0
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
jne 0x5d1e8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0005e04d
mov esp, ebp
pop ebp
ret
call fcn.0005e480
int3
Function at 0x5dd00
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x5ddd7
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x5dd34
cmp dword [esi + 0x40], ebx
jae 0x5dd34
push eax
call fcn.0005e09f
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x5dd4c
lea eax, [ebx + ebx]
push eax
call fcn.0005e0a4
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.0006ec20
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x5ddd4
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x77240]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x77240]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x5dd62
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x5de15
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x5ddfc
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.0006ec20
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x5de37
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8

Function at 0x6783a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.000674fa
Function at 0x10002b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002b61
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002b22
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x4016e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe08
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0xbd4]
call fcn.00402f20
push 0
push 0
lea ecx, [ebp - 0xbd4]
call fcn.00403450
push 0x42e694
lea ecx, [ebp - 0xbd4]
call fcn.00403550
lea ecx, [ebp - 0xbb8]
call fcn.00403630
lea ecx, [ebp - 0xbb8]
call fcn.004036e0
xor eax, eax
mov word [ebp - 0xe00], ax
push 0x206
push 0
lea ecx, [ebp - 0xdfe]
push ecx
call fcn.00416d60
add esp, 0xc
mov esi, 0x434f90
call fcn.00403910
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401f20
test eax, eax
je 0x40177e
call fcn.004047f0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x64
push 0x437c10
push 0x67
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x437b48
push 0x6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401990
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401a10
add esp, 8
test eax, eax
jne 0x4017ef
mov dword [ebp - 0xe04], 0
lea ecx, [ebp - 0xbb8]
call fcn.004036d0
lea ecx, [ebp - 0xbd4]
call fcn.00402f50
mov eax, dword [ebp - 0xe04]
jmp 0x40197d
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 0xbd8], eax
cmp dword [0x438358], 0
jbe 0x401836
movzx edx, word [0x43835c]
test edx, edx
jle 0x401836
mov eax, dword [0x438358]
push eax
mov esi, str.218.54.31.226
call fcn.00404f40
add esp, 4
mov cx, word [0x43835c]
mov word [0x434fac], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0xbbc], edx
mov edx, dword [ebp - 0xbbc]
push edx
push str.tmp4_X.exe
push 0x4388d0
call fcn.00402eb0
add esp, 0xc
call fcn.00405020
lea esi, [ebp - 0xe00]
call fcn.00404fc0
push 0x42e6b0
push 0x104
lea eax, [ebp - 0xe00]
push eax
call fcn.004147dd
add esp, 0xc
push 0x4388d0
push 0x104
lea ecx, [ebp - 0xe00]
push ecx
call fcn.004147dd
add esp, 0xc
lea edx, [ebp - 0xe00]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4018e6
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x42e6b4
lea eax, [ebp - 0xe00]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.00401290
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004147ce
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x22], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x22], 0
jne 0x40356f
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
jne 0x403598
xor eax, eax
jmp 0x403622
push 0x42e54c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00414d0a
add esp, 0xc
test eax, eax
je 0x4035b5
xor eax, eax
jmp 0x403622
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
mov dx, word [0x42e554]
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
add ecx, 0xe
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xa], 0x36
mov edx, dword [ebp - 4]
push edx
push 1
push 0xe
lea eax, [ebp - 0x14]
push eax
call fcn.00414ebf
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call fcn.00414ebf
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00414fb8
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4036e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x248], 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403746
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], 0xffffffff
jmp 0x4038e0
push 0x22c
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.00416d60
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 1
je 0x4037a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], 0xfffffffe
jmp 0x4038e0
mov dword [ebp - 0x250], 0
jmp 0x4037c0
mov eax, dword [ebp - 0x250]
add eax, 1
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x250]
cmp edx, dword [ecx]
jge 0x403886
mov eax, dword [ebp - 0x250]
shl eax, 7
mov ecx, dword [ebp - 0x254]
lea edx, [ecx + eax + 4]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.004151cc
add esp, 8
test eax, eax
jne 0x403881
mov dword [ebp - 0x23c], 1
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x250]
mov dword [ecx + 0xa0c], edx
lea eax, [ebp - 0x214]
push eax
push 0x40
mov ecx, dword [ebp - 0x254]
add ecx, 0xa14
push ecx
call fcn.0041485a
add esp, 0xc
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x230]
mov dword [edx + 0xa10], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0xa0c]
shl edx, 7
mov eax, dword [ebp - 0x254]
lea ecx, [eax + edx + 0x504]
push ecx
push 0x40
mov edx, dword [ebp - 0x254]
add edx, 0xa98
push edx
call fcn.0041485a
add esp, 0xc
jmp 0x403886
jmp 0x4037b1
cmp dword [ebp - 0x23c], 0
je 0x403891
jmp 0x4038e0
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 1
je 0x4038d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0x12
je 0x4038d1
mov dword [ebp - 0x248], 0xfffffffd
jmp 0x4038e0
jmp 0x4038e0
mov edx, 1
test edx, edx
jne 0x4037a5
cmp dword [ebp - 4], 0xffffffff
je 0x4038f0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004147ce
mov esp, ebp
pop ebp
ret
Function at 0x403910
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [esi], 0
call fcn.00416d60
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403a0a
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4039d7
mov eax, dword [esp + 8]
test eax, eax
jne 0x403993
cmp word [esp + 0x114], 4
jb 0x403a0a
mov dword [esi], 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004147ce
add esp, 0x120
ret
cmp eax, 2
jne 0x4039b5
mov dword [esi], eax
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004147ce
add esp, 0x120
ret
jae 0x4039bc
cmp eax, 1
jne 0x403a0a
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004147ce
add esp, 0x120
ret
cmp eax, 6
jne 0x403a0a
mov eax, dword [esp + 8]
test eax, eax
jne 0x4039ff
mov dword [esi], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004147ce
add esp, 0x120
ret
cmp eax, 1
jne 0x403a0a
mov dword [esi], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004147ce
add esp, 0x120
ret

Function at 0x403ad0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416d60
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x403b9f
mov eax, str.golfinfo.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403b15
sub eax, edx
sar eax, 1
je 0x403b9f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004147dd
push 0x42e884
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00414d0a
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x403b9f
push eax
push 1
push 0x200
push esi
call fcn.00415ccd
mov eax, dword [esp + 0x14]
push eax
call fcn.00414fb8
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004147ce
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004147ce
add esp, 0x214
ret
Function at 0x403bc0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416d60
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x403cc5
mov eax, str.golfset.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403c05
sub eax, edx
sar eax, 1
je 0x403cc5
cmp dword [0x434f90], 3
jne 0x403c4c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42e88c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004147dd
add esp, 0xc
jmp 0x403c5c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfset.ini
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.004147dd
push 0x42e884
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00414d0a
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x403cc5
push eax
push 1
push 0x200
push esi
call fcn.00415ccd
mov edx, dword [esp + 0x14]
push edx
call fcn.00414fb8
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004147ce
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004147ce
add esp, 0x214
ret

Function at 0x403ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00416d60
add esp, 0xc
cmp dword [0x434f90], 3
jne 0x403d40
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42e88c
lea eax, [esp + 4]
push 0x104
push eax
call fcn.004147dd
add esp, 0xc
jmp 0x403d4f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x42e890
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.004147ce
add esp, 0x20c
ret

Function at 0x403f30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00416d60
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00404170
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00404280
pop ebx
cmp eax, 0xffffffff
jne 0x403fb2
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004147ce
add esp, 0x210
ret
push esi
call fcn.00403e50
mov ecx, dword [esp + 0x210]
add esp, 4
xor ecx, esp
call fcn.004147ce
add esp, 0x210
ret
Function at 0x403fd0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x4040ee
push 0xb69
call fcn.0040a364
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xb69
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4040e1
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x404049
jg 0x40403d
test ecx, ecx
jbe 0x404049
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x40404d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x404077
jg 0x404063
cmp ecx, edx
jbe 0x404077
mov ebx, dword [esi + 0xc1]
mov ebp, dword [esi + 0xc5]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x146]
cmp eax, edi
mov ecx, dword [esi + 0x142]
jl 0x4040a1
jg 0x40408d
cmp ecx, edx
jbe 0x4040a1
mov ebx, dword [esi + 0x14a]
mov ebp, dword [esi + 0x14e]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1cf]
cmp eax, edi
mov ecx, dword [esi + 0x1cb]
jl 0x4040cb
jg 0x4040b7
cmp ecx, edx
jbe 0x4040cb
mov ebx, dword [esi + 0x1d3]
mov ebp, dword [esi + 0x1d7]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00418b70
mov dword [esp + 0x10], eax
test esi, esi
je 0x4040ee
push esi
call fcn.0040a393
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x404110
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x404161
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret

Function at 0x4043c0
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 4], 0
je 0x4043d4
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42e88c
push 0x104
push esi
call fcn.004147dd
add esp, 0xc
ret
Function at 0x404400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov ebx, 1
push esi
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.004148db
sub esi, dword [ebp + 8]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
fmul qword [0x42ec18]
fild dword [esp + 0x10]
fmulp st(1)
fiadd dword [ebp + 8]
call fcn.00418a80
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x404533
lea ebx, [ebx]
call fcn.004148db
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x42ec18]
fmul qword [0x42ec28]
fadd qword [0x42ec20]
call fcn.00418a80
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x40451d
add ecx, ebx
cmp ecx, 0x1a
jne 0x40450e
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x404505
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [ebp + 0xc]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, dword [esp + 0x14]
jl 0x4044d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret