joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4549dc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454b87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454b68
mov dl, 1
mov eax, dword [0x4119fc]
call fcn.004030e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e64
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454b57
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044283c
test al, al
je 0x454b4a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x454b98
lea eax, [ebp - 0x254]
call fcn.00408abc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454b4a
xor eax, eax
push ebp
push 0x454b43
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454bd0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454b2c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x454b2c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b4a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454a4d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415530
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b8e
lea eax, [ebp - 0x260]
call fcn.00403e64
ret

Function at 0x4554bc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46fbb8]
cmp byte [eax + 0xa5], 0
jne 0x45552d
cmp dword [0x46fbd0], 0
jne 0x4554ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455478
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46fbd0], eax
cmp dword [0x46fbcc], 0
jne 0x455509
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46fbcc], eax
cmp dword [0x46fbd4], 0
jne 0x45552d
push esp
push 0
push 0
push 0x45541c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46fbd4], eax
pop edx
ret
Function at 0x455624
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45563b
add esp, 0xfffffff0
call fcn.00403438
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419340
mov eax, dword [0x46e938]
cmp word [eax + 2], 0
jne 0x455663
mov eax, dword [0x46e938]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456d14
mov eax, dword [0x46e9fc]
cmp word [eax + 2], 0
jne 0x45567d
mov eax, dword [0x46e9fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456f0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4115e0]
call fcn.004030e4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4115e0]
call fcn.004030e4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b89c]
call fcn.00422f38
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455804
mov eax, dword [0x46e85c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423308
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4574ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46e85c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c184
test eax, eax
je 0x455772
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084b0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1ac
test eax, eax
je 0x455786
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
mov eax, dword [0x46e738]
cmp byte [eax], 0
jne 0x4557ba
mov eax, ebx
call fcn.0045592c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457688
mov eax, ebx
call fcn.0045804c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4557fa
call fcn.00403490
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455bac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46fbb8]
cmp dword [eax + 0x30], 0
je 0x455c56
cmp dword [ebx + 0x94], 0
jne 0x455c50
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455b3c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455c50
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455c16
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455c50
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413948
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455c25
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4567b8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4567ed
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f54
jmp 0x4567fa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403eb8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457864
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4578a5
mov eax, esi
call fcn.0043dde0
test al, al
je 0x4578a5
mov eax, dword [ebx + 0x84]
call fcn.0043dadc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4578a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043dadc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45af6c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45af9a
mov eax, ebx
call fcn.0045ba20
cmp dword [ebx + 0x40], 0
je 0x45af93
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45b00b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45affd
cmp dword [ebx + 8], 0
je 0x45afbc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45afce
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45affd
cmp dword [ebx + 8], 0
je 0x45afaf
cmp eax, 3
je 0x45afe1
dec eax
jne 0x45afaf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45afaf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45afaf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45b029
cmp dword [ebx + 0x14], 0xcc
je 0x45b029
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045b034
pop ebx
ret
Function at 0x46bf4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x46bf84]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x46bf62
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x46bf71
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x46bf80
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x46c7d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x4333f0]
call fcn.004032a0
test al, al
je 0x46c812
mov eax, dword [0x46e9dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x46c812
mov edx, dword [0x46e9dc]
xor edx, edx
call fcn.004501f8
push 0
mov eax, dword [0x46e9dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x49a591
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cf034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49a5dc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049aa53
test al, al
jne 0x49a5d6
sub edx, 2
cmp edx, edi
jne 0x49a5bc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49a5fe
lea eax, [edi + 2]
cmp edx, eax
je 0x49a5fe
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a18a
add esp, 0x10
jmp 0x49a6f8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049aa53
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49a641
push dword [ebp - 0x25c]
jmp 0x49a5ee
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49a67e
cmp word [ebp - 0x226], 0
je 0x49a69f
cmp word [ebp - 0x226], ax
jne 0x49a67e
cmp word [ebp - 0x224], 0
je 0x49a69f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a18a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49a6eb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49a658
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49a6d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49a6f8
push 0x499b72
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405547
add esp, 0x10
jmp 0x49a6c8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403053
leave
ret

Function at 0x438c98
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edx
add eax, 0xb2c0040c
call fcn.00438cd2
or edi, edi
sub edi, edi
sub edi, edi
xor dword [esi], edx
or edi, eax
sub eax, edi
inc esi
inc eax
add edi, eax
or eax, edi
cmp esi, ecx
jne fcn.00438c98
inc edi
add edi, 1
add edi, 0xf1db6d47
ret
Function at 0x4010b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
push 0x104
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0x18
mov ecx, esi
call fcn.00401060
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 8]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call fcn.00401000
push 0x103
lea eax, [esp + 0x119]
push 0
push eax
mov byte [esp + 0x120], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x1c]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x128]
call fcn.00401000
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
jne 0x401184
lea eax, [esp + 0x104]
push eax
call fcn.00401260
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.004025ac
add esp, 0x20c
ret

Function at 0x4011a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x118], 0
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call sub.MSVCR80.dll_memset
push 0
push 0x4041f0
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.00401000
add esp, 0x20
add esi, 0x104
push esi
push 0x104
lea edx, [esp + 0x114]
push edx
mov eax, edi
push eax
push str.Version
push str.Kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xa
lea ecx, [esp + 0x110]
push 0
push ecx
call dword [sym.imp.MSVCR80.dll_strtoul]
mov ecx, dword [esp + 0x21c]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.004025ac
add esp, 0x20c
ret
Function at 0x401440
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esi + 0x10]
sub esp, 0x10
push ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401482
mov eax, dword [esi + 0x10]
cmp edi, eax
je 0x4014fe
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x10], ebx
je 0x401484
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x401484
xor ebx, ebx
push ebp
push 0x40
push 0x1000
mov al, 0x68
push 0xd
mov dword [esi + 8], ebx
push 0
mov dword [esi + 0x10], edi
mov byte [esp + 0x18], 0x58
mov byte [esp + 0x19], al
mov dword [esp + 0x1a], esi
mov byte [esp + 0x1e], 0x50
mov byte [esp + 0x1f], al
mov ebp, 0x4016a0
mov bl, 0xc3
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
mov byte [eax + 0xc], bl
mov eax, dword [esi + 4]
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi + 4]
push ecx
push 0xfffffffffffffffc
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x401800
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc04
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0xc00], eax
push ebp
push edi
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x400
lea edi, [esp + 0x20]
call fcn.00401000
add esp, 0x18
mov ecx, edi
push ecx
push 0
push str.version
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x3ff
lea edx, [esp + 0x40d]
push 0
push edx
mov ebp, eax
mov byte [esp + 0x414], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, edi
push eax
push 0x400
lea ecx, [esp + 0x410]
push ecx
push str.QQPenguin
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x3ff
lea edx, [esp + 0x80d]
push 0
push edx
mov byte [esp + 0x814], 0
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x414]
push eax
push esi
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x820]
call fcn.00401000
mov ecx, edi
push 0
push ecx
call dword [sym.imp.MSVCR80.dll__access]
add esp, 0x20
test eax, eax
je 0x401909
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.004025ac
add esp, 0xc04
ret
mov ecx, dword [esp + 0xc08]
pop edi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004025ac
add esp, 0xc04
ret
Function at 0x401cb0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x1970
call fcn.00402f10
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x196c], eax
mov eax, dword [esp + 0x1978]
push ebx
push ebp
mov ebp, dword [esp + 0x197c]
push esi
push edi
xor ebx, ebx
push 0x7ff
mov esi, ecx
lea ecx, [esp + 0x97d]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x984], bl
call sub.MSVCR80.dll_memset
push 0x7ff
lea edx, [esp + 0x1189]
push ebx
push edx
mov byte [esp + 0x1190], bl
call sub.MSVCR80.dll_memset
push 0x7ff
lea eax, [esp + 0x195]
push ebx
push eax
mov byte [esp + 0x19c], bl
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x800
lea edi, [esp + 0x11a8]
call fcn.00401000
add esp, 0x30
mov ecx, edi
push ecx
push 0x800
lea edx, [esp + 0x980]
push edx
push 0x4041bc
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x978], bl
je 0x401e6e
cmp ebp, ebx
lea edi, [esp + 0x178]
je 0x401e4e
push ebp
lea eax, [esp + 0x97c]
push eax
push esi
push str.__s_s.exe___s
mov eax, 0x800
call fcn.00401000
add esp, 0x10
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea ecx, [esp + 0x198]
push ecx
push ebx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x72], bx
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, ebx
jne 0x401e31
push 0x103
lea edx, [esp + 0x75]
push ebx
push edx
mov byte [esp + 0x7c], bl
call sub.MSVCR80.dll_memset
mov ebp, dword [esp + 0x20]
push ebp
push 0x404310
mov eax, 0x104
lea edi, [esp + 0x84]
call fcn.00401000
add esp, 0x14
push ebx
push ebp
mov eax, edi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
mov ecx, dword [esp + 0x197c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004025ac
add esp, 0x1970
ret 0xc
lea ecx, [esp + 0x978]
push ecx
push esi
push str.__s_s.exe_
mov eax, 0x800
call fcn.00401000
add esp, 0xc
jmp 0x401dac
xor eax, eax
jmp 0x401e33

Function at 0x401e80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
mov edi, ecx
test edi, edi
je 0x401eff
test esi, esi
je 0x401eff
push ebx
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov ebx, 1
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPet_s
mov eax, 0x400
call fcn.00401000
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004025ac
add esp, 0x404
ret
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004025ac
add esp, 0x404
ret
Function at 0x401f20
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x534
mov eax, dword [0x406018]
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.00401000
add esp, 0x14
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401fdd
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401fd6
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 0x401fc0
call ebp
cmp dword [esp + 0x18], eax
jne 0x401fd1
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401fa2
jmp 0x401fd6
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.004025ac
add esp, 0x534
ret

Function at 0x402130
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x130
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4021ba
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4021b3
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4021a4
mov edx, dword [esp + 0x18]
push edx
push eax
push 1
call esi
push 4
push eax
call edi
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402182
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004025ac
add esp, 0x130
ret 4