joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push ebp
mov al, byte [0x436904]
push esi
xor esi, esi
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
test eax, eax
mov dword [esp + 0x14], 0x80
jle 0x4058b0
mov edx, 0x4368dc
cmp dword [edx], 0x20
je 0x405861
inc ecx
add edx, 4
cmp ecx, eax
jl 0x405852
jmp 0x4058b0
cmp ecx, 0x20
je 0x4058b0
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 3
lea ecx, [eax + 0x435eb8]
lea edx, [eax + 0x435e78]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.EnumMFCHILD0000PCI_s_s
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x4058b0
mov esi, 1
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
test esi, esi
je 0x405954
mov ecx, dword [esp + 0x128]
lea eax, [ecx*8]
sub eax, ecx
lea esi, [eax + eax*4]
lea eax, [esp + 0x24]
shl esi, 3
lea ecx, [esi + 0x435eb8]
lea edx, [esi + 0x435e78]
push ecx
push edx
push str.EnumMFCHILD0000PCI_s_s
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40594d
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push str.PORTNAME
push eax
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1b]
push ecx
call fcn.0040e5b9
add esp, 4
mov dword [esi + 0x435dc0], eax
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
Function at 0x412211
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x435278
cmp edx, dword [eax]
je 0x412233
add eax, 8
inc ecx
cmp eax, 0x435308
jl 0x412224
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x435278]
jne 0x412361
mov eax, dword [0x438980]
cmp eax, 1
je 0x41233b
test eax, eax
jne 0x412264
cmp dword [0x434b74], 1
je 0x41233b
cmp edx, 0xfc
je 0x412361
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41229b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412400
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004124f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4122de
lea eax, [ebp - 0x1a4]
push eax
call fcn.004124f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c760
push edi
call fcn.00414bb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412400
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412410
lea eax, [ebp - 0xa0]
push 0x42c740
push eax
call fcn.00412410
push dword [esi + 0x43527c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412410
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414b20
add esp, 0x2c
pop edi
jmp 0x412361
lea eax, [ebp + 8]
lea esi, [esi + 0x43527c]
push 0
push eax
push dword [esi]
call fcn.004124f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x419f60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f8d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41a02b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41a02b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x419fde
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419fe9
or bh, 8
and edi, 0x8000000
je 0x41a004
mov eax, dword [0x43a0dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41a02b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41a42b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41a44f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41a46a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41c916
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x427acc
call fcn.0040e894
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004245aa
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41c955
call fcn.004245aa
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c963
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41c971
or eax, 0xffffffff
jmp 0x41ca59
mov ecx, esi
call fcn.0041c88c
mov dword [ebp - 0x14], eax
call fcn.0041d725
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41c9a8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41c9a8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041d6d9
push dword [ebp - 0x14]
call fcn.0041d226
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041c619
cmp eax, edi
je 0x41ca1b
test byte [esi + 0x24], 0x10
je 0x41c9e9
push 4
mov ecx, esi
pop ebx
call fcn.0041f869
test ah, 1
je 0x41c9e1
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041f230
cmp dword [esi + 0x1c], edi
je 0x41ca1b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041f980
jmp 0x41ca1b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41ca2f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41ca48
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41ca48
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041c8c6
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41f0de
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 0x41f120
call fcn.004245aa
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f120
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f117
xor eax, eax
jmp 0x41f128
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f12e
pop edi
pop esi
pop ebx
ret 4
Function at 0x424a97
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 0x424ac5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424ae3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004249fd
jmp 0x424ae3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424ae3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004249fd
test edi, edi
mov eax, edi
jne 0x424acd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4252ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x42536a
mov ecx, 0x43888c
call fcn.00424b84
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x425348
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x425326
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x425326
push ebx
push edi
push eax
call fcn.004201be
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0041c30a
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x401100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ecx, ecx
push edi
mov esi, 0x3fed
mov edi, 0x1bec
test eax, eax
je 0x4011f3
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4011f3
cmp eax, edx
jae 0x4011f3
mov esi, 0x1119
mov eax, 0x8d3dcb09
imul esi
add edx, esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401135
mov esi, 0x4583
nop
mov eax, 0xae4c415d
imul esi
add edx, esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401150
mov ebx, 0x436b
lea ebx, [ebx]
mov eax, 0x55555556
imul ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401170
mov esi, dword [ebp + 8]
sub dword [ebp + 0xc], esi
mov ebx, 0x1871
jmp 0x401190
mov eax, 0x83993053
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401190
inc ecx
mov eax, ecx
and eax, 0x80000007
jns 0x4011b4
dec eax
or eax, 0xfffffff8
inc eax
jne 0x4011b9
add ecx, 2
cmp ecx, 0x7a23
jl 0x4011a5
mov eax, ebx
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
test ebx, ebx
jne 0x4011c1
mov edx, dword [ebp + 0xc]
xor ecx, ecx
test edx, edx
je 0x401206
lea ebx, [ebx]
mov al, byte [ecx + esi + 1]
sub al, 0x50
xor byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x4011e0
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x4bda12f7
imul esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4011f3
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402480
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, 0x3e5f
mov esi, 0x14c9
xor ecx, ecx
mov ebx, 0xab
mov dword [ebp - 4], 0x2717
mov eax, 0xad602b59
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4024a1
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4024e3
cmp dword [ebp + 0x10], ecx
jne 0x4024ec
cmp dword [ebp + 0x18], ecx
jne 0x4024ec
jmp 0x4024d0
mov eax, 0x22b63cbf
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4024d0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edx + 0x3c]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x4024e3
cmp dword [edi + edx], 0x4550
jne 0x4024e3
mov eax, dword [edi + edx + 0x7c]
mov dword [ebp - 8], eax
mov esi, 0x7089
mov dword [ebp - 0xc], 0xff
mov eax, 0x48
lea ebx, [ebx]
cmp eax, 0xff
cmovg eax, dword [ebp - 0xc]
dec esi
jne 0x402520
cmp dword [ebp - 8], ecx
je 0x4024e3
inc ecx
mov eax, ecx
and eax, 0x80000003
jns 0x402540
dec eax
or eax, 0xfffffffc
inc eax
jne 0x402543
inc ecx
cmp ecx, 0x6aab
jl 0x402531
mov edi, dword [edi + edx + 0x78]
add edi, edx
mov eax, 0x27c2
mov ecx, 0x5f
jmp 0x402560
cmp ebx, ecx
cmovg ebx, ecx
dec eax
jne 0x402560
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [edi + 0x20]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x1c]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, ecx
shr eax, 0x10
add ebx, edx
test eax, eax
je 0x4024e3
xor esi, esi
cmp dword [edi + 0x18], esi
jbe 0x4024e3
mov eax, dword [ebx + esi*4]
add eax, edx
push eax
push ecx
call fcn.00402fc0
add esp, 8
test eax, eax
jne 0x4025be
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x402598
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, 0x6afc
movzx edx, word [eax + esi*2]
mov esi, 0xa2
mov eax, 0x92
cmp eax, 0xa2
cmovg eax, esi
dec ecx
jne 0x4025d4
mov ecx, dword [ebp - 0x10]
mov eax, edx
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0xc]
lea ebx, [ebx]
mov eax, 0x3949660b
imul dword [ebp - 4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x4025f0
cmp ecx, edi
jbe 0x402618
mov eax, dword [ebp - 8]
add eax, edi
cmp ecx, eax
jb 0x4024e3
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0x4ca2
mov ebx, 0x565
mov edi, 0x6b34
mov esi, 0xd8
jmp 0x402e80
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402e80
mov edx, dword [ebp + 8]
inc byte [edx + 8]
movzx eax, byte [edx + 8]
lea ecx, [edx + 0x3e]
add eax, ecx
mov dword [ebp + 8], ecx
movzx ecx, byte [eax]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0x3b]
add ecx, eax
mov byte [edx + 0x3b], cl
mov eax, 0x84a9f9c9
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402eb6
jmp 0x402ed0
mov eax, 0xb21642c9
imul edi
add edx, edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402ed0
mov eax, 0x763d
mov edx, 0x60
nop
cmp esi, edx
cmovl esi, edx
dec eax
jne 0x402ef0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 4]
movzx esi, cl
add esi, edi
push esi
push ebx
call fcn.00403350
movzx eax, byte [esi]
add al, byte [ebx]
movzx ecx, byte [ebp + 0xc]
movzx eax, al
add esp, 8
mov al, byte [eax + edi]
pop edi
movzx eax, al
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e6b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x57599b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00566549
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x44e732
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00563902
mov eax, dword [eax]
push 0x760d84
push eax
call fcn.00515e34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005667d4
test bl, bl
je 0x44e732
push 0x760d84
lea ecx, [esp + 0xc]
call fcn.00566b64
push 0x760d90
lea ecx, [esp + 0xc]
call fcn.00566b64
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44e76e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005667d4
jmp 0x44e839
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x44e7f2
lea edx, [esp + 0x7c]
push 0x760d8c
push edx
call fcn.00515e34
add esp, 8
test eax, eax
je 0x44e7f2
lea eax, [esp + 0x7c]
push 0x760d88
push eax
call fcn.00515e34
add esp, 8
test eax, eax
je 0x44e7f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44e782
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005667d4
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4
Function at 0x44f030
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x575a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x77f560]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x44f168
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x44f096
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005667d4
xor eax, eax
jmp 0x44f1df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00566911
push esi
lea ecx, [esp + 0xc]
call fcn.00566ba0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x760dc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x44f1bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x760dbc
push accept
call fcn.004e0ab0
test eax, eax
jne 0x44f1bd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x760da8
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.004e0ab0
test eax, eax
jne 0x44f1bd
lea eax, [esp + 0x14]
push 0x760da0
push eax
call fcn.00516f30
mov esi, eax
add esp, 8
test esi, esi
jne 0x44f19c
lea ecx, [esp + 0x14]
push 0x760d9c
push ecx
call fcn.00516eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44f19c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x44f19f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005668c1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x44f0ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005667d4
xor eax, eax
jmp 0x44f1df
mov byte [esi], 0
push 0x760d98
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.005667d4
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x464d80
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x464dee
cmp si, 0x69
ja 0x464dee
add esi, 0xffd0
cmp si, 0x11
je 0x464dbe
push 0x11
call edi
test ax, ax
jge 0x464dbe
or esi, 0x2000
cmp si, 0x10
je 0x464dd3
push 0x10
call edi
test ax, ax
jge 0x464dd3
or esi, 0x4000
cmp si, 0x12
je 0x464de8
push 0x12
call edi
test ax, ax
jge 0x464de8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x464dfb
mov esi, 0xbd
jmp 0x464daf
cmp si, 0x6e
jne 0x464e08
mov esi, 0xbe
jmp 0x464daf
cmp si, 0x6f
jne 0x464da9
mov esi, 0xbf
jmp 0x464daf

Function at 0x466700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x794638]
xor edx, edx
cmp eax, edx
jne 0x466726
xor eax, eax
mov byte [eax + 0x794538], al
inc eax
cmp eax, 0x100
jl 0x46670e
mov dword [0x794638], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x794538
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4667b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46678a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x466758
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x466830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x466883
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46686a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret