joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x497dd0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00491b5f
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x475693
xor al, al
jmp 0x4757bf
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4756b5
xor al, al
jmp 0x4757bf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4756c8
xor al, al
jmp 0x4757bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4756dc
xor al, al
jmp 0x4757bf
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00485f40
test eax, eax
jne 0x475710
xor al, al
jmp 0x4757bf
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4a986c
mov dword [esp + 0x20], ebp
call fcn.00491b5f
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0048ea73
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0048eaca
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4757a4
mov ax, word [ebx]
test ax, ax
je 0x475796
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004757e0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x47577a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0048eaca
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x475d20
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00490123
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x475d66
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00477768
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x4c7664
push ecx
call fcn.00478ee1
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x48a039
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48a071
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.004880de
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004880b6
jmp 0x48a07d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48b834
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 0x48b876
call fcn.00491b5f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48b876
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48b86d
xor eax, eax
jmp 0x48b87e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048b884
pop edi
pop esi
pop ebx
ret 4

Function at 0x49208f
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 0x4920bd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4920db
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00491ff5
jmp 0x4920db
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4920db
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00491ff5
test edi, edi
mov eax, edi
jne 0x4920c5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x7e5f05
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
test eax, 0x80000000
je 0x7e5f22
mov edx, eax
and edx, 0x7fffffff
mov dword [ebp - 0xc], edx
jmp 0x7e5f27
xor edx, edx
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x3c]
push edi
mov esi, dword [eax + ebx + 0x78]
lea eax, [eax + ebx + 0x18]
add esi, ebx
mov eax, dword [eax + 0x64]
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24]
add edi, ebx
add ecx, ebx
add eax, ebx
test edx, edx
mov dword [ebp - 0x10], eax
je 0x7e5f67
mov eax, dword [esi + 0x10]
imul eax, eax, 0x3fffffff
add eax, edx
jmp 0x7e5fa5
and dword [ebp + 8], 0
cmp dword [esi + 0x18], 0
jbe 0x7e5fad
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.007e5fd3
pop ecx
test eax, eax
pop ecx
jne 0x7e5f9b
inc dword [ebp + 8]
add dword [ebp - 8], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x7e5f74
jmp 0x7e5fad
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
mov edi, dword [edi + eax*4]
add edi, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], 0
je 0x7e5fcb
cmp dword [ebp - 4], esi
jbe 0x7e5fcb
mov eax, dword [ebp - 0x14]
add eax, esi
cmp dword [ebp - 4], eax
jae 0x7e5fcb
push dword [ebp - 0xc]
push ebx
call dword [ebp + 0x10]
jmp 0x7e5fce
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7e5ffd
Capabilities:
Encode data using xor

Disassembly:
push ecx
push eax
push esi
push edi
mov ecx, edi
sub ecx, eax
mov esi, eax
mov edi, esi
lodsb al, byte [esi]
xor al, 0x4c
stosb byte es:[edi], al
loop 0x7e6009
pop edi
pop esi
pop eax
pop ecx
ret

Function at 0x7e6014
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x5f70b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8a000]
push edi
or ebp, 0xffffffff
jmp 0x5f70d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5f70d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f70c8
mov eax, 1
add ebx, ebx
jne 0x5f70eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5f70fc
jne 0x5f710c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f710c
dec eax
add ebx, ebx
jne 0x5f7108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5f70e0
xor ecx, ecx
sub eax, 3
jb 0x5f7124
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5f7196
sar eax, 1
mov ebp, eax
jmp 0x5f712f
add ebx, ebx
jne 0x5f712f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5f713c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5f7160
inc ecx
add ebx, ebx
jne 0x5f714c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5f7141
jne 0x5f715d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5f7141
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5f7180
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5f7171
jmp 0x5f70ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5f7180
add edi, ecx
jmp 0x5f70ce
pop esi
mov edi, esi
mov ecx, 0x11f5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5f719e
cmp byte [edi], 0x11
jne 0x5f719e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x5f71a3
lea edi, [esi + 0x1f4000]
mov eax, dword [edi]
or eax, eax
je 0x5f721b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f7f28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f7ff0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5f71d0
mov ecx, edi
jns 0x5f71ff
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f7ff4]
or eax, eax
je 0x5f7215
mov dword [ebx], eax
add ebx, 4
jmp 0x5f71ed
call dword [esi + 0x1f7ff8]
popal
jmp 0x419c6f
Function at 0x403d00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov dword [ebp - 0x404], 0
jmp 0x403d24
mov eax, dword [ebp - 0x404]
add eax, 1
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0x100
jge 0x403da9
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x408], ecx
mov dword [ebp - 0x40c], 0
jmp 0x403d57
mov edx, dword [ebp - 0x40c]
add edx, 1
mov dword [ebp - 0x40c], edx
cmp dword [ebp - 0x40c], 8
jge 0x403d91
mov eax, dword [ebp - 0x408]
and eax, 1
je 0x403d81
mov ecx, dword [ebp - 0x408]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 0x408], ecx
jmp 0x403d8f
mov edx, dword [ebp - 0x408]
shr edx, 1
mov dword [ebp - 0x408], edx
jmp 0x403d48
mov eax, dword [ebp - 0x404]
mov ecx, dword [ebp - 0x408]
mov dword [ebp + eax*4 - 0x400], ecx
jmp 0x403d15
mov dword [ebp - 0x408], 0xffffffff
mov dword [ebp - 0x410], 0
jmp 0x403dce
mov edx, dword [ebp - 0x410]
add edx, 1
mov dword [ebp - 0x410], edx
mov eax, dword [ebp - 0x410]
cmp eax, dword [ebp + 0xc]
jae 0x403e0b
mov ecx, dword [ebp - 0x408]
shr ecx, 8
mov edx, dword [ebp - 0x408]
and edx, 0xff
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x410]
movzx eax, byte [eax]
xor edx, eax
xor ecx, dword [ebp + edx*4 - 0x400]
mov dword [ebp - 0x408], ecx
jmp 0x403dbf
mov ecx, dword [ebp - 0x408]
xor ecx, 0xffffffff
mov dword [ebp - 0x408], ecx
mov eax, dword [ebp - 0x408]
mov esp, ebp
pop ebp
ret
Function at 0x40c189
Capabilities:
Encode data using base64

Disassembly:
outsb dx, byte [esi]
movsd dword es:[edi], dword [esi]
bound edx, qword [ebp + 0x76944da5]
invalid

Function at 0x40c194
Capabilities:
Encode data using base64

Disassembly:
add dword [esi - 0x7197689e], 0x6e
test al, 0x43
Function at 0x4063fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406422
xor eax, eax
test eax, eax
je 0x406434
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406434
xor ecx, ecx
jmp 0x406437
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406523
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40655a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406534
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40652f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40658b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x40656d
pop edi
not eax
pop esi
ret 0xc

Function at 0x44c000
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Packed with generic packer
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
pushal
push 0x44c031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x44c03a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x44c047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.00403328
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4c43f0
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
ret
stosb byte es:[edi], al
adc dword [eax - 0x20fdf30a], edx
adc dword [edi + edx*4 - 0x72], 0x32
pop ebx
mov dword [edx + 0x17ba9344], esi
xor byte [edx], 0x10
sbb dword [esi + 0x25], ecx
insd dword es:[edi], dx
sub eax, 0xa10d6094
sub dword [edi - 0x74], 0xffffff84
out 0x75, eax
aas
add eax, 0x4d55a33f
call 0xac039f6c
jl 0x40108d
fdivr dword [eax + 0x1e]
pushfd
into
fldcw word [ebx]
xor byte [ebx + esi*8], ah
push es
push es
in eax, dx
and dword [0x246ed5f8], ebx
idiv dword [esi + esi*8 + 0x105cae46]
sbb cl, al
add al, 0x7f
jbe 0x40111d
add eax, dword [bp + si - 0x80]
jnp 0x4010d6
dec esp
push ds
mov esi, 0xac065cef
cmp al, 0xc0
wait
mov ecx, 0x2dcd4ff7
pop edx
scasb al, byte es:[edi]
mov byte [ebp + 0x26], dh
or eax, 0xb7250bde
dec esp
popal
sub dword [esi - 0x5973d1b9], esi
xor dword [edx], eax
popfd
sbb eax, 0x1bfc74a2
out dx, eax
pop es
fmul qword [edi + 0x4ca55a36]
inc esp
mov edx, 0xf60a9004
adc dl, cl
inc edi
xor byte [edi - 0x31135d05], al
inc ecx
mov bl, 0x46
cmp eax, 0x58502eb3
int3
mov bl, 0x2e
push eax
pop eax
sbb eax, 0x28776ca8
aad 0xa4
push esi
mov ecx, 0xf89705d2
jmp 0x4010bb
Function at 0x40cfb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4809ab
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.00472fb2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d032
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004704cd
mov eax, dword [eax]
push 0x4b91e0
push eax
call fcn.00462514
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047323d
test bl, bl
je 0x40d032
push 0x4b91e0
lea ecx, [esp + 0xc]
call fcn.00473619
push 0x4bcd5c
lea ecx, [esp + 0xc]
call fcn.00473619
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 0x40d06e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047323d
jmp 0x40d139
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 0x40d0f2
lea edx, [esp + 0x7c]
push 0x4bcd58
push edx
call fcn.00462514
add esp, 8
test eax, eax
je 0x40d0f2
lea eax, [esp + 0x7c]
push 0x4bcd54
push eax
call fcn.00462514
add esp, 8
test eax, eax
je 0x40d0f2
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 0x40d082
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.0047323d
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 0x40d930
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 0x40d992
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
Function at 0x40d9a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x480a2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c430c]
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 0x40dad8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40da06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047323d
xor eax, eax
jmp 0x40db4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004733c6
push esi
lea ecx, [esp + 0xc]
call fcn.00473655
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40db2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040d930
test eax, eax
jne 0x40db2d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040d930
test eax, eax
jne 0x40db2d
lea eax, [esp + 0x14]
push 0x4bcd70
push eax
call fcn.004635f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40db0c
lea ecx, [esp + 0x14]
push 0x4bcd6c
push ecx
call fcn.00463570
mov esi, eax
add esp, 8
test esi, esi
jne 0x40db0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40db0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00473376
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40da1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047323d
xor eax, eax
jmp 0x40db4f
mov byte [esi], 0
push 0x4bcd68
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.0047323d
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 0x420e80
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 0x420eee
cmp si, 0x69
ja 0x420eee
add esi, 0xffd0
cmp si, 0x11
je 0x420ebe
push 0x11
call edi
test ax, ax
jge 0x420ebe
or esi, 0x2000
cmp si, 0x10
je 0x420ed3
push 0x10
call edi
test ax, ax
jge 0x420ed3
or esi, 0x4000
cmp si, 0x12
je 0x420ee8
push 0x12
call edi
test ax, ax
jge 0x420ee8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x420efb
mov esi, 0xbd
jmp 0x420eaf
cmp si, 0x6e
jne 0x420f08
mov esi, 0xbe
jmp 0x420eaf
cmp si, 0x6f
jne 0x420ea9
mov esi, 0xbf
jmp 0x420eaf

Function at 0x422630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d5180]
xor edx, edx
cmp eax, edx
jne 0x422656
xor eax, eax
mov byte [eax + 0x4d5080], al
inc eax
cmp eax, 0x100
jl 0x42263e
mov dword [0x4d5180], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d5080
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4226e7
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 0x4226ba
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 0x422688
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x422760
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 0x4227b3
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 0x42279a
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