joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push edi
push eax
push 1
push ecx
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x20]
mov byte [ebp - 1], bl
mov edi, eax
mov dword [esi + 0x24], edi
test bl, bl
je 0x10014595
push 0xffffffffffffffff
mov eax, ecx
cdq
add dword [esi + 0x18], eax
push edi
push 0x18
adc dword [esi + 0x1c], edx
push ecx
mov ecx, dword [esi + 0x2c]
mov eax, esp
mov dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 0xc], eax
call fcn.10013ee0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov edi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [ebp - 2]
mov dword [ebp - 8], edx
test edx, edx
je 0x10014549
dec dword [ebp - 8]
xor edx, edx
cmp byte [ebp - 2], dl
je 0x100144cb
cmp byte [edi], dl
jmp 0x100144ce
cmp word [edi], dx
sete dl
test edx, edx
je 0x100144f9
test eax, eax
je 0x100144f2
cmp edi, eax
je 0x100144f2
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov ecx, dword [esi + 0x20]
lea eax, [ecx + edi]
inc ebx
add edi, ecx
cmp dword [ebp - 8], 0
jne 0x100144bd
test eax, eax
je 0x1001451f
cmp edi, eax
je 0x1001451f
mov ecx, dword [esi + 0x20]
imul ecx, ebx
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
test ebx, ebx
je 0x10014549
mov edx, dword [ebp - 0xc]
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.10013ee0
add esp, 0x18
sub dword [esi + 0x24], ebx
cmp dword [esi + 0x20], 1
jle 0x10014589
test byte [esi + 4], 0x80
je 0x10014589
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.1000f8b0
mov edx, dword [ebp - 0xc]
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.endian_swap
call fcn.10013ee0
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.1000fe60
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10015f75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10021568]
jne 0x10015f7f
repz ret
jmp fcn.100165e1
Function at 0x410108
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x421298]
je 0x410123
inc edi
cmp edi, 0x17
jb 0x410114
cmp edi, 0x17
jae 0x4102a3
push ebp
push 3
call fcn.00416faa
cmp eax, 1
pop ecx
je 0x41026f
push 3
call fcn.00416faa
test eax, eax
pop ecx
jne 0x410157
cmp dword [0x4206cc], 1
je 0x41026f
cmp ebx, 0xfc
je 0x4102a2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x421de8
push ebp
call fcn.0040c15b
add esp, 0xc
test eax, eax
je 0x41018d
push esi
push esi
push esi
push esi
push esi
call fcn.00407606
add esp, 0x14
push 0x104
mov esi, 0x421e01
push esi
push 0
mov byte [0x421f05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4101d1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c15b
add esp, 0xc
test eax, eax
je 0x4101d1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407606
add esp, 0x14
push esi
call fcn.00409c40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410216
push esi
call fcn.00409c40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4220fc
push 0x41c6bc
sub ecx, eax
push ecx
push eax
call fcn.00412146
add esp, 0x14
test eax, eax
je 0x410216
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407606
add esp, 0x14
jmp 0x410218
xor esi, esi
push 0x41c6b8
push ebx
push ebp
call fcn.00412085
add esp, 0xc
test eax, eax
je 0x410238
push esi
push esi
push esi
push esi
push esi
call fcn.00407606
add esp, 0x14
push dword [edi*8 + 0x42129c]
push ebx
push ebp
call fcn.00412085
add esp, 0xc
test eax, eax
je 0x41025a
push esi
push esi
push esi
push esi
push esi
call fcn.00407606
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416ded
add esp, 0xc
jmp 0x4102a2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4102a2
cmp ebp, 0xffffffff
je 0x4102a2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42129c]
push dword [esi]
call fcn.00409c40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40113a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
xor eax, eax
push eax
mov dword [esp], 0
xor edx, edx
mov ecx, 0x28
add ecx, 8
mov edx, dword fs:[ecx]
mov al, byte [edx + 2]
mov byte [esp], al
mov ebx, dword [esp]
and ebx, ebx
je 0x401178
push 0x40402b
push 0x40402f
call fcn.00402283
push 0
call sub.KERNEL32.dll_ExitProcess
xor eax, eax
xor ecx, ecx
mov cl, 3
shl cl, 4
mov eax, dword fs:[ecx]
xor edx, edx
mov dl, 3
shl dl, 2
add eax, edx
mov eax, dword [eax]
xor edx, edx
mov dl, 5
shl dl, 2
add eax, edx
mov ebx, dword [eax]
xor edx, edx
mov dl, 7
shl dl, 3
sub dl, 0x10
lea ecx, [ebx + edx]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4011da
mov dword [0x404380], ecx
xor edi, edi
xor eax, eax
cld
mov esi, dword [0x404380]
lodsw ax, word [esi]
test ax, ax
je 0x4011cc
ror edi, 0x73
add edi, eax
jmp 0x4011be
cmp edi, dword [0x40438c]
je 0x4011de
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40119a
xor eax, eax
jmp 0x401251
mov eax, dword [ebx + 0x10]
mov dword [0x404388], eax
mov edx, dword [eax + 0x3c]
add edx, eax
mov edx, dword [edx + 0x78]
add edx, eax
mov esi, dword [edx + 0x20]
add esi, eax
mov ecx, dword [edx + 0x18]
dec ecx
js 0x4011da
push esi
push edi
push eax
mov ebx, dword [esi + ecx*4]
add ebx, eax
mov dword [0x404380], ebx
xor edi, edi
xor eax, eax
cld
mov esi, ebx
lodsb al, byte [esi]
test al, al
je 0x40121c
ror edi, 0x73
add edi, eax
jmp 0x401210
cmp edi, dword [0x404390]
je 0x401229
pop eax
pop edi
pop esi
jmp 0x4011f8
pop eax
pop edi
pop esi
mov ebx, dword [edx + 0x24]
add ebx, eax
movzx ecx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, eax
mov eax, dword [ebx + ecx*4]
add eax, dword [0x404388]
mov dword [0x404394], eax
mov eax, 1
jmp 0x401251
add esp, 4
pop ebx
ret

Function at 0x402326
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
xor ebp, ebp
cmp dword [esp + 8], ebp
je 0x402340
push dword [esp + 8]
push 0x402295
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x402393
push esi
mov esi, dword [0x4043a4]
cmp esi, ebp
je 0x402392
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40238a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp dword [esi + 0x10], ebp
je 0x40237d
push 3
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4043a4
call fcn.004023f2
pop ecx
pop ecx
cmp ebx, ebp
mov esi, ebx
jne 0x40234d
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x25c3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.025c31a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x25c307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x25c306a
add dl, dl
jne 0x25c3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x25c30dc
xor eax, eax
add dl, dl
jne 0x25c3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x25c317d
add dl, dl
jne 0x25c30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x25c30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x25c30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x25c30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x25c30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x25c3075
mov eax, 1
add dl, dl
jne 0x25c30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x25c30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x25c30e1
sub eax, ebx
mov ebx, 1
jne 0x25c3128
mov ecx, 1
add dl, dl
jne 0x25c310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x25c3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x25c3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x25c3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x25c313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x25c314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x25c3136
cmp eax, 0x7d00
jae 0x25c316d
cmp eax, 0x500
jb 0x25c3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x25c3075
cmp eax, 0x7f
ja 0x25c3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x25c3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x25c319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x25c3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xf02ce0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9f000]
push edi
jmp 0xf02cfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf02d01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf02cf0
mov eax, 1
add ebx, ebx
jne 0xf02d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf02d24
jne 0xf02d43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf02d43
dec eax
add ebx, ebx
jne 0xf02d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf02d08
add ebx, ebx
jne 0xf02d3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf02d95
xor ecx, ecx
sub eax, 3
jb 0xf02d5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf02dca
sar eax, 1
mov ebp, eax
jmp 0xf02d66
add ebx, ebx
jne 0xf02d66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf02d34
inc ecx
add ebx, ebx
jne 0xf02d74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf02d34
add ebx, ebx
jne 0xf02d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf02d76
jne 0xf02d92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf02d76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf02db4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf02da6
jmp 0xf02cf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf02db4
add edi, ecx
jmp 0xf02cf6
pop esi
mov edi, esi
mov ecx, 0x3f97
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf02dd2
cmp byte [edi], 0x2a
jne 0xf02dd2
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 0xf02dd7
lea edi, [esi + 0xae9000]
mov eax, dword [edi]
or eax, eax
je 0xf02e4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb050f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb05258]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf02e04
mov ecx, edi
jns 0xf02e33
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 + 0xb0525c]
or eax, eax
je 0xf02e49
mov dword [ebx], eax
add ebx, 4
jmp 0xf02e21
call dword [esi + 0xb0526c]
mov ebp, dword [esi + 0xb05260]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0xf02e83
sub esp, 0xffffff80
jmp 0x487014
Function at 0x4034b4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403664
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4035b2
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403555
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x403598
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40356c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x403587
test al, 0x40
je 0x40357e
mov ecx, dword [edi + 0x20]
jmp 0x403585
test al, 0x80
je 0x403598
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x403598
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403524
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40e3a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4848eb
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.0047936e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e422
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004770b0
mov eax, dword [eax]
push 0x12e4d18
push eax
call fcn.00469a94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004795f9
test bl, bl
je 0x40e422
push 0x12e4d18
lea ecx, [esp + 0xc]
call fcn.00479989
push 0x12e4d24
lea ecx, [esp + 0xc]
call fcn.00479989
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 0x40e45e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004795f9
jmp 0x40e529
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 0x40e4e2
lea edx, [esp + 0x7c]
push 0x12e4d20
push edx
call fcn.00469a94
add esp, 8
test eax, eax
je 0x40e4e2
lea eax, [esp + 0x7c]
push 0x12e4d1c
push eax
call fcn.00469a94
add esp, 8
test eax, eax
je 0x40e4e2
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 0x40e472
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.004795f9
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 0x40ed20
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 0x40ed82
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 0x40ed90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48496b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x12ee6b8]
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 0x40eec8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40edf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004795f9
xor eax, eax
jmp 0x40ef3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00479736
push esi
lea ecx, [esp + 0xc]
call fcn.004799c5
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x12e4d58
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ef1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ed20
test eax, eax
jne 0x40ef1d
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.0040ed20
test eax, eax
jne 0x40ef1d
lea eax, [esp + 0x14]
push 0x12e4d34
push eax
call fcn.0046ab50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40eefc
lea ecx, [esp + 0x14]
push 0x12e4d30
push ecx
call fcn.0046aad0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40eefc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40eeff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004796e6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ee0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004795f9
xor eax, eax
jmp 0x40ef3f
mov byte [esi], 0
push 0x12e4d2c
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.004795f9
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 0x41f7e0
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 0x41f84e
cmp si, 0x69
ja 0x41f84e
add esi, 0xffd0
cmp si, 0x11
je 0x41f81e
push 0x11
call edi
test ax, ax
jge 0x41f81e
or esi, 0x2000
cmp si, 0x10
je 0x41f833
push 0x10
call edi
test ax, ax
jge 0x41f833
or esi, 0x4000
cmp si, 0x12
je 0x41f848
push 0x12
call edi
test ax, ax
jge 0x41f848
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f85b
mov esi, 0xbd
jmp 0x41f80f
cmp si, 0x6e
jne 0x41f868
mov esi, 0xbe
jmp 0x41f80f
cmp si, 0x6f
jne 0x41f809
mov esi, 0xbf
jmp 0x41f80f

Function at 0x421160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x12fee70]
xor edx, edx
cmp eax, edx
jne 0x421186
xor eax, eax
mov byte [eax + 0x12fed70], al
inc eax
cmp eax, 0x100
jl 0x42116e
mov dword [0x12fee70], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x12fed70
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421217
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 0x4211ea
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 0x4211b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421290
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 0x4212e3
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 0x4212ca
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