joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fd8a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100fdf6
cmp dword [ebp - 4], 0
je 0x100fdf2
push 0xea60
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100fe13
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100fe0c
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x100fe13
mov eax, 0x8000ffff
leave
ret 0x14

Function at 0x100fff4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call fcn.0100ffbc
test eax, eax
je 0x1010096
push esi
lea ecx, [ebp - 0xa2c]
call fcn.0100f4f8
xor eax, eax
cmp ax, word [ebp - 0x822]
jne 0x1010093
cmp ax, word [ebp - 0x818]
jne 0x1010093
cmp ax, word [ebp - 0x616]
je 0x1010093
cmp ax, word [ebp - 0x414]
je 0x1010093
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1010096
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x616]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1003998
push 0x900
push edi
push edi
push dword [ebp + 0xc]
push esi
call fcn.01011c3f
add esp, 0x24
test eax, eax
jl 0x1010096
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0100e410
leave
ret 8
Function at 0x10100ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], ecx
call fcn.0100ff72
push edi
test eax, eax
je 0x10100e9
push 0x1004de0
jmp 0x1010120
cmp dword [esi], 0
jne 0x10101c4
mov ecx, dword [ebp - 0x214]
call fcn.0100ffbc
test eax, eax
je 0x1010133
push 0x900
push 0
push 0
push edi
push dword [ebp + 0x18]
mov dword [esi], 1
push ebx
call fcn.01011b30
push edi
push 0x1004d98
push dword [0x10143ec]
call fcn.0100f2af
add esp, 0xc
jmp 0x10101b7
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10101d7
lea eax, [ebp - 0x210]
push eax
push 0x1004d50
push dword [0x10143ec]
call fcn.0100f2af
mov ecx, dword [ebp - 0x214]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call fcn.0100ffbc
test eax, eax
lea eax, [ebp - 0x210]
je 0x10101bc
push 0x900
push 0
push 0
push eax
push dword [ebp + 0x18]
mov dword [esi], 1
push ebx
call fcn.01011b30
xor eax, eax
inc eax
jmp 0x10101d9
push eax
push 0x1004d00
jmp 0x10101c9
push 0x1004cb8
push dword [0x10143ec]
call fcn.0100f2af
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e410
leave
ret 0x14
Function at 0x1010c2a
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
cmp esi, ecx
je 0x1010d57
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x1010d57
mov eax, dword [ebp + 0x14]
cmp eax, ecx
je 0x1010d57
cmp dword [ebp + 8], ecx
je 0x1010d57
mov dword [esi], ecx
mov dword [edi], ecx
mov dword [eax], ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x1010ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1010c94
mov dword [ebp - 4], eax
jmp 0x1010d72
and eax, 0xffff
or eax, 0x80070000
jmp 0x1010c8c
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1010d57
push ebx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1010cce
mov dword [ebp - 4], 0x8007000e
jmp 0x1010d5e
push eax
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1010cf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1010cf3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x1010d5e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1005458
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1010cdf
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov dword [esi], ecx
mov eax, dword [eax + 0x14]
and dword [ebp + 0xc], 0
and dword [ebp + 0x10], 0
mov dword [edi], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
push 0x100543c
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1010cdf
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffc
cmp eax, 4
jb 0x1010d5e
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x1010d5e
mov dword [ebp - 4], 0x80004003
cmp dword [ebp - 0xc], 0
je 0x1010d72
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1010faa
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.01010df4
mov esi, 0x105
lea ebx, [edi + 0x21c]
push esi
xor eax, eax
push ebx
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push 0x10054fc
push 0x900
push 0
push 0
push esi
push edi
call fcn.01011c3f
add esp, 0x1c
test eax, eax
jge 0x1010ffd
and dword [edi + 0x218], 0
jmp 0x1011099
push edi
call fcn.01010f56
test eax, eax
jne 0x1011092
mov word [ebx], ax
mov word [edi], ax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1001278
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1011099
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10054e8
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1011087
push ebx
push 0x10054fc
push 0x900
xor ebx, ebx
push ebx
push ebx
push esi
push edi
call fcn.01011c3f
add esp, 0x1c
test eax, eax
jge 0x1011080
mov dword [edi + 0x218], ebx
jmp 0x1011087
mov ecx, edi
call fcn.01010e0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1011099
mov ecx, edi
call fcn.01010e0e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10110af
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x420], esi
call fcn.01010df4
lea eax, [esi + 0x21c]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x424]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1005520
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1011209
push edi
mov esi, 0x208
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x42c]
push eax
push ebx
push 0x10054e8
push dword [ebp - 0x424]
mov dword [ebp - 0x428], 0x20a
mov dword [ebp - 0x42c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10111fc
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, 0x900
push edi
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x420]
push esi
add eax, 0x21c
push eax
call fcn.01011b30
test eax, eax
mov eax, dword [ebp - 0x420]
jge 0x10111cb
mov dword [eax + 0x218], ebx
jmp 0x10111fc
add eax, 0x21c
push eax
push 0x10055a4
push edi
push ebx
push ebx
push esi
mov esi, dword [ebp - 0x420]
push esi
call fcn.01011c3f
add esp, 0x1c
test eax, eax
jge 0x10111f5
mov dword [esi + 0x218], ebx
jmp 0x10111fc
mov ecx, esi
call fcn.01010e0e
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e410
leave
ret
Function at 0x401da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
test edi, edi
je 0x401ebe
test esi, esi
je 0x401ebe
mov eax, esi
lea edx, [eax + 2]
jmp 0x401dd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401dd0
sub eax, edx
sar eax, 1
je 0x401ebe
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00407ee0
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x401e3e
cmp dword [0x415f10], 3
jne 0x401e3e
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [0x411020]
push 0x41326c
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00404596
add esp, 0xc
jmp 0x401e50
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [0x411088]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404596
push 0x413270
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x210], ebx
call fcn.004048b8
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401ebe
push eax
push 1
push 0x200
push edi
call fcn.00404b49
mov eax, dword [ebp - 0x210]
push eax
call fcn.00404bd3
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404587
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404587
mov esp, ebp
pop ebp
ret

Function at 0x401f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0x504d534d
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax]
not cl
mov byte [esi + eax], cl
inc eax
cmp eax, 0x200
jb 0x401fa0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00407ee0
add esp, 0xc
mov dword [ebp - 0x218], 0
test esi, esi
je 0x402059
lea ecx, [ebp - 0x214]
push ecx
push 0x104
call dword [0x411088]
push str.golfinfo.ini
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.00404596
push 0x4132ac
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004048b8
mov eax, dword [ebp - 0x218]
add esp, 0x18
test eax, eax
je 0x402046
push eax
push 1
push 0x200
push esi
call fcn.00404d9e
mov edx, dword [ebp - 0x218]
push edx
call fcn.00404bd3
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404587
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
call fcn.00404587
mov esp, ebp
pop ebp
ret
Function at 0x403005
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x4138c0
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004048b8
add esp, 0xc
test eax, eax
je 0x403032
xor eax, eax
jmp 0x4030bd
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00405225
push dword [ebp - 4]
call fcn.00405435
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00405225
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.004050cd
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00404b49
push dword [ebp - 4]
call fcn.00404bd3
push ebx
lea ebx, [edi + esi]
call fcn.004030c1
push 0x4138c8
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004048b8
add esp, 0x44
pop esi
test eax, eax
jne 0x40302b
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00404d9e
push dword [ebp - 4]
call fcn.00404bd3
add esp, 0x14
test edi, edi
je 0x4030ba
push edi
call fcn.00405161
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x40448a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040db50
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x4111b8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x100c], eax
push 4
lea eax, [ebp - 0x1008]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4044cb
xor eax, eax
jmp 0x40452e
cmp dword [ebp - 0x1008], ebx
jbe 0x404517
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x404517
mov ecx, dword [ebp - 0x100c]
push dword [ecx]
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00404d9e
add ebx, dword [ebp - 0x1010]
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x4044d3
mov eax, dword [ebp - 0x100c]
push dword [eax]
call fcn.00404bd3
cmp ebx, dword [ebp - 0x1008]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404587
leave
ret
Function at 0x401230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42920f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x435dd0]
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], 0
mov esi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 1
mov dword [esp + 8], eax
mov dword [esp + 0x30], eax
test edi, edi
mov byte [esp + 0x24], 3
je 0x401319
push ebx
mov bl, 4
lea eax, [esi + 0x38]
lea ecx, [esp + 0x34]
push eax
call fcn.00420104
lea ecx, [esp + 0x34]
call fcn.0041f7c8
lea ecx, [esp + 0x34]
call fcn.0041f714
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4012bb
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call fcn.00420104
jmp 0x40130d
lea eax, [esp + 0x34]
push 0x4333a8
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042021f
lea edx, [esp + 0xc]
mov byte [esp + 0x28], bl
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004201b9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.00420104
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00420017
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.00420017
mov esi, dword [esi + 8]
test esi, esi
jne 0x401281
pop ebx
mov ecx, dword [esp + 8]
mov edx, dword [edi + 0x34]
mov eax, dword [str.___s__s_]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0041f620
mov esi, dword [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.0041fd8c
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.00420017
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.00420017
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00420017
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x401390
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42924f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x435dd0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0xc]
mov dword [edi], eax
mov ecx, dword [0x435dd0]
lea ebp, [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov dword [esi + 0x14], 0x42b4b0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
lea ecx, [esi + 0x138]
mov byte [esp + 0x1c], 2
call fcn.00404040
mov ecx, ebp
mov byte [esp + 0x1c], 3
mov dword [esi], 0x42b4ac
mov byte [esi + 0x28], 1
mov byte [esi + 4], 0x4e
mov dword [esi + 0x134], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 8], ebx
call fcn.0041ffa2
mov ecx, edi
call fcn.0041ffa2
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406630
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x20
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004209cc
lea eax, [ebp - 0x18]
push 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00420c46
cmp eax, 8
jne 0x4066bb
cmp dword [ebp - 0x18], 0x434c4646
jne 0x4066bb
lea ecx, [ebp - 0x28]
push ecx
call fcn.00406860
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
jne 0x4066bb
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00420a6c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00420a6c
jmp 0x4066da
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 4], 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call fcn.004209cc
lea ecx, [ebp - 0x18]
push 8
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00420c46
cmp eax, 8
jne 0x406841
cmp dword [ebp - 0x18], 0x434c4646
jne 0x406841
lea edx, [ebp - 0x28]
push edx
call fcn.00406860
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jne 0x406848
call fcn.00420a6c
push 0
lea eax, [ebp - 0x130]
or esi, 0xffffffff
push ebx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x406809
mov ecx, dword [0x435dd0]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x433a90
call fcn.0040c340
add esp, 4
lea edx, [ebp + 8]
push eax
push edx
call fcn.0041f633
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push 0
push eax
call fcn.00426fa4
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00420017
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x433a98
call fcn.0040c340
add esp, 4
push eax
call fcn.00426fa4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00420a6c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407630
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x429800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x38]
push ebp
mov ebp, ecx
push eax
lea ecx, [esp + 8]
call fcn.00420085
push str..
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0
call fcn.00420366
lea ecx, [esp + 0x10]
call fcn.00410d93
mov ecx, dword [esp + 4]
push 0
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00410e56
test eax, eax
je 0x40776a
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 2
lea ecx, [esp + 0x1c]
call fcn.00411076
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.00411145
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call dword [eax + 0x38]
test eax, eax
je 0x4076e9
lea ecx, [esp + 0x1c]
call fcn.0041103d
test eax, eax
jne 0x4076e9
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00407630
jmp 0x407751
lea edx, [esp + 0x48]
lea ecx, [esp + 0x1c]
push edx
call fcn.0041126e
mov eax, dword [esp + 0x48]
push str.ncstudio.dat
push eax
mov byte [esp + 0x48], 3
call fcn.00412a2f
add esp, 8
test eax, eax
je 0x407728
mov ecx, dword [esp + 0x48]
push str.ncstudio.dat.bak
push ecx
call fcn.00412a2f
add esp, 8
test eax, eax
jne 0x407744
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
call fcn.00411145
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.00420017
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call fcn.00420017
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.00420017
test esi, esi
jne 0x4076a0
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x10]
call fcn.00410e0c
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.00410dd0
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.00420017
mov ecx, dword [esp + 0x2c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x4077b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x429826
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
mov esi, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x14]
add esi, 0x1c
push ecx
mov ecx, esi
call fcn.00420154
push str.Ncstduio
mov ecx, esi
call fcn.00420366
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x437f48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c240
push eax
lea ecx, [esp + 0x10]
call fcn.00420085
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push str.setup.cfg
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x230], 0
call fcn.0042021f
mov eax, dword [eax]
lea edx, [esp + 0x118]
push eax
push 0x104
push edx
push 0x437490
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
call fcn.00420017
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.0041fd8c
lea ecx, [esp + 0x118]
mov byte [esp + 0x224], 1
push ecx
lea ecx, [esp + 0xc]
call fcn.00420366
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
pop edi
pop esi
test eax, eax
jne 0x40790a
lea ecx, [esp]
mov byte [esp + 0x21c], al
call fcn.00420017
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00420017
xor al, al
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
mov eax, dword [esp]
push eax
call fcn.0040c730
add esp, 4
lea ecx, [esp]
mov byte [esp + 0x21c], 0
call fcn.00420017
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00420017
mov ecx, dword [esp + 0x214]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x220
ret