joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be654
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4be65c
push ebx
push esi
push edi
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4be814
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4be78d
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x1e
mov bl, 1
jmp 0x4be707
push 0xc8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00407084
mov eax, dword [ebp - 8]
call fcn.00406f64
push eax
call sub.kernel32.dll_DeleteFileW
dec esi
test esi, esi
jg 0x4be707
xor ebx, ebx
push 0x4be830
push 0x4be848
push 0x4be85c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00407084
push dword [ebp - 0x10]
push 0x4be86c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407478
mov eax, dword [ebp - 0xc]
push eax
push 0x4be87c
call fcn.004b7788
mov edx, dword [0x4e0830]
movzx edx, byte [edx]
mov cl, 1
call fcn.004b7d48
jmp 0x4be722
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00407084
mov eax, dword [ebp - 0x14]
call fcn.00412240
test al, al
jne 0x4be68e
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00407084
mov eax, dword [ebp - 0x18]
call fcn.00412240
test al, al
jne 0x4be783
push 0x4be830
push 0x4be848
push 0x4be85c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00407084
push dword [ebp - 0x20]
push 0x4be86c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00407478
mov eax, dword [ebp - 0x1c]
push eax
push 0
call fcn.004b7788
mov edx, dword [0x4e0830]
movzx edx, byte [edx]
xor ecx, ecx
call fcn.004b7d48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4be7f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be81b
lea eax, [ebp - 0x28]
mov edx, 9
call fcn.00406ed0
ret

Function at 0x4be904
Capabilities:
Delete file
Move file

Disassembly:
push ebx
push esi
mov esi, edx
xor ebx, ebx
call fcn.004b0590
call fcn.004b0d6c
test al, al
je 0x4be92f
push 4
push 0
mov eax, esi
call fcn.00406f64
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4be99c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4be9a5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4bebdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x4bebb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 3
mov ebx, 0x4e0070
call fcn.004b16bc
lea edx, [ebp - 0x18]
call fcn.004b2448
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00407598
jne 0x4bea18
lea edx, [ebp - 0x1c]
mov eax, dword [ebx]
call fcn.00411148
mov edx, dword [ebp - 0x1c]
mov eax, 0x4bebfc
call fcn.00407918
test eax, eax
jne 0x4bea3b
mov ecx, dword [ebx]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00407394
mov eax, dword [ebp - 0x20]
call fcn.00406f64
mov edx, eax
mov eax, dword [0x4b9450]
call fcn.004be654
test al, al
add ebx, 4
dec esi
jne 0x4be9e3
push 0x20
mov eax, dword [ebp - 8]
call fcn.00406f64
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 8]
call fcn.00412240
test al, al
je 0x4beba8
mov dl, 1
mov eax, dword [0x428560]
call fcn.0043446c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4beb81
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4beb6b
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov ebx, 0x4e0070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4beb88
mov eax, dword [ebp - 0x10]
call fcn.004053c4
ret
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bebc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bebe2
lea eax, [ebp - 0x40]
mov edx, 0xb
call fcn.00406ed0
ret
Function at 0x4c0c64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x14]
add edx, 0x2710
cmp eax, edx
jb 0x4c0c94
mov byte [ebp - 1], 0
jmp 0x4c0d52
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x4c0d60
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c0d30
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4c0d0f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0xffffffff
je 0x4c0d05
mov dword [ebp - 0xc], 7
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4c0d05
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00405f78
jmp 0x4c0d52
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0d19
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0d37
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c1138
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x4c122f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c121e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebx + 4]
call fcn.00406f64
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c1200
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x4c11e9
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4c11e3
call sub.kernel32.dll_GetTickCount_1
lea edx, [ebx + 0x7530]
cmp eax, edx
jb 0x4c11cf
mov byte [ebp - 1], 0
jmp 0x4c11e9
push 0x64
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x24], 1
jne 0x4c11ba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1207
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4c1430
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ec0
xor eax, eax
push ebp
push 0x4c157f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c1562
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00406f64
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c1544
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x4c1529
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4c152d
cmp dword [ebp - 0x28], 1
jne 0x4c14cf
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
je 0x4c152d
mov byte [ebp - 5], 1
jmp 0x4c152d
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4c150a
call sub.kernel32.dll_GetTickCount_1
lea edx, [ebx + 0x7530]
cmp eax, edx
jae 0x4c1510
push 0x64
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x28], 1
jne 0x4c14e7
cmp dword [ebp - 0x28], 1
jne 0x4c152d
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
je 0x4c152d
mov byte [ebp - 5], 1
jmp 0x4c152d
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c154b
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4d009c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406ec0
xor eax, eax
push ebp
push 0x4d0236
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
push 0x400
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4d0213
lea eax, [ebp - 8]
push eax
push 0xb
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4d0213
cmp dword [ebp - 8], 0
je 0x4d020d
mov dword [ebp - 0x4c], 0x44
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
mov word [ebp - 0x1a], 0
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 4]
mov edx, 0x4d0250
call fcn.00407394
mov eax, dword [ebp - 0x60]
push eax
mov ecx, 0x4d02cc
xor edx, edx
mov eax, dword [0x4c8274]
call fcn.004c866c
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
call fcn.004b16bc
lea edx, [ebp - 0x68]
call fcn.004b264c
push dword [ebp - 0x68]
push 0x4d02e8
push dword [ebp - 4]
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00407478
mov eax, dword [ebp - 0x64]
call fcn.00406f64
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
test eax, eax
je 0x4d01d4
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 4]
mov edx, 0x4d0250
call fcn.00407394
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, 0x4d02cc
xor edx, edx
mov eax, dword [0x4c8274]
call fcn.004c866c
jmp 0x4d01fb
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 4]
mov edx, 0x4d0250
call fcn.00407394
mov eax, dword [ebp - 0x70]
push eax
mov ecx, 0x4d02cc
xor edx, edx
mov eax, dword [0x4c8274]
call fcn.004c866c
jmp 0x4d0213
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d023d
lea eax, [ebp - 0x70]
mov edx, 5
call fcn.00406ed0
lea eax, [ebp - 4]
call fcn.00406ec8
ret
Function at 0x4d3590
Capabilities:
Persist via run registry key
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4d3598
push ecx
push ebx
push esi
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d378d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 1
push 0
lea edx, [ebp - 0xc]
mov ecx, 1
mov eax, dword [0x4b9450]
call fcn.004b9db8
push 0x4d37ac
push 1
mov ecx, 0x4d37d8
mov edx, 0x80000002
mov eax, dword [0x4b8614]
call fcn.004b8c0c
mov eax, dword [0x4b9450]
call fcn.004be314
cmp dword [ebp - 0xc], 0
je 0x4d3641
call fcn.004b16bc
lea edx, [ebp - 0x18]
call fcn.004b25a0
lea eax, [ebp - 0x18]
mov edx, 0x4d384c
call fcn.004072d4
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041845c
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4b9450]
pop ecx
call fcn.004be99c
test al, al
je 0x4d3641
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov edx, 0x4d3868
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x4d37ac
push 1
mov ecx, 0x4d3898
mov edx, 0x80000002
mov eax, dword [0x4b8614]
call fcn.004b8c0c
mov ebx, eax
push 0x4d38c4
push 1
mov ecx, 0x4d38e8
mov edx, 0x80000002
mov eax, dword [0x4b8614]
call fcn.004b8dc4
and bl, al
lea eax, [ebp - 0x24]
mov ecx, 0x4d3950
mov edx, dword [ebp - 0xc]
call fcn.00407394
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov eax, dword [0x4b412c]
call fcn.004b53c4
push dword [ebp - 0x20]
push 0x4d3974
push 0x4d398c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407478
push 0x4d399c
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x4d39bc
mov edx, 0x80000002
mov eax, dword [0x4b8614]
call fcn.004b8a10
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004110b8
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004110b8
mov eax, dword [ebp - 0x2c]
pop edx
call fcn.004184fc
mov esi, eax
test esi, esi
jle 0x4d3751
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d371a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d371a
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004067fc
test eax, eax
je 0x4d3723
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 8]
mov ecx, eax
mov eax, esi
xchg edx, eax
call fcn.004076d0
push 0x4d399c
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, 0x4d39bc
mov edx, 0x80000002
mov eax, dword [0x4b8614]
call fcn.004b8b08
and bl, al
test bl, bl
je 0x4d3765
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov edx, 0x4d3a34
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3794
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00406ed0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406ed0
ret
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.004019e8
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4019e8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x401a1c
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x401a37
mov edi, eax
inc edi
jmp 0x401a14
inc edi
cmp byte [edi], 0x20
je 0x401a13
jmp 0x401a37
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x401a28
cmp eax, 0x20
jne 0x401a1b
jmp 0x401a2b
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x401a37
cmp eax, 0x20
je 0x401a2a
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.0040134a
pop edi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401150
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40c020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
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
mov edx, str.kernel
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4011aa
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401197
jmp 0x4011ae
test ebp, ebp
jne 0x4011b1
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
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._sQQPetRegistrar_s.ini
mov eax, 0x104
call fcn.00401050
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x20]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x12c]
call fcn.00401050
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x40124a
lea eax, [esp + 0x104]
push eax
call fcn.00401270
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.004070e8
add esp, 0x20c
ret
Function at 0x401b40
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x407bbb
mov eax, dword fs:[0]
push eax
sub esp, 0xc3c
mov eax, dword [0x40c020]
xor eax, esp
mov dword [esp + 0xc38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40c020]
xor eax, esp
push eax
lea eax, [esp + 0xc50]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc64]
mov ebp, dword [esp + 0xc60]
xor ebx, ebx
push 0x3ff
lea ecx, [esp + 0x51]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x58], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, str.exe.zip
lea ecx, [esp + 0x4c]
call fcn.00401db0
test eax, eax
je 0x401be0
push 0x408364
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x401be0
lea edx, [esp + 0x4c]
push edx
call fcn.00401d20
cmp eax, ebx
je 0x401be0
lea esi, [ebx + 1]
jmp 0x401be2
xor esi, esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], vtable.FileOperator_class_CZipUtility_.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], vtable.CZipUtility.0
lea eax, [esp + 0x4c]
mov dword [esp + 0xc58], ebx
push eax
lea edx, [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.00406c80
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCR80.dll__unlink]
add esp, 4
cmp esi, ebx
je 0x401c42
cmp dword [esp + 0x18], ebx
jne 0x401c42
mov esi, 1
jmp 0x401c44
xor esi, esi
push 0x3ff
lea edx, [esp + 0x851]
push ebx
push edx
mov byte [esp + 0x858], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebp
push str._sKernelSmartLoader.exe
mov eax, 0x400
lea edi, [esp + 0x854]
call fcn.00401050
push 0x3ff
lea eax, [esp + 0x459]
push ebx
push eax
mov byte [esp + 0x460], bl
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x30]
add esp, 0x14
push ecx
push ebp
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x458]
call fcn.00401050
add esp, 0xc
cmp esi, ebx
je 0x401cd3
mov edx, edi
push edx
lea eax, [esp + 0x850]
push eax
call dword [sym.imp.MSVCR80.dll_rename]
add esp, 8
test eax, eax
jne 0x401cd3
lea ebx, [eax + 1]
lea ecx, [esp + 0x30]
mov dword [esp + 0xc58], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, ebx
mov ecx, dword [esp + 0xc50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc38]
xor ecx, esp
call fcn.004070e8
add esp, 0xc48
ret 8
Function at 0x401d20
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x401d3a
pop esi
pop ebx
pop ecx
ret 4
push ebp
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x18]
push 0x408398
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x401d95
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x401d8b
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4

Function at 0x401db0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x40c020]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
push 0x3ff
lea eax, [esp + 9]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0xc]
push edx
push str._s_d__s
mov eax, 0x400
call fcn.00401050
mov ecx, dword [esp + 0x414]
add esp, 0x10
pop edi
xor ecx, esp
mov eax, 1
call fcn.004070e8
add esp, 0x404
ret

Function at 0x401e30
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.004070cb
add esp, 4
cmp esi, ebp
mov edi, eax
jbe 0x401e94
push edi
push esi
push ebp
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401e94
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4083a8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401e94
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 8]
mov eax, ecx
shr eax, 0x10
imul eax, eax, 0x64
movzx ecx, cx
add eax, ecx
mov ebp, eax
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x401eb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40c020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401f15
push 0xed
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401f15
lea edx, [esp]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x401f15
mov byte [eax + 1], 0
push edi
lea edi, [esp + 4]
call fcn.00401100
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.ShowVerboseInfo
push str.CMain
call edi
lea ecx, [esp + 4]
push ecx
neg eax
push 0
sbb eax, eax
push str.ShowTraceInfo
neg eax
push str.CMain
mov dword [esi], eax
call edi
lea edx, [esp + 4]
push edx
neg eax
push 0
sbb eax, eax
push str.ShowErrorInfo
neg eax
push str.CMain
mov dword [esi + 4], eax
call edi
neg eax
sbb eax, eax
neg eax
cmp dword [esi + 0x20], 0
mov dword [esi + 8], eax
pop edi
jne 0x401f8b
push str.CMain
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004070e8
add esp, 0x108
ret