joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462090
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0045c840
test eax, eax
je 0x46217f
mov ecx, edi
call fcn.0045c840
mov ecx, eax
call fcn.00459d90
test eax, eax
jne 0x46217f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46217f
mov eax, dword [0xb0af08]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x4620f2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0045c840
mov ecx, eax
call fcn.00459fc0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x46217f
cmp ebx, eax
jne 0x46217f
cmp dword [esp + 0x10], eax
jne 0x462165
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x464d10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49e5b8
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 0x464d49
inc eax
mov dword [esi + 0x10], eax
jmp 0x464e5c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x464d5d
mov eax, 0xffffffc7
jmp 0x464e5e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x464d6e
cmp dword [esi + 8], eax
jne 0x464d5d
cmp dword [esi + 8], eax
jne 0x464d87
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x464d87
mov eax, 0xffffffc7
jmp 0x464e5e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x464d9b
push eax
mov ecx, ebx
call fcn.00464540
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.00430c70
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x464dcc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00430c90
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00463cb0
test eax, eax
mov dword [esp + 0x38], eax
je 0x464dff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xadf528
call fcn.00430e70
mov eax, dword [esp + 0x38]
jmp 0x464e5e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00464b70
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x464e43
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00464b90
mov esi, eax
test esi, esi
jne 0x464e73
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00464b70
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x464e15
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xadf528
call fcn.00430e70
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], 0xadf528
call fcn.00430e70
mov eax, esi
jmp 0x464e5e

Function at 0x467f80
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x467fe0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x467fe0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x467fe0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x467fe0
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 0x468020
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 0x46df30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ebe8
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.004972d5
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046d8d0
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.00497203
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.00493ac7
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.00493ac7
push 1
push 0
push 0
mov ecx, esi
call fcn.00493a6f
push 1
push 0
push 1
mov ecx, esi
call fcn.00493a6f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00497347
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46e0b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ec08
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.004972d5
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046d8d0
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.00497203
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 0x46e174
cmp dword [esp + 0x40], 1
jne 0x46e172
cmp ecx, eax
jge 0x46e174
mov eax, ecx
cmp eax, 0xc8
jge 0x46e180
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046df30
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.00497347
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46e900
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ec73
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.00491ee4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.0049757d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00498adc
test eax, eax
je 0x46ea1c
mov ecx, dword [esp + 0x3c]
call fcn.004975aa
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 0x46e9e0
push edi
mov ecx, esi
call fcn.00494c12
mov ecx, esi
call fcn.0046eb80
cmp dword [esp + 0x38], 1
jne 0x46ea15
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.00494d4d
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 0x471440
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x471473
push esi
call fcn.00474540
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47146c
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 0x4714f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4714e2
mov eax, dword [esi + 8]
test eax, eax
je 0x471497
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 0x4714de
cmp eax, 2
je 0x4714e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47148a
cmp eax, 3
je 0x4714bd
cmp eax, 1
jne 0x47148a
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 0x47148a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47148a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00471520
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x471508
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00471520
add esp, 4
pop esi
ret

Function at 0x47d050
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 0x47d0f3
test eax, eax
jbe 0x47d0f3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47d0f3
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 0x47d09e
xor esi, esi
jmp 0x47d0a4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47d0cf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0047f020
add esi, eax
push esi
mov ebx, esi
call fcn.0047f020
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47d0b0
pop ebp
test edi, edi
pop edi
jne 0x47d0f3
test ebx, ebx
je 0x47d0f3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004818e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47d235
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 0x47d34d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47d34d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00492336
mov esi, eax
test esi, esi
je 0x47d34d
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 0x47d34d
mov ecx, esi
call fcn.0047d1a0
cmp edi, eax
jge 0x47d34d
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 0x47d2d3
mov dword [esp + 0x34], 1
jmp 0x47d32e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47d34d
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.0047c790
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 0x492cda
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x492d12
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00490d67
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00490d3f
jmp 0x492d1e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4943cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x494411
call fcn.00499ec7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x494411
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x494408
xor eax, eax
jmp 0x494419
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049441f
pop edi
pop esi
pop ebx
ret 4
Function at 0x49a3f7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49a425
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a443
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a35d
jmp 0x49a443
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a443
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a35d
test edi, edi
mov eax, edi
jne 0x49a42d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0xdd
mov eax, 0x5c6e
mov ebx, 0x23cb
mov esi, 0x5b
mov edi, 0x40c8
mov edx, 0x5d63
mov dword [ebp - 4], 0xc3
lea esp, [esp]
cmp ecx, 0xc3
cmovl ecx, dword [ebp - 4]
dec edx
jne 0x401170
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401230
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401230
cmp ecx, edx
jae 0x401230
sub edx, ecx
mov dword [ebp + 0xc], edx
mov ecx, 0x4fae
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011a5
lea ebx, [ebx]
mov eax, 0xb21642c9
imul ebx
add edx, ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4011c0
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
je 0x4011ef
mov edx, dword [ebp + 8]
mov al, byte [ecx + edx + 1]
sub al, 4
xor byte [ecx + edx], al
inc ecx
cmp ecx, ebx
jb 0x4011e1
mov eax, 0x78a4
mov ecx, 0x87
lea esp, [esp]
cmp esi, ecx
cmovl esi, ecx
dec eax
jne 0x401200
jmp 0x401210
mov eax, 0x38e38e39
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
test eax, eax
jne 0x401230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0x4ab3
mov dword [ebp - 8], 0x3ec9
inc ebx
mov eax, 0x2aaaaaab
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, ebx
sub eax, ecx
jne 0x402d1d
add ebx, 5
cmp ebx, 0x47cc
jl 0x402d00
inc edi
mov eax, 0x2aaaaaab
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, edi
sub eax, ecx
jne 0x402d40
inc edi
cmp edi, 0x59c3
jl 0x402d25
mov edx, dword [ebp + 8]
mov ecx, 0x4fd4
lea ebx, [edx + 9]
mov dword [ebp + 8], ebx
mov edi, 0x9f
mov eax, 0xb4
cmp eax, 0x9f
cmovg eax, edi
dec ecx
jne 0x402d60
inc byte [edx + 3]
movzx edi, byte [edx + 3]
movzx ecx, byte [edi + ebx]
movzx eax, byte [edx + 0x10d]
add edi, ebx
add ecx, eax
mov byte [edx + 0x10d], cl
mov esi, 0x2f03
lea esp, [esp]
mov eax, 0x1b4e81b5
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402d90
mov esi, dword [ebp - 0xc]
inc esi
mov eax, esi
and eax, 0x80000001
jns 0x402db5
dec eax
or eax, 0xfffffffe
inc eax
jne 0x402db8
inc esi
cmp esi, 0x370c
jl 0x402da6
mov dl, byte [edi]
movzx ecx, cl
mov al, byte [ecx + ebx]
mov byte [edi], al
mov byte [ecx + ebx], dl
mov bl, byte [edi]
add bl, dl
mov ecx, 0x78a4
mov edx, 0xf2
mov eax, 0x34
cmp eax, 0xf2
cmovl eax, edx
dec ecx
jne 0x402de0
mov ecx, 0x1159
mov edx, 0xfc
mov eax, 0xf2
lea ebx, [ebx]
cmp eax, 0xfc
cmovl eax, edx
dec ecx
jne 0x402e00
jmp 0x402e10
mov eax, 0x38e38e39
imul dword [ebp - 4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x402e10
jmp 0x402e30
mov eax, 0x38e38e39
imul dword [ebp - 8]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x402e30
mov ecx, dword [ebp + 8]
movzx eax, bl
pop edi
movzx eax, byte [eax + ecx]
movzx ecx, byte [ebp + 0xc]
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi + 0xe4], 0
mov dword [esi + 0x110], 0xdd7beda6
mov dword [esi + 0xa8], 0xdd7beda0
mov dword [esi + 0x114], 0xdd7beda8
mov dword [esi + 0xd0], 0xdd7bedd8
add esi, 0x94
push esi
call fcn.00403050
add esp, 4
mov cl, al
lea esp, [esp]
movzx eax, cl
cmp eax, dword [ebp + 0xc]
jb 0x4031c1
cmp eax, dword [ebp + 0x10]
jbe 0x4032e5
test esi, esi
jne 0x4031c9
xor ecx, ecx
jmp 0x4031b0
cmp byte [esi + 0x34], 0
jne 0x40322f
mov ecx, dword [esi + 0x50]
mov dword [ebp + 8], 0xd40fdc24
xor byte [ebp + 9], 0xdc
xor byte [ebp + 0xa], 0xf1
xor byte [ebp + 0xb], 0xab
mov byte [ebp + 8], 0
mov eax, dword [ebp + 8]
mov byte [esi + 0x34], 1
mov edx, dword [eax + 0x18]
test ecx, ecx
je 0x403209
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
lea ecx, [ecx]
cmp edx, eax
jne 0x403200
imul ecx, edi
jmp 0x403214
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
nop
cmp edx, eax
jne 0x403210
mov dword [esi + 0x24], ecx
mov dword [esi + 0x6c], 0x5bfb
mov dword [esi + 0x78], 0x7f27
mov dword [esi + 0x84], 0x54f9
mov ecx, dword [esi + 0x24]
mov ebx, ecx
mov eax, ecx
and eax, 0x3ffff80
shr ebx, 6
xor ebx, eax
mov eax, dword [esi + 0x7c]
xor eax, 0x1258
and eax, ecx
mov ecx, dword [esi + 0x6c]
shl eax, 0x12
mov edi, ecx
shr ebx, 7
xor ebx, eax
mov eax, ecx
and eax, 0x3e000000
shr edi, 2
xor edi, eax
mov eax, dword [esi + 0x14]
xor eax, 0xe2841258
and eax, ecx
mov ecx, dword [esi + 0x78]
shl eax, 2
mov edx, ecx
shr edi, 0x19
xor edi, eax
mov eax, ecx
and eax, 0x7ff00
shr edx, 0xd
xor edx, eax
mov eax, dword [esi + 0x80]
xor eax, 0x841258
and eax, ecx
mov ecx, dword [esi + 0x84]
shl eax, 7
shr edx, 8
xor edx, eax
mov eax, ecx
shr eax, 3
mov dword [ebp + 8], eax
mov eax, ecx
and eax, 0x1ffffe00
xor dword [ebp + 8], eax
mov eax, dword [esi + 0x3c]
shr dword [ebp + 8], 9
xor eax, 0xfffc1258
and eax, ecx
mov ecx, dword [ebp + 8]
shl eax, 0xd
xor ecx, eax
mov dword [esi + 0x84], ecx
xor ecx, edx
xor ecx, edi
xor ecx, ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x6c], edi
mov dword [esi + 0x78], edx
shr ecx, 1
jmp 0x4031b0
pop edi
pop esi
mov al, cl
pop ebx
pop ebp
ret
Function at 0x1003dd6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc1c
mov eax, dword [0x1016008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp byte [0x1016001], bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc1c], esi
je 0x10096be
lea ecx, [ebp - 0xc0c]
push ecx
lea ecx, [ebp - 0xc04]
push ecx
lea ecx, [ebp - 0xc08]
push ecx
push ebx
push edi
push eax
mov dword [ebp - 0xc0c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1005786
jle 0x1003e4d
and eax, 0xffff
or eax, 0x80070000
lea esp, [ebp - 0xc28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001339
leave
ret 0xc
lea eax, [ebp - 0xc04]
cmp dword [ebp - 0xc08], ebx
jbe 0x10057f7
cmp dword [ebp - 0xc08], 2
ja 0x10097bf
push 0xffffffffffffffff
push 0x1005810
lea eax, [ebp - 0xc04]
push eax
mov byte [esi], 1
call fcn.01001c30
test eax, eax
je 0x10057f3
push 0xffffffffffffffff
push 0x1005814
lea eax, [ebp - 0xc04]
push eax
call fcn.01001c30
test eax, eax
je 0x10057f3
push 0xffffffffffffffff
push 0x1005804
lea eax, [ebp - 0xc04]
push eax
call fcn.01001c30
test eax, eax
je 0x10057f3
mov byte [esi], 1
xor eax, eax
jmp 0x1003e4d
mov byte [esi], bl
jmp 0x10057ec
mov eax, 0x80040153
jmp 0x1003e4d
cmp edi, ebx
je 0x1009767
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0xc18], eax
jne 0x10096ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x1003e41
call fcn.01003e64
mov dword [ebp - 0xc10], esp
push ebx
push ebx
push dword [ebp - 0xc18]
push dword [ebp - 0xc10]
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
test eax, eax
je 0x10096e1
mov esi, dword [ebp - 0xc1c]
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc08]
push eax
push ebx
push dword [ebp - 0xc10]
mov edi, 0x400
push dword [ebp - 0xc14]
mov dword [ebp - 0xc0c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1003e41
mov eax, dword [ebp - 0xc0c]
cmp eax, ebx
jne 0x100976f
mov eax, 0x80004005
jmp 0x1003e4d
mov dword [ebp - 0xc10], ebx
jmp 0x1009718
cmp dword [ebp - 0xc08], 1
mov byte [ebp + eax - 0x405], bl
je 0x1009793
cmp dword [ebp - 0xc08], 2
je 0x1009793
lea eax, [ebp - 0x404]
jmp 0x100578c
push edi
lea eax, [ebp - 0xc04]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10096e1
mov eax, dword [ebp - 0xc14]
jmp 0x100578c
cmp dword [ebp - 0xc08], 4
jne 0x10057f7
cmp dword [ebp - 0xc0c], 4
jne 0x10057f7
cmp dword [eax], ebx
setne al
mov byte [esi], al
jmp 0x10057ec

Function at 0x1004033
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01003fb6
push 0x1004054
mov eax, 0x1004050
call fcn.0100405d
pop ecx
jmp fcn.01001f15