joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4103f9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4187e4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403beb
mov edi, dword [esp + 0x44]
test edi, edi
je 0x403beb
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x30], ecx
push eax
lea ecx, [esi + 0x84]
mov dword [esi + 0x34], edx
call dword [0x412168]
push edi
lea ecx, [esi + 0xbc]
call dword [0x412168]
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x403bb9
lea eax, [esp + 0xc]
push eax
call fcn.0040ca10
add esp, 4
push eax
lea ecx, [esi + 0xa0]
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x14
add esi, 0xa0
push eax
mov ecx, esi
call dword [0x412168]
push 0x413280
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x14
mov eax, 2
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x14

Function at 0x4049b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::size_void_const]
lea edx, [esi + eax*2]
mov ecx, esi
mov eax, 0x811c9dc5
cmp esi, edx
je 0x4049f2
jmp 0x4049e0
movzx esi, word [ecx]
imul eax, eax, 0x1000193
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x4049e0
pop edi
pop esi
ret
Function at 0x404b80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x410299
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4187e4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
lea esi, [edi + edi + 2]
cmp esi, ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], edi
jge 0x404c18
jmp 0x404bd0
lea eax, [esi*8]
sub eax, esi
lea eax, [ebx + eax*4]
lea ecx, [eax - 0x1c]
push ecx
push eax
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator__wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
test al, al
je 0x404bef
dec esi
lea edx, [esi*8]
sub edx, esi
lea ecx, [edi*8]
lea eax, [ebx + edx*4]
sub ecx, edi
push eax
lea ecx, [ebx + ecx*4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edi, esi
lea esi, [esi + esi + 2]
cmp esi, ebp
jl 0x404bd0
jne 0x404c3d
lea edx, [ebp*8]
sub edx, ebp
lea ecx, [edi*8]
lea eax, [ebx + edx*4 - 0x1c]
sub ecx, edi
push eax
lea ecx, [ebx + ecx*4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea edi, [ebp - 1]
sub esp, 0x1c
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [esp + 0x30]
push eax
push edi
push ebx
call fcn.00404270
add esp, 0x28
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40a190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x410a5c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4187e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, 0x418a88
call fcn.00403b00
push 0xb0
call fcn.0040f882
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
test eax, eax
je 0x40a1fc
mov ecx, eax
call fcn.00404580
jmp 0x40a1fe
xor eax, eax
push str.file
or edi, 0xffffffff
push eax
mov ecx, 0x418bd8
mov dword [esp + 0x20], edi
call fcn.0040a020
push 0xb0
call fcn.0040f882
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 1
test esi, esi
je 0x40a243
mov ecx, esi
call fcn.00404580
mov dword [esi], vtable.ingresslib::CritFileLogProvider.0
jmp 0x40a245
xor esi, esi
push str.critfile
push esi
mov ecx, 0x418bd8
mov dword [esp + 0x20], edi
call fcn.0040a020
push 0x24
call fcn.0040f882
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 2
test eax, eax
je 0x40a27c
mov ecx, eax
call fcn.00404680
jmp 0x40a27e
xor eax, eax
push str.vsdebug
push eax
mov ecx, 0x418bd8
mov dword [esp + 0x20], edi
call fcn.0040a020
push 0x28
call fcn.0040f882
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 3
test eax, eax
je 0x40a2b5
mov ecx, eax
call fcn.00404760
jmp 0x40a2b7
xor eax, eax
push 0x4125c0
push eax
mov ecx, 0x418bd8
mov dword [esp + 0x20], edi
call fcn.0040a020
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40a950
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x410b4c
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4187e4]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x4187e4]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::clear_void_]
cmp dword [edi + 0x14], 0
je 0x40aa21
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.0040f8bc
add esp, 0xc
push edi
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x41286c
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 4]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x7f
lea edx, [esp + 0x28]
push edx
push 0x412868
push str.Version
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [0x412168]
lea ecx, [esp + 4]
mov dword [esp + 0x12c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040f466
add esp, 0x12c
ret

Function at 0x40ad20
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40ca10
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x410d63
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4187e4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4187e4]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
mov ecx, esi
mov dword [esp + 0x224], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 1
push 0x25
lea eax, [esp + 0x18]
push eax
push 0
mov dword [esp + 0x234], 0
mov dword [esp + 0x18], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x412930
push 0x104
lea ecx, [esp + 0x18]
push ecx
call fcn.00403840
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__]
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040f466
add esp, 0x220
ret

Function at 0x40d461
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40d485
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x40d485
cmp dword [esp + 4], 0x103
je 0x40d4e6
mov eax, dword [esi + 4]
test eax, eax
je 0x40d49a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
lea edx, [esi + 8]
push edx
push 4
push esi
push 0x40d3c0
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x40d4df
push str.Can_not_create_thread_
push 0x66
push str.ingresslib::WinThread::Start
push 0x412aa0
push 1
push 0x418bd8
call fcn.00407780
add esp, 0x18
xor al, al
pop esi
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
pop ecx
ret
Function at 0x40d4f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x415230
push 0x40f8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4187e4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x40d545
mov dword [esi + 4], ebx
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40d54e
mov byte [edi], bl
mov byte [ebp - 0x19], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x40d578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x19], bl
jmp 0x40d5b5
cmp dword [ebp + 0xc], 0x103
jne 0x40d5b1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d5b1
push ebx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x40d56a
mov dword [ebp - 0x20], ebx
cmp edi, ebx
je 0x40d5ac
mov byte [edi], 1
mov byte [ebp - 0x19], bl
jmp 0x40d5b5
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0040d5dd
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f466
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4187e4]
jne 0x40f470
repz ret
jmp fcn.0040fa58
Function at 0x401e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
adc edi, dword [eax + 0x69]
add eax, 0x36bf1d7e
xor byte [edi - 0x6f29fe0d], bl
jl 0x401eba
pop es
loope 0x401e2a
sti
add bl, bh
leave
cld
sbb eax, 0x68f6574b
ficom word [ebx + 0x1c68b76e]
ror dword [ebx - 0x2cfedba8], 0x66
mov ecx, dword [ebx + ecx*2]

Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax + 0xe62014]
xor ecx, ecx
invalid
jne 0x40618d
in al, dx
sub esp, 0x35
mov eax, dword [ebp + 0x79]
and al, 0xd3
push edi
sti
add al, 4
add dword [edi], ecx
test dword [edi + 0x17], esi
fld qword [eax]
mov ebx, dword [eax + 0xc]
mov edx, dword [ecx + 0x3c]
xor ecx, ecx
mov esp, dword [eax]
add al, 0x8b
cmp dword [eax*4 - 0x782762e], eax
jbe 0x406240
mov esi, dword [eax + 0x301c]
add esi, 0xc
cmp ebx, dword [esi]
jns 0x40624e
mov edx, 0x3b14c683
retf 0xf472
pop edi
pop esi
mov eax, 0x1157f
pop ebx
mov esp, ebp
dec ebp
ret 8
loopne 0x406229
inc ecx
lea esi, [edx + 0x27]
cmp ecx, edx
mov dword [eax + 4], esi
jae 0x4062aa
add dword [ebx + ebx*4], ebx
lea edi, [eax + ebx*2]
xor eax, 0xe7c102e3
add bl, byte [ebp - 0x2f]
pop ebp
jge 0x406234
fist dword [ebp - 4]
mov ecx, dword [eax + 0x523048]
mov edx, dword [ebp + 0xc]
mov edi, dword [eax]
or al, 0x8d
xor al, 0xf
cmp ebp, esp
or al, 0x4a
add eax, 0xeb0448ff
adc byte [esp + edi + 0xb], dl
mov ecx, 0xc3
mov edi, dword ds:[ebp + 8]
add ebx, 0x14
mov ecx, dword [ebp - 4]
add edi, 0x14
dec ecx
mov dword [ebp + 8], edi
mov dword [ebp - 4], ecx
jne 0x40626f
mov edi, dword [ebp - 8]
mov edi, dword [edx]
or al, 0x33
leave
test edx, edx
jbe 0x4062e1
lea esi, [eax + 0x10]
cmp dword [esi], edi
je 0x4062d5
stosb byte es:[edi], al
add esi, 4
cmp dword [edx + 0x5f], ebx
hlt
mov esi, dword [edx + 0x3a]
inc ecx
mov dword [edx], esi
push cs
jo 0x4062dc
push es
add edx, 4
dec esi
pop edx
into
jb 0x4062cd
dec dword [eax + 0xc]
mov ah, 0x90
adc byte [eax], dl
add bl, al
xor ecx, ecx
cmc
sal byte [esi + 0x3a], cl
lea esi, [eax + 0x1021]
cmp dword [esi], edi
je 0x406301
inc ecx
add esi, 0xffffff82
mov ecx, 0xebf403ca
mov ah, 0x3b
mov ah, 0x3b
retf 0x1b73
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x401242
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x64
mov eax, 0x40de6e
call fcn.0040472c
and dword [ebp - 0x18], 0
push 7
pop edx
xor eax, eax
mov bl, 1
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
and dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov word [ebp - 0x58], ax
push 0xffffffffffffffff
push eax
mov byte [ebp - 4], bl
and dword [ebp - 0x30], eax
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x40], ax
call fcn.00402825
mov esi, 0x4143b8
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00401000
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00402b3d
mov ecx, esi
call fcn.00401000
push eax
push 1
push esi
jmp 0x401336
push esi
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402764
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4012dc
push 0
push 1
mov ecx, eax
call fcn.00402a1d
push edi
lea ecx, [ebp - 0x28]
call fcn.004027d9
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00402a1d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401324
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401324
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40134b
mov edi, 0x4143b8
mov ecx, edi
call fcn.00401000
push eax
lea eax, [esi + 1]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00402948
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012b0
jmp 0x40134d
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00402a1d
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00402a1d
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402a1d
mov al, bl
call fcn.004046ea
ret
Function at 0x401a69
Capabilities:
Get file size
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push 0x23c
mov eax, 0x40df10
call fcn.0040472c
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x248], ecx
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor ebx, ebx
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.004097f0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401ac2
xor al, al
jmp 0x401ba6
push ebx
push 0x80
push 3
push ebx
xor ebx, ebx
inc ebx
push ebx
push SysReAllocString
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401abb
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
jne 0x401b05
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401abb
push 0x416f86
push 0x4000000
call fcn.00403b23
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x401afc
and dword [ebp - 0x220], 0
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x240]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401b47
push esi
call fcn.00403b1e
pop ecx
jmp 0x401afc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
and dword [ebp - 0x244], 0
push 0x414370
lea ecx, [ebp - 0x238]
call fcn.004026c0
and dword [ebp - 4], 0
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x238]
push eax
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0040176e
add esp, 0xc
test al, al
jne 0x401bac
push str.get_config_file_failed...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor bl, bl
lea ecx, [ebp - 0x238]
call fcn.004026ef
mov al, bl
call fcn.004046ea
ret
mov eax, dword [ebp - 0x23c]
cmp dword [eax + 0x14], 8
jb 0x401bba
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x23c], ecx
cmp ecx, 0xffffffff
jne 0x401be8
push esi
call fcn.00403b1e
pop ecx
jmp 0x401b97
and dword [ebp - 0x220], 0
cmp dword [ebp - 0x224], 0x10
push 0
lea edx, [ebp - 0x220]
push edx
push dword [ebp - 0x228]
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401c32
push esi
call fcn.00403b1e
pop ecx
push dword [ebp - 0x23c]
call edi
jmp 0x401b97
push dword [ebp - 0x23c]
call edi
mov eax, dword [ebp - 0x248]
cmp dword [eax + 0x14], 8
jb 0x401c48
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401b97
mov ecx, dword [ebp - 0x240]
and dword [ebp - 0x220], 0
push 0
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x244]
sub ecx, eax
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x401cab
call fcn.00403b1e
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b97
call fcn.00403b1e
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b99