joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b130
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x378], 8
lea ecx, [esi + 0x314]
mov eax, dword [ecx]
push edi
mov edi, dword [esi + 0x374]
mov edx, dword [eax + 0x70]
lea eax, [esi + 0x364]
jb 0x47b156
mov eax, dword [eax]
push 0
push edi
push eax
call edx
pop edi
mov byte [esi + 0x3c8], 1
mov ecx, esi
pop esi
jmp fcn.00479210

Function at 0x47b3a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 4], 0xffffffff
je 0x47b40b
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x47b3e7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
call edi
mov dword [esi], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x47b3f9
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x47b40b
push eax
call edi
mov dword [esi + 8], 0xffffffff
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x47b447
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b450
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esi + 0x10]
call fcn.0040bab0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x47b48f
mov eax, dword [ecx]
push 0
push esi
call dword [eax]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x47b4eb
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x47b560
push 0
push 0
call fcn.00608b48
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x47b4eb
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x47b4d6
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret 4
Function at 0x47b6f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47b737
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x47b746
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005bb391
mov esp, ebp
pop ebp
ret 8

Function at 0x47bcb0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov ecx, dword [esi + 0x354]
mov eax, dword [ecx]
call dword [eax + 0x114]
mov ecx, dword [esi + 0x354]
push 0x64411c
mov eax, dword [ecx]
call dword [eax + 0x30]
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47bcf1
push 0
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x47c240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634778
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00464c00
mov ecx, eax
call fcn.0045d000
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.0047e010
add esp, 8
mov ecx, dword [esi + 0x320]
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47c2bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
Function at 0x47caa0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov ecx, dword [esi + 0x354]
mov eax, dword [ecx]
call dword [eax + 0x114]
mov ecx, dword [esi + 0x354]
push 0x64411c
mov eax, dword [ecx]
call dword [eax + 0x30]
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47cae1
push 0
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret

Function at 0x47dea0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6349b9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a73e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, eax
shl ebx, 0x10
mov dword [ebp + 0xc], ebx
cmp esi, 0x2d
je 0x47df03
cmp esi, 0x2e
je 0x47df03
cmp esi, 0x90
je 0x47df03
cmp esi, 0x21
jb 0x47defd
cmp esi, 0x28
jbe 0x47df03
cmp dword [ebp + 0x10], 0
je 0x47df0c
or ebx, 0x1000000
mov dword [ebp + 0xc], ebx
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [ebp - 4], 1
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x47dfe1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov esi, 0x40
mov dword [ebp - 0x10], 1
add esi, esi
js 0x47dfd7
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x47df6b
push esi
mov ecx, edi
call fcn.00409b90
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x47dfd7
mov dword [ecx - 0xc], esi
xor edx, edx
mov eax, dword [edi]
mov word [eax + esi*2], dx
lea eax, [esi + 1]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47dfa6
mov ecx, dword [edi]
test ecx, ecx
jne 0x47df9a
xor eax, eax
jmp 0x47dfaa
push dword [ecx - 8]
push ecx
call fcn.0060e988
add esp, 8
test eax, eax
js 0x47dfd7
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x47dfd7
mov dword [ecx - 0xc], eax
xor edx, edx
mov ecx, dword [edi]
cmp ebx, esi
mov ebx, dword [ebp + 0xc]
mov word [ecx + eax*2], dx
je 0x47df48
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00408a00
push 0x80004005
call fcn.00408a00
int3
Function at 0x47f210
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
xor eax, eax
push esi
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f250
push ebx
sub ecx, esi
push edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040bab0
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, 0x811c9dc5
mov ebx, dword [ebp - 0x28]
cmovae esi, ebx
xor ecx, ecx
lea edi, [eax + eax]
test edi, edi
je 0x47f2a1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x47f290
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x20]
and eax, edx
mov edi, dword [edi + 0x18]
mov edx, dword [ecx + eax*8]
lea eax, [eax*8 + 4]
add eax, ecx
mov dword [ebp - 0x2c], edx
mov esi, edx
mov dword [ebp - 0x30], eax
cmp edx, edi
jne 0x47f2cb
mov eax, edi
jmp 0x47f2cf
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x47f344
cmp dword [ebp - 0x14], 8
lea eax, [esi + 8]
mov edx, dword [eax + 0x14]
lea ecx, [ebp - 0x28]
cmovae ecx, ebx
mov dword [ebp - 8], edx
mov ebx, dword [eax + 0x10]
cmp edx, 8
jb 0x47f2f0
mov eax, dword [eax]
cmp ebx, dword [ebp - 0x18]
jne 0x47f304
push ebx
push ecx
push eax
call fcn.0040e100
add esp, 0xc
test eax, eax
je 0x47f311
mov esi, dword [esi]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
jmp 0x47f2c3
cmp dword [ebp - 8], 8
lea eax, [esi + 8]
jb 0x47f31c
mov eax, dword [eax]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp edx, ebx
jne 0x47f33d
push edx
push eax
push ecx
call fcn.0040e100
add esp, 0xc
test eax, eax
je 0x47f33f
mov esi, edi
mov ebx, dword [ebp - 0x28]
jmp 0x47f346
mov esi, edi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47f379
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x47f36f
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f3b9
push ecx
push ebx
call fcn.005bb0db
add esp, 8
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
cmp esi, dword [eax + 0x18]
je 0x47f3a6
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x47f3be
push dword [ebp - 0x34]
mov eax, dword [ecx]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x14
call fcn.005ffa79
call fcn.0047fc34
int3
Function at 0x4861d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635271
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x486364
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x486325
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x486317
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x486325
add eax, 0x10
push 0x6b5560
push eax
mov dword [ebp - 0x20], eax
call fcn.005bb94d
mov esi, eax
add esp, 8
test esi, esi
je 0x486325
push dword [ebp - 0x20]
push 0
push esi
call fcn.005fc2a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4862da
push esi
call fcn.005bb0f2
add esp, 4
jmp 0x486325
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4862e0
sub ecx, edx
sar ecx, 1
je 0x48630e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4862f6
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040a210
push esi
call fcn.005bb0f2
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x486325
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x486344
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00408a00
int3
Function at 0x486370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x486394
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x4863f6
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x4863f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x486411
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x10
Function at 0x486930
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63537a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a73e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x486af4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x486afe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x486b08
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x486a12
xor ecx, ecx
jmp 0x486a30
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486a20
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040a210
push edi
mov ecx, ebx
call fcn.00454600
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x486a4c
xor ecx, ecx
jmp 0x486a64
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486a54
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.0040a210
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00487290
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00454600
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486aa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x486ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x486ade
cmp dword [esi + 0x10], 0
je 0x486ad5
push dword [edi]
call fcn.00612e0c
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00408a00
push 0x80004005
call fcn.00408a00
push 0x80004005
call fcn.00408a00
int3
Function at 0x487090
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635468
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x487264
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4870e5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x487264
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x487103
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x487264
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x487121
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x487264
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x48713f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x487264
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x487264
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x487164
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x487197
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x4871af
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x4871ed
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040b480
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.005fb7a0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x64b3f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00487a40
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48721b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x487254
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x487254
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.00457150
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00407bd0
lea ecx, [ebp - 0x28]
call fcn.00407bd0
lea ecx, [ebp - 0x34]
call fcn.00486b40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 4
Function at 0x487600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635527
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x48764a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487656
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.0040bab0
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x4876c3
push 0x48
call fcn.005bb0ab
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4876b7
push 0x48
push 0
push ebx
call fcn.005fc2a0
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00486930
jmp 0x4876b9
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4876f0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040bab0
push 3
push 0x64b3f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004795a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48773f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x48778e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x48778e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.0040bab0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00407bd0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4877c4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4877ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487801
push edx
push ecx
call fcn.005bb0db
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x4877e3
push esi
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x14
call fcn.005ffa79
int3
Function at 0x4883d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x4883df
pop ebp
jmp fcn.00488d90
xor eax, eax
pop ebp
ret 0xc