joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac741
Capabilities:
Authenticate hmac
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ebp - 0x18]
sub esp, 0x11
push dword [esp + 0xa]
add esp, 7
jmp 0x4ac6f9
Function at 0x516ab2
Capabilities:
Execute anti-debugging instructions

Disassembly:
std
pop dword [esp]
not dx
mov ax, 0xa738
jmp 0x516a3a

Function at 0x518c44
Capabilities:
Parse pe header

Disassembly:
mov byte [esp], dl
lea esp, [esp + 3]
push ax
jmp 0x518c84
push esi
lea esp, [esp + 3]
mov dword [esp + 0x24], ebx
call fcn.00518c67
mov dword [esp + 0x24], esp
mov dword [esp + 0x20], ebp
call fcn.00518ccc
and ch, byte [esi + 0x5db65b3c]
xor bl, al
push ebx
lds esp, ss:[eax]
push es
mov cl, 0xb0
mov bl, 0xaa

Function at 0x518c5a
Capabilities:
Parse pe header

Disassembly:
lea esp, [esp + 2]
mov dword [esp + 0x24], edx
call fcn.00518c44

Function at 0x518c67
Capabilities:
Parse pe header

Disassembly:
lea esp, [esp + 1]
push word [esp]
lea esp, [esp + 1]
jmp 0x518c92

Function at 0x518cb6
Capabilities:
Parse pe header

Disassembly:
call fcn.00518006
mov dword [esp], ebp
mov dword [esp], ebx
push dword [esp + 1]
jmp 0x518cec
mov eax, dword [eax + 0x1c]
jmp 0x518d15
mov dword [esp + 0x24], edi
lea esp, [esp + 0x24]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x518cd5
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x518001

Function at 0x518ccc
Capabilities:
Parse pe header

Disassembly:
mov dword [esp + 0x20], esi
call fcn.00518cb6

Function at 0x518d5a
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
pushal
call fcn.00518c5a
push word [esp + 2]
mov dword [esp + 2], ecx
mov dword [esp + 4], ecx
push cx
mov byte [esp], bh
jmp 0x518cb0

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0xd19687b
nop
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x370b564a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4015e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0044c6d0
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x100c], eax
mov eax, dword [eax + 0x10]
lea ecx, [eax + 4]
mov dword [ebp - 0x1008], ecx
add ecx, 4
test eax, eax
je 0x401735
cmp ecx, 0x1000
ja 0x401735
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipe8136AEE7_4280_43C4_BDC5_ABA1F09B7194
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4016a1
call edi
cmp eax, 0xe7
jne 0x401722
push 0x1388
push str..pipe8136AEE7_4280_43C4_BDC5_ABA1F09B7194
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x401684
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipe8136AEE7_4280_43C4_BDC5_ABA1F09B7194
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x40166f
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004640b0
mov ecx, dword [ebp - 0x100c]
add esp, 0xc
mov ebx, dword [ebp - 0x1008]
mov dword [ebp - 0x1004], ebx
mov dword [ebp - 0x1000], 1
push dword [ecx + 0x10]
call fcn.00401760
push eax
lea eax, [ebp - 0xffc]
push eax
call fcn.00464650
add esp, 0xc
mov dword [ebp - 0x1010], 0
lea eax, [ebp - 0x1010]
push 0
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401716
call edi
cmp esi, 0xffffffff
je 0x401722
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
Function at 0x401780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b09b8
push 0x466390
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edx, ecx
mov dword [ebp - 0x28], edx
xor esi, esi
test edx, edx
jne 0x4017d2
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov eax, dword [edx + 0x3c]
mov edi, dword [eax + edx + 0x78]
add edi, edx
mov eax, dword [edi + 0x1c]
add eax, edx
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x20]
add ecx, edx
mov dword [ebp - 0x1c], ecx
mov ebx, dword [edi + 0x24]
add ebx, edx
mov dword [ebp - 0x24], ebx
mov eax, str.DllRun
test eax, 0xffff0000
jne 0x401820
movzx eax, ax
sub eax, dword [edi + 0x10]
mov esi, dword [ebp - 0x20]
mov esi, dword [esi + eax*4]
add esi, edx
jmp 0x401896
mov edi, dword [edi + 0x18]
mov dword [ebp - 0x30], edi
mov eax, edi
dec edi
mov dword [ebp - 0x30], edi
test eax, eax
je 0x401899
mov eax, dword [ecx]
add eax, edx
mov ecx, str.DllRun
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401860
test dl, dl
je 0x40185c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401860
add eax, 2
add ecx, 2
test dl, dl
jne 0x401840
xor eax, eax
jmp 0x401865
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401877
movzx eax, word [ebx]
mov esi, dword [ebp - 0x20]
mov esi, dword [esi + eax*4]
add esi, dword [ebp - 0x28]
jmp 0x401896
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x1c], ecx
add ebx, 2
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp - 0x28]
jmp 0x401826
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401970
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x4c7084]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov edi, ecx
mov edx, 0x10b
mov dword [esp + 0x10], edi
mov ecx, dword [edi + 0x3c]
movzx eax, word [ecx + edi + 0x18]
cmp ax, dx
je 0x4019b6
mov ecx, 0x20b
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + edi + 0x78]
mov edx, edi
call fcn.00401900
mov ecx, dword [eax + edi + 0x20]
add eax, edi
mov edx, edi
mov dword [esp + 0x14], eax
call fcn.00401900
mov edx, edi
lea esi, [edi + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
call fcn.00401900
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x10]
add edi, eax
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x4019a3
dec ecx
mov edx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
call fcn.00401900
add eax, dword [esp + 0x10]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov dl, 0x11
mov dword [esp + 0x18], eax
xor ecx, ecx
mov byte [esp + 0x30], 0
lea eax, [esp + 0x20]
movups xmmword [esp + 0x32], xmm0
mov word [esp + 0x52], 0
movups xmmword [esp + 0x42], xmm0
mov dword [esp + 0x54], 0x1100
mov dword [esp + 0x2d], 0x11637475
mov dword [esp + 0x29], 0x707e5d74
mov dword [esp + 0x25], 0x67786572
mov dword [esp + 0x21], 0x747d7774
mov byte [esp + 0x20], 0x43
nop
xor byte [eax], dl
lea eax, [eax + 1]
inc ecx
cmp ecx, 0x11
je 0x401a71
mov dl, byte [esp + 0x55]
jmp 0x401a60
lea eax, [esp + 0x20]
mov byte [esp + 0x54], 1
push eax
push dword [esp + 0x1c]
call fcn.00463210
add esp, 8
test eax, eax
jne 0x401ab4
mov ecx, dword [esp + 0x1c]
add esi, 4
mov eax, dword [esp + 0x10]
add edi, 2
test ecx, ecx
jne 0x4019f6
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, esi
mov ecx, dword [eax + 0x1c]
call fcn.00401900
movzx ecx, word [edi]
add eax, esi
mov edx, esi
mov ecx, dword [eax + ecx*4]
call fcn.00401900
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
Function at 0x401af0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b09d8
push 0x466390
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
test esi, esi
je 0x401be3
test edi, edi
je 0x401be3
mov dword [ebp - 4], 0
call fcn.00401970
test eax, eax
je 0x401b9f
add eax, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401b9f
push 0
call dword [ebp - 0x24]
test eax, eax
je 0x401b90
lea ecx, [ebp - 0x1c]
push ecx
push 6
push 0
call eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401c00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b09f8
push 0x466390
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, edx
mov dword [ebp - 0x20], eax
mov edi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
test edi, edi
je 0x401d36
test eax, eax
je 0x401d36
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x401d36
mov ecx, eax
call fcn.00401970
mov dword [ebp + 8], eax
test eax, eax
je 0x401d36
push 0x40
push 0x3000
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x401ca1
push 0x4a5c48
call fcn.004018d0
add esp, 4
jmp 0x401d36
push 0
push ebx
push dword [ebp - 0x20]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401cc2
push str.WriteProcessMemory_FAILED_
call fcn.004018d0
add esp, 4
jmp 0x401d36
add esi, dword [ebp + 8]
push str.RtlCreateUserThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x100
push esi
push 0
push 0
push 0
push 0
push 0
push edi
call eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x401d0b
push str.Injection_FAILED_
call fcn.004018d0
add esp, 4
jmp 0x401d36
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x401d36
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f49
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f86
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401f82
nop word [eax + eax]
cmp esi, edx
jae 0x401f86
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401f70
cmp esi, edx
jb 0x401f8d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402380
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489149
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004013e0
mov ecx, eax
test ecx, ecx
jne 0x4023ce
push 0x80004005
call fcn.00401e50
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x40
mov dword [ebp - 0x10], 1
or ecx, eax
jge 0x402401
push 0x40
mov ecx, esi
call fcn.0040a230
push str.C:config.ini
push 0x40
push dword [esi]
push 0x4a5cf4
push str.server_url
push str.hotfixplatform
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
test eax, eax
jne 0x402429
xor ecx, ecx
jmp 0x40243b
push dword [eax - 8]
push eax
call fcn.0046af74
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40245f
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40245f
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401e50
int3
Function at 0x4063c0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
cmp edi, 4
jae 0x4063d0
pop edi
xor eax, eax
pop esi
ret
cmp byte [esi], 0x4d
je 0x4063db
cmp byte [esi + 1], 0x44
jne 0x4063cb
mov eax, dword [esi + 0x4c]
lea ecx, [esi + 6]
xor dword [esi + 0x60], eax
mov edx, 8
nop dword [eax]
movzx eax, byte [esi + 0x4c]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
movzx eax, byte [esi + 0x4c]
xor byte [ecx - 4], al
movzx eax, byte [esi + 0x4c]
xor byte [ecx - 3], al
movzx eax, byte [esi + 0x4c]
xor byte [ecx - 2], al
sub edx, 1
jne 0x4063f0
mov ecx, dword [esi + 0x60]
lea eax, [ecx + 4]
cmp edi, eax
jb 0x4063cb
test ecx, ecx
je 0x40644a
mov edi, 0xffffff8c
lea edx, [esi + 0x74]
sub edi, esi
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
not cl
mov byte [edx - 1], cl
mov al, byte [esi + 0x4c]
xor al, cl
mov byte [edx - 1], al
lea eax, [edi + edx]
cmp eax, dword [esi + 0x60]
jb 0x406430
mov edi, dword [esi + 0x60]
xor edx, edx
mov ecx, 0xfff11fff
test edi, edi
je 0x406477
movzx eax, byte [esi + edx + 0x74]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
and ecx, 0xff1fff
xor ecx, dword [eax*4 + 0x4cb318]
cmp edx, edi
jb 0x406458
not ecx
xor eax, eax
cmp dword [esi + 0x38], ecx
pop edi
sete al
pop esi
ret
Function at 0x40bbd0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bf38
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0x4c]
mov dword [ebp - 0x18], ebx
push ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
push 0x4a62b8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x10], 0x100000
mov dword [edi + 0x14], 0
mov dword [edi], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bcb8
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x4a62b8
push dword [edi + 8]
push str.g_lenovo_global_log_level
push str.config
call esi
push 0x4a62b8
push dword [edi + 0x10]
mov dword [edi + 8], eax
push str.g_lenovo_global_max_size
push str.config
call esi
push 0x4a62b8
push dword [edi]
mov dword [edi + 0x10], eax
push str.g_lenovo_log_encryped
push str.config
mov dword [edi + 0x14], 0
call esi
push 0x4a62b8
push dword [edi + 4]
mov dword [edi], eax
push str.g_lenovo_log_printf
push str.config
call esi
push 0x4a62b8
push eax
push str.g_lenovo_log_outputdebug
push str.config
mov dword [edi + 4], eax
call esi
mov dword [edi + 0x48], eax
lea eax, [edi + 0x18]
mov ecx, edi
push eax
sub esp, 8
call fcn.0040c0a0
test eax, eax
je 0x40bda5
cmp byte [edi + 0x1c], 0
je 0x40bd14
mov esi, dword [0x4cd3fc]
mov eax, 0x10624dd3
imul esi
mov ecx, esi
inc esi
sar edx, 5
mov eax, edx
mov dword [0x4cd3fc], esi
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x1f4
sub ecx, eax
jne 0x40bd14
lea eax, [edi + 0x18]
mov ecx, edi
push eax
call fcn.0040c560
lea eax, [edi + 0x28]
mov ecx, edi
push eax
call fcn.0040c560
cmp dword [edi + 0x20], 0
jne 0x40bda5
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], 0xc
push str.GlobalPCMLOG_
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], eax
call fcn.00408c40
mov esi, eax
mov byte [ebp - 4], 1
push dword [edi + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.004089d0
add esp, 4
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408c20
mov dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40c560
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c5c7
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c5c7
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x14]
jl 0x40c5c7
jg 0x40c5bf
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx + 0x10]
jb 0x40c5c7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d1a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c269
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00408d30
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi]
mov dword [ebp - 0x10], 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x40
or ecx, eax
jge 0x40d209
push 0x40
mov ecx, esi
call fcn.0040a230
push str.C:config.ini
push 0x40
push dword [esi]
push 0x4a5cf4
push 0x4a64e8
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
test eax, eax
jne 0x40d231
xor ecx, ecx
jmp 0x40d243
push dword [eax - 8]
push eax
call fcn.0046af74
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40d267
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40d267
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401e50
int3

Function at 0x40d3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40d3be
mov eax, dword [esi]
jmp 0x40d3c0
mov eax, esi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov word [eax], dx
mov dword [ebp + 0x10], edx
cmp dword [edi + 0x14], 8
jb 0x40d3d5
mov eax, dword [edi]
jmp 0x40d3d7
mov eax, edi
lea edx, [ebp + 0x10]
push edx
push 0
push 0
push 2
push eax
push 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
test eax, eax
jne 0x40d4b3
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x40d422
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x40d418
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40d42e
mov ecx, esi
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40d42e
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040f320
cmp dword [esi + 0x14], 8
jb 0x40d438
mov eax, dword [esi]
jmp 0x40d43a
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x40d442
mov edi, dword [edi]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp - 4]
push 0
push 2
push edi
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebx], eax
test eax, eax
je 0x40d47e
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40d46e
mov esi, dword [esi]
xor eax, eax
pop edi
mov word [esi], ax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
shr eax, 1
dec eax
cmp eax, ecx
ja 0x40d4a7
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x40d496
mov esi, dword [esi]
xor ecx, ecx
pop edi
mov word [esi + eax*2], cx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040f320
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc