joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40729d
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x38], ebx
push edi
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.004071e1
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add edi, 0x23f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x1a28164]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x407325
push 0x4011a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1a28164]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1a281a8]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x1a281a8], eax
mov eax, dword [0x1a281b0]
cmove eax, dword [ebp - 0x24]
mov dword [0x1a281b0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x1a281ac], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
cmp dword [0x1a28164], 0xb03
jne 0x4073fc
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0x4011a4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4072ed
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x38]
pop edi
pop esi
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407446
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x407484
cmp dword [0x1a28164], 0x959
jne 0x407474
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0040729d
add edi, 8
dec esi
jne 0x407456
pop edi
pop esi
pop ebp
ret 4
Function at 0x410c5f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a883
mov dword [ebp - 0x14], eax
cmp dword [0x1a28f48], esi
jne 0x410d52
push 0x800
push esi
push 0x40516c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410e32
push esi
push esi
push 0x40516c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410e32
push 0x405184
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410e32
push eax
call ebx
push 0x405190
push edi
mov dword [0x1a28f48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4051a0
push edi
mov dword [0x1a28f4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4051b4
push edi
mov dword [0x1a28f50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a28f58], eax
test eax, eax
je 0x410d4f
push 0x4051d0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a28f54], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410d77
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410d6a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410d8c
push 4
pop eax
jmp 0x410e34
cmp dword [ebp - 0x14], esi
je 0x410d8c
push dword [0x1a28f48]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410d71
mov eax, dword [0x1a28f54]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410dea
cmp dword [0x1a28f58], edi
je 0x410dea
push eax
call ebx
push dword [0x1a28f58]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410dea
test eax, eax
je 0x410dea
call ecx
test eax, eax
je 0x410ddf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410ddf
test byte [ebp - 8], 1
jne 0x410dea
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410e1a
mov eax, dword [0x1a28f4c]
cmp eax, edi
je 0x410e17
push eax
call ebx
test eax, eax
je 0x410e17
call eax
mov esi, eax
test esi, esi
je 0x410e17
mov eax, dword [0x1a28f50]
cmp eax, edi
je 0x410e17
push eax
call ebx
test eax, eax
je 0x410e17
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1a28f48]
call ebx
test eax, eax
je 0x410e32
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410e34
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e2e
mov esp, ebp
pop ebp
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
clc
or dh, bh
ror al, 1
sar byte [eax + eax + 0x50], 0x83
shr dword [ecx + 0x68], 0x7b
rol byte [eax], cl
push ecx
call dword [0xc140c18e]
mov eax, dword [str.mswsock]
add esp, 0xc
test eax, eax
je 0x401787
leave
push 0xfcd2d4
invalid
push 0xffffffffffffff8b
call dword [sym.imp.MSVCRT.dll_exit]
nop

Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp dword [eax + 4], 1
mulps xmm6, xmmword [edi - 0x7f]
add ah, cl
daa
pop eax
or al, 0x83
inc ebp
or byte [ebx], dh
leave
js 0x406270
add al, 0xa9
jnp 0x406228
test edx, edx
mov dword [ebp - 8], edi
clc
xlatb
adc eax, 0x300db03b
add byte [eax], al
add esi, 0xc
cmp ebx, dword [eax + 0x74]
push ss
loopne 0x40625b
invalid
sub byte [ebx + ebx*4], bl
lea edi, [ecx + ecx*4]
adc al, 0xe3
add al, cl
out 2, eax
sub ebx, dword [edi - 0x6cf9da77]
push ebp
retf
rcr dword [eax + esi], 1
jae 0x406275
sbb byte [ebp + 0xc], dl
mov edx, dword [edx - 0x4e]
daa
xor al, 0xf0
cmp edx, dword [esi + 0xc]
jne 0x406288
sbb eax, 0x10eb0448
lea edi, [esi + edi]
lodsb al, byte [esi]
add eax, 0xf300e9a8
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
add ebx, 0x14
mov ebp, edi
cld
add edi, 0x14
dec ecx
mov dword [ebx], ebp
or byte [ecx - 0x378a03b3], cl
mov edi, dword [ebp - 8]
mov edx, dword [eax + 0xc]
xor esp, ebx
test eax, esp
out 0x2e, al
jo 0x4062c6
cmp dword [esi + 0x74], esp
or al, byte [ecx - 0x7d]
in al, 4
cmp ecx, edx
push 0x4a9e9af4
cmp ecx, edx
jae 0x4062de
retf 0x1573
loope 0x40631e
mov byte [eax], dl
mov ecx, 0x10f0572
xor cl, byte [ebx - 0x3d7cdb90]
add al, 0x4e
mov dh, 0xce
jb 0x4062cd
sbb esi, dword [ecx + esi + 0x10104d8b]
add byte [eax], al
retf 0x85c9
mov ebp, dword [esi + 4]
mov edi, 0xd28b3289
adc byte [eax], dl
add byte [eax], al
sub dword [edx + 4], 0xffffffd1
cmp ecx, esi
into
jb 0x40630d
popal
mov dl, dh
adc byte [eax], al
add cl, byte [ebx + 0x201490]
add byte [ebx], dh
leave
test esi, esp
jbe 0x40632c
sti
invalid
Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
pop edi
mov eax, 0x1117e
mov dword [ecx], edx
pop esi
pop ebp
ret
sbb byte [edx - 0x2d7bf7aa], cl
jne 0x40b2aa
mov edx, dword [esi - 0x79]
add edx, ecx
mov ecx, dword [esi + 0x54]
retf 0xd1
jo 0x40b25d
in al, dx
push ecx
push esi
mov esi, dword [ebp + 0x38]
mov al, byte [esi + 0x6b]
test al, al
je 0x40b3a1
mov ecx, dword [esi + 0x48]
xor eax, eax
push ebx
cmp ecx, 1
push edi
mov dword [ebp - 4], eax
mov edx, edx
add eax, 0x9c850f
add byte [eax], bh
mov esi, dword [edi + 0x5cf83b3c]
test byte [ecx - 0x743d0000], dl
pop esi
cmp byte [ecx], dl
mov bh, bh
jbe 0x40b311
adc dword [edx - 0x7cfa8901], ecx
enter 0x1eff, 2
or eax, 0xffffffff
push ds
add cl, byte [ebx + 0x70d48bc7]
lea ecx, [ebp - 4]
mov eax, edi
mov edx, esp
jo 0x40b2a4
dec ebp
cld
push 0
push ecx
in al, 0xda
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test dword [0x458b2f74], ebx
mov ebx, 0x8b50568b
dec esi
push esp
sbb al, 0x9b
adc ecx, 0
sub ebp, dword [ebp + 0x5689d803]
cmp eax, dword [ebp + 0x54f689ff]
ja 0x40b307
mov eax, dword [ebp + 8]
pop edi
mov dword [esi + 0x43], 0xa1
pop ebx
pop esi
mov edi, dword [ebp + ebx*2 - 0x74ff3a3e]
cmp eax, sym.imp.KERNEL32.dll_GetLastError
call edi
jmp 0x84092925
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c04

Function at 0x40b750
Capabilities:
Terminate process

Disassembly:
rol byte [eax - 0x53], 0x8b
xchg al, ah
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [esi - 0x448a002c]
call fcn.0040b500
add esp, 0x30
mov dword [ebp + 0x60], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call 0x10ab926
pop ecx
pop ecx
ret
push ebx
push edi
xor edi, edi
xchg byte [esp + 0x10], al
or eax, eax
jge 0x40b707
mov dl, 0x8b
push esp
and al, 0xc
mul dword [ebp + 0x3083daf7]
aas
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov esi, dword [esi + 0x24]
sbb byte [edx - 0x16], al
jge 0x40b78b
lodsd eax, dword [esi]
lea esp, [esp + edx]
neg eax
neg edx
or dword [edx], 0xffffff89
les esp, [eax + ebx]
mov dword [esp + 0x14], edx
or eax, eax
jne 0x40b7f7
mov ecx, dword [esp + 0x14]
mov edi, edx
and al, 0x10
xor edx, edx
div ecx
mov eax, dword [esp + 0xc]
idiv dword [eax - 0x2dcc7c75]
dec edi
mov ah, 0x4e
jmp 0x40b7cb
sbb byte [ecx - 0x6adb9b09], dl
add edx, ecx
dec eax
push cs
cmp edx, dword [esp + 0x10]
ja 0x40b7e3
mov ecx, 0xc844f6b1
or al, 0x76
or byte [ebx], ch
inc esp
and al, 0x14
sub eax, dword [esp + 0x14]
sbb edx, dword [esp - 0x7f]
sub eax, dword [esp + 0xc]
outsd dx, dword [esi]
push esp
enter 0x4f10, 0x79
pop es
neg edx
mul dword [ebx - 0x7d]
fiadd dword [eax]
push eax
pop ebx
ret 0x63
invalid
Function at 0x401cd0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push section..text
push 0
push 0
call esi
push 0
push 0
push 0
push 0x401470
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4015d0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x401790
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4018b0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x401a20
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401b80
push 0x7530
call esi
jmp 0x401d43

Function at 0x402557
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402596
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402596
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402596
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402596
cmp dword [ecx + 0x74], 0xe
jbe 0x402596
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0xe27e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa19000]
push edi
jmp 0xe27e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe27e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe27e80
mov eax, 1
add ebx, ebx
jne 0xe27ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe27e98
jne 0xe27eb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe27e98
xor ecx, ecx
sub eax, 3
jb 0xe27ec8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe27f3a
mov ebp, eax
add ebx, ebx
jne 0xe27ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xe27ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xe27f04
inc ecx
add ebx, ebx
jne 0xe27ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe27ee5
jne 0xe27f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe27ee5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe27f24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe27f15
jmp 0xe27e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe27f24
add edi, ecx
jmp 0xe27e86
pop esi
mov edi, esi
mov ecx, 0xbee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xe27f42
cmp byte [edi], 6
jne 0xe27f42
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 al, bl
loop 0xe27f47
lea edi, [esi + 0xa25000]
mov eax, dword [edi]
or eax, eax
je 0xe27fb6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa29cb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa29d4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe27f74
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa29d54]
or eax, eax
je 0xe27fb0
mov dword [ebx], eax
add ebx, 4
jmp 0xe27f91
call dword [esi + 0xa29d50]
mov ebp, dword [esi + 0xa29d58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xe27fea
sub esp, 0xffffff80
jmp 0x419acc
Function at 0x407220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b99b
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.0047083e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4072a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046e750
mov eax, dword [eax]
push 0x498c38
push eax
call fcn.00461454
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00470ac9
test bl, bl
je 0x4072a2
push 0x498c38
lea ecx, [esp + 0xc]
call fcn.00470e59
push 0x498c44
lea ecx, [esp + 0xc]
call fcn.00470e59
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 0x4072de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00470ac9
jmp 0x4073a9
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 0x407362
lea edx, [esp + 0x7c]
push 0x498c40
push edx
call fcn.00461454
add esp, 8
test eax, eax
je 0x407362
lea eax, [esp + 0x7c]
push 0x498c3c
push eax
call fcn.00461454
add esp, 8
test eax, eax
je 0x407362
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 0x4072f2
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.00470ac9
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 0x407bb0
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 0x407c12
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 0x407c20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ba1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a41f8]
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 0x407d58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407c86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00470ac9
xor eax, eax
jmp 0x407dcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00470c06
push esi
lea ecx, [esp + 0xc]
call fcn.00470e95
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 0x407dad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00407bb0
test eax, eax
jne 0x407dad
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 accept
mov ecx, edi
call fcn.00407bb0
test eax, eax
jne 0x407dad
lea eax, [esp + 0x14]
push 0x498c54
push eax
call fcn.004624f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x407d8c
lea ecx, [esp + 0x14]
push 0x498c50
push ecx
call fcn.00462470
mov esi, eax
add esp, 8
test esi, esi
jne 0x407d8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x407d8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00470bb6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407c9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00470ac9
xor eax, eax
jmp 0x407dcf
mov byte [esi], 0
push 0x498c4c
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.00470ac9
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 0x418690
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 0x4186fe
cmp si, 0x69
ja 0x4186fe
add esi, 0xffd0
cmp si, 0x11
je 0x4186ce
push 0x11
call edi
test ax, ax
jge 0x4186ce
or esi, 0x2000
cmp si, 0x10
je 0x4186e3
push 0x10
call edi
test ax, ax
jge 0x4186e3
or esi, 0x4000
cmp si, 0x12
je 0x4186f8
push 0x12
call edi
test ax, ax
jge 0x4186f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41870b
mov esi, 0xbd
jmp 0x4186bf
cmp si, 0x6e
jne 0x418718
mov esi, 0xbe
jmp 0x4186bf
cmp si, 0x6f
jne 0x4186b9
mov esi, 0xbf
jmp 0x4186bf

Function at 0x419f10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b4940]
xor edx, edx
cmp eax, edx
jne 0x419f36
xor eax, eax
mov byte [eax + 0x4b4840], al
inc eax
cmp eax, 0x100
jl 0x419f1e
mov dword [0x4b4940], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b4840
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419fc7
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 0x419f9a
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 0x419f68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a040
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 0x41a093
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 0x41a07a
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