joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f91d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c59d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4f9209
inc eax
mov dword [esi + 0x10], eax
jmp 0x4f931c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4f921d
mov eax, 0xffffffc7
jmp 0x4f931e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4f922e
cmp dword [esi + 8], eax
jne 0x4f921d
cmp dword [esi + 8], eax
jne 0x4f9247
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4f9247
mov eax, 0xffffffc7
jmp 0x4f931e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4f925b
push eax
mov ecx, ebx
call fcn.004f8a00
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004be960
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4f928c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004be980
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004f8170
test eax, eax
mov dword [esp + 0x38], eax
je 0x4f92bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x910558
call fcn.004beb60
mov eax, dword [esp + 0x38]
jmp 0x4f931e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004f9030
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4f9303
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004f9050
mov esi, eax
test esi, esi
jne 0x4f9333
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004f9030
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4f92d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x910558
call fcn.004beb60
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x910558
call fcn.004beb60
mov eax, esi
jmp 0x4f931e

Function at 0x4fdd40
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4fdda0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4fdda0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4fdda0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4fdda0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4fdde0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ecx
ret
Function at 0x508dc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5c62c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.005bcc96
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00508720
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.005bcbc4
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.005b93f4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.005b93f4
push 1
push 0
push 0
mov ecx, esi
call fcn.005b939c
push 1
push 0
push 1
mov ecx, esi
call fcn.005b939c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005bcd08
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x508f40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5c62e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.005bcc96
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00508720
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.005bcbc4
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x509004
cmp dword [esp + 0x40], 1
jne 0x509002
cmp ecx, eax
jge 0x509004
mov eax, ecx
cmp eax, 0xc8
jge 0x509010
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00508dc0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005bcd08
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x509800
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5c6393
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.005b7708
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.005bcf3e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005becab
test eax, eax
je 0x50991c
mov ecx, dword [esp + 0x3c]
call fcn.005bcf6b
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 0x5098e0
push edi
mov ecx, esi
call fcn.005ba53e
mov ecx, esi
call fcn.00509ac0
cmp dword [esp + 0x38], 1
jne 0x509915
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.005ba679
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 0x50bb00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x50bb33
push esi
call fcn.00519ec0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x50bb2c
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 0x50bbb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x50bba2
mov eax, dword [esi + 8]
test eax, eax
je 0x50bb57
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 0x50bb9e
cmp eax, 2
je 0x50bba2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x50bb4a
cmp eax, 3
je 0x50bb7d
cmp eax, 1
jne 0x50bb4a
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 0x50bb4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x50bb4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0050bbe0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x50bbc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0050bbe0
add esp, 4
pop esi
ret

Function at 0x50c460
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x50c481
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x50c481
mov eax, dword [eax + 0x44]
test eax, eax
je 0x50c481
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x527f40
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 0x527fe3
test eax, eax
jbe 0x527fe3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x527fe3
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 0x527f8e
xor esi, esi
jmp 0x527f94
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x527fbf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0052c430
add esi, eax
push esi
mov ebx, esi
call fcn.0052c430
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x527fa0
pop ebp
test edi, edi
pop edi
jne 0x527fe3
test ebx, ebx
je 0x527fe3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.005a0f40
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x528105
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 0x52821d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x52821d
mov eax, dword [esi + 0x3c]
push eax
call fcn.005b7b5a
mov esi, eax
test esi, esi
je 0x52821d
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 0x52821d
mov ecx, esi
call fcn.00528090
cmp edi, eax
jge 0x52821d
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 0x5281a3
mov dword [esp + 0x34], 1
jmp 0x5281fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x52821d
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.005268b0
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 0x5329b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
mov byte [esi + 0x40], 1
call fcn.005a2498
mov al, byte [esi + 0x40]
add esp, 0xc
test al, al
je 0x5329ea
lea edi, [esi + 0x20]
push 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
jg 0x5329ea
mov byte [edi], 0x30
mov byte [esi + 0x21], 0
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x532ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [0x981f24]
test edi, edi
jne 0x532bd6
lea eax, [esp + 0x1c]
push 0x1c
push eax
push 0x532d10
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
mov ecx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
mov edi, eax
push 0x949660
push str.E2EE_IDR_DLL
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x532bfa
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x532c19
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x28
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x532c38
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x28
ret
push ebp
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x532c56
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x28
ret
mov ebx, dword [esp + 0x3c]
push ebx
push esi
push edi
call fcn.00532d40
add esp, 0xc
test al, al
jne 0x532cfa
mov eax, dword [ebx + 8]
mov ebp, esi
shr ebp, 6
inc ebp
shl ebp, 6
cmp ebp, eax
jbe 0x532cd9
mov ecx, dword [ebx]
push ebp
mov dword [esp + 0x40], ecx
call fcn.005a1127
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x532cc1
mov esi, dword [esp + 0x3c]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x532cd2
push eax
call fcn.005a103e
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [ebx + 8], ebp
mov ecx, dword [ebx]
mov dword [ebx + 4], esi
mov ebp, dword [esp + 0x18]
mov byte [ecx + esi], 0
mov ecx, esi
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x532f80
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0xc], bl
je 0x532ff0
mov eax, dword [esi + 4]
sub eax, ebx
je 0x532fed
dec eax
je 0x532fc1
dec eax
jne 0x532fed
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x532fed
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp eax, 1
jne 0x532fed
mov byte [esi + 0xd], bl
mov dword [esi + 8], ebx
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x532fed
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp eax, 1
jne 0x532fed
lea eax, [esi + 0xd]
mov dword [esi + 8], ebx
push eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
pop esi
pop ebx
ret

Function at 0x533000
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov ecx, dword [esp + 0xc]
mov edi, esi
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x949664
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
call fcn.005a2498
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret 0xc

Function at 0x533040
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0xc]
test al, al
je 0x533099
mov eax, dword [esi + 4]
push ebx
xor edi, edi
xor bl, bl
sub eax, edi
je 0x533104
dec eax
je 0x5330dd
dec eax
jne 0x533090
mov eax, dword [esi + 8]
cmp eax, edi
je 0x533104
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp eax, 1
jne 0x533104
mov dword [esi + 8], edi
mov byte [esi + 0xd], 0
mov bl, al
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
test bl, bl
mov byte [esi + 0xd], 0
pop ebx
je 0x533108
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi + 8], eax
je 0x533108
or ecx, 0xffffffff
xor eax, eax
mov byte [esi + 0xc], 1
mov dword [esi + 4], 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + 0xd]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 4
mov eax, dword [esi + 8]
cmp eax, edi
je 0x533104
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp eax, 1
jne 0x533104
lea eax, [esi + 0xd]
mov dword [esi + 8], edi
push eax
mov bl, 1
mov byte [eax], 0
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x533085
xor bl, bl
jmp 0x533090
pop edi
xor al, al
pop esi
ret 4
Function at 0x533110
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov al, byte [esi + 0xc]
test al, al
je 0x533159
mov eax, dword [esi + 4]
sub eax, 0
je 0x53319b
dec eax
je 0x53315e
dec eax
jne 0x533155
mov eax, dword [esi + 8]
test eax, eax
je 0x53319b
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp eax, 1
jne 0x53319b
mov byte [esi + 0xd], bl
mov dword [esi + 8], 0
mov bl, al
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov al, bl
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x53319b
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp eax, 1
jne 0x53319b
lea eax, [esi + 0xd]
mov dword [esi + 8], 0
push eax
mov bl, 1
mov byte [eax], 0
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov al, bl
pop esi
pop ebx
ret
xor bl, bl
mov byte [esi + 0xd], bl
mov al, bl
pop esi
pop ebx
ret
Function at 0x540b10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x540b5c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x540b5c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x540b46
push eax
call ebp
test ax, ax
jl 0x540b54
inc esi
add edi, 4
cmp esi, 6
jb 0x540b38
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00540810
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5446c0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x544720
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x544720
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x544720
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x544720
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x544730
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ecx
ret
Function at 0x54a080
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.005a0428
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.005b6230
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.005a0428
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.005b6230
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.005b6230
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.005b6230
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x54a184
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.005b6230
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x54a1bf
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x951618
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.005b6230
pop edi
pop esi
pop ebx
add esp, 0x348
ret
Function at 0x554510
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0055a990
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 0x554609
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, esi
call fcn.00554620
test eax, eax
jne 0x554609
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 SysReAllocString
mov ecx, esi
call fcn.00554620
test eax, eax
jne 0x554609
lea edx, [esp + 0x10]
push 0x952be4
push edx
call fcn.005a1770
mov esi, eax
add esp, 8
test esi, esi
jne 0x5545da
lea eax, [esp + 0x10]
push 0x952be0
push eax
call fcn.005a1770
mov esi, eax
add esp, 8
test esi, esi
jne 0x5545da
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x5545dd
mov byte [esi], 0
push 0x9523a8
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 0x554620
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x554682
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc