joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1057008], 0x8088405
inc edx
mov dword [ebx + 0x1057008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x103a9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x103a9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x103bd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x105973c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x105973c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x1058538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x103bd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x402380
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov cl, byte [esp + 0xc]
push 0x422ff0
push 0
push 0x4022a0
mov dword [0x422ff0], eax
mov byte [0x422ff4], cl
call fcn.00412f84
add esp, 0xc
ret

Function at 0x4033e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
mov dword [0x422dd8], eax
push 0
push 0
call fcn.00404040
mov ecx, eax
call fcn.00404520
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x104
push 0x422de0
push 0x41fb64
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x24
call fcn.004129a7
add esp, 4
test eax, eax
je 0x40343a
mov ecx, dword [0x422dd8]
push 0x41f334
push ecx
mov ecx, eax
call fcn.00403660
jmp 0x40343c
xor eax, eax
test eax, eax
mov dword [0x422fe8], eax
jne 0x40344b
add esp, 0x1c
ret 0x10
push ebx
push ebp
push esi
push edi
call fcn.00403150
mov ecx, dword [0x422fe8]
push 0
call fcn.00404020
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4034db
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageW]
cmp dword [esp + 0x14], 0x8002
je 0x4034db
call edi
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push esi
call ebx
test eax, eax
jne 0x4034c6
lea ecx, [esp + 0x10]
push ecx
push esi
call ebp
test eax, eax
jne 0x4034c6
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x403488
mov edx, dword [0x422fe8]
push edx
call fcn.0041299c
mov ecx, dword [esp + 0x1c]
add esp, 4
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x1c
ret 0x10
Function at 0x404cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b65f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea ecx, [esp + 8]
mov dword [esp + 4], 0
call sub.MFC42u.DLL_CString::CString_3
mov dl, byte [esp + 0x30]
mov eax, dword [esp + 0x2c]
neg dl
sbb edx, edx
lea ecx, [esp + 8]
and edx, 0xb
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push ecx
add edx, 3
push 0x404d60
push edx
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esp + 4], 1
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4086b0
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4086c8
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
mov eax, 8
ret
Function at 0x417a5f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422a08
cmp edx, dword [eax]
je 0x417a81
add eax, 8
inc ecx
cmp eax, 0x422a98
jl 0x417a72
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422a08]
jne 0x417baf
mov eax, dword [0x4230f0]
cmp eax, 1
je 0x417b89
test eax, eax
jne 0x417ab2
cmp dword [0x420110], 1
je 0x417b89
cmp edx, 0xfc
je 0x417baf
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417ae9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419b60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00418210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417b2c
lea eax, [ebp - 0x1a4]
push eax
call fcn.00418210
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c96c
push edi
call fcn.004199e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419b60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419b70
lea eax, [ebp - 0xa0]
push 0x41c94c
push eax
call fcn.00419b70
push dword [esi + 0x422a0c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419b70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a086
add esp, 0x2c
pop edi
jmp 0x417baf
lea eax, [ebp + 8]
lea esi, [esi + 0x422a0c]
push 0
push eax
push dword [esi]
call fcn.00418210
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x401290
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov dword [ebp - 0x404], 0
jmp 0x4012b4
mov eax, dword [ebp - 0x404]
add eax, 1
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0x100
jge 0x401339
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x408], ecx
mov dword [ebp - 0x40c], 0
jmp 0x4012e7
mov edx, dword [ebp - 0x40c]
add edx, 1
mov dword [ebp - 0x40c], edx
cmp dword [ebp - 0x40c], 8
jge 0x401321
mov eax, dword [ebp - 0x408]
and eax, 1
je 0x401311
mov ecx, dword [ebp - 0x408]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 0x408], ecx
jmp 0x40131f
mov edx, dword [ebp - 0x408]
shr edx, 1
mov dword [ebp - 0x408], edx
jmp 0x4012d8
mov eax, dword [ebp - 0x404]
mov ecx, dword [ebp - 0x408]
mov dword [ebp + eax*4 - 0x400], ecx
jmp 0x4012a5
mov dword [ebp - 0x408], 0xffffffff
mov dword [ebp - 0x410], 0
jmp 0x40135e
mov edx, dword [ebp - 0x410]
add edx, 1
mov dword [ebp - 0x410], edx
mov eax, dword [ebp - 0x410]
cmp eax, dword [ebp + 0xc]
jae 0x40139b
mov ecx, dword [ebp - 0x408]
shr ecx, 8
mov edx, dword [ebp - 0x408]
and edx, 0xff
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x410]
movzx eax, byte [eax]
xor edx, eax
xor ecx, dword [ebp + edx*4 - 0x400]
mov dword [ebp - 0x408], ecx
jmp 0x40134f
mov ecx, dword [ebp - 0x408]
xor ecx, 0xffffffff
mov dword [ebp - 0x408], ecx
mov eax, dword [ebp - 0x408]
mov esp, ebp
pop ebp
ret
Function at 0x401ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push 0
push 0x50000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401bd3
jmp 0x401cef
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x290]
mov dword [ecx + 0x460], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 8], 0
jmp 0x401c07
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x290]
jae 0x401ca2
push 1
push 0x14
mov ecx, dword [ebp - 0x18]
call fcn.00402360
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x294]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x18]
call fcn.00401600
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
push 0x4025e0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x47c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x401c9d
mov ecx, dword [ebp - 0x18]
call fcn.004015b0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x460]
sub eax, 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x460], eax
jmp 0x401bfe
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x460], 0
jle 0x401cdf
push 1
push 0x1388
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401cd2
jmp 0x401cdf
cmp dword [ebp - 0x14], 0x102
jne 0x401cdd
jmp 0x401cdf
jmp 0x401ca2
cmp dword [ebp - 4], 0xffffffff
je 0x401cef
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8
Function at 0x401dd0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x401e02
mov ecx, dword [ebp - 0x14]
add ecx, 0x35a
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401e1b
jmp 0x401e7f
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x401e2c
jmp 0x401e6f
mov dword [ebp - 0x10], 0
jmp 0x401e3e
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x10c]
jae 0x401e6f
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x18
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00401d50
jmp 0x401e35
cmp dword [ebp - 8], 0
je 0x401e7f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, ebp
pop ebp
ret 8

Function at 0x4023b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x484], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.SoftwareTencentQQPCMgrPrefetch
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402432
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 4
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.EnableIOStat
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402428
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov dword [edx + 0x488], eax
mov esp, ebp
pop ebp
ret
Function at 0x402450
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x40b020]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x488], 0
jne 0x402474
jmp 0x4025c3
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x814], ecx
mov edx, dword [ebp - 0x814]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push 0x400
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.MSVCR80.dll__vsnwprintf_s]
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4024ae
mov word [ebp - 0x12], 0
mov dword [ebp - 0x814], 0
push 0x400
push 0x408608
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.MSVCR80.dll_wcsncat]
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x484], 0
jne 0x40258c
mov word [ebp - 0xa20], 0
push 0x206
push 0
lea ecx, [ebp - 0xa1e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0xa20]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.AppPrefLog.log
lea ecx, [ebp - 0xa20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0xa20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x484], eax
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x818], eax
push 0
push 0
mov ecx, dword [ebp - 0x818]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
shl eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00404b30
mov esp, ebp
pop ebp
ret
Function at 0x403690
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x13c8
call fcn.00407130
mov eax, dword [0x40b020]
xor eax, esp
mov dword [esp + 0x13c4], eax
mov eax, dword [esp + 0x13cc]
push ebp
xor ebp, ebp
push 0xf9c
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
call sub.MSVCR80.dll_memset
push 0x206
lea edx, [esp + 0xfc6]
push ebp
push edx
mov dword [esp + 0x1c], ebp
mov word [esp + 0xfcc], bp
call sub.MSVCR80.dll_memset
add esp, 0x18
lea eax, [esp + 4]
push eax
push 0xfa0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x403871
mov eax, dword [esp + 4]
cmp eax, ebp
je 0x403871
push ebx
push esi
shr eax, 2
push edi
mov dword [esp + 0x1c], eax
mov edi, ebp
je 0x4037e4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edx, dword [esp + edi*4 + 0x20]
push edx
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
je 0x4037d7
push 0x208
lea eax, [esp + 0xfc4]
push ebp
push eax
mov dword [esp + 0x20], ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4037d0
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0xfc4]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4037d0
push 0x408864
lea edx, [esp + 0xfc4]
push edx
call ebx
test eax, eax
je 0x4037ff
push str.QQPCTray.exe
lea eax, [esp + 0xfc4]
push eax
call ebx
test eax, eax
je 0x4037ff
push str.QQPCRTP.exe
lea ecx, [esp + 0xfc4]
push ecx
call ebx
test eax, eax
je 0x4037ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x403730
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x13c4]
xor ecx, esp
call fcn.00404b30
add esp, 0x13c8
ret
push 0x208
lea edx, [esp + 0x11ce]
push ebp
push edx
mov word [esp + 0x11d4], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x11cc]
push eax
push ebp
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea ecx, [esp + 0x11c8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x11c8]
push edx
mov ecx, esi
call dword [0x408170]
push 0x4086fc
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, 1
jmp 0x4037e6
mov ecx, dword [esp + 0x13c8]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00404b30
add esp, 0x13c8
ret