joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413856
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jbe 0x413882
push esi
mov esi, dword [esp + 0xc]
mov al, cl
mov dl, cl
imul cl
xor dl, 1
and dl, 7
xor al, dl
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jb 0x413866
pop esi
pop edi
ret

Function at 0x417ec8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42a7e8
cmp edx, dword [eax]
je 0x417eea
add eax, 8
inc ecx
cmp eax, 0x42a878
jl 0x417edb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42a7e8]
jne 0x418018
mov eax, dword [0x42b8e4]
cmp eax, 1
je 0x417ff2
test eax, eax
jne 0x417f1b
cmp dword [0x42a044], 1
je 0x417ff2
cmp edx, 0xfc
je 0x418018
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417f52
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413190
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412d00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417f95
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412d00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x428d98
push edi
call fcn.0041a840
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413190
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004131a0
lea eax, [ebp - 0xa0]
push 0x422874
push eax
call fcn.004131a0
push dword [esi + 0x42a7ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004131a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041c10f
add esp, 0x2c
pop edi
jmp 0x418018
lea eax, [ebp + 8]
lea esi, [esi + 0x42a7ec]
push 0
push eax
push dword [esi]
call fcn.00412d00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x74d39a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0074d419
jae 0x74d3a6
xor ecx, ecx
call fcn.0074d419
jae 0x74d3d0
xor eax, eax
call fcn.0074d419
jae 0x74d3e1
mov al, 0x10
call fcn.0074d419
adc al, al
jae 0x74d3c2
jne 0x74d40e
stosb byte es:[edi], al
jmp 0x74d3a7
call fcn.0074d425
dec ecx
loop 0x74d3ed
mov eax, ebp
call fcn.0074d423
jmp 0x74d40f
lodsb al, byte [esi]
shr eax, 1
je 0x74d435
adc ecx, 2
mov ebp, eax
jmp 0x74d40f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0074d423
cmp eax, 0x7d00
jae 0x74d40d
cmp eax, 0x500
jae 0x74d40e
cmp eax, 0x7f
ja 0x74d40f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x74d3a7
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492090
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4c56f0]
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, ecx
mov dword [ebp - 0xbc], edi
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__]
push 0xffffffffffffffff
push 0x4a1520
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 1
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_char_const___int_]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::GetData_void_const]
mov ecx, edi
call ebx
push eax
lea ecx, [ebp - 0xb8]
push str._sDatauser2.ini
push ecx
call dword [sym.imp.DuiLib.dll_public:_int___cdecl_DuiLib::CDuiString::Format_char_const__]
add esp, 0xc
lea ecx, [ebp - 0xb8]
call ebx
push eax
push 0x63
lea edx, [ebp - 0x74]
push edx
push 0x4a1520
push 0x4a1538
push 0x4a153c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x74]
push eax
lea ecx, [edi + 0x44]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Append_char_const__]
lea ecx, [edi + 0x44]
call dword [sym.imp.DuiLib.dll_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const]
test eax, eax
jle 0x4010fc
call fcn.00401460
call fcn.00401360
mov ecx, edi
call fcn.00401140
lea ecx, [ebp - 0xb8]
call ebx
push eax
push 0x4a1520
push 0x4a1538
push 0x4a153c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
lea ecx, [ebp - 0xb8]
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call esi
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.0046eadd
mov esp, ebp
pop ebp
ret 0x44
Function at 0x401360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491fe9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c56f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xffffffffffffffff
push str.Software_
lea ecx, [ebp - 0x54]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_char_const___int_]
push str.fmol
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Append_char_const__]
mov ebx, dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::GetData_void_const]
lea ecx, [ebp - 0x54]
call ebx
mov esi, eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [ebp - 0x58]
push edx
push 0x20006
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401425
lea ecx, [edi + 0x44]
call dword [sym.imp.DuiLib.dll_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const]
push eax
lea ecx, [edi + 0x44]
call ebx
push eax
mov eax, dword [ebp - 0x58]
push 1
push 0
push 0x4a164c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046eadd
mov esp, ebp
pop ebp
ret
Function at 0x401750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4c56f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
mov dword [ebp - 0x110], 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00475cb0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4017ff
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x4a164c
push ecx
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4017f2
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
jmp 0x401806
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push 0x4a1520
mov ecx, edi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_char_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.0046eadd
mov esp, ebp
pop ebp
ret

Function at 0x4018c0
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 8], 0
jne 0x4018fd
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x4018a0
push 0
push 0
mov dword [esi + 0xc], 0
call fcn.0046ecb7
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x4018fd
cmp byte [esi + 9], 0
je 0x4018f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 8], 1
movzx eax, byte [esi + 8]
ret

Function at 0x401f30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x4c56f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x16c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x16c]
mov ecx, esi
push 0x5c
push ecx
call fcn.0046f030
add esp, 8
test eax, eax
je 0x401f8a
nop
push 0x5c
push esi
call fcn.0046f030
lea esi, [eax + 1]
push 0x5c
push esi
call fcn.0046f030
add esp, 0x10
test eax, eax
jne 0x401f70
lea eax, [ebp - 0x16c]
mov byte [esi], 0
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401f95
mov edx, dword [0x4a1b70]
mov ecx, dword [0x4a1b74]
mov dword [eax], edx
mov edx, dword [0x4a1b78]
mov dword [eax + 4], ecx
mov cx, word [0x4a1b7c]
mov dword [eax + 8], edx
mov dl, byte [0x4a1b7e]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
lea eax, [ebp - 0x16c]
push eax
push 0x63
lea ecx, [ebp - 0x68]
push ecx
push 0x4a1520
push edi
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x68]
push ebx
push edx
call fcn.0046efff
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
sete al
xor ecx, ebp
call fcn.0046eadd
mov esp, ebp
pop ebp
ret
Function at 0x402010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4c56f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
mov dword [ebp - 0x10c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x108]
mov edx, esi
push 0x5c
push edx
call fcn.0046f030
add esp, 8
test eax, eax
je 0x402072
push 0x5c
push esi
call fcn.0046f030
lea esi, [eax + 1]
push 0x5c
push esi
call fcn.0046f030
add esp, 0x10
test eax, eax
jne 0x402058
lea eax, [ebp - 0x108]
mov byte [esi], 0
dec eax
pop esi
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402080
mov ecx, dword [0x4a1b70]
mov edx, dword [0x4a1b74]
mov dword [eax], ecx
mov ecx, dword [0x4a1b78]
mov dword [eax + 4], edx
mov dx, word [0x4a1b7c]
mov dword [eax + 8], ecx
mov cl, byte [0x4a1b7e]
mov word [eax + 0xc], dx
lea edx, [ebp - 0x108]
push edx
push 0x63
push ebx
mov byte [eax + 0xe], cl
mov eax, dword [ebp - 0x10c]
push eax
push edi
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046eadd
mov esp, ebp
pop ebp
ret
Function at 0x4021b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491f2a
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4c56f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, esi
mov dword [ebp - 0x164], esi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::WindowImplBase::constructor_void_]
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_char_const___int_]
push 0xffffffffffffffff
lea edi, [esi + 0x230]
push 0x4a1520
mov ecx, edi
mov dword [esi], vtable.ConfigFrame.0
mov dword [esi + 0x10], vtable.ConfigFrame.1.0
mov dword [esi + 0x20], vtable.ConfigFrame.2.0
mov dword [esi + 0x24], vtable.ConfigFrame.3.0
mov dword [esi + 0x28], vtable.ConfigFrame.4.0
call ebx
push 0xffffffffffffffff
push str.Software_
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 1
call ebx
push str.fmol
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 2
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Append_char_const__]
lea ecx, [ebp - 0x158]
call dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::GetData_void_const]
lea ecx, [ebp - 0x15c]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022ed
push 0x103
push eax
lea edx, [ebp - 0x113]
push edx
mov byte [ebp - 0x114], al
call fcn.00475cb0
mov edx, dword [ebp - 0x15c]
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push 0x4a164c
push edx
mov dword [ebp - 0x160], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4022e0
lea eax, [ebp - 0x114]
push eax
push 0x4a1b8c
push edi
call dword [sym.imp.DuiLib.dll_public:_int___cdecl_DuiLib::CDuiString::Format_char_const__]
add esp, 0xc
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 1
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046eadd
mov esp, ebp
pop ebp
ret
Function at 0x404410
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4c56f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
mov dword [ebp - 0x420], eax
call fcn.00490a2a
add esp, 8
lea edx, [ebp - 0x418]
push edx
push 0x49dbb0
push 1
push 0
push 0x49dbc0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40454b
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x41c]
push edx
push 0x49dbd0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x40453d
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
jne 0x4044a2
mov edx, dword [0x4d44d4]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x4044a9
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
je 0x4044be
mov edx, dword [ecx + 0x24]
push ebx
push eax
call edx
jmp 0x4044cb
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push str.fmol
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
test edi, edi
je 0x404513
mov eax, dword [ebp - 0x420]
push edi
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0046f204
add esp, 0x10
jmp 0x40459d
push 0x5c
test esi, esi
je 0x40451c
push esi
jmp 0x404523
mov edx, dword [0x4d44d4]
push edx
call fcn.0046f5a0
add esp, 8
test eax, eax
jne 0x40455e
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046eadd
mov esp, ebp
pop ebp
ret 4
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0046f204
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404583
sub eax, edx
lea eax, [ebp + eax - 0x108]
mov word [eax - 3], 0x6e6c
mov byte [eax - 1], 0x6b
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.0046eadd
mov esp, ebp
pop ebp
ret 4
Function at 0x40c6d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49304b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c56f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0046d634
push 4
mov dword [ebp - 4], 0
call fcn.0046eb72
mov edi, eax
add esp, 4
test edi, edi
je 0x40c750
call fcn.0046d42f
mov dword [edi], eax
call fcn.0046d1ee
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0046d5f5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c746
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0046d61d
jmp 0x40c752
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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
Function at 0x410530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495108
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c56f0]
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, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x410651
cmp byte [edi + 0x49], bl
je 0x410651
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x410645
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4105a5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4105bd
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4105e6
dec eax
je 0x4105ea
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x410640
jmp 0x41064c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4105fa
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x410623
cmp ebx, 0x10
jae 0x410609
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0047114d
add esp, 0x10
cmp esi, eax
jne 0x41063d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x410649
test esi, esi
jne 0x4105b1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040b0c0
jmp 0x4105ab
lea ecx, [ebp - 0x2c]
call fcn.00409f10
xor al, al
jmp 0x410653
lea ecx, [ebp - 0x2c]
call fcn.00409f10
mov al, 1
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.0046eadd
mov esp, ebp
pop ebp
ret
Function at 0x414eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494d59
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c56f0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], 0
lea eax, [ecx - 0x2c]
mov dword [esp + 0x30], 0x4a48ec
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x48], 0
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
call fcn.004146e0
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x30], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.2.0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
push 0x4b2e10
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + eax + 0x34], 0
mov dword [esp + 0x50], 0xffffffff
call fcn.00474481
int3

Function at 0x41b190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494d59
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c56f0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], 0
lea eax, [ecx - 0x2c]
mov dword [esp + 0x30], 0x4a48ec
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x48], 0
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
call fcn.0041ad30
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x30], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.2.0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
push 0x4b2fb0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + eax + 0x34], 0
mov dword [esp + 0x50], 0xffffffff
call fcn.00474481
int3