joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401df0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x196c
call fcn.00405dc0
mov eax, dword [0x409020]
xor eax, esp
mov dword [esp + 0x1964], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1978]
push esi
push edi
xor ebx, ebx
push 0x7ff
lea eax, [esp + 0x975]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x97c], bl
call sub.MSVCR80.dll_memset
push 0x7ff
lea ecx, [esp + 0x1181]
push ebx
push ecx
mov byte [esp + 0x1188], bl
call sub.MSVCR80.dll_memset
push 0x7ff
lea edx, [esp + 0x18d]
push ebx
push edx
mov byte [esp + 0x194], bl
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x800
lea edi, [esp + 0x11a0]
call fcn.00402480
add esp, 0x30
mov eax, edi
push eax
push 0x800
lea ecx, [esp + 0x978]
push ecx
push 0x407474
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x970], bl
je 0x401fa4
cmp ebp, ebx
lea edi, [esp + 0x170]
je 0x401f84
push ebp
lea edx, [esp + 0x974]
push edx
push esi
push str.__s_s.exe___s
mov eax, 0x800
call fcn.00402480
add esp, 0x10
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [esp + 0x190]
push eax
push ebx
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x64], ebx
mov word [esp + 0x6a], bx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, ebx
jne 0x401f67
push 0x103
lea ecx, [esp + 0x6d]
push ebx
push ecx
mov byte [esp + 0x74], bl
call sub.MSVCR80.dll_memset
push 0x407434
push 0x4073a8
mov eax, 0x104
lea edi, [esp + 0x7c]
call fcn.00402480
add esp, 0x14
push ebx
push 0x407434
mov edx, edi
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
mov ecx, dword [esp + 0x1974]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405456
add esp, 0x196c
ret 8
lea eax, [esp + 0x970]
push eax
push esi
push str.__s_s.exe_
mov eax, 0x800
call fcn.00402480
add esp, 0xc
jmp 0x401ee1
xor eax, eax
jmp 0x401f69

Function at 0x401fb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x409020]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
mov edi, ecx
test edi, edi
je 0x402034
xor eax, eax
cmp eax, str.QQPetAgent
je 0x402034
push esi
push 0x3ff
push eax
lea ecx, [esp + 0x11]
push ecx
lea esi, [eax + 1]
mov byte [esp + 0x14], al
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x23
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.QQPetAgent
lea eax, [esp + 0xc]
push eax
push str._sQQPet_s
mov eax, 0x104
call fcn.00402480
add esp, 0xc
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00405456
add esp, 0x404
ret
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00405456
add esp, 0x404
ret
Function at 0x402050
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x534
mov eax, dword [0x409020]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x13d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x144], bl
call sub.MSVCR80.dll_memset
push esi
push str._s.exe
mov eax, 0x400
lea edi, [esp + 0x14c]
call fcn.00402480
add esp, 0x14
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40210d
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402106
mov edi, dword [sym.imp.MSVCR80.dll__stricmp]
mov ebp, dword [sym.imp.MSVCR80.dll__getpid]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x13c]
push eax
call edi
add esp, 8
test eax, eax
jne 0x4020f0
call ebp
cmp dword [esp + 0x18], eax
jne 0x402101
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4020d2
jmp 0x402106
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00405456
add esp, 0x534
ret
Function at 0x402530
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x409020]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 8]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402577
mov ecx, 9
mov esi, str.TencentQQPetQQPetAgent_Profile.ini
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 8]
push edx
push 0x400
push ebx
push 0x407474
push str.FILENAME
push str.QQPetAgent
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 0x408]
pop edi
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.00405456
add esp, 0x404
ret
Function at 0x403ad0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403ae0
sub eax, ecx
movzx eax, ax
lea ecx, [esp + 0x1c]
push ecx
mov edi, 1
mov esi, ebp
mov dword [esp + 0x1c], eax
call fcn.00402a90
lea edx, [esp + 0x18]
push edx
mov edi, 2
call fcn.00402a90
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
movzx edi, bx
push eax
call fcn.00402a90
mov eax, dword [ebp]
sub eax, edi
add eax, dword [ebp + 4]
mov cl, bh
xor edx, edx
xor cl, bl
xor esi, esi
cmp edi, edx
jle 0x403b48
mov bl, byte [esi + eax]
not bl
xor bl, cl
mov byte [esi + eax], bl
add esi, 1
cmp esi, edi
jl 0x403b37
movzx eax, byte [esp + 0x1c]
add eax, 0xffffffff
cmp eax, 9
ja case.0x403b59.7
jmp dword [eax*4 + 0x403cf4]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
mov edi, 4
push edx
mov esi, ebp
mov dword [esp + 0x24], edi
call fcn.00402a90
mov esi, eax
call fcn.00402a90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
mov edi, 4
mov esi, ebp
mov dword [esp + 0x24], 1
call fcn.00402a90
mov edi, 1
mov esi, eax
call fcn.00402a90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov edi, 4
mov esi, ebp
mov dword [esp + 0x24], 2
call fcn.00402a90
mov edi, 2
mov esi, eax
call fcn.00402a90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
mov edi, 4
push ecx
mov esi, ebp
mov dword [esp + 0x24], edi
call fcn.00402a90
mov esi, eax
call fcn.00402a90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0x14]
lea eax, [esp + 0x1c]
push eax
mov edi, 4
mov esi, ebp
mov dword [esp + 0x20], ebx
call fcn.00402a90
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x18], 0x10
mov edi, dword [ecx + 0x14]
jb 0x403c3c
mov ecx, dword [ecx + 4]
jmp 0x403c3f
add ecx, 4
push ecx
mov esi, eax
call fcn.00402a90
mov eax, dword [ebp]
sub eax, ebx
add eax, dword [ebp + 4]
mov cl, bh
xor cl, bl
xor esi, esi
test ebx, ebx
jle case.0x403b59.7
lea ecx, [ecx]
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
add esi, 1
cmp esi, ebx
jl 0x403c60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x68]
jmp 0x403cb4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0xac]
call eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov edi, 4
mov esi, ebp
mov dword [esp + 0x14], ecx
call fcn.00402a90
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push ecx
mov esi, eax
call fcn.00402a90
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x403d20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x405fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x409020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, 0x400
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCR80.dll_realloc]
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x14]
push eax
lea edi, [ebx + 4]
lea esi, [esp + 0x20]
mov byte [esp + 0x18], 0x51
mov byte [esp + 0x19], 0x44
mov byte [esp + 0x1a], 1
mov byte [esp + 0x1b], 1
mov dword [esp + 0x1c], ebx
call fcn.00402a90
lea ecx, [esp + 0x18]
push ecx
lea edi, [ebx + 2]
call fcn.00402a90
mov edi, dword [ebp + 8]
xor esi, esi
cmp word [edi + 4], bx
mov ebx, dword [esp + 0x18]
jbe 0x403e1d
mov edx, dword [edi + 0xc]
mov al, byte [esi + edx]
cmp al, 8
mov byte [esp + 0x18], al
je 0x403e12
mov ecx, dword [edi + 0x14]
add ebx, 1
cmp dword [ecx + esi*4], 0
jne 0x403e12
movzx eax, al
add eax, 0xffffffff
cmp eax, 9
ja case.0x403de3.7
movzx edx, byte [eax + 0x403e80]
jmp dword [edx*4 + 0x403e78]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + esi*4]
mov edx, dword [edi + 8]
mov eax, dword [edx + esi*4]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00403ad0
add esp, 0x10
jmp 0x403e12
add ebx, 0xffff
movzx eax, word [edi + 4]
add esi, 1
cmp esi, eax
jl 0x403db7
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0xc]
mov word [ecx + 4], bx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push eax
mov dword [edx], eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
push eax
call sub.MSVCR80.dll_memcpy
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x403e5e
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4041c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x405f80
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x409020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
lea edi, [esi + 0xc]
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], ebx
lea ecx, [esi + 0x3c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x18], 2
call fcn.00404b10
push str.StartFileParser
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x1a0
lea eax, [esi + 0x78]
push ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x2c], 1
mov dword [esi + 0x218], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esi + 0x28], ebx
jne 0x40428c
push 0x18
call fcn.0040556c
add esp, 4
cmp eax, ebx
je 0x404287
mov dword [eax], vtable.CQQData.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
mov byte [eax + 6], bl
mov byte [eax + 7], bl
jmp 0x404289
xor eax, eax
mov dword [esi + 0x28], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4045b0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x800c
call fcn.00405dc0
mov eax, dword [0x409020]
xor eax, esp
mov dword [esp + 0x8004], eax
push ebx
push esi
xor eax, eax
mov esi, ecx
test esi, esi
setne al
test eax, eax
je 0x404685
push 0x407608
push esi
call dword [sym.imp.MSVCR80.dll_fopen]
push 0x7fff
mov ebx, eax
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0x14
test ebx, ebx
jne 0x40462f
push esi
push str._InitializeFile__t__failed_to_open_param_file_s
mov edx, edi
call fcn.00404c00
add esp, 8
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x8004]
xor ecx, esp
call fcn.00405456
add esp, 0x800c
ret
push ebx
push 0x8000
lea ecx, [esp + 0x10]
push 1
push ecx
call dword [sym.imp.MSVCR80.dll_fread]
push ebx
mov esi, eax
call dword [sym.imp.MSVCR80.dll_fclose]
xor edx, edx
add esp, 0x14
cmp edx, esi
sbb eax, eax
neg eax
je 0x404685
mov eax, dword [edi + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push esi
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov esi, eax
test esi, esi
jge 0x40467e
push str._InitializeFile__t
mov edx, edi
call fcn.00404c00
add esp, 4
xor eax, eax
test esi, esi
setge al
mov ecx, dword [esp + 0x800c]
pop esi
pop ebx
xor ecx, esp
call fcn.00405456
add esp, 0x800c
ret

Function at 0x404b10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x409020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x404b75
push 0xf3
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x404b75
lea edx, [esp]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x404b75
mov byte [eax + 1], 0
push edi
lea edi, [esp + 4]
call fcn.00405320
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.ShowVerboseInfo
push str.qqpetagentstarter
call edi
lea ecx, [esp + 4]
push ecx
neg eax
push 0
sbb eax, eax
push str.ShowTraceInfo
neg eax
push str.qqpetagentstarter
mov dword [esi], eax
call edi
lea edx, [esp + 4]
push edx
neg eax
push 0
sbb eax, eax
push str.ShowErrorInfo
neg eax
push str.qqpetagentstarter
mov dword [esi + 4], eax
call edi
neg eax
sbb eax, eax
neg eax
cmp dword [esi + 0x20], 0
mov dword [esi + 8], eax
pop edi
jne 0x404beb
push str.qqpetagentstarter
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00405456
add esp, 0x108
ret
Function at 0x404c50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe1c
mov eax, dword [0x409020]
xor eax, esp
mov dword [esp + 0xe18], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
mov esi, edx
lea edx, [esp + 0xa25]
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov byte [esp + 0xa2c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [esp + 0x225]
push ebx
push eax
mov byte [esp + 0x22c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x625]
push ebx
push ecx
mov byte [esp + 0x62c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
push 0x1ff
mov dword [esp + 0x20], edx
lea edx, [esp + 0x25]
push ebx
push edx
mov dword [esp + 0x24], eax
mov byte [esp + 0x2c], bl
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll__localtime64]
add esp, 4
push eax
push str._Y__m__d__H:_M:_S
lea ecx, [esp + 0x28]
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_strftime]
add esp, 0x10
cmp dword [esi + 0x24], 0x10
jb 0x404d31
mov esi, dword [esi + 0x10]
jmp 0x404d34
add esi, 0x10
mov edx, dword [esp + 0x14]
push edx
push esi
push edi
push str._s:_s__s_r_n
mov eax, 0x3ff
lea edi, [esp + 0xa30]
call fcn.00402480
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
push ecx
push 0x3fe
lea edx, [esp + 0x23c]
push 0x3ff
push edx
call dword [sym.imp.MSVCR80.dll__vsnprintf_s]
add esp, 0x24
cmp eax, ebx
jl 0x404d81
cmp eax, 0x3fe
ja 0x404d81
jne 0x404d88
mov byte [esp + 0x61e], bl
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x24]
push ecx
push str._s__s
mov eax, 0x3ff
lea edi, [esp + 0x62c]
call fcn.00402480
add esp, 0xc
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00404de0
mov ecx, dword [esp + 0xe24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405456
mov esp, ebp
pop ebp
ret 8

Function at 0x404de0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
call dword [0x409004]
cmp dword [0x40972c], 0
jne 0x404e08
call fcn.00405080
mov dword [0x409730], eax
mov dword [0x40972c], 1
cmp dword [0x409730], 0
je 0x404e79
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
call fcn.00404e80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404e79
mov ebx, esi
call fcn.00404f50
push 2
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push ebx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404e58
push ebx
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x404f50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x28
cmp ebx, 0xffffffff
push ebp
push esi
push edi
je 0x405075
cmp dword [0x409730], 2
jne 0x405075
call fcn.00405140
xor edi, edi
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
push edi
push ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea ecx, [esp + 0x18]
push ecx
push 8
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405044
lea eax, [edi + 8]
lea edx, [esp + 0x28]
lea esi, [esp + 0x20]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x404fd8
sub eax, 4
add edx, 4
add esi, 4
cmp eax, 4
jae 0x404fc0
cmp eax, edi
je 0x405035
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x405027
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x405035
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x405027
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x405035
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x405027
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x405035
movzx ecx, byte [esi]
movzx edx, byte [edx]
sub ecx, edx
je 0x405035
cmp ecx, edi
mov eax, 1
jg 0x405037
or eax, 0xffffffff
jmp 0x405037
xor eax, eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
cmp eax, edi
je 0x405075
push edi
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push 8
lea ecx, [esp + 0x34]
push ecx
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
add esp, 0x28
ret

Function at 0x405080
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x409020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4050e6
push 0xf3
push 0x409840
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4050e6
push 0x5c
push 0x409840
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x4050e6
mov byte [eax + 1], 0
push edi
push str.ConfigDebug.ini
push 0x409840
push str._s_s
mov eax, 0x104
lea edi, [esp + 0x10]
call fcn.00402480
add esp, 0xc
mov ecx, edi
push ecx
push 0
push str.Log2File
push str.Base
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.00405456
add esp, 0x108
ret

Function at 0x405456
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409020]
jne 0x405460
repz ret
jmp fcn.00405888
Function at 0x411060
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4aa6cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049b727
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4110e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00498a6c
mov eax, dword [eax]
push 0x5b91f0
push eax
call fcn.0048ab44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049b9b2
test bl, bl
je 0x4110e2
push 0x5b91f0
lea ecx, [esp + 0xc]
call fcn.0049bd42
push 0x5bcd74
lea ecx, [esp + 0xc]
call fcn.0049bd42
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41111e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049b9b2
jmp 0x4111e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4111a2
lea edx, [esp + 0x7c]
push 0x5bcd70
push edx
call fcn.0048ab44
add esp, 8
test eax, eax
je 0x4111a2
lea eax, [esp + 0x7c]
push 0x5bcd6c
push eax
call fcn.0048ab44
add esp, 8
test eax, eax
je 0x4111a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411132
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049b9b2
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x411a00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x411a62
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc