joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1269961
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
cmp eax, 0xff
pop ecx
jne case.0x1269a6c.217
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
cmp eax, 0xd8
pop ecx
jne case.0x1269a6c.217
cmp dword [0x12d488c], 0x14
jge case.0x1269a6c.217
xor esi, esi
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
pop ecx
mov ecx, eax
cmp ecx, 0xff
mov dword [ebp - 0xc], ecx
jne 0x12699c5
cmp esi, 6
jge case.0x1269a6c.217
inc esi
cmp esi, 7
jl 0x126999b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [0x12d488c]
push dword [ebp + 8]
lea eax, [eax + eax*2]
mov dword [eax*4 + 0x12d4894], ecx
call sub.msvcrt.dll_fgetc
push dword [ebp + 8]
mov ebx, eax
call sub.msvcrt.dll_fgetc
mov esi, ebx
shl esi, 8
or esi, eax
cmp esi, 2
pop ecx
pop ecx
mov dword [ebp - 8], eax
jl case.0x1269a6c.217
mov eax, dword [0x12d488c]
lea eax, [eax + eax*2]
push esi
mov dword [eax*4 + 0x12d4898], esi
call sub.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
je case.0x1269a6c.217
mov eax, dword [0x12d488c]
push dword [ebp + 8]
lea eax, [eax + eax*2]
mov dword [eax*4 + 0x12d4890], edi
mov al, byte [ebp - 8]
mov byte [edi + 1], al
lea eax, [esi - 2]
push eax
mov byte [edi], bl
lea ebx, [edi + 2]
push 1
push ebx
call sub.msvcrt.dll_fread
lea ecx, [esi - 2]
add esp, 0x10
cmp eax, ecx
jne case.0x1269a6c.217
mov edx, dword [0x12d488c]
mov ecx, dword [ebp - 0xc]
inc edx
lea eax, [ecx - 0xc0]
cmp eax, 0x3e
mov dword [0x12d488c], edx
ja case.0x1269a6c.196
movzx eax, byte [eax + 0x1269b97]
jmp dword [eax*4 + 0x1269b7b]
cmp dword [ebp - 4], 0
jne case.0x1269a6c.224
test byte [ebp + 0xc], 1
je case.0x1269a6c.224
push esi
call fcn.012697b1
mov dword [ebp - 4], 1
mov edx, dword [0x12d488c]
jmp case.0x1269a6c.196
test byte [ebp + 0xc], 1
je case.0x1269a6c.224
mov ecx, dword [ebx]
mov eax, 0x102d0ec
cmp ecx, dword [eax]
je case.0x1269a6c.196
dec edx
lea eax, [edx + edx*2]
push dword [eax*4 + 0x12d4890]
mov dword [0x12d488c], edx
call sub.msvcrt.dll_free
pop ecx
jmp 0x1269a8c
push ecx
mov eax, edi
call fcn.01269874
cmp edx, 0x14
jl 0x1269999
jmp case.0x1269a6c.217
test byte [ebp + 0xc], 2
je 0x1269b73
mov ebx, dword [ebp + 8]
push ebx
call sub.msvcrt.dll_ftell
push 2
push 0
push ebx
mov edi, eax
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
jne case.0x1269a6c.217
push ebx
call sub.msvcrt.dll_ftell
push 0
push edi
push ebx
mov esi, eax
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
jne case.0x1269a6c.217
sub esi, edi
push esi
call sub.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
je case.0x1269a6c.217
push ebx
xor ebx, ebx
push esi
inc ebx
push ebx
push edi
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, esi
jne case.0x1269a6c.217
mov ecx, dword [0x12d488c]
lea eax, [ecx + ecx*2]
shl eax, 2
mov dword [eax + 0x12d4890], edi
inc ecx
mov dword [eax + 0x12d4898], esi
mov dword [eax + 0x12d4894], 0x123
mov dword [0x12d488c], ecx
mov dword [0x12d4888], ebx
xor eax, eax
inc eax
jmp 0x12699be
Function at 0x126a7db
Capabilities:
Decompress data using quicklz

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
shr eax, 0x10
movzx eax, ax
push esi
push edi
mov edx, eax
shr edx, 5
mov esi, eax
mov edi, eax
mov ebx, eax
shr ebx, 1
and ebx, 3
mov dword [ebp - 8], edx
not eax
mov dword [ecx + 4], edx
and eax, 1
push 4
mov dword [ecx + 0x14], eax
movzx eax, word [ebp + 8]
pop edx
sub edx, ebx
mov ebx, eax
shr ebx, 9
and ebx, 1
mov dword [ecx + 0x20], ebx
mov ebx, eax
shr ebx, 8
and ebx, 1
mov dword [ecx + 0x24], ebx
mov ebx, eax
shr ebx, 6
and ebx, 3
mov dword [ecx + 0x28], ebx
mov ebx, eax
shr ebx, 4
and ebx, 3
mov dword [ecx + 0x2c], ebx
mov ebx, eax
shr ebx, 3
and ebx, 1
mov dword [ebp - 4], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x30], ebx
mov edx, eax
shr edx, 0xc
mov ebx, eax
shr ebx, 2
mov dword [ebp + 8], edx
mov dword [ecx + 0x18], edx
and ebx, 1
mov edx, eax
push 3
shr esi, 4
shr edi, 3
shr edx, 0xa
mov dword [ecx + 0x34], ebx
pop ebx
and esi, 1
and edi, 1
and edx, 3
and eax, ebx
cmp dword [ebp - 8], 0x7ff
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x38], eax
jne 0x126a8c7
cmp dword [ebp + 8], 0xf
je 0x126a8c7
cmp dword [ebp + 8], 0
je 0x126a8c7
cmp edx, ebx
je 0x126a8c7
test esi, esi
jne 0x126a8b9
cmp dword [ebp - 4], ebx
jne 0x126a8c7
cmp edi, 1
jne 0x126a8b9
cmp dword [ebp - 4], ebx
je 0x126a8c7
mov dword [ecx + 0x3c], 1
call fcn.0126a6e3
jmp 0x126a8d0
and dword [ecx + 0x3c], 0
call fcn.0126a69a
mov eax, dword [ecx + 0x3c]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x126c075
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x102dab8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x126c0cd
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100685a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x126c0c0
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x126c0cf
xor eax, eax
pop esi
leave
ret 4
Function at 0x4013b2
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a318]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a31c]
mov dword [ebp - 0x2c], eax
call fcn.004013ab
mov esi, dword [ebp - 0x10]
mov ecx, dword [0x41a320]
add esi, 0x23f
mov eax, dword [0x41a324]
push 0x20
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x4c1968], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x4c1964]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x4c1968], 0x3eb
mov dword [0x4c1964], eax
mov eax, dword [0x4c13f0]
cmove eax, dword [ebp - 0x1c]
mov dword [0x4c13f0], eax
lea eax, [esi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [0x4c1960], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x4c1968], 0xb03
mov dword [ebp - 4], eax
jne 0x4014df
push str.focomonebizihaxinecarimecuweguzubelimibezavotacaxariyetanovuvecogoyifikoxawivikasimuruwudoxasofuye
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
add esi, 0x61c88647
mov dword [ebp - 0x10], esi
dec edi
jne 0x401404
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d337
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407aeb
mov dword [ebp - 0x14], eax
cmp dword [0x47c0fc], esi
jne 0x40d42a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d50a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d50a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d50a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47c0fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47c100], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47c104], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47c10c], eax
test eax, eax
je 0x40d427
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47c108], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d44f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d442
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d464
push 4
pop eax
jmp 0x40d50c
cmp dword [ebp - 0x14], esi
je 0x40d464
push dword [0x47c0fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d449
mov eax, dword [0x47c108]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4c2
cmp dword [0x47c10c], edi
je 0x40d4c2
push eax
call ebx
push dword [0x47c10c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4c2
test eax, eax
je 0x40d4c2
call ecx
test eax, eax
je 0x40d4b7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4b7
test byte [ebp - 8], 1
jne 0x40d4c2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4f2
mov eax, dword [0x47c100]
cmp eax, edi
je 0x40d4ef
push eax
call ebx
test eax, eax
je 0x40d4ef
call eax
mov esi, eax
test esi, esi
je 0x40d4ef
mov eax, dword [0x47c104]
cmp eax, edi
je 0x40d4ef
push eax
call ebx
test eax, eax
je 0x40d4ef
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47c0fc]
call ebx
test eax, eax
je 0x40d50a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d50c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404010
mov esp, ebp
pop ebp
ret
Function at 0x401393
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x9e3779b9
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a308]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x2c], eax
call fcn.0040138c
mov eax, dword [0x41a314]
add dword [ebp - 8], 0x23f
mov esi, dword [0x41a310]
push 0x20
mov dword [ebp - 0x20], eax
pop ebx
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
add eax, esi
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x4c18a8], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x4c18a4]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x4c18a8], 0x3eb
mov dword [0x4c18a4], eax
mov eax, dword [0x4c1330]
cmove eax, dword [ebp - 0x1c]
mov dword [0x4c1330], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [0x4c18a0], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, edi
shr eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x4c18a8], 0xb03
mov dword [ebp - 4], eax
jne 0x4014c0
push str.Poh_petopanoz_fonoso_culowisuvekocamoc
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec ebx
jne 0x4013e4
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d5d3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040804b
mov dword [ebp - 0x14], eax
cmp dword [0x47c03c], esi
jne 0x40d6c6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7a6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7a6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7a6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47c03c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47c040], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47c044], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47c04c], eax
test eax, eax
je 0x40d6c3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47c048], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d700
push 4
pop eax
jmp 0x40d7a8
cmp dword [ebp - 0x14], esi
je 0x40d700
push dword [0x47c03c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6e5
mov eax, dword [0x47c048]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d75e
cmp dword [0x47c04c], edi
je 0x40d75e
push eax
call ebx
push dword [0x47c04c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d75e
test eax, eax
je 0x40d75e
call ecx
test eax, eax
je 0x40d753
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d753
test byte [ebp - 8], 1
jne 0x40d75e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d78e
mov eax, dword [0x47c040]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
call eax
mov esi, eax
test esi, esi
je 0x40d78b
mov eax, dword [0x47c044]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47c03c]
call ebx
test eax, eax
je 0x40d7a6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040400d
mov esp, ebp
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430004]
jne 0x401010
repz ret
jmp fcn.004014f3

Function at 0x407a15
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.00404c04
and dword [ebp - 4], 0
cmp dword [0x432c9c], 0
mov ebx, eax
jne 0x407ac6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407b77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407b77
push eax
call fcn.00404b92
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x432c9c], eax
call esi
push eax
call fcn.00404b92
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432ca0], eax
call esi
push eax
call fcn.00404b92
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x432ca4], eax
call esi
push eax
call fcn.00404b92
pop ecx
mov dword [0x432cac], eax
test eax, eax
je 0x407ac6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b92
pop ecx
mov dword [0x432ca8], eax
mov eax, dword [0x432ca8]
cmp eax, ebx
je 0x407b1e
cmp dword [0x432cac], ebx
je 0x407b1e
push eax
call fcn.00404c0d
push dword [0x432cac]
mov esi, eax
call fcn.00404c0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407b1e
test edi, edi
je 0x407b1e
call esi
test eax, eax
je 0x407b15
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407b15
test byte [ebp - 0xc], 1
jne 0x407b1e
or dword [ebp + 0x10], 0x200000
jmp 0x407b57
mov eax, dword [0x432ca0]
cmp eax, ebx
je 0x407b57
push eax
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b57
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407b57
mov eax, dword [0x432ca4]
cmp eax, ebx
je 0x407b57
push eax
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432c9c]
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407b79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ba0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x430004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x234a3b4], 0x930
jne 0x409bca
push str.Gahaw_tugez_kirapiface_fuya
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x234a3b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x234a1f8], eax
jne 0x409bfd
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameA
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x404730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
lea eax, [esp + 0x10]
push 0
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 8]
call fcn.0042687e
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 4]
push esi
push edx
lea eax, [esp + 0x10]
push 0x4323c4
push eax
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push 0
push 0
push 1
push 0
push ecx
push edx
push 0x43144c
call fcn.0041f890
mov eax, dword [esp + 0x38]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x404890
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x427788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4048c5
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x70]
lea edx, [esp + 4]
push ecx
push str._sTest.file
push edx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x10]
push 0x432434
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x14
test eax, eax
jne 0x404923
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 8]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404976
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404976
push 0x4323fc
mov ecx, esi
call fcn.00404730
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret