joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov edx, ecx
push ebx
push esi
push edi
je 0x40910a
cmp dword [edx + 4], 0xffffffff
mov ebx, 1
jne 0x40910c
xor ebx, ebx
mov esi, dword [edx + 0xc]
test ebx, ebx
je 0x409179
test esi, esi
je 0x409179
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x409179
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x409179
mov eax, dword [eax + esi + 0x98]
test eax, eax
je 0x409179
lea edi, [eax + esi]
test edi, edi
je 0x409179
lea eax, [edi + 8]
test eax, eax
je 0x409179
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x409179
mov al, byte [ecx]
inc ecx
mov dword [ebp - 4], ecx
cmp al, 0x82
jne 0x409179
mov eax, dword [ebp - 4]
movzx ecx, byte [ecx]
shl ecx, 8
movzx eax, byte [eax + 1]
add eax, 0x13
add eax, ecx
and eax, 0xffffff8
je 0x409179
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], edi
jmp 0x409181
mov edi, dword [edx + 0x18]
xor ebx, ebx
mov eax, dword [edx + 0x14]
add edi, eax
test ebx, ebx
je 0x409204
mov eax, dword [edx + 0x10]
add eax, esi
cmp edi, eax
jae 0x409204
xor ebx, ebx
cmp dword [edi], 0x74636159
sete bl
test ebx, ebx
je 0x4091f9
movzx ecx, byte [edi + 4]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [edi + 5]
inc ax
add cx, ax
mov eax, dword [ebp + 8]
movzx ecx, cx
mov esi, ecx
mov eax, dword [eax]
test eax, eax
jne 0x4091d9
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax], esi
call fcn.00410b36
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x4091f9
push esi
push 0
push eax
call fcn.00412cb0
push esi
lea eax, [edi + 6]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00412730
add esp, 0x18
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x2a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
mov ebx, edx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40b605
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x40b605
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push 0x43da08
push 0x24
push eax
call fcn.0040b1c0
add esp, 0x1c
test eax, eax
js 0x40b605
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str._lsApplicationsCache_lsv_ls.msi
push edi
call fcn.0040de80
add esp, 0x14
test eax, eax
js 0x40b605
push 1
push 1
push dword [edi]
push ebx
call fcn.0040e500
test eax, eax
jns 0x40b605
cmp dword [ebp + 8], 1
jne 0x40b605
push edi
push 0
mov edx, ebx
mov ecx, esi
call fcn.0040b520
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410abf
mov esp, ebp
pop ebp
ret

Function at 0x40b620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x2a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
mov ebx, edx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40b705
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x40b705
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push 0x43da08
push 0x24
push eax
call fcn.0040b1c0
add esp, 0x1c
test eax, eax
js 0x40b705
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str._lsApplicationsCache_lsv_ls.mst
push edi
call fcn.0040de80
add esp, 0x14
test eax, eax
js 0x40b705
push 1
push 1
push dword [edi]
push ebx
call fcn.0040e500
test eax, eax
jns 0x40b705
cmp dword [ebp + 8], 1
jne 0x40b705
push edi
push 0
mov edx, ebx
mov ecx, esi
call fcn.0040b620
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410abf
mov esp, ebp
pop ebp
ret
Function at 0x40e090
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
push 0
mov dword [ebp - 0xc], 0
call fcn.0040e1a0
mov esi, eax
test esi, esi
js 0x40e18e
push edi
push 0
push 0x80
push dword [ebp + 0x10]
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e124
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40e108
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0xe7
push str.c:_buildagentwork1198dd0165ef29c7projects_third_partydutil_resrutil.cpp
call fcn.0040eb40
jmp 0x40e178
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e171
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40e157
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0xed
push str.c:_buildagentwork1198dd0165ef29c7projects_third_partydutil_resrutil.cpp
call fcn.0040eb40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
jns 0x40e18c
cmp dword [ebp - 0xc], 0
je 0x40e18c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x220], eax
mov esi, 0x80004005
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x21c], eax
or edi, 0xffffffff
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40e40f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40e3f8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40e40f
push esi
push 0x4be
push str.c:_buildagentwork1198dd0165ef29c7projects_third_partydutil_fileutil.cpp
call fcn.0040eb40
jmp 0x40e4dc
push ebx
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x40e4a4
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push ebx
push dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push str._s_s_05d._s
push eax
call fcn.0040de80
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40e4db
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e497
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40e487
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070050
jne 0x40e493
xor esi, esi
jmp 0x40e497
test esi, esi
js 0x40e4db
inc ebx
cmp ebx, 0x3e8
jl 0x40e412
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40e4b3
mov dword [eax], edi
or edi, 0xffffffff
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x40e4cf
mov eax, dword [ebp - 0x210]
mov dword [ecx], eax
mov dword [ebp - 0x210], 0
cmp edi, 0xffffffff
je 0x40e4db
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40e4ec
push eax
call fcn.0040e080
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00410abf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e500
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
setne al
mov ecx, eax
or ecx, 2
cmp dword [ebp + 0x14], esi
cmove ecx, eax
push ecx
push ebx
push dword [ebp + 8]
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40e608
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
jne 0x40e55d
cmp esi, 0x50
je 0x40e54f
cmp esi, 0xb7
jne 0x40e55d
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
cmp esi, 3
jne 0x40e5fb
movzx eax, word [ebx]
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x40e5ed
mov edx, eax
cmp dx, 0x5c
mov eax, ecx
cmovne eax, edi
add ecx, 2
mov edi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40e574
test edi, edi
je 0x40e5ed
xor eax, eax
push eax
push ebx
mov word [edi], ax
call fcn.0040ea30
mov esi, eax
mov eax, 0x5c
mov word [edi], ax
test esi, esi
js 0x40e608
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40e608
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40e5d2
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40e608
push esi
push 0x42e
push str.c:_buildagentwork1198dd0165ef29c7projects_third_partydutil_fileutil.cpp
call fcn.0040eb40
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
mov esi, 0x80070003
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
test esi, esi
jle 0x40e608
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40e8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e9e7
cmp eax, 0x104
jae 0x40e9e7
lea eax, [ebp - 0x414]
push eax
push 0
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40e972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40e960
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0x53
jmp 0x40ea09
mov ecx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
je 0x40e983
cmp ecx, 0x7fffffff
jbe 0x40e988
mov eax, 0x80070057
test eax, eax
js 0x40ea15
test ecx, ecx
je 0x40e9be
mov edx, 0x7ffffffe
lea edi, [ebp - 0x414]
sub edx, ecx
sub edi, esi
lea eax, [edx + ecx]
test eax, eax
je 0x40e9be
movzx eax, word [edi + esi]
test ax, ax
je 0x40e9be
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x40e9a3
test ecx, ecx
lea eax, [esi - 2]
pop edi
cmovne eax, esi
xor edx, edx
test ecx, ecx
pop esi
mov word [eax], dx
mov eax, 0x8007007a
cmovne eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410abf
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40e9fc
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0x4e
push str.c:_buildagentwork1198dd0165ef29c7projects_third_partydutildirutil.cpp
call fcn.0040eb40
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410abf
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ea30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40eb2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ea63
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
cmp eax, 3
je 0x40ea78
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ea78
test al, 0x10
jne 0x40ea59
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x40eb15
mov edx, eax
nop dword [eax + eax]
cmp dx, 0x5c
mov eax, ecx
cmovne eax, ebx
add ecx, 2
mov ebx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40ea90
test ebx, ebx
je 0x40eb15
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040ea30
mov esi, eax
mov eax, 0x5c
mov word [ebx], ax
test esi, esi
js 0x40eb2a
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40eb0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x40eaf4
pop ebx
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
test esi, esi
jle 0x40eb2a
movzx esi, si
pop ebx
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
pop ebx
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
mov esi, 0x80070003
push esi
push 0x82
push str.c:_buildagentwork1198dd0165ef29c7projects_third_partydutildirutil.cpp
call fcn.0040eb40
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40f290
Capabilities:
Get session information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x828]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x828], 0
push dword [ebp + 8]
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x40f308
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x430828
lea ecx, [ebp - 0x824]
push 0x410
push ecx
call fcn.00409210
add esp, 0x10
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410abf
mov esp, ebp
pop ebp
ret
push dword [esi]
lea ecx, [ebp - 0x824]
push dword [ebp + 0xc]
push 0x4308c8
push 0x410
push ecx
call fcn.00409210
add esp, 0x14
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00410abf
mov esp, ebp
pop ebp
ret
Function at 0x40f350
Capabilities:
Get user security identifier
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x410
mov dword [ebp - 0xc40], eax
lea eax, [ebp - 0x414]
push ebx
push eax
mov dword [ebp - 0xc3c], ebx
mov dword [ebp - 0xc38], ebx
call fcn.00412cb0
push esi
push edi
push 0x430e48
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00409210
lea eax, [ebp - 0x414]
push eax
push 0x430e54
lea eax, [ebp - 0xc34]
push 0x410
push eax
call fcn.00409210
add esp, 0x30
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc38]
push eax
push ebx
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0xc3c]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40f412
push eax
push 8
call esi
push eax
call edi
mov ebx, eax
mov ecx, dword [ebp - 0xc38]
test ecx, ecx
je 0x40f42a
add ecx, ecx
push ecx
push 8
call esi
push eax
call edi
mov edi, eax
jmp 0x40f42c
xor edi, edi
test ebx, ebx
je 0x40f4ba
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc38]
push eax
push edi
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40f47c
push dword [ebp - 0xc40]
push ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x40f4aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x430bd8
jmp 0x40f488
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x430e98
lea eax, [ebp - 0xc34]
push 0x410
push eax
call fcn.00409210
add esp, 0x10
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
push ebx
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x40f4c0
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x40f4cc
push edi
push 0
call esi
push eax
call ebx
mov ebx, dword [ebp - 0xc40]
lea eax, [ebp - 0xc34]
push dword [ebx]
push 0x430efc
push 0x410
push eax
call fcn.00409210
add esp, 0x10
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00410abf
mov esp, ebp
pop ebp
ret

Function at 0x415eef
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x433b74
push 0x433b6c
push 0x433604
push 0
call fcn.00415e68
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415f21
push dword [ebp + 8]
mov ecx, esi
call fcn.00411065
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x415f63
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x433b84
push 0x433b7c
push 0x433618
push 2
call fcn.00415e68
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x415f94
mov ecx, esi
call fcn.00411065
call esi
jmp 0x415f9a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x415f9d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x433b8c
push 0x433b84
push 0x433624
push 3
call fcn.00415e68
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x415fd1
mov ecx, esi
call fcn.00411065
call esi
jmp 0x415fd7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x402150
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x45d63c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x204]
sub edx, eax
nop
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x402170
xor eax, eax
mov dword [ebp - 0x258], 0x44
push edi
mov word [ebp - 0x216], ax
xorps xmm0, xmm0
mov eax, 1
movlpd qword [ebp - 0x254], xmm0
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x258]
movlpd qword [ebp - 0x24c], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x204]
movlpd qword [ebp - 0x244], xmm0
push eax
push 0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x226], xmm0
movlpd qword [ebp - 0x21e], xmm0
mov dword [ebp - 0x22c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x214]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004040af
mov esp, ebp
pop ebp
ret 4

Function at 0x403af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45d63c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004022f0
lea edi, [ebp - 0x20c]
add esp, 4
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403b20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
mov ecx, 0xe
mov esi, str.zero_gunner_2__setting.bin
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403b70
pop edi
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004040af
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x210]
push 0
push eax
push 0x64
push 0x468438
push edi
call esi
push 0
lea eax, [ebp - 0x210]
push eax
imul eax, dword [0x468498], 0x28c
push eax
push 0x4684a0
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004040af
mov esp, ebp
pop ebp
ret
Function at 0x403e60
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45d63c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004022f0
lea edi, [ebp - 0x20c]
add esp, 4
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403e90
push 0
lea eax, [ebp - 0x20c]
mov ecx, 8
mov esi, str.zero_gunner_2_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403ec0
mov ecx, 6
lea eax, [ebp - 0x20c]
mov esi, str._setting.bin
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403f12
pop edi
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004040af
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x210]
push 0
push eax
push 0x64
push 0x468438
push edi
call esi
push 0
lea eax, [ebp - 0x210]
push eax
imul eax, dword [0x468498], 0x28c
push eax
push 0x4684a0
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004040af
mov esp, ebp
pop ebp
ret

Function at 0x436535
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436409

Function at 0x43922e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438be6

Function at 0x4416c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00441295

Function at 0x4416d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044141f