joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443560
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x44359b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x443582
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x443593
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x44359d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x443578
xor eax, eax
pop edi
pop esi
ret

Function at 0x443c04
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x443bf7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x443c15
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
invalid
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x443c73
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
add byte [eax], al
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x443c5a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x443c63
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x443c6d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x443c4f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x443bd9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x443cc0
dec eax
je 0x443cb7
sub eax, 3
je 0x443cae
mov dword [ebp - 4], 0x40
jmp 0x443cdd
mov dword [ebp - 4], 4
jmp 0x443cc3
mov dword [ebp - 4], 0x20
jmp 0x443cc3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x443d0f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x443c8f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00443520
mov eax, 0xff752167
jne 0x443d1a
push 1
push esi
call edi
mov eax, esi
jmp 0x443d1b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443c34
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x443bf7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x443c15
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
invalid
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x443c73
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
add byte [eax], al
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x443c5a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x443c63
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x443c6d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x443c4f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x443bd9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x443cc0
dec eax
je 0x443cb7
sub eax, 3
je 0x443cae
mov dword [ebp - 4], 0x40
jmp 0x443cdd
mov dword [ebp - 4], 4
jmp 0x443cc3
mov dword [ebp - 4], 0x20
jmp 0x443cc3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x443d0f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x443c8f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00443520
mov eax, 0xff752167
jne 0x443d1a
push 1
push esi
call edi
mov eax, esi
jmp 0x443d1b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b00
Capabilities:
Access pe header
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x14
mov edx, dword [sym.imp.kernelbase.dll_LoadLibraryExW]
mov dword [esp + 8], 8
mov dword [ebp - 0x10], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x10]
sub esp, 0xc
test eax, eax
mov dword [esi], eax
je 0x401b92
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_GetProcAddress]
sub esp, 8
mov edx, eax
test eax, eax
je 0x401b60
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x3ec
mov dword [esp], 0
mov dword [ebp - 0x10], eax
call fcn.00401130
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_FreeLibrary]
mov edx, dword [ebp - 0x10]
sub esp, 4
jmp 0x401b4f
cmp dword [ebp + 8], 0
je 0x401ba7
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xc1
je 0x401bcc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x3eb
mov dword [esp], 0
call fcn.00401130
mov dword [esp], 3
call dword [sym.imp.kernelbase.dll_ExitProcess]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov dword [esp], ebx
call edx
sub esp, 0xc
test eax, eax
je 0x401ba7
and eax, 0xfffffffc
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
push edx
movzx eax, word [eax + 4]
call fcn.00401590
jmp 0x401ba7

Function at 0x402a20
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402a90
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401cf0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x418060
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x4180d8
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call fcn.00418010
push str.WavePad_Internal
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test esi, esi
mov dword [esp + 4], eax
je 0x4180b6
mov ecx, dword [0x4cbabc]
push 0x4cb7ac
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea edx, [esp + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_GetPriorityClipboardFormat]
mov ecx, eax
pop esi
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
xor eax, eax
test ecx, ecx
setne al
add esp, 8
ret
xor ecx, ecx
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 8
ret

Function at 0x4378bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f3e7
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
add byte [eax], al
push ebx
push esi
push edi
mov eax, dword [0x48cc80]
xor eax, dword [0x2b32fe89]
lodsd eax, dword [esi]
adc eax, 0x6a331d0
shl byte [ecx - 0x34], 1
je 0x4378d5
lea ebp, [ebp + 0x3d]
movsd dword es:[edi], dword [esi]
sub eax, 0x4d317ffa
xchg ebx, eax
push edx
retf

Function at 0x44e8fd
Capabilities:
Encode data using xor

Disassembly:
adc dword [eax - 0x75], edx
inc edx
add al, 0xff
ror byte [ebx + 0x6464244c], 1
mov dword [0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4
cmp dl, byte [edx + ebp - 0x358a355a]
popal
jp 0x44e8be
les ebp, gs:[ebx + 0x1dff54d3]
in al, 0xc7
aam 0x29
adc al, 0x5b
scasd eax, dword es:[edi]
jnp 0x44e993
inc esp
pop ss
xlatb
sub edi, ecx
out 0x20, al
test eax, 0x3d9cdac9
cmpsd dword [esi], dword es:[edi]
pop esi
lodsd eax, dword [esi]
lcall 0x25b, 0x66d70ac7
retf
sbb al, byte [edi]
iretd
push edx
and al, 0xac
movsb byte es:[edi], byte [esi]
push es
sbb eax, dword [esp + esi*2]
xor eax, 0x88b44697
nop
vpaddusw xmm6, xmm3, xmmword [ebp - 0x43453b67]
fnstcw word [edx + 0x2a]
jecxz 0x44e9f5
xchg ecx, eax
je 0x44e96f
cmp cl, byte [ebx + 0x344a94a8]
jnp 0x44e9bd
lcall 0x2648, 0xd659ba93
sti
salc
dec eax
sti
iretd
aam 0x23
jo 0x44ea57
mov ecx, dword [ecx + 0x6535b459]
push ss
mov eax, 0x4ff860a7
push edi
xchg esp, eax
invalid
invalid
Function at 0x47c6ed
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46f490
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48cc80]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [0x48f4f0]
push eax
lea ecx, [esp + 0x34]
call fcn.0049fe3d
lea esi, [esp + 0x34]
mov dword [esp + 0x6c], 0
call fcn.0047e9dd
push 0x47ba28
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x78], 1
call fcn.004752cd
add esp, 0xc
mov byte [esp + 0x6c], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47c771
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
call fcn.004b0f53
mov ebx, dword [esp + 0x74]
lea eax, [ebx + 0x2d8]
push 0x47ba48
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x78], 4
call fcn.004752cd
add esp, 0xc
lea edx, [esp + 0x50]
mov byte [esp + 0x6c], 5
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.0049fd6d
mov byte [esp + 0x6c], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c7d7
mov ecx, dword [eax]
mov edx, dword [ecx]
adc dword [eax - 0x75], edx
inc edx
add al, 0xff
invalid
xor esi, esi
cmp dword [esp + 0x58], esi
Function at 0x47f009
Capabilities:
Encode data using xor

Disassembly:
pop ecx
mov dword [edi], edi
fldenv [edx + ebp - 0x43cf76a8]
in al, dx
jmp 0x600dbdf0
loopne 0x47efb6
or dword [ebx], esp
sub al, 0xcf
sub dword [ecx], ebx
mov dword [edi + eax*8], ecx
cmp al, 0x3e
xchg dword [edi], esp
cdq
xor eax, 0x300cab32
or ah, byte [edi - 0x65]
lodsd eax, dword [esi]
div dword [eax - 0x3cbbe678]
sub dword [esi + 0x51], esi
push esp
mov ebx, 0xc4a9171f
fcom qword [ecx + 0x69073850]
daa
mov dh, 0xe
or byte [ecx + 0x3d], bh
lahf
sub al, 0x8f
xchg edi, eax
pop esi
mov ecx, 0xad682b14
add byte [ecx - 0x6b], bh
and eax, 0x328930bc
mov ebx, 0xbd15aec
add byte [eax + ecx*4 + 0x3d1d4e0b], ch
jne 0x47f00e
iretd
mov dword [edi - 0x6455c990], ebx
adc ah, byte [edx]
aas
movsb byte es:[edi], byte [esi]
test bh, bh
sub ch, byte [0x20f42ba9]
test byte [ebp + 0x6fb5f7a0], 0x68
and al, 0x77
invalid

Function at 0x49771d
Capabilities:
Encode data using xor

Disassembly:
pop ss
xlatb
mov byte [edi + esi*2 + 0x1f968fb3], dh
inc edi
push esp
jp 0x497772
xor edi, edx
mov word [edx], gs
in al, 0xa
jne 0x4977d8
sti
dec edi
cwde
mov ch, 0xf7
cmp edi, dword [ecx + 0x77]
jl 0x4977b5
mov ah, byte [ebx + 0x7762fa4]
int1
cmc
jcxz 0x497825
jnp 0x497833
je 0x497829
mov ch, 0x66
mov bl, 0xd7
pop es
mov bh, 0x47
dec ebx
imul ecx, dword [edi + 0x6672b953], 0x2b
ret 0x6f65
outsd dx, dword [esi]

Function at 0x4b1225
Capabilities:
Encode data using xor

Disassembly:
mov esp, ecx
adc byte [ebx + 0x1d019256], 0x63
not esi
invalid
push esi
xchg edx, eax
add dword [0xf0d6f763], ebx
enter 0x52d9, 0xffffffffffffffbf
mov esi, 0x9bfa52bb
xchg byte [esi + 0x62a1c522], ah
jge 0x4b1208
inc ecx
cmp dword [edx + eax*8], ebx
stosd dword es:[edi], eax
in al, 0xd2
add ch, byte [ebp - 0x88e6033]
lahf
jno 0x4b11d9
inc byte [edx - 0x50fcd382]
jg 0x4b122b
mov esi, ebx
out 0xf3, al
insb byte es:[edi], dx
out dx, eax
movsd dword es:[edi], dword [esi]
jecxz 0x4b11bc
adc ah, bh
add dl, bl
fdivr qword [edi + edx*2 - 0x61]
fcmovu st(0), st(4)
jl 0x4b1252
lahf
adc bl, byte [edi - 0x6bd0f152]
mov eax, ds
invalid
js 0x4b11b8
jno 0x4b11ea
aam 0xbb
outsb dx, byte [esi]
fistp dword [ebp - 0x469c2019]
invalid
out dx, al
rcr dword [edx], cl
jb 0x4b11da
xor edi, dword [ecx + esi*4 + 0x12]
rol dword [edx - 0x4c], cl
push cs
jecxz 0x4b11f7
xor ebx, 0x1f
push 0xb6d28e7b
lahf
jbe 0x4b11df
cmpsb byte [esi], byte es:[edi]
invalid
je 0x4b129d
sar byte [ebx + 0x387b640], 1
lahf
rcl dword [esi + 0x4c526d4], 0x73
leave
lcall 0x65cc, 0x803bf0c2
pop dword [esi + ecx*4 - 0x49485ccd]
imul edx, dword [ebx], 0xffffffdc
and ch, byte [0xf5824bc3]
mov dh, 0x85
xor byte [esi], 0xf7
or esp, dword [edi + 0x72]
push eax
xchg ebx, eax
invalid
push ds
mov bh, 0xa6
popal
add byte [ecx - 0x3bec31cb], 0xcb
cmc
mov al, 0x86
and esi, dword [ebp - 0x20]
inc edx
in al, 0x23
inc ecx
invalid
Function at 0x4bd169
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c8370
cmp edx, dword [eax]
je 0x4bd18b
add eax, 8
inc ecx
cmp eax, 0x4c8400
jl 0x4bd17c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c8370]
jne 0x4bd2b9
mov eax, dword [0x4ccd00]
cmp eax, 1
je 0x4bd293
test eax, eax
jne 0x4bd1bc
cmp dword [0x4c829c], 1
je 0x4bd293
cmp edx, 0xfc
je 0x4bd2b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bd1f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bdb50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bdfe0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bd236
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bdfe0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c2fcc
push edi
call fcn.004bfeb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bdb50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bdb60
lea eax, [ebp - 0xa0]
push 0x4c2fac
push eax
call fcn.004bdb60
push dword [esi + 0x4c8374]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bdb60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bfe24
add esp, 0x2c
pop edi
jmp 0x4bd2b9
lea eax, [ebp + 8]
lea esi, [esi + 0x4c8374]
push 0
push eax
push dword [esi]
call fcn.004bdfe0
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 0x406400
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b22b
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.0046fe39
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406482
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046dc54
mov eax, dword [eax]
push 0x496c38
push eax
call fcn.0045ffa4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004700c4
test bl, bl
je 0x406482
push 0x496c38
lea ecx, [esp + 0xc]
call fcn.00470454
push 0x496c44
lea ecx, [esp + 0xc]
call fcn.00470454
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 0x4064be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004700c4
jmp 0x406589
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 0x406542
lea edx, [esp + 0x7c]
push 0x496c40
push edx
call fcn.0045ffa4
add esp, 8
test eax, eax
je 0x406542
lea eax, [esp + 0x7c]
push 0x496c3c
push eax
call fcn.0045ffa4
add esp, 8
test eax, eax
je 0x406542
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 0x4064d2
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.004700c4
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 0x406d80
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 0x406de2
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 0x406df0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b2ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a0874]
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 0x406f28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406e56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004700c4
xor eax, eax
jmp 0x406f9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00470201
push esi
lea ecx, [esp + 0xc]
call fcn.00470490
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 0x406f7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00406d80
test eax, eax
jne 0x406f7d
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.00406d80
test eax, eax
jne 0x406f7d
lea eax, [esp + 0x14]
push 0x496c54
push eax
call fcn.00461020
mov esi, eax
add esp, 8
test esi, esi
jne 0x406f5c
lea ecx, [esp + 0x14]
push 0x496c50
push ecx
call fcn.00460fa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x406f5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x406f5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004701b1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406e6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004700c4
xor eax, eax
jmp 0x406f9f
mov byte [esi], 0
push 0x496c4c
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.004700c4
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 0x416180
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 0x4161ee
cmp si, 0x69
ja 0x4161ee
add esi, 0xffd0
cmp si, 0x11
je 0x4161be
push 0x11
call edi
test ax, ax
jge 0x4161be
or esi, 0x2000
cmp si, 0x10
je 0x4161d3
push 0x10
call edi
test ax, ax
jge 0x4161d3
or esi, 0x4000
cmp si, 0x12
je 0x4161e8
push 0x12
call edi
test ax, ax
jge 0x4161e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4161fb
mov esi, 0xbd
jmp 0x4161af
cmp si, 0x6e
jne 0x416208
mov esi, 0xbe
jmp 0x4161af
cmp si, 0x6f
jne 0x4161a9
mov esi, 0xbf
jmp 0x4161af

Function at 0x4179a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b10a0]
xor edx, edx
cmp eax, edx
jne 0x4179c6
xor eax, eax
mov byte [eax + 0x4b0fa0], al
inc eax
cmp eax, 0x100
jl 0x4179ae
mov dword [0x4b10a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b0fa0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x417a57
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 0x417a2a
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 0x4179f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x417ad0
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 0x417b23
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 0x417b0a
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