joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bfb70
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push eax
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bfbcc
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfbb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
push edi
mov ecx, 0x599458
call eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x258]
add eax, 0x10
push str._s________.log
push edx
mov dword [ebp - 0x258], eax
call fcn.0044ff30
mov ecx, dword [ebp - 0x258]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4bfcbf
lea ecx, [ecx]
push esi
lea edx, [ebp - 0x228]
push edx
push 0x560120
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.0044f400
add esp, 0xc
push eax
lea edx, [ebp - 0x25c]
push edx
call fcn.0044f400
add esp, 0xc
push eax
call fcn.004bf900
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x25c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfc80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x254]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4bfc20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
movzx esi, bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x4bfce5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfd04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x4c0150
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
test eax, eax
jne 0x4c016b
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [ebp + 8]
cmp eax, esi
jne 0x4c018a
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
cmp edi, ebx
je 0x4c0263
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x4c01e0
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
call fcn.004c00b0
add esp, 4
test eax, eax
je 0x4c0248
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x4c0227
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
je 0x4c022e
push esi
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c0280
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.0051d250
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x4c02e5
test byte [ebp - 0xf2], 0x80
jne 0x4c02e5
push esi
push 1
push esi
push 0x12
call ebx
mov esi, 1
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, eax
test esi, esi
je 0x4c02fc
push 0
push 3
push 0
push 0x12
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x4c0500
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0051d7f0
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x4c05d9
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.0051d250
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x4c05d9
cmp eax, 0x1fff
ja 0x4c05d9
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c05c6
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x560120
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c05c6
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret

Function at 0x4c0620
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0051d7f0
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4c06b4
cmp eax, 0x1fff
ja 0x4c06b4
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c06b4
lea edx, [ebp - 0x2010]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x560120
lea ecx, [ebp - 0x2004]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c06b4
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 0xc]
mov dword [edi], edx
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret

Function at 0x4c07a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4c07d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c07d1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
ret
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4c0f20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x4c0f54
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4c0f4e
lea eax, [ebp - 4]
push eax
call fcn.004c0850
add esp, 4
test eax, eax
je 0x4c0f4e
cmp dword [ebp - 4], 0
jne 0x4c0f54
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4c1fb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x410
lea edx, [ebp - 0x416]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
mov word [ebp - 0x418], cx
call fcn.0051d250
push 0x208
push esi
lea eax, [ebp - 0x418]
push 0x209
push eax
call fcn.0051f901
add esp, 0x1c
lea ecx, [ebp - 0x424]
push ecx
push 0x8b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, ebx
je 0x4c214c
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x41c]
push edx
push 1
push 2
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, ebx
je 0x4c214c
lea ecx, [ebp - 0x420]
push ecx
push str.S_1_16_8192
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov esi, eax
cmp esi, ebx
je 0x4c214c
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x42c], ebx
push eax
mov dword [ebp - 0x42c], 0x20
mov dword [ebp - 0x430], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x430]
push edx
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, ebx
je 0x4c214c
push 0x40
xor eax, eax
lea ecx, [ebp - 0x480]
push ebx
push ecx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x484], ebx
call fcn.0051d250
mov ecx, dword [ebp - 0x428]
add esp, 0xc
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x484]
push eax
mov eax, dword [ebp - 0x41c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x418]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [ebp - 0x440]
cmp eax, ebx
je 0x4c213b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x43c]
cmp eax, ebx
je 0x4c214c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
cmp eax, ebx
je 0x4c215d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x41c]
cmp eax, ebx
je 0x4c216e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x424]
cmp eax, ebx
je 0x4c217f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
cmp esi, 1
je 0x4c2188
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x4c2a80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x88]
push ecx
push ebx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x4c2ace
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.0051e9bc
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c2aef
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c2b89
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x8c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c2b89
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x4c2b89
mov eax, dword [ebp - 0x8c]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push 0x561450
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00436fa0
add esp, 0x14
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c2b89
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push esi
call fcn.00436bb0
mov esi, 1
test eax, eax
jge 0x4c2b8f
mov esi, dword [ebp - 0x90]
push edi
call fcn.0051e865
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x4c94b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.0046aa60
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [edi + 0x18]
push 0
push 2
mov dword [eax + 8], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c963e
push 0x22c
lea edx, [ebp - 0x230]
push 0
push edx
call fcn.0051d250
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4c9637
push esi
jmp 0x4c9540
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00464b60
lea ecx, [ebp - 0x234]
call fcn.00451410
mov ecx, eax
call fcn.0044b970
mov eax, dword [ebp - 0x234]
mov esi, dword [eax - 0xc]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x4c9590
push esi
lea ecx, [ebp - 0x234]
call fcn.0043a120
mov eax, dword [ebp - 0x234]
lea edx, [esi + 1]
push edx
push eax
call fcn.0051e26d
add esp, 8
test esi, esi
jl 0x4c964e
mov eax, dword [ebp - 0x234]
cmp esi, dword [eax - 8]
jg 0x4c964e
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x234]
xor eax, eax
lea edx, [ebp - 0x228]
mov word [ecx + esi*2], ax
push edx
mov ecx, edi
call fcn.0047ff40
lea ecx, [ebp - 0x234]
push ecx
mov ecx, eax
call fcn.0044f5c0
push 0x22c
lea edx, [ebp - 0x230]
push 0
push edx
call fcn.0051d250
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c9621
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x230]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4c9540
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00414840
int3
Function at 0x4ca180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, 1
mov esi, ecx
mov dword [ebp - 4], edi
jne 0x4ca221
lea eax, [ebp - 4]
push eax
push 0
push ecx
mov ecx, esp
push str.UserExperience
call fcn.00464b60
push ecx
mov ecx, esp
push str.SOFTWARE360TotalSecurityExperience
call fcn.00464b60
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.00448da0
push eax
call fcn.00438100
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ca1f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ca211
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 4], edi
je 0x4ca221
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ebx, [esi + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
mov ecx, 0x599458
call eax
mov edx, dword [ebp + 8]
add eax, 0x10
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x4ca24c
xor eax, eax
jmp 0x4ca260
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ca251
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp + 0xc]
call fcn.00449eb0
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [esi + 0x2c]
call fcn.004c8ee0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ca295
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
cmp dword [esi + 4], 0
mov dword [esi + 0x10], 0
jne 0x4ca2d7
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0
jne 0x4ca2d4
push 0
push 0
push esi
push 0x4c1ae0
push 0
push 0
call fcn.005247af
add esp, 0x18
mov dword [esi + 4], eax
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4ca2f2
push 0
push 1
push eax
call edi
mov dword [esi + 0x10], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x4ca307
push 0
push 1
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cac70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
push esi
push edi
mov ecx, 0x599458
call edx
mov esi, eax
lea eax, [ebp - 8]
add esi, 0x10
push eax
mov dword [ebp - 4], esi
call fcn.00473c90
push 0x56b824
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.0044f400
mov edi, dword [eax]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, 0x40
add esp, 0x10
or eax, ecx
jge 0x4cacce
push 0x40
lea ecx, [ebp - 4]
call fcn.0043a120
mov esi, dword [ebp - 4]
push edi
push 0x40
push esi
push 0x576bd0
push 0x56b81c
push str.kpb.def
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cad06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cad25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0051f6df
add esp, 8
test eax, eax
jl 0x4cada0
cmp eax, dword [esi - 8]
jg 0x4cada0
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x4cad7c
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
call fcn.0044f5c0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cad71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cad98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00414840
int3
Function at 0x4cb3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4cb445
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4cb43e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4cb43e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4cb437
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051e9bc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4cb437
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push edx
push eax
push ebx
call fcn.0051f280
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x4cb483
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp + 8]
push edx
push 0x560120
push ebx
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4cb47a
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.0051e865
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8