joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4452c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4951b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048825e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048d8f4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048efb9
test eax, eax
je 0x4453dc
mov ecx, dword [esp + 0x3c]
call fcn.0048d921
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4453a0
push edi
mov ecx, esi
call fcn.0048af89
mov ecx, esi
call fcn.00445540
cmp dword [esp + 0x38], 1
jne 0x4453d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048b0c4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x447e10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447e43
push esi
call fcn.0044af00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x447e3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x447ec9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447eb2
mov eax, dword [esi + 8]
test eax, eax
je 0x447e67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x447eae
cmp eax, 2
je 0x447eb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x447e5a
cmp eax, 3
je 0x447e8d
cmp eax, 1
jne 0x447e5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x447e5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x447e5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447ef0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447ed8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447ef0
add esp, 4
pop esi
ret

Function at 0x453f30
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x453fd3
test eax, eax
jbe 0x453fd3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x453fd3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x453f7e
xor esi, esi
jmp 0x453f84
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x453faf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045e7b0
add esi, eax
push esi
mov ebx, esi
call fcn.0045e7b0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x453f90
pop ebp
test edi, edi
pop edi
jne 0x453fd3
test ebx, ebx
je 0x453fd3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00476d10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x454115
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45422d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45422d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004886b0
mov esi, eax
test esi, esi
je 0x45422d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45422d
mov ecx, esi
call fcn.00454080
cmp edi, eax
jge 0x45422d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4541b3
mov dword [esp + 0x34], 1
jmp 0x45420e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45422d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00453630
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4608c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00466cd0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x4609b9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.00412110
test eax, eax
jne 0x4609b9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.00412110
test eax, eax
jne 0x4609b9
lea edx, [esp + 0x10]
push 0x4dd7cc
push edx
call fcn.004774e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46098a
lea eax, [esp + 0x10]
push 0x4dd7c8
push eax
call fcn.004774e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46098a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x46098d
mov byte [esi], 0
push 0x4dcf90
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x466c10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x496418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x466cc0
mov eax, dword [0x4dfe64]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0048702a
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00487079
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00486fd6
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x466ca7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x466ca7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00486c46
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x469dc0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4968a0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x469f67
mov ecx, dword [0x4dfe64]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x469ebc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00468ae0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00486d33
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00486c46
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4dcf90
call fcn.00486cb4
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00468ea0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00486d33
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00486c46
lea ecx, [esp + 0xc]
call fcn.0048710e
mov ecx, dword [esp + 0xc]
push 0x4dd9cc
push ecx
call fcn.004763d4
add esp, 8
test eax, eax
je 0x469ee4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x469e1d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00486c46
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00486c46
jmp 0x469f6b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00469b60
test eax, eax
push 0
je 0x469f4f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00468200
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x469f35
cmp eax, 0x64
jg 0x469f23
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x469ec0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x469ec0
cmp eax, 0x64
jge 0x469ebc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x469ec0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00468200
mov esi, eax
jmp 0x469ec0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x469f75
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x489054
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48908c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004870a1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00487079
jmp 0x489098
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48a746
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48a788
call fcn.00490512
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48a788
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48a77f
xor eax, eax
jmp 0x48a790
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048a796
pop edi
pop esi
pop ebx
ret 4

Function at 0x490a42
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x490a70
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x490a8e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004909a8
jmp 0x490a8e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x490a8e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004909a8
test edi, edi
mov eax, edi
jne 0x490a78
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x42d0a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x42d0a5
lcall 0x5de5, 0x8b10c483
jmp loc.0099a70c

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
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401820
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40da1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
mov eax, dword [0x4111a4]
push ebp
push edi
mov dword [esp + 0x424], eax
mov edi, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x430], 0
call fcn.004017a0
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x14]
call fcn.004012d0
push 0xd
push str.PetConfig.ini
lea ecx, [esp + 0x10]
call fcn.004014b0
mov eax, dword [esp + 0x20]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0xc]
jae 0x4018a3
lea eax, [esp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x3ff
lea eax, [esp + 0x30]
push eax
push str.NoCheck
push str.CheckState
push str.KwPetIns
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018d0
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + 0x1c]
call fcn.004015c0
cmp dword [esp + 0x24], ebp
mov eax, dword [esp + 0x10]
jae 0x4018f5
lea eax, [esp + 0x10]
push eax
push 0x3ff
lea edx, [esp + 0x30]
push edx
push 0x40e18c
push str.SoftKey
push str.KwPetIns
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401918
sub eax, edx
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x38]
call fcn.004015c0
cmp dword [esp + 0x24], ebp
mov eax, dword [esp + 0x10]
jae 0x40193d
lea eax, [esp + 0x10]
push eax
push 0x3ff
lea ecx, [esp + 0x30]
push ecx
push str.Null
push str.Installer
push str.KwPetIns
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401961
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [edi + 0x54]
call fcn.004015c0
mov eax, dword [esp + 0x20]
pop edi
cmp eax, ebp
pop ebp
jb 0x40198f
mov eax, dword [esp + 4]
push eax
call fcn.0040627d
add esp, 4
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x41c]
call fcn.0040678d
add esp, 0x42c
ret
Function at 0x402ca0
Capabilities:
Copy file

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00402c40
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
xor ebx, ebx
push ebx
push str.PetU_Old.dll
push str.PetU.dll
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x402cff
lea ebx, [ebx]
mov dword [esi + 0x14], 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp ebx, 5
mov dword [esi + 0x18], eax
ja 0x402d48
push 0x1f4
call ebp
push 0
push str.PetU_Old.dll
push str.PetU.dll
call edi
test eax, eax
je 0x402cd0
xor ebx, ebx
push ebx
push str.PetU.dll
push str.PetU_New.dll
call edi
test eax, eax
jne 0x402d41
mov dword [esi + 0x14], 0x401
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp ebx, 5
mov dword [esi + 0x18], eax
ja 0x402d48
push 0x1f4
call ebp
push 0
push str.PetU.dll
push str.PetU_New.dll
call edi
test eax, eax
je 0x402d12
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x404230
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4111a4]
mov dword [esp + 0x58], eax
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov esi, ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov ecx, esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00404050
push esi
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00404130
mov ecx, dword [esp + 0x5c]
pop esi
call fcn.0040678d
add esp, 0x5c
ret 8
Function at 0x405450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x4111a4]
push edi
mov edi, ecx
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x405476
mov al, 1
pop edi
mov ecx, dword [esp + 0x70]
call fcn.0040678d
add esp, 0x74
ret
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], eax
push ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x70], eax
push esi
mov dword [esp + 0xc], 0x20732f
mov dword [esp + 0x1c], 0x20752f
mov dword [esp + 0x2c], 0x20702f
mov dword [esp + 0x3c], 0x20652f
mov dword [esp + 0x4c], 0x206b2f
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0x20642f
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], 0x20672f
mov dword [esp + 0x78], eax
xor ebx, ebx
lea esi, [esp + 0xc]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405515
sub eax, edx
push eax
push 0
push esi
mov ecx, edi
call fcn.00404c70
cmp eax, 0xffffffff
jne 0x405575
inc ebx
add esi, 0x10
cmp ebx, 7
jl 0x405510
push 1
push 0
push 0x40e5fc
mov ecx, edi
call fcn.00404c70
cmp eax, 0xffffffff
je 0x40558c
push 3
push 0x40e5f8
lea ecx, [edi + 0x8c]
call fcn.004015c0
mov ecx, edi
call fcn.004050b0
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x70]
call fcn.0040678d
add esp, 0x74
ret
mov ecx, edi
call fcn.00405230
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x70]
call fcn.0040678d
add esp, 0x74
ret
mov ecx, dword [esp + 0x7c]
pop esi
pop ebx
xor al, al
pop edi
call fcn.0040678d
add esp, 0x74
ret

Function at 0x4057c0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
jb 0x4057ce
mov eax, dword [esi + 4]
jmp 0x4057d1
lea eax, [esi + 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405801
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4058c0
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x405985
push str.KuWo_KwPet_2010_11_11_Res_M
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
jne 0x4058f8
mov dword [esi + 8], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
pop esi
ret
push str.KuWo_KwPet_2010_11_11_Res
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
jne 0x405935
mov dword [esi + 8], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 8]
pop esi
ret
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
jne 0x405968
mov dword [esi + 8], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
push ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 8]
pop esi
ret
push edi
xor eax, eax
mov edi, edx
mov ecx, 0x8e
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
xor eax, eax
pop esi
ret

Function at 0x405b60
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x23c
mov eax, dword [0x4111a4]
push ebx
mov ebx, ecx
mov dword [esp + 0x23c], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x405b94
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x238]
call fcn.0040678d
add esp, 0x23c
ret 0x10
mov edx, dword [esp + 0x248]
push edi
xor eax, eax
mov ecx, 0x8e
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x254]
mov ecx, dword [esp + 0x250]
push eax
mov eax, dword [esp + 0x24c]
push ecx
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00405a80
mov al, byte [esp + 9]
test al, al
je 0x405c7e
mov ecx, dword [ebx]
push 0xea60
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405c16
mov dword [ebx + 8], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 8]
pop edi
pop ebx
mov ecx, dword [esp + 0x238]
call fcn.0040678d
add esp, 0x23c
ret 0x10
mov edx, dword [ebx + 4]
push 0
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x405c5f
mov dword [ebx + 8], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebx + 8]
pop edi
pop ebx
mov ecx, dword [esp + 0x238]
call fcn.0040678d
add esp, 0x23c
ret 0x10
push esi
mov edi, eax
mov ecx, 0x8e
lea esi, [esp + 0xc]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov ecx, dword [esp + 0x240]
pop edi
xor eax, eax
pop ebx
call fcn.0040678d
add esp, 0x23c
ret 0x10