joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x425618]
mov eax, dword [eax]
test eax, eax
je 0x4059ee
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov esi, dword [ebx + 8]
mov dword [ebp - 4], ecx
test edi, edi
je 0x40596e
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [eax]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405965
test dl, dl
je 0x405961
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405965
add eax, 2
add ecx, 2
test dl, dl
jne 0x405945
xor eax, eax
jmp 0x40596a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4059e0
mov eax, dword [ebp + 8]
cmp eax, 0xffffffc0
je 0x4059ce
cmp eax, 0xffffffc1
je 0x4059c6
cmp eax, 0xffffffc2
je 0x405992
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x44]
push 0
push ecx
push eax
mov ecx, esi
call edx
jmp 0x4059e0
mov eax, dword [0x425618]
mov edi, dword [eax + 8]
push esi
call dword [sym.imp.Ngs3.dll_ngsSaveObjectSetting]
mov ecx, dword [ebx + 4]
add esp, 4
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x425618]
dec edi
cmp dword [eax + 8], edi
je 0x4059e0
mov edx, dword [eax]
mov dword [ebp - 4], edx
jmp 0x4059e0
mov eax, dword [ebx + 4]
push 0
push eax
jmp 0x4059da
test byte [esi + 0x38], 8
jne 0x4059e0
mov ecx, dword [ebx + 4]
push 4
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x405926
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408af0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea ecx, [ebp - 4]
mov esi, eax
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
push 0x104
push 0x104
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_wchar_t____thiscall_C2bString::GetBuffer_int_]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::ReleaseBuffer_int_]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
test al, 0x10
je 0x408b4d
mov esi, 2
jmp 0x408bc7
mov esi, dword [ebp - 4]
push str..exe
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_unsigned_int___thiscall_C2bString::GetLength_void_const]
lea ecx, [esi + eax*2 - 8]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp esi, 1
jne 0x408bc7
mov edx, dword [ebp - 4]
push 0x20
push edx
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x408bc7
push 0x420354
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push 0x420354
push edx
call dword [sym.imp.Ngs3.dll_class_C2bString___cdecl_operator_wchar_t_const___class_C2bString_const__]
add esp, 0xc
mov ecx, eax
call dword [sym.imp.Ngs3.dll_public:_class_C2bString___thiscall_C2bString::operator_wchar_t_const__]
push eax
lea ecx, [ebp - 4]
call dword [0x4253b8]
lea ecx, [ebp - 8]
call ebx
lea ecx, [ebp - 0xc]
call ebx
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
mov ecx, dword [0x425624]
lea eax, [ebp - 4]
push eax
lea ecx, [ecx + esi*4]
call dword [0x4253b8]
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0
mov ecx, edi
call eax
lea ecx, [ebp - 4]
call ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f0a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, eax
mov ecx, dword [ebx + 4]
push esi
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb esi, esi
and esi, 0xfffffffb
add esi, 5
push esi
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push 0
call fcn.0040e730
cmp esi, 5
jne 0x40f121
mov ecx, dword [ebx + 0x40]
push 0
push 0
push 0x229
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40f116
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xf
push eax
push ebx
xor eax, eax
call fcn.0040e280
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
xor eax, eax
push eax
push ebx
call fcn.0040e280
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4103d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, edi
call dword [sym.imp.Ngs3.dll_public:_unsigned_int___thiscall_C2bString::GetLength32_void_const]
push 0xffffffffffffffff
mov ecx, edi
lea esi, [eax + 1]
call dword [sym.imp.Ngs3.dll_public:_wchar_t____thiscall_C2bString::GetBuffer_int_]
cmp word [eax], 0
je 0x410404
nop
cmp word [eax], 0xa
jne 0x4103fb
xor ecx, ecx
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x4103f0
mov edx, dword [edi]
mov eax, esi
test edx, edx
jne 0x410411
mov edx, 0x420450
cmp esi, 0xffffffff
jne 0x410430
mov eax, edx
lea esi, [eax + 2]
jmp 0x410420
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410420
sub eax, esi
sar eax, 1
inc eax
mov ecx, dword [ebp + 0xc]
add eax, eax
push eax
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
mov ecx, edi
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::ReleaseBuffer_int_]
pop esi
pop ebp
ret 8
Function at 0x410740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
xor esi, esi
push edi
lea edi, [esi + 1]
lea ecx, [ecx]
movzx eax, byte [esi + esi*2 + 0x420064]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [ebx + 0x1c]
and al, 1
movsx eax, al
neg eax
sbb eax, eax
mov edx, ecx
and eax, edi
and edx, edi
cmp edx, eax
je 0x4107bb
mov edx, edi
not edx
and edx, ecx
mov ecx, eax
and ecx, edi
or edx, ecx
mov dword [ebx + 0x1c], edx
test esi, esi
jne 0x41078d
lea ecx, [esi + 5]
jmp 0x410798
xor ecx, ecx
cmp esi, 1
setne cl
add ecx, 6
test eax, eax
je 0x4107a5
mov eax, dword [ecx*4 + 0x41ffe8]
jmp 0x4107aa
mov eax, 0x420450
mov edx, dword [ebx + 0x44]
push eax
push ecx
push 0x40b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
add edi, edi
cmp esi, 3
jl 0x410750
mov eax, dword [ebx + 0x48]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebx + 0x48]
push 0
push 0
push 0x418
mov esi, eax
or eax, 0xffffffff
push ecx
push esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xffffff01
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x41087e
lea ebx, [ebx]
mov eax, dword [ebx + 0x48]
lea edx, [ebp - 0x1c]
push edx
push edi
push 0x417
push eax
push esi
call dword [sym.imp.USER32.dll_CallWindowProcW]
test byte [ebp - 0x13], 1
jne 0x410878
mov cl, byte [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 1], cl
lea ecx, [ebp - 0x38]
call fcn.0040bc90
test al, 1
jne 0x410848
mov cl, byte [ebp - 1]
or cl, 4
jmp 0x41084f
and byte [ebp - 1], 0xfb
mov cl, byte [ebp - 1]
test al, 4
je 0x410858
or cl, 1
jmp 0x41085b
and cl, 0xfe
cmp cl, byte [ebp - 0x14]
je 0x410878
mov eax, dword [ebp - 0x18]
movzx edx, cl
mov ecx, dword [ebx + 0x48]
push edx
push eax
push 0x411
push ecx
push esi
call dword [sym.imp.USER32.dll_CallWindowProcW]
inc edi
cmp edi, dword [ebp - 8]
jl 0x410810
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410f00
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
cmp dword [eax], 0xbd4
push esi
push edi
jne 0x410ff9
mov esi, dword [eax + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
jmp 0x410f40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410f40
sub eax, edx
sar eax, 1
lea ecx, [ebp - 4]
mov edi, eax
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
lea ecx, [ebp - 8]
lea eax, [esi + edi*2 + 2]
push ecx
call fcn.00412780
mov eax, dword [ebp - 8]
cmp eax, 6
ja case.0x410f6f.3
jmp dword [eax*4 + 0x411004]
push ebx
xor eax, eax
call fcn.0040d820
jmp case.0x410f6f.3
mov edx, dword [ebp - 4]
push 0
push 1
push 0
push edx
push ebx
call fcn.0040f1c0
jmp case.0x410f6f.3
add eax, 0xfffffffb
push eax
mov eax, dword [ebp - 4]
push 0x10
push 0
push eax
call dword [sym.imp.MSVCRT.dll_wcstoul]
mov ecx, dword [ebx + 4]
add esp, 0xc
push eax
push 0xbd5
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x410fe8
mov ecx, dword [ebx + 4]
push 0
push 0xf120
push 0x112
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4119b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, eax
xor eax, eax
push edi
mov dword [ebp + 8], eax
mov dword [ebp - 4], eax
test bl, 1
je 0x4119d2
mov edi, 0x80
jmp 0x411a03
test bl, 2
je 0x4119de
mov edi, 0x81
jmp 0x411a03
push eax
push eax
mov eax, dword [esi + 0x40]
push 0x229
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 7
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
neg edi
sbb edi, edi
neg edi
sub edi, 0xffffff80
test bl, 4
je 0x411ab5
mov ecx, dword [esi + 0x24]
mov eax, dword [0x4257f4]
mov edx, dword [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp + 8], ecx
movzx ecx, word [0x4257ec]
push ecx
push 0x80
push 4
push eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
call ebx
test eax, eax
je 0x411a50
mov edx, dword [ebp - 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x411a52
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
movzx ecx, word [0x4257ec]
push ecx
push 0x81
mov dword [esi + 0x24], eax
mov eax, dword [0x4257f4]
push 4
push eax
mov dword [ebp - 8], eax
call ebx
test eax, eax
je 0x411a8e
mov edx, dword [ebp - 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x411a90
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x24], ecx
jne 0x411aa9
mov dword [ebp + 8], 0
cmp eax, dword [ebp - 4]
jne 0x411ab5
mov dword [ebp - 4], 0
cmp edi, 0x81
jne 0x411acb
mov edi, dword [esi + 0x28]
push 6
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
jmp 0x411ad0
mov edi, dword [esi + 0x24]
xor eax, eax
mov edx, dword [esi + 0x40]
push eax
push edi
push 0x230
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
je 0x411afb
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x411b05
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411e90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
lea ecx, [ebp - 8]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
push str.NgsConv.exe
lea eax, [ebp - 8]
push 2
push eax
call dword [sym.imp.Ngs3.dll_ngsGetPath]
xor eax, eax
push 0x44
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
call sub.MSVCRT.dll_memset
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add esp, 0x18
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
test eax, eax
je 0x411f02
mov ecx, dword [0x4256e0]
test ecx, ecx
je 0x411f02
push 2
push eax
call ecx
test eax, eax
je 0x411f02
or dword [ebp - 0x20], 0x400
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
push ebx
push esi
push edi
lea esi, [ebp + 0xb]
mov ebx, edx
call fcn.0041e250
lea esi, [ebp - 1]
mov edx, 0x420450
mov edi, eax
call fcn.0041e250
lea esi, [edi + eax + 0x10]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
mov eax, dword [0x425630]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp byte [ebp + 0xb], 0
mov edi, eax
mov eax, 0x420354
jne 0x411f58
mov eax, 0x420450
push 0x420450
push 0x420450
push 0x420450
push eax
push ebx
push eax
push str._s_s_s__s_s_s
call fcn.0041d9d0
add esp, 0x1c
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
mov ecx, 5
push 0
mov word [ebp - 0x1c], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [0x425630]
push edi
push 0
test eax, eax
push ecx
setne bl
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
jne 0x411fc0
mov eax, 2
call fcn.004155d0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x411fd6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov edx, dword [ebp - 0x58]
push edx
call esi
lea ecx, [ebp - 8]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [ebp + 0xc], 0
mov eax, dword [0x4250bc]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
jne 0x4143f9
movzx ecx, word [0x4257ec]
mov eax, dword [0x4257f4]
push ecx
push 0x6e
push 4
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x41437a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x41437c
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edx, dword [0x4250b8]
push 1
dec edx
mov esi, eax
push edx
push esi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push 0x3f2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [ebx + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x20], 0x14
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
push edx
push ebx
push eax
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
test eax, eax
je 0x414494
mov dword [0x4250b8], eax
test edi, edi
je 0x4143f9
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov edx, dword [0x4257fc]
mov eax, dword [edx + 0x40]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x229
push eax
call esi
push 7
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [0x4250b8]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x425620]
mov edi, eax
mov dword [ebp - 8], edx
call dword [sym.imp.Ngs3.dll_public:_unsigned_int___thiscall_C2bString::GetLength_void_const]
test eax, eax
je 0x41448b
test edi, edi
je 0x41448b
mov eax, dword [0x425620]
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0xbe3
push edi
call esi
test eax, eax
jne 0x41448b
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
push edx
lea edi, [ebp + 0xf]
call fcn.00415c70
push 0x30
push 0x95
call fcn.00415b10
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0xc]
add esp, 8
push 1
push eax
push 0x28
push ecx
call esi
call fcn.00415cd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x41448b
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4151c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
xor edi, edi
cmp dword [ebx], edi
je 0x415226
mov esi, ebx
lea esp, [esp]
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_unsigned_int___thiscall_C2bString::GetLength_void_const]
test eax, eax
je 0x4151fb
push 0x4210dc
lea ecx, [ebp - 4]
call dword [0x4253c8]
mov eax, dword [esi]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 8]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_char_const__]
push eax
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_class_C2bString_const__]
lea ecx, [ebp - 8]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
inc edi
cmp dword [ebx + edi*4], 0
lea esi, [ebx + edi*4]
jne 0x4151e0
mov edx, dword [ebp - 4]
test edx, edx
jne 0x415232
mov edx, 0x420450
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415237
mov ecx, dword [ebp + 0xc]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x417640
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
movzx ecx, byte [eax + 0x417868]
jmp dword [ecx*4 + 0x41783c]
Function at 0x419880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi + 0xa4]
push ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
lea edi, [esi + 0x44]
jmp 0x4198a0
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0xac]
push 0
push 1
push ecx
mov ecx, dword [esi + 0x30]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0xa8]
push 2
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esi + 0x14]
cmp eax, 0x10
je 0x41990f
cmp eax, 0x18
jne 0x419920
mov edx, dword [esi + 0x34]
lea eax, [esi + 0x44]
push eax
push 0x60
push edx
mov ebx, edi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
lea eax, [esi + 0x8c]
cmp edi, eax
jae 0x419920
nop
push 3
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_memmove]
add edi, 3
lea eax, [esi + 0x8c]
add esp, 0xc
add ebx, 4
cmp edi, eax
jb 0x4198f0
jmp 0x419920
mov eax, dword [esi + 0x34]
push edi
push 0x20
push eax
call dword [sym.imp.GDI32.dll_GetBitmapBits]
lea esp, [esp]
mov eax, dword [esi + 0x18]
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
mov eax, dword [edx]
lea edi, [esi + 0x44]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp - 0xc]
cmp eax, dword [esi + 0x18]
jb 0x419971
mov ecx, dword [esi + 0xc]
cmp ecx, 1
jl 0x419971
mov eax, dword [ebp - 8]
inc dword [esi + 4]
add dword [ebp - 4], 2
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x92e
jl 0x4198a0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ebp + 0x10], 0
push ebx
push edi
mov edi, eax
je 0x419995
mov ebx, dword [esi + 0x18]
jmp 0x419998
mov ebx, dword [esi + 0x1c]
cmp edi, dword [ebp + 0xc]
ja 0x419a6d
mov byte [ebp - 1], 0
cmp edi, 0x10000
jae 0x4199c7
lea eax, [edi - 0xd800]
cmp eax, 0x7ff
jbe 0x4199f9
xor eax, eax
test edi, edi
mov word [ebp - 8], di
setne al
jmp 0x419a0a
cmp edi, 0x10ffff
ja 0x4199f9
lea edx, [edi - 0x10000]
shr edx, 0xa
mov eax, edi
and eax, 0x3ff
sub edx, 0x2800
sub eax, 0x2400
mov word [ebp - 6], ax
mov word [ebp - 8], dx
mov eax, 2
jmp 0x419a0a
mov ecx, 0x3f
mov eax, 1
mov byte [ebp - 1], al
mov word [ebp - 8], cx
mov ecx, dword [esi + 0xa8]
push 0
push eax
lea edx, [ebp - 8]
push edx
mov edx, dword [esi + 0x30]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0xac]
push 2
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.00418e20
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp - 0xc]
cmp eax, ebx
jb 0x419a77
mov ecx, dword [esi + 0xc]
cmp ecx, 1
jl 0x419a77
inc dword [esi + 4]
inc edi
cmp edi, dword [ebp + 0xc]
jbe 0x4199a1
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b580
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, 0x420fe8
mov ebx, 0x420fb8
mov eax, dword [ebx]
cmp dword [eax], 0
jne 0x41b5ab
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebx]
mov dword [edx], eax
add ebx, 8
cmp dword [ebx], 0
jne 0x41b596
mov eax, dword [0x425648]
test eax, eax
jne 0x41b5cc
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x425648], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetCPInfoExW
push eax
call esi
mov dword [0x4256a8], eax
nop
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
push eax
push edx
call esi
mov ecx, dword [edi]
add edi, 0xc
mov dword [ecx], eax
cmp dword [edi], 0
jne 0x41b5e0
cmp dword [0x4256a8], 0
sete bl
cmp dword [0x425664], 0
jne 0x41b62a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41b62a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41b62a
mov byte [ebp - 1], 1
jmp 0x41b636
mov byte [ebp - 1], 0
test bl, bl
je 0x41b706
mov edx, dword [str.uniapi9x.dll]
mov eax, dword [0x4213cc]
mov ecx, dword [0x4213d0]
mov dword [ebp - 0x14], edx
mov dl, byte [0x4213d4]
lea edi, [ebp - 0x14]
lea ebx, [ebp - 0x118]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov byte [ebp - 8], dl
call fcn.0041ddc0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41b6b8
push 0x104
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x118]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], 0
add esp, 8
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x118]
call fcn.0041b720
lea edx, [ebp - 0x118]
push edx
call ebx
mov edi, eax
cmp byte [ebp - 1], 0
je 0x41b6f5
push 3
push edi
call esi
test eax, eax
je 0x41b70f
mov ecx, dword [0x4257f4]
push ecx
call eax
push 4
push edi
mov byte [0x425800], 1
mov dword [0x4256a8], 0
call esi
push 1
push edi
mov dword [0x425664], eax
call esi
mov dword [0x425660], eax
push 2
push edi
call esi
test eax, eax
je 0x41b70f
mov edx, dword [ebp + 8]
push 0x2b
push edx
call eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret