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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1c07
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], eax
mov byte [esi + 0x18], al
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x58], eax
mov byte [esi + 0x48], al
push eax
push 0x6079a0
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0041d070
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x23
push 0
mov dword [ebp - 0x424], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x407c01
cmp word [ebp - 0x218], ax
jne 0x407bd8
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, esi
call fcn.0041d070
jmp 0x407c4f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407be1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041d070
jmp 0x407c4f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0056c410
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 3
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00411aa0
push 0xb
push str.ProgramData
mov ecx, esi
call fcn.00411aa0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 4
Function at 0x40a930
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0x10
jb 0x40a945
mov eax, dword [esi]
jmp 0x40a947
mov eax, esi
push eax
push str.CDebugLog::WriteConf_text_s
lea eax, [ebp - 0x1c]
push eax
push 0x6495d0
call fcn.00410b10
add esp, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x40a966
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 8], 0x10
jb 0x40a97e
push dword [ebp - 0x1c]
call fcn.0043f3a3
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x40a988
mov eax, dword [esi]
jmp 0x40a98a
mov eax, esi
push ecx
push eax
push 0x6498b8
call fcn.00404950
mov edi, eax
cmp esi, 0x649a6c
je 0x40a9af
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x649a6c
call fcn.0041e000
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ac90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x40accb
cmp eax, dword [0x649a64]
jge 0x40accb
mov dword [eax*4 + 0x649a3c], 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 4
push eax
push str.CDebugLog_SetFilterLevelArray
lea eax, [ebp - 0x6c]
push eax
push 0x6495d0
call fcn.00410a60
add esp, 0x10
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x6c]
call fcn.00402220
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 4
Function at 0x40b430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [0x63a8b0]
test edi, edi
jne 0x40b445
xor eax, eax
pop edi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
or eax, 0xffffffff
push esi
xor esi, esi
test ebx, ebx
je 0x40b46a
mov ecx, dword [ebp + 8]
movzx edx, byte [esi + ecx]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edi + edx*4]
cmp esi, ebx
jb 0x40b453
pop esi
pop ebx
not eax
pop edi
pop ebp
ret 8

Function at 0x40b480
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call fcn.0043f39a
mov edx, eax
add esp, 4
test edx, edx
je 0x40b529
xor ecx, ecx
lea esp, [esp]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x40b4ae
xor eax, 0xedb88320
test al, 1
je 0x40b4bb
shr eax, 1
xor eax, 0xedb88320
jmp 0x40b4bd
shr eax, 1
test al, 1
je 0x40b4ca
shr eax, 1
xor eax, 0xedb88320
jmp 0x40b4cc
shr eax, 1
test al, 1
je 0x40b4d9
shr eax, 1
xor eax, 0xedb88320
jmp 0x40b4db
shr eax, 1
test al, 1
je 0x40b4e8
shr eax, 1
xor eax, 0xedb88320
jmp 0x40b4ea
shr eax, 1
test al, 1
je 0x40b4f7
shr eax, 1
xor eax, 0xedb88320
jmp 0x40b4f9
shr eax, 1
test al, 1
je 0x40b506
shr eax, 1
xor eax, 0xedb88320
jmp 0x40b508
shr eax, 1
test al, 1
je 0x40b515
shr eax, 1
xor eax, 0xedb88320
jmp 0x40b517
shr eax, 1
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, 0x100
jl 0x40b4a0
mov eax, edx
ret
Function at 0x40b5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2310
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xd4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x828], 0
mov dword [ebp - 4], 1
mov esi, 0x20019
cmp dword [0x649574], 0
je 0x40b6c7
mov dword [ebp - 0x814], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
test ebx, ebx
je 0x40b64b
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [0x649574]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x814], 0
je 0x40b6c1
cmp dword [ebp + 0xd0], 0
je 0x40b664
mov esi, 0x20219
jmp 0x40b6c1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x649574], 0
mov dword [ebp - 0x824], eax
je 0x40b6bc
mov dword [ebp - 0x814], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
test ebx, ebx
je 0x40b6a4
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [0x649574]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x814], 0
je 0x40b6bc
mov ecx, dword [ebp - 0x824]
call fcn.0040fdd0
test eax, eax
je 0x40b6c1
mov esi, 0x20119
mov ebx, dword [ebp - 0x820]
cmp dword [ebp + 0x24], 8
lea ecx, [ebp - 0x81c]
push ecx
push esi
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b72e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x6079a0
mov ecx, edi
call fcn.004022c0
lea ecx, [ebp + 0x10]
call fcn.00402220
lea ecx, [ebp + 0x70]
call fcn.00402220
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 0xd0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0x800
push 0
push eax
call fcn.0056c410
add esp, 0xc
lea ecx, [ebp - 0x818]
cmp dword [ebp + 0x84], 8
lea eax, [ebp + 0x70]
cmovae eax, dword [ebp + 0x70]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push ebx
push 0
push eax
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x81c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b6f2
mov ecx, dword [ebp - 0x818]
cmp ecx, 0x7fe
ja 0x40b6f2
test ebx, ebx
je 0x40b7c9
cmp dword [ebx], 4
jne 0x40b7c9
push dword [ebp - 0x810]
push 0x607828
push edi
push 0x6495d0
call fcn.00410a60
add esp, 0x10
jmp 0x40b6fe
shr ecx, 1
xor eax, eax
dec ecx
test ecx, ecx
jle 0x40b7ed
lea edx, [eax + 0x20]
cmp word [ebp + eax*2 - 0x810], 0
jne 0x40b7e8
mov word [ebp + eax*2 - 0x810], dx
inc eax
cmp eax, ecx
jl 0x40b7d5
lea eax, [ebp - 0x810]
push eax
jmp 0x40b6f7
Function at 0x40b990
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push esi
push 0
push 1
push 0
push dword [ebp + 8]
mov dword [edi], 0
mov dword [esi], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
je 0x40b9ff
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.00569bc0
mov ecx, eax
mov dword [edi], ecx
mov eax, dword [esi]
inc eax
push eax
push 0
push ecx
call fcn.0056c410
add esp, 0x10
push 0
push 0
push esi
push dword [edi]
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov eax, 1
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40be20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
test esi, esi
je 0x40be8f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
test edi, edi
jne 0x40be80
mov dword [esp + 8], 0x604f10
mov dword [esp + 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [esp + 8]
push eax
push str._tasp::library_TerminateProcess_err:_lu
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404e40
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 8], 0x604f90
mov dword [esp + 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [esp + 8]
push eax
push str._tasp::library_OpenProcess_err:_lu
sub esp, 0xc
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], 3
call fcn.00404e40
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bee0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push ecx
push eax
mov dword [ebp - 0xc], 0
call fcn.0040c040
mov esi, eax
test esi, esi
je 0x40c026
push 0x44
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0056c410
add esp, 0xc
mov dword [ebp - 0x64], 0x44
mov eax, 1
mov dword [ebp - 0x5c], str.WinSta0Default
mov word [ebp - 0x34], ax
mov ecx, 0x8000420
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
test eax, eax
movdqu xmmword [ebp - 0x1c], xmm0
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push esi
push eax
push 0
push 0
push 0
push edi
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [ebp - 0x70], 2
test ebx, ebx
je 0x40bfd5
push str._tasp::library_CreateProcessAsUser_sucess_n
sub esp, 0xc
mov dword [ebp - 0x74], 0x605030
movq xmm0, qword [ebp - 0x74]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404e40
add esp, 0x10
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0xc]
call edi
push esi
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebp - 0x74], 0x6050b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x74]
push eax
push str._tasp::library_CreateProcessAsUser_error_d_n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404e40
add esp, 0x14
push dword [ebp - 0xc]
call edi
push esi
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00567455
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40c320
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b23d2
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.0056c590
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x103c], edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1028], 1
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
mov ecx, dword [ebp - 0x1014]
xor esi, esi
test ecx, ecx
je 0x40c4bd
mov ebx, dword [ebp - 0x1024]
mov edx, dword [ebp + 0xc]
lea eax, [ebx + 4]
cmp dword [eax], edx
je 0x40c3d8
inc esi
add eax, 0x10
cmp esi, ecx
jb 0x40c3c7
jmp 0x40c4c3
push 0x800
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x101c], 0x3ff
push 0
push eax
mov dword [ebp - 0x1018], 0x3ff
call fcn.0056c410
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0056c410
add esp, 0x18
lea eax, [ebp - 0x1020]
add esi, esi
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebx + esi*8 + 0xc]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
cmp word [ebp - 0x810], 0
jne 0x40c454
xor ecx, ecx
jmp 0x40c46f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c460
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.0041d070
cmp dword [edi + 0x10], 0
jne 0x40c4bd
push str._tasp::library_WTSEnumerateProcessesW_AccountNameNULL._n
sub esp, 0xc
mov dword [ebp - 0x1038], 0x605470
mov eax, esp
mov dword [ebp - 0x1034], 2
movq xmm0, qword [ebp - 0x1038]
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404e40
add esp, 0x10
mov ebx, dword [ebp - 0x1024]
test ebx, ebx
je 0x40c4ce
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 8
Function at 0x40d1a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b259b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x639210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
push 0x6c
mov dword [ebp - 4], 0
call fcn.0043f36d
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40d1f2
mov ecx, eax
call fcn.0040d2c0
mov esi, eax
jmp 0x40d1f4
xor esi, esi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [ebp + 0x18]
cmp dword [ebp + 0x2c], 0x10
push ecx
cmovae eax, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004104e0
mov edx, eax
mov byte [ebp - 4], 2
lea eax, [esi + 8]
cmp dword [edx + 0x14], 8
jb 0x40d22a
mov edx, dword [edx]
cmp word [edx], 0
jne 0x40d234
xor ecx, ecx
jmp 0x40d252
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d240
sub ecx, ebx
lea eax, [esi + 8]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.0041d070
lea ecx, [ebp - 0x70]
call fcn.00402220
mov eax, dword [ebp + 0x10]
push 0
push 0
push esi
push 0x40d0e0
push 0
push 0
mov dword [esi + 0x68], eax
call fcn.0056a686
add esp, 0x18
mov esi, eax
test edi, edi
je 0x40d289
mov dword [edi], esi
jmp 0x40d290
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test esi, esi
setne bl
cmp dword [ebp + 0x2c], 0x10
jb 0x40d2a8
push dword [ebp + 0x18]
call fcn.0043f3a3
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x40f0f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2b2f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x639210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.asp::CGlobalConfigMag.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004177b0
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.0040ba40
lea ecx, [esi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x14], ecx
mov word [ecx], ax
mov dword [ecx + 0x2c], 0xf
mov dword [ecx + 0x28], eax
mov byte [ecx + 0x18], al
mov dword [ecx + 0x44], 7
mov dword [ecx + 0x40], eax
mov word [ecx + 0x30], ax
mov dword [ecx + 0x5c], 0xf
mov dword [ecx + 0x58], eax
mov byte [ecx + 0x48], al
push eax
push 0x6079a0
mov byte [ebp - 4], 5
call fcn.0041d070
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410f40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2ff1
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x639210]
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 esi, dword [ebp + 8]
lea ecx, [ebp - 0xd4]
push 0x60799c
call fcn.004022c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
mov eax, dword [ebp - 0xc4]
push esi
mov dword [ebp - 0x138], eax
call fcn.00402470
mov byte [ebp - 4], 1
mov ebx, 1
xor edi, edi
jmp 0x410fb0
cmp dword [ebp - 0xc0], 8
lea edx, [ebp - 0xd4]
cmovae edx, dword [ebp - 0xd4]
cmp word [edx], 0
jne 0x410fce
xor eax, eax
jmp 0x410fe2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410fd3
sub eax, esi
sar eax, 1
push eax
push edi
push edx
lea ecx, [ebp - 0x134]
call fcn.004137d0
mov esi, eax
lea ecx, [ebp - 0x134]
cmp esi, 0xffffffff
je 0x4110ab
push esi
push 0
lea eax, [ebp - 0x150]
push eax
call fcn.00411c30
xor ecx, ecx
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], cx
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x5c], cl
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x44], cx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x411061
push 0xffffffffffffffff
push 0
push eax
call fcn.0041cd00
mov byte [ebp - 4], 1
cmp dword [ebp - 0x13c], 8
jb 0x41107c
push dword [ebp - 0x150]
call fcn.0043f3a3
add esp, 4
mov edi, dword [ebp - 0x138]
lea eax, [ebp - 0x74]
add edi, esi
cmp dword [ebp - 0x60], 8
push 0
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
lea ecx, [ebp - 0x74]
sbb eax, eax
and ebx, eax
call fcn.00402220
jmp 0x410fb0
call fcn.00402220
lea ecx, [ebp - 0xd4]
call fcn.00402220
mov eax, ebx
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.00567455
mov esp, ebp
pop ebp
ret 4
Function at 0x411390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b30d6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x639210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x128]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test eax, eax
jne 0x4113d1
xor esi, esi
jmp 0x41147d
push 0
push 0x6079a0
mov ecx, eax
call fcn.0041d070
mov esi, 0x80
xor ecx, ecx
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043f39a
add esp, 4
lea edi, [ebp + 0x12c]
cmp dword [ebp + 0x140], 8
lea edx, [ebp + 0xc8]
mov ebx, eax
lea ecx, [ebp + 0x68]
cmovae edi, dword [ebp + 0x12c]
lea eax, [ebp + 8]
cmp dword [ebp + 0xdc], 8
push edi
cmovae edx, dword [ebp + 0xc8]
cmp dword [ebp + 0x7c], 8
push esi
cmovae ecx, dword [ebp + 0x68]
cmp dword [ebp + 0x1c], 8
push ebx
cmovae eax, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, eax
push ebx
lea eax, [ecx + 1]
cmp esi, eax
jne 0x411461
call fcn.0043f3a3
add esp, 4
add esi, esi
jmp 0x4113e4
mov esi, dword [ebp - 0x10]
xor eax, eax
mov word [ebx + ecx*2], ax
mov ecx, esi
call fcn.00402370
push ebx
call fcn.0043f3a3
mov esi, dword [esi + 0x10]
add esp, 4
lea ecx, [ebp + 8]
call fcn.00402220
lea ecx, [ebp + 0x68]
call fcn.00402220
lea ecx, [ebp + 0xc8]
call fcn.00402220
lea ecx, [ebp + 0x12c]
call fcn.00402220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x184
Function at 0x41b0c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b37ba
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x639210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00589fe1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x41b166
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.005693d2
push 0x633050
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0056bd6b
push edi
push esi
call fcn.00589eb4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567455
mov esp, ebp
pop ebp
ret 4

Function at 0x41bc70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b3898
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x639210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.0041e000
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.0041bba0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x41bce1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.005693d2
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x41bd0a
push dword [esp + 0xc]
call fcn.0043f3a3
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41d580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41d595
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41d5d4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41d5d0
lea ebx, [ebx]
cmp esi, edx
jae 0x41d5d4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x41d5c0
cmp esi, edx
jb 0x41d5d9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret