joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573138
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4a5016
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0045abd0
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004a1fd0
test eax, eax
je 0x4a5049
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4a5062
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0049db40
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4a5085
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4a5085
push 0xa
push str.Sync_Data
lea ecx, [ebp - 0x10]
call fcn.00472540
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
cmovne edi, ecx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a50a6
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 esp, ebp
pop ebp
ret

Function at 0x4a7050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ab8b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5d6b80]
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, dword [ebp + 8]
lea esi, [ecx + 0xc]
push esi
call fcn.004a1e60
test eax, eax
jne 0x4a7091
xor eax, eax
jmp 0x4a70ec
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a708d
push 3
push dword [esi]
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.00491750
push dword [ebp - 0x94]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00484590
neg eax
lea ecx, [ebp - 0x90]
sbb esi, esi
mov eax, dword [ebp - 0x94]
cmp eax, ecx
je 0x4a70e9
push eax
call fcn.0052616f
add esp, 4
lea eax, [esi + 1]
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.00525878
mov esp, ebp
pop ebp
ret 4
Function at 0x4a74b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571930
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a74f4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0045abd0
lea eax, [ebp - 0x10]
push eax
call fcn.004b9b00
mov edi, dword [ebp - 0x10]
add esp, 4
or ebx, 0xffffffff
test eax, eax
je 0x4a7606
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a7546
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ebx, 0x5d21d0
lea esp, [esp]
cmp ebx, 0x5d21dc
jge 0x4a75e6
push dword [ebx]
lea eax, [ebp - 0x14]
push edi
push 0x57e340
push eax
call fcn.0045acb0
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp dword [esi - 0xc], 0
je 0x4a75ba
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a75ba
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.004a7640
add esp, 0xc
test eax, eax
je 0x4a75ba
push dword [ebp + 8]
call fcn.004a50c0
add esp, 4
test eax, eax
jne 0x4a75bf
mov ecx, dword [ebp + 8]
call fcn.0048d2d0
add ebx, 4
jmp 0x4a7560
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4a75df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4a7608
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a7606
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4a7626
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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
Function at 0x4a7640
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ac60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x4a7711
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a7711
push edi
call fcn.005243ff
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a7711
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a7711
cmp dword [ebp - 0x10], 0
jbe 0x4a7711
push edi
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push edi
call fcn.00496ca0
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0049b680
push edi
call fcn.00525873
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0048ceb0
mov edi, 1
jmp 0x4a771e
push dword [ebp + 0x10]
call fcn.004a0e50
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4a772c
push esi
call ebx
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
Function at 0x4a78c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0
push 0
push 0x2001f
push 0
push 0
push dword [0x5d6870]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0045aa10
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x4a79e2
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [eax]
test edx, edx
je 0x4a7944
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7920
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SearchName
push edi
call ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
test edx, edx
je 0x4a7976
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7952
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SearchKeyword
push edi
call ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
test edx, edx
je 0x4a79a8
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7984
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SearchUrl
push edi
call ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
test edx, edx
je 0x4a79da
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a79b6
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SearchSugUrl
push edi
call ebx
mov esi, 1
pop ebx
jmp 0x4a79e4
xor esi, esi
test edi, edi
je 0x4a79ef
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a8c60
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x74]
call fcn.005096e0
test eax, eax
jne 0x4a8c78
lea ecx, [edi + 0x74]
call fcn.00482380
push 0
lea ecx, [edi + 0x74]
call fcn.004823b0
push 0x5de154
mov ecx, edi
call fcn.004a9d60
push 0x5de154
mov ecx, edi
call fcn.004a9be0
lea ecx, [edi + 0x74]
call fcn.005096e0
test eax, eax
jne 0x4a8cb0
lea ecx, [edi + 0x74]
pop edi
pop esi
jmp fcn.004827f0
pop edi
pop esi
ret

Function at 0x4a9480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575b5b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.004a95a0
add esp, 4
xor edi, edi
push 0x5de27c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5de270], edi
jne 0x4a9581
push 0xa0
call fcn.005278bc
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x4a94ea
mov ecx, eax
call fcn.004a9f90
mov esi, eax
jmp 0x4a94ec
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x5de270], esi
test esi, esi
je 0x4a9581
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0045a580
mov eax, dword [ebp + 0xc]
push 0
push 0
push 1
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
je 0x4a955d
mov ecx, esi
call fcn.004ab190
test eax, eax
je 0x4a955d
mov eax, dword [0x5de270]
push eax
push 0
push eax
push 0x4a8be0
push 0
push 0
call fcn.0052762d
mov ecx, eax
add esp, 0x18
mov eax, dword [0x5de270]
mov edi, 1
mov dword [eax + 4], ecx
jmp 0x4a9581
mov esi, dword [0x5de270]
test esi, esi
je 0x4a9577
mov ecx, esi
call fcn.004a8980
push esi
call fcn.0052586e
add esp, 4
mov dword [0x5de270], 0
push 0x5de27c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a95a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x5de27c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5de26c], 0
jne 0x4a9676
mov esi, dword [0x5de270]
test esi, esi
je 0x4a9676
cmp dword [ebp + 8], 0
mov dword [0x5de26c], 1
je 0x4a95ef
mov dword [esi + 4], 0
mov esi, dword [0x5de270]
push edi
mov edi, dword [esi + 4]
test edi, edi
je 0x4a9647
mov dword [esi + 4], 0
mov eax, dword [0x5de270]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x5de27c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1388
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a963a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x5de270]
pop edi
test esi, esi
je 0x4a965c
mov ecx, esi
call fcn.004a8980
push esi
call fcn.0052586e
add esp, 4
cmp dword [ebp - 4], 0
mov dword [0x5de270], 0
mov dword [0x5de26c], 0
jne 0x4a9681
push 0x5de27c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ab190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fd18
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x54], eax
test eax, eax
je 0x4ab266
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4aadb0
push 0
push 0
call fcn.0052762d
add esp, 0x18
mov dword [esi + 0x5c], eax
lea eax, [ebp - 0x10]
mov ecx, 0x5de154
push eax
call fcn.0049c7a0
lea eax, [esi + 0x4a]
mov dword [ebp - 4], 0
push eax
lea eax, [esi + 0x48]
mov ecx, esi
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004aadd0
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
test eax, eax
lea eax, [edx + 0xc]
je 0x4ab255
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ab240
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ab266
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4abb20
Capabilities:
Enumerate processes
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b202
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x264], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x26c], eax
nop
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
inc edi
push 6
mov dword [ebp - 0x268], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4abcea
push 0x228
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00525ee0
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
mov dword [ebp - 0x2c], 0x1c
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x28], xmm0
push eax
push edi
movq qword [ebp - 0x18], xmm0
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4abcd7
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x240], eax
jne 0x4abc1f
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x270]
call fcn.0045a3a0
push str.rundll32.exe
push dword [eax]
or esi, 1
mov dword [ebp - 0x260], esi
call fcn.00526fc5
add esp, 8
mov byte [ebp - 0x259], 1
test eax, eax
je 0x4abc26
mov byte [ebp - 0x259], 0
mov eax, dword [ebp - 0x260]
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x4abc60
mov edx, dword [ebp - 0x270]
and eax, 0xfffffffe
add edx, 0xfffffff0
mov dword [ebp - 0x260], eax
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4abc60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x259], 0
jne 0x4abc81
lea eax, [ebp - 0x258]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
mov esi, dword [ebp - 0x260]
jmp 0x4abbd4
mov esi, dword [ebp - 0x250]
test esi, esi
je 0x4abcd1
lea eax, [ebp - 0x2c]
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x4abcd1
lea esp, [esp]
cmp dword [ebp - 0x20], esi
jne 0x4abcc3
lea eax, [ebp - 0x264]
push eax
push 0x4abd20
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [ebp - 0x264], 0
jne 0x4abcd1
lea eax, [ebp - 0x2c]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4abca0
mov esi, dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x264]
test eax, eax
jne 0x4abd02
jmp 0x4abcf0
mov eax, dword [ebp - 0x264]
mov edi, dword [ebp - 0x268]
cmp edi, 0xc8
jl 0x4abb70
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.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4abec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x4aba40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
call fcn.004abb20
mov ebx, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4abf49
push edi
push 5
push 0
push 0
push 0xfffff448
push 0xfffff448
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push 0x4abd60
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
push 1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push 0
push 0
push 7
push edi
call esi
push edi
push 1
push 0x111
push dword [ebp - 8]
call esi
pop edi
push 0x3e8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push dword [0x5d67f4]
lea eax, [ebp + 8]
push dword [0x5d67f0]
push reloc.WS2_32.dll_accept
push eax
call fcn.0051ff70
add esp, 0x18
test ebx, ebx
je 0x4abfd7
mov eax, dword [eax]
mov edi, edi
mov cx, word [eax]
cmp cx, word [ebx]
jne 0x4abfa6
test cx, cx
je 0x4abfa2
mov cx, word [eax + 2]
cmp cx, word [ebx + 2]
jne 0x4abfa6
add eax, 4
add ebx, 4
test cx, cx
jne 0x4abf80
xor eax, eax
jmp 0x4abfab
sbb eax, eax
or eax, 1
mov esi, dword [ebp + 8]
xor ebx, ebx
test eax, eax
sete bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4abfcf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0045a8f0
int3

Function at 0x4acf10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x14
call fcn.005278bc
mov esi, eax
add esp, 4
test esi, esi
je 0x4acf48
mov dword [esi], vtable.CIEindow.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
jmp 0x4acf4a
xor esi, esi
push esi
push 0x4aca80
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 8], 0
je 0x4acf68
mov ecx, dword [ebp + 8]
lea eax, [esi + 4]
push eax
call fcn.004ac9f0
mov eax, 1
pop esi
pop ebp
ret

Function at 0x4af6c0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, ecx
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0xa0], eax
test eax, eax
jne 0x4af6e3
pop edi
xor eax, eax
pop esi
ret
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0xa4], eax
test eax, eax
je 0x4af6de
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0xa8], eax
test eax, eax
je 0x4af6de
lea eax, [esi + 0xb0]
push eax
push 0
push esi
push 0x4af740
push 0
push 0
call fcn.0052762d
add esp, 0x18
mov dword [esi + 0xac], eax
xor ecx, ecx
test eax, eax
setne cl
pop edi
mov eax, ecx
pop esi
ret
Function at 0x4b1700
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fd18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4b1743
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [edi + 0x24]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push dword [0x5d67c4]
push 0x58424c
push eax
call fcn.0045acb0
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x98], eax
test eax, eax
je 0x4b179b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4b179b
mov edi, 1
jmp 0x4b179d
xor edi, edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b17be
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
mov esp, ebp
pop ebp
ret
Function at 0x4b3230
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], ebx
test edi, edi
je 0x4b3330
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4b3330
lea eax, [ebp - 0x208]
push eax
push 0x10008
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b3335
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
lea ecx, [ecx]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0xff
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0x208]
call ebx
mov esi, eax
cmp esi, 0x103
je 0x4b3302
test esi, esi
jne 0x4b3311
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call fcn.004b3230
mov esi, eax
add esp, 8
test esi, esi
je 0x4b3290
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4b4b50
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b4b6e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b4c9d
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 6
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b4c96
cmp dword [ebp + 8], 6
jne 0x4b4c96
mov ax, word [ebp - 8]
test ax, ax
je 0x4b4c96
movzx esi, ax
push ebx
shl esi, 4
push esi
call fcn.00526c0f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4b4bf3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp + 8]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4b4c84
movzx esi, word [ebp - 8]
mov eax, esi
shl eax, 4
cmp dword [ebp + 8], eax
jne 0x4b4c84
test esi, esi
jle 0x4b4c6f
mov edx, dword [ebp + 0xc]
mov ecx, ebx
mov al, byte [ecx]
cmp al, byte [ecx + 1]
jne case.0x4b4c41.17
movzx eax, al
add eax, 0xfffffff0
cmp eax, 0xf0
ja case.0x4b4c41.17
movzx eax, byte [eax + 0x4b4cc8]
jmp dword [eax*4 + 0x4b4ca8]
or dword [edx], 1
jmp case.0x4b4c41.17
or dword [edx], 2
jmp case.0x4b4c41.17
or dword [edx], 4
jmp case.0x4b4c41.17
or dword [edx], 8
jmp case.0x4b4c41.17
or dword [edx], 0x10
jmp case.0x4b4c41.17
or dword [edx], 0x20
jmp case.0x4b4c41.17
or dword [edx], 0x40
add ecx, 0x10
dec esi
jne 0x4b4c26
push ebx
call fcn.0052616f
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0052616f
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret