joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00465b50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x465b3c
cmp dword [ebp - 4], 0x50000000
jb 0x465abc
cmp dword [ebp - 4], 0x80000000
ja 0x465abc
mov dword [ebp - 4], 0x80010000
jmp 0x465a95
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00451520
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x465ae2
jmp 0x465b3c
cmp dword [ebp - 0x10], 0x10000
jne 0x465b25
cmp dword [ebp - 0x14], 0x10000
jb 0x465b25
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x465b18
mov eax, dword [ebp - 0x24]
jmp 0x465b3e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x465b37
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00465b50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x465a95
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x465b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00465c50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x465c44
cmp dword [ebp - 4], 0x50000000
jb 0x465bc1
cmp dword [ebp - 4], 0x80000000
ja 0x465bc1
mov dword [ebp - 4], 0x4fff0000
jmp 0x465b9a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00451520
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x465be7
jmp 0x465c44
cmp dword [ebp - 0x10], 0x10000
jne 0x465c2a
cmp dword [ebp - 0x14], 0x10000
jb 0x465c2a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x465c1d
mov eax, dword [ebp - 0x24]
jmp 0x465c46
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x465c3f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00465c50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x465b9a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x465c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4965cc], eax
je 0x465ca5
mov eax, 0x10dd
jmp 0x465e3d
cmp dword [0x4965d0], 0
je 0x465cb8
mov eax, dword [0x4965d0]
jmp 0x465e3d
cmp dword [ebp + 8], 0
jne 0x465cc8
mov eax, 6
jmp 0x465e3d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x465cf1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x4965d0], ecx
mov edx, dword [ebp + 8]
mov dword [0x4965d4], edx
mov eax, dword [ebp - 0xc]
jmp 0x465e3d
push 0x18
call fcn.00421756
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x465d4a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x4965d0], ecx
cmp dword [ebp - 0x18], 0
je 0x465d39
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00421790
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x4965d4], ecx
mov eax, dword [ebp - 0xc]
jmp 0x465e3d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00464700
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00464700
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x465d8a
cmp dword [ebp - 8], 0x1e
jbe 0x465da6
mov dword [ebp - 0xc], 9
cmp dword [0x4965c4], 0
je 0x465da1
jmp 0x465d1a
jmp 0x465d11
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x465dcd
mov dword [ebp - 0xc], 9
cmp dword [0x4965c4], 0
je 0x465dc8
jmp 0x465d1a
jmp 0x465d11
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x465dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x465d11
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4965dc]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x4965dc], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0xf98ad3
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
jae 0xf98a8a
retf
lds esi, [edx]
aad 0x16
inc ecx
cmc
test dword [esi + 0x56], edi
jle 0xf98ae2
lcall 0x1bb1, 0xe2cee2a6
push ss
into
loop 0xf98a43
sbb edx, dword [esi]
fxch st(4)
sub dword [ebx], 0x1b
add dh, byte [edx - 0x1d]
inc esi
sbb dword [edx + 8], ebx
imul esi, dword [ebp - 0x5b], 0xffffff8a
inc eax
cmp ebx, dword [edx - 0x15723591]
mov edx, 0xffaa9eb2
mov eax, dword [0xaf043990]
nop
cmp dword [edi + ebp*4], eax
xchg esp, eax
xor al, 0x89
out 0xa2, eax
adc dword [esi], edx
mov bh, byte [ebp + 0x28]
aas
sahf
jns 0xf98b08
das
test al, 0x61
aas
and cl, byte [ecx + 0x7e30d772]
jb 0xf98ab2
invalid
dec dl
bt ax, di
cmp edi, eax
push word [esp + 0x30]
popf
call fcn.01b3e6ae
cdq
out 0x2b, al
int 0x2e
mov edx, 0xb85f01a9
movsb byte es:[edi], byte [esi]
jle 0xf98a83
jo 0xf98a8f
scasd eax, dword es:[edi]
dec edx
fnstcw word [edi + ecx*8 + 0x38]
enter 0xffffffffffffd3d9, 0x20
test al, 0x35
fistp dword [esi]
sbb eax, 0xa8141b38
mov eax, dword [0xfa130005]
fstp xword [esi + 0x2e5b7514]
test al, 0xa1
add eax, 0xdbfa1300
mov esi, 0x2e5b7514
jl 0xf98b72
cmp eax, 0x58072098
push ecx
cwde
push edi
ret
cmp edi, dword [ebx + 0x58d0be16]
fld dword [ebp + 0x692626a2]
mov byte [0x43a8b9a6], al
outsd dx, dword [esi]
push ebx
or dword gs:[ebx], 0x895e416b
cwde
xor byte [eax + 0x7b], dh
push edx
and eax, 0x9168b187
mov dl, bl
fsubr st(0)
xor eax, edx
fld qword [ebx - 0x6f]
out 0x9a, al
popal
bound edx, qword [ecx - 7]
sahf
mov al, byte [0x645072c9]
invalid
Function at 0x41304a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x414c30
push 1
xor ebx, ebx
push ebx
push 0x414ce0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41311b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x414cd0
push eax
call dword [ecx]
test eax, eax
jl 0x413112
cmp byte [ebp + 8], bl
je 0x41309d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x4130ba
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4130cc
push 0x41437c
jmp 0x4130cf
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x4130e4
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4130f5
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x413109
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x413135
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x4672ad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
bt bp, di
cmp eax, dword [ebp - 0x10]
call fcn.004a61a3
add byte [eax], al
push esi
jb 0x467310
jne 0x467326
jb 0x46733c
push esi
popal
insb byte es:[edi], dx
jne 0x46732d
inc ecx
add byte [eax], al
add byte [edx + esi*2 + 0x61], al
ja 0x46731e
outsb dx, byte gs:[esi]
jne 0x467317
popal
jb 0x4672d8
aad 0x8d
test byte [ebx + 0xabc], dl
add al, ch
cdq
fiadd dword [ebx]
add byte [eax], al
add byte [edi + 0x65], al
je 0x46737a
outsd dx, dword [esi]

Function at 0x4a9fa6
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 8]
ja 0x4a9eee
rdtsc
rdtsc
aad 0x99
movzx dx, cl
mov edx, esp
adc al, ch
test bl, al
lea ecx, [edi + 0x40]
aad 0x5d
call fcn.004aa0c1
pushfd
mov dword [ebp], edx
jmp 0x4a9ceb
Function at 0x401d40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffeb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x401da1
mov ecx, dword [eax + 0x1b4]
mov esi, dword [eax + 0x1b8]
mov eax, dword [eax + 0x1bc]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x401d7f
push 0
push ecx
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x401d88
push 0
push eax
call ebx
test esi, esi
je 0x401da1
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x4259d8
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi]
test eax, eax
jne 0x401dbe
mov ecx, edi
call fcn.00401ab0
push 5
mov ecx, edi
call fcn.00401a40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push eax
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401dd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x30
lea eax, [ebp - 0x34]
mov edi, ecx
push 0
push eax
call fcn.00417510
mov eax, dword [0x42d66c]
add esp, 0xc
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x401c90
push 5
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x7f00
lea esi, [edi + 0x10]
mov dword [ebp - 0x14], eax
push 0
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [0x42d66c]
push 0
push dword [edi + 4]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x4258c8
push esi
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi], eax
test eax, eax
jne 0x401e83
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c9e
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00401bc0
mov ecx, edi
call fcn.004018d0
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00410c9e
mov esp, ebp
pop ebp
ret
Function at 0x402d50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x402d7b
push 0x425b4c
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi + 4]
test edi, edi
je 0x402daa
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x408
push edi
call esi
inc eax
mov ecx, 0x64
cmp eax, ecx
push 0
cmovg eax, ecx
push eax
push 0x402
push edi
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00417510
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrIW]
mov ecx, dword [0x42d670]
add eax, 2
mov dword [ebp - 0x218], eax
mov edx, str.SOFTWARE4997SBox
mov eax, str.SOFTWARE_smallbox
cmp dword [ecx + 0x38], 0
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x214]
cmove eax, edx
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
mov dword [ebp - 0x21c], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402e7a
push dword [ebp - 0x218]
call ebx
add eax, eax
push eax
push dword [ebp - 0x218]
push 1
push 0
push str.InstallName
push dword [ebp - 0x214]
call edi
push dword [ebp - 0x214]
call esi
call fcn.004056a0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0x21c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402edf
push dword [ebp - 0x214]
call ebx
add eax, eax
push eax
push dword [ebp - 0x214]
push 1
push 0
push str.InstallPath
push dword [ebp - 0x218]
call edi
push dword [ebp - 0x218]
call esi
call fcn.004054b0
mov esi, eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0x21c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402f3a
push esi
call ebx
add eax, eax
push eax
push esi
push 1
push 0
push str.StartMenuPath
push dword [ebp - 0x214]
call edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410c9e
mov esp, ebp
pop ebp
ret
Function at 0x402f50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42d670]
mov ecx, str.SOFTWARE4997SBox
push ebx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, str.SOFTWARE_smallbox
cmp dword [eax + 0x38], 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmove esi, ecx
cmp dword [eax + 0x40], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push 0x80000002
jne 0x402fb4
mov dword [ebp - 8], 0
call edi
test eax, eax
jne 0x402fd8
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Normal_Online
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0x10]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
mov eax, dword [0x42d670]
mov eax, dword [eax + 0x50]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push 0x80000002
call edi
test eax, eax
jne 0x403021
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Install_Plan
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410c9e
mov esp, ebp
pop ebp
ret
Function at 0x4037f0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x429280]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00417510
add esp, 0xc
lea eax, [esp + 8]
push 0
push 0x23
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 8]
push 0x425dd8
push eax
call esi
push 0x425ddc
lea eax, [esp + 0xc]
push eax
call esi
push dword [edi + 8]
push dword [edi + 4]
call fcn.004056a0
mov ecx, dword [0x42d67c]
push eax
call fcn.004088d0
push dword [edi + 8]
push dword [edi + 4]
call fcn.004054b0
mov ecx, dword [0x42d67c]
push eax
call fcn.004088d0
push dword [edi + 8]
mov ecx, dword [0x42d67c]
lea eax, [esp + 0xc]
push dword [edi + 4]
push eax
call fcn.004088d0
push 0
push ecx
call fcn.004056a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
push eax
call esi
push 0
push ecx
call fcn.004054b0
add esp, 4
push eax
call esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4038da
lea ecx, [esp + 8]
call fcn.004095f0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00410c9e
mov esp, ebp
pop ebp
ret
Function at 0x403e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push ecx
push 0x403d10
push 0
push 0
mov dword [ecx], 0x404f50
call fcn.004111f3
mov esi, eax
add esp, 0x18
mov eax, 0x404f50
test eax, eax
jne 0x403e8b
test esi, esi
je 0x403e8b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x403e8b
cmp dword [ebp - 8], 0
jne 0x403e8b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c9e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00410c9e
mov esp, ebp
pop ebp
ret 4
Function at 0x404180
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
mov eax, dword [0x429280]
xor eax, esp
mov dword [esp + 0x65c], eax
push esi
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x404332
cmp dword [esp + 0x10], 1
jne 0x404332
xor eax, eax
push 0x206
push eax
mov word [esp + 0x258], ax
lea eax, [esp + 0x25a]
push eax
call fcn.00417510
add esp, 0xc
xor eax, eax
mov word [esp + 0x124], ax
xorps xmm0, xmm0
mov dword [esp + 0x146], eax
mov word [esp + 0x14a], ax
push 0x3a
push eax
mov word [esp + 0x154], ax
lea eax, [esp + 0x156]
push eax
movdqu xmmword [esp + 0x132], xmm0
movdqu xmmword [esp + 0x142], xmm0
call fcn.00417510
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x130]
add esp, 0xc
push str..amver
push eax
call esi
push 0x425d24
lea eax, [esp + 0x150]
push eax
call esi
push str..amver
lea eax, [esp + 0x150]
push eax
call esi
call fcn.004056a0
push eax
lea eax, [esp + 0x254]
push eax
call esi
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x254]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x460], ax
lea eax, [esp + 0x462]
push eax
call fcn.00417510
add esp, 0xc
call fcn.004056a0
push eax
lea eax, [esp + 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call fcn.00405840
push eax
lea eax, [esp + 0x45c]
push eax
call esi
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.0040a110
push 0
push 0
push 1
push 0
push 0
push 0x10000000
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x404310
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [esp + 0x254]
push eax
call fcn.00409e60
pop edi
pop esi
mov ecx, dword [esp + 0x65c]
xor ecx, esp
call fcn.00410c9e
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0xc6
push eax
mov word [esp + 0x190], ax
lea eax, [esp + 0x192]
push eax
call fcn.00417510
add esp, 0xc
call fcn.004056a0
push eax
lea eax, [esp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x188]
push 0x425d24
push eax
call esi
push str..amver
lea eax, [esp + 0x18c]
push eax
call esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000004
lea eax, [esp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
call fcn.00409ac0
mov ecx, dword [esp + 0x664]
pop edi
pop esi
xor ecx, esp
call fcn.00410c9e
mov esp, ebp
pop ebp
ret
Function at 0x4043d0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x429280]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00417510
add esp, 0xc
lea eax, [esp + 8]
push 0
push 0x23
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 8]
push str.4997GameBox_Data_
push eax
call esi
lea eax, [esp + 8]
push eax
push 0x104
push edi
call fcn.00411420
add esp, 0xc
push str.filecache.ini
push edi
call esi
mov eax, dword [0x42d670]
push edi
add eax, 0xb4
push 0x104
push eax
call fcn.00411420
add esp, 0xc
push 0
push 0
call fcn.004056a0
mov ecx, dword [0x42d67c]
push eax
call fcn.004088d0
mov eax, dword [0x42d670]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4258c8
push dword [eax]
call esi
push 0
push 0
call fcn.004054b0
mov ecx, dword [0x42d67c]
push eax
call fcn.004088d0
mov eax, dword [0x42d670]
push 0x4258c8
push dword [eax + 4]
call esi
call fcn.00409dc0
mov ecx, dword [0x42d67c]
lea eax, [esp + 8]
push 0
push 0
push eax
call fcn.004088d0
push 0
push ecx
call fcn.004056a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
push eax
call esi
push 0
push ecx
call fcn.004054b0
add esp, 4
push eax
call esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404504
lea ecx, [esp + 8]
call fcn.004095f0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00410c9e
mov esp, ebp
pop ebp
ret