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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4012c8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.0040105b
test eax, eax
jne 0x401362
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402b7c
sub eax, 0x40211a
mov dword [esp], 0x40211a
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401362
lea ebx, [ebp - 0x88]
mov dword [esp], 0
jmp loc.004607c2
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x43b637
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
mov ecx, 0x965a95c7
sub ecx, 1
inc ecx
call fcn.0043b676
inc ecx
sub esi, 0xd059a87a
or esi, ecx
xor dword [ebx], edi
or esi, ecx
inc ebx
or ecx, ecx
sub esi, esi
cmp ebx, eax
jne fcn.0043b637
add ecx, 0x66c1fa2a
ret
Function at 0x453655
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0590]
jne 0x45365f
repz ret
jmp fcn.0045bf52

Function at 0x46c4e6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045c7ad
and dword [ebp - 4], 0
cmp dword [0x4a3600], 0
mov ebx, eax
jne 0x46c597
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46c648
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x46c648
push eax
call fcn.0045c73b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a3600], eax
call esi
push eax
call fcn.0045c73b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a3604], eax
call esi
push eax
call fcn.0045c73b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a3608], eax
call esi
push eax
call fcn.0045c73b
pop ecx
mov dword [0x4a3610], eax
test eax, eax
je 0x46c597
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045c73b
pop ecx
mov dword [0x4a360c], eax
mov eax, dword [0x4a360c]
cmp eax, ebx
je 0x46c5ef
cmp dword [0x4a3610], ebx
je 0x46c5ef
push eax
call fcn.0045c7b6
push dword [0x4a3610]
mov esi, eax
call fcn.0045c7b6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46c5ef
test edi, edi
je 0x46c5ef
call esi
test eax, eax
je 0x46c5e6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46c5e6
test byte [ebp - 0xc], 1
jne 0x46c5ef
or dword [ebp + 0x10], 0x200000
jmp 0x46c628
mov eax, dword [0x4a3604]
cmp eax, ebx
je 0x46c628
push eax
call fcn.0045c7b6
pop ecx
test eax, eax
je 0x46c628
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46c628
mov eax, dword [0x4a3608]
cmp eax, ebx
je 0x46c628
push eax
call fcn.0045c7b6
pop ecx
test eax, eax
je 0x46c628
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a3600]
call fcn.0045c7b6
pop ecx
test eax, eax
je 0x46c648
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46c64a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x6d464769
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x6d464778
pop dword [ebp - 0x4c]
mov eax, 0xc08a78c
sub eax, 0x9ec26014
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xe7a316f7
add dword [ebp - 0x5c], 0x66af2e54
mov dword [ebp - 0x58], 0xa4a6e410
sub dword [ebp - 0x58], 0x727397cb
mov dword [ebp - 0x54], 0x588524b4
add dword [ebp - 0x54], 0xf3c71f7a
mov dword [ebp - 0x50], 0x8efe3f67
add dword [ebp - 0x50], 0x7101c099
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x7c48d189
add eax, 0xf0fdbea3
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x8a692fcd
add dword [ebp - 0x5c], 0xea093989
mov dword [ebp - 0x58], 0x42d70623
sub dword [ebp - 0x58], 0x16aa4ae
mov dword [ebp - 0x54], 0x4cadf5b9
sub dword [ebp - 0x54], 0xe93e894d
mov dword [ebp - 0x50], 0xf04c78fe
add dword [ebp - 0x50], 0xfb38702
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3961c
push 0
call eax
mov ecx, 0x5048
xor edi, edi
add edi, eax
mov edx, 0xbf48cd2f
add edx, 0xadfe20d1
add edx, dword [ebp - 0x4c]
mov esi, 0xc7b7712f
add esi, 0x77765a92
xor dword [ebp - 0x28], edi
mov ebx, dword [edx]
mov dword [ebp - 0x18], 0xcf5b240f
add ebx, esi
add dword [ebp - 8], 0x9985bd54
mov dword [edi], ebx
add edi, 0x5b9aea01
sub edi, 0x5b9ae9fd
add edx, 4
loop 0x6d464891
add eax, 0x133f3
mov ebx, eax
add eax, 0x4ae0650
add eax, 0xfb51f9b5
mov ecx, 0x6d460000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x3001f488
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30005e14
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3001f4e0
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x30005e0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x3001f4e0
mov al, 1
jmp 0x3001f4e2
xor al, al
leave
ret 8

Function at 0x3001f537
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x30005dc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x6b8], ecx
movzx ecx, byte [eax + 0xf]
push edi
push ecx
movzx ecx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push ecx
movzx ecx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push ecx
movzx ecx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push ecx
movzx ecx, byte [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push ecx
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea eax, [ebp - 0x88]
push 0x300060d0
push eax
call fcn.3001f4e6
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x34
lea eax, [ebp - 0x6ac]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push 0x300014cc
push SysReAllocString
mov word [ebp - 0x394], bx
mov dword [ebp - 0x6ac], ebx
call esi
test eax, eax
jne 0x3001f6fe
lea eax, [ebp - 0x6a4]
push eax
push edi
push ebx
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x6ac]
mov dword [ebp - 0x6a4], ebx
call esi
test eax, eax
jne 0x3001f6ea
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x6b4]
push eax
push ebx
push ebx
push 0x300060b4
push dword [ebp - 0x6a4]
mov dword [ebp - 0x6b0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x3001f680
cmp dword [ebp - 0x6b0], 4
jne 0x3001f680
cmp dword [ebp - 0x6b4], 1
jne 0x3001f669
cmp dword [ebp - 0x6a4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x3001f652
invalid
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4216512c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x42e55144
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402cd7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x418
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
neg eax
sbb eax, eax
inc eax
mov dword [0x44d9a0], eax
push 0x11
push 0x44d9b4
push 0x41e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 9
push 0x44d9c5
push 0x41d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xa
lea eax, [ebp - 0xc]
push eax
push 0x41f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [0x44d9a8], eax
push 0xa
lea eax, [ebp - 0xc]
push eax
push 0x420
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0xc]
push edx
call fcn.0041f0ce
add esp, 4
mov dword [0x44d9ac], eax
mov eax, dword [0x44d9a8]
cmp eax, dword [0x44d9ac]
jg 0x402da0
cmp dword [0x44d9a8], 0
jg 0x402de9
mov dword [0x44d9a8], 1
push 1
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x41f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 4
push 0
push 0xb1
push 0x41f
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402e68
mov eax, dword [0x44d9ac]
cmp eax, dword [0x44d9b0]
jle 0x402e41
mov ecx, dword [0x44d9b0]
mov dword [0x44d9ac], ecx
push 1
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x420
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 4
push 0
push 0xb1
push 0x420
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402e68
push 0x44d9a0
mov ecx, dword [0x42e274]
push ecx
mov edx, dword [0x42b398]
push edx
call fcn.0040334e
add esp, 0xc
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov esp, ebp
pop ebp
ret
Function at 0x402eb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x418
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x3c], eax
push 0x11
lea ecx, [ebp - 0x28]
push ecx
push 0x41e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 9
lea eax, [ebp - 0x17]
push eax
push 0x41d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xa
lea edx, [ebp - 0xc]
push edx
push 0x41f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x34], eax
push 0xa
lea edx, [ebp - 0xc]
push edx
push 0x420
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0xc]
push ecx
call fcn.0041f0ce
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x3ff
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jg 0x402f70
cmp dword [ebp - 0x34], 0
jg 0x402fb9
mov dword [ebp - 0x34], 1
push 1
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x41f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 4
push 0
push 0xb1
push 0x41f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x403061
mov edx, dword [ebp - 0x30]
cmp edx, dword [0x44d9b0]
jle 0x40300b
mov eax, dword [0x44d9b0]
mov dword [ebp - 0x30], eax
push 1
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x420
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 4
push 0
push 0xb1
push 0x420
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x403061
push 4
push 0x44da20
mov eax, dword [0x44da0c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403053
mov eax, dword [0x42b398]
push eax
call fcn.0040366a
add esp, 4
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [0x42b398]
push eax
call fcn.0040334e
add esp, 0xc
jmp 0x403055
jmp 0x403061
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov esp, ebp
pop ebp
ret
Function at 0x40315c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push 0x42b3d4
push 0x42b3e0
mov eax, dword [ebp + 8]
push eax
push 0
push 5
call sub.WINDCS32.dll_Ordinal_69
push eax
push 0x42b3e8
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov edx, dword [ebp + 0xc]
push edx
push 0x42b3fc
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x80]
push ecx
push 0x32
lea edx, [ebp - 0xb4]
push edx
push 0x42e280
push 0
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4031d4
xor eax, eax
jmp 0x4032d3
mov ecx, dword [ebp + 0xc]
push ecx
push str.Maint.Group_2.2d
push 0x44da60
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
push 0x10
mov eax, dword [ebp + 0x10]
add eax, 0x14
push eax
push 0x44da60
push 0x42b41c
lea ecx, [ebp - 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x80]
push edx
push 0
push 0x42b424
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x403240
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], 0x3a
jmp 0x40324a
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], 0x3b
lea edx, [ebp - 0x80]
push edx
push 1
push 0x42b42c
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
lea edx, [ebp - 0x80]
push edx
push 0x3ff
push 0x42b434
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
lea edx, [ebp - 0x80]
push edx
push 0x3ff
push 0x42b43c
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x10], eax
lea edx, [ebp - 0x80]
push edx
push 9
mov eax, dword [ebp + 0x10]
add eax, 0x25
push eax
push str.maintusr
push 0x42b450
lea ecx, [ebp - 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403e7e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
call sub.WINDCS32.dll_Ordinal_50
push eax
push 0x42b5b4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 1
push str.defaultPCU
push 0x42b5d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x42b518], al
lea edx, [ebp - 0x3c]
push edx
push 0
push str.debugBedien
push str.Trans
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x42fbd8], al
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x406570
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040635e
add esp, 0x14
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x4065e7
push 2
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0xffffffff
jne 0x4065e7
mov dword [ebp - 0x84], 1
cmp dword [ebp - 0x84], 0
jne 0x406678
cmp dword [ebp - 0x8c], 0xffffffff
je 0x406678
push 0
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WINDCS32.dll_sysini_GetPcuFamily
cmp eax, 7
jne 0x40666b
mov dword [ebp - 0x88], 0
push 0x4e
lea edx, [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x4e
jne 0x406651
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x88]
cdq
sub eax, edx
sar eax, 1
jmp 0x406686
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x88]
sub eax, 0xa
cdq
sub eax, edx
sar eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x406825
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov dword [ebp - 0x90], 0xffffffff
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x84], 0
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040635e
add esp, 0x14
test eax, eax
je 0x40687e
or eax, 0xffffffff
jmp 0x4069c1
push 0x8002
lea edx, [ebp - 0x80]
push edx
call fcn.0041fd55
add esp, 8
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0xffffffff
jne 0x4068a6
or eax, 0xffffffff
jmp 0x4069c1
mov eax, dword [ebp + 8]
push eax
call sub.WINDCS32.dll_sysini_GetPcuFamily
cmp eax, 7
jne 0x406986
push 0x4e
lea ecx, [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0x90]
push edx
call fcn.0041fb5f
add esp, 0xc
cmp eax, 0x4e
je 0x4068ec
mov eax, dword [ebp - 0x90]
push eax
call fcn.0041faac
add esp, 4
or eax, 0xffffffff
jmp 0x4069c1
cmp dword [ebp - 0xd0], 0
jne 0x4068fe
cmp dword [ebp - 0xcc], 0
je 0x40692b
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0041faac
add esp, 4
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0xd4]
jge 0x406920
mov eax, dword [ebp + 0x14]
jmp 0x4069c1
mov eax, dword [ebp - 0xd4]
jmp 0x4069c1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
add ecx, 0x4e
mov dword [ebp - 0xd8], ecx
push 0
push 0
mov edx, dword [ebp - 0x90]
push edx
call fcn.0041fa12
add esp, 0xc
push 0x4e
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0041f865
add esp, 0xc
mov edx, dword [ebp - 0xd8]
push edx
mov eax, dword [ebp - 0x90]
push eax
call fcn.00420804
add esp, 8
jmp 0x4069af
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + ecx + 0xa]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.00420804
add esp, 8
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x90]
push edx
call fcn.0041faac
add esp, 4
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4075cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov dword [ebp - 0x84], 0xffffffff
mov eax, dword [ebp + 8]
push eax
call sub.WINDCS32.dll_sysini_GetPcuFamily
cmp eax, 7
je 0x4075f7
xor eax, eax
jmp 0x4076a9
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040635e
add esp, 0x14
test eax, eax
je 0x40761c
xor eax, eax
jmp 0x4076a9
push 0x8002
lea edx, [ebp - 0x80]
push edx
call fcn.0041fd55
add esp, 8
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0xffffffff
jne 0x407640
xor eax, eax
jmp 0x4076a9
push 0x4e
lea eax, [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.0041fb5f
add esp, 0xc
cmp eax, 0x4e
je 0x407670
mov edx, dword [ebp - 0x84]
push edx
call fcn.0041faac
add esp, 4
xor eax, eax
jmp 0x4076a9
cmp dword [ebp - 0xc4], 0
jne 0x407682
cmp dword [ebp - 0xc0], 0
je 0x407698
mov eax, dword [ebp - 0x84]
push eax
call fcn.0041faac
add esp, 4
mov eax, 1
jmp 0x4076a9
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.0041faac
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret