joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f3d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5aac], 0
lea esi, [edi + 0x5ab0]
je 0x1002f452
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1002f40c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10031500
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.1001b800
mov edx, dword [esi]
mov ecx, 0x10128bb1
push dword [edi + 0x5aac]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5ab8]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.1001b800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002f840
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x10128c20]
test bl, bl
je 0x1002f886
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1002f867
cmp byte [esi], bl
jne 0x1002f867
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x100634a0]
test bl, bl
jne 0x1002f858
mov edi, dword [0x10128c20]
mov esi, dword [edi + 0x5a54]
xor ecx, ecx
not eax
test esi, esi
jle 0x1002f8ac
mov edi, dword [edi + 0x5a5c]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x1002f8b2
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x1002f8a0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x10039920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003995a
mov eax, dword [0x10128c20]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1003994d
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1003998b
mov eax, dword [0x10128c20]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1003997e
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100399bc
mov eax, dword [0x10128c20]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100399af
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10039a09
mov eax, dword [0x10128c20]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100399fc
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10039a3a
mov eax, dword [0x10128c20]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10039a2d
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10039a6b
mov eax, dword [0x10128c20]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10039a5e
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1003c630
Function at 0x1005b710
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1005b8e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1005b7ed
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1005b75a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006e004]
ja 0x1005b75a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1005b72a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1005b77f
jmp 0x1005b7ed
cmp dword [ebp - 0x14], 0x10000
jne 0x1005b7d3
cmp dword [ebp - 0x18], 0x10000
jb 0x1005b7d3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1005b7b6
mov eax, dword [ebp - 8]
jmp 0x1005b7ef
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1005b7c6
xor eax, eax
jmp 0x1005b7ef
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1005b7e8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1005b8e0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1005b72a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005b800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1005b910
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1005b8d5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1005b845
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006e004]
ja 0x1005b845
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1005b815
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1005b86a
jmp 0x1005b8d5
cmp dword [ebp - 0x14], 0x10000
jne 0x1005b8be
cmp dword [ebp - 0x18], 0x10000
jb 0x1005b8be
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1005b8a1
mov eax, dword [ebp - 8]
jmp 0x1005b8d7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1005b8b1
xor eax, eax
jmp 0x1005b8d7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1005b8d0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1005b910
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1005b815
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005b940
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1005bd30
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100b3194], 0
jne 0x1005b97d
cmp dword [0x100b3190], 0
je 0x1005b97d
mov eax, dword [0x100b3190]
mov dword [0x100b3194], eax
cmp dword [0x100b3194], 0
je 0x1005b9fa
mov ecx, dword [0x100b3194]
cmp dword [ecx + 8], 0
je 0x1005b9fa
mov edx, dword [0x100b3194]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1005b9fa
mov ecx, dword [0x100b3194]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1005b9fa
mov eax, dword [0x100b3194]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1005b9c9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1005b9d0
xor eax, eax
jmp 0x1005bb19
mov ecx, dword [0x100b3194]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1005bb19
mov edx, dword [0x100b3190]
mov dword [0x100b3194], edx
jmp 0x1005ba16
mov eax, dword [0x100b3194]
mov ecx, dword [eax + 4]
mov dword [0x100b3194], ecx
cmp dword [0x100b3194], 0
je 0x1005ba56
cmp dword [0x100b3194], 0
je 0x1005ba54
mov edx, dword [0x100b3194]
cmp dword [edx + 8], 0
je 0x1005ba54
mov eax, dword [0x100b3194]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1005ba54
mov edx, dword [0x100b3194]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1005ba54
jmp 0x1005b9ae
jmp 0x1005ba08
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1005bb20
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1005bb17
mov eax, dword [ebp - 0x18]
mov dword [0x100b3194], eax
mov ecx, dword [0x100b3194]
mov dword [ecx], 0x52727464
mov edx, dword [0x100b3194]
mov dword [edx + 8], 0
mov eax, dword [0x100b3194]
mov ecx, dword [0x100b3190]
mov dword [eax + 4], ecx
mov edx, dword [0x100b3194]
mov dword [0x100b3190], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100b3194]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1005bae7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1005bb07
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1005bade
mov eax, dword [0x100b3194]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1005b9ae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005c860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b3190]
mov dword [ebp - 4], eax
jmp 0x1005c879
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1005c8a0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1005c89e
call sub.KERNEL32.dll_GetLastError
jmp 0x1005c8a2
jmp 0x1005c870
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005cd40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100b31a0], eax
je 0x1005cd5d
mov eax, 0x10dd
jmp 0x1005ce40
mov eax, dword [0x100b31b0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1005cddc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1005cdb8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1005cdb8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1005bdc0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1005e292
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1005cd65
mov dword [0x100b31b0], 0
call fcn.1005c6a0
mov ecx, dword [0x100b31ac]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1005ce2a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1005e292
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1005cdf4
mov dword [0x100b31ac], 0
mov dword [0x100b31a0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005d320
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100b31a4], 0
je 0x1005d339
mov eax, dword [0x100b31a4]
jmp 0x1005d3d8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1005d34a
xor eax, eax
jmp 0x1005d3d8
push 8
call fcn.1005e262
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1005d3a2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1005d38b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1005e292
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100b31a4], eax
mov dword [0x100b31a8], 0
mov eax, dword [ebp - 8]
jmp 0x1005d3d8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1005d3ba
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1005d36a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100b31ac]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100b31ac], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43b638
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
sub eax, 0x32f05449
dec eax
sub eax, 0xcbe6b513
call fcn.0043b66c
dec eax
xor dword [ebx], edi
dec ecx
inc ebx
sub eax, ecx
dec ecx
or eax, eax
cmp ebx, esi
jne fcn.0043b638
and eax, eax
add ecx, 0x7e2a8148
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000f197
pop dword [ebp - 0x28]
mov eax, 0x77ca2a93
add eax, 0x9836c704
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3a18d
push 0
mov eax, 0x90fbc266
sub eax, 0x80fa8202
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xec400d53
add ecx, 0x13c03ebe
mov esi, eax
mov edi, 0x10018600
add edi, dword [ebp - 0x28]
mov ebx, 0xb6bea2b
sub ebx, 0x9a75ca2f
xor dword [ebp - 8], 0xcd202614
mov edx, dword [edi]
xor edx, ebx
sub dword [ebp - 0x18], esi
mov dword [esi], edx
add esi, 0xa17561a2
add esi, 0x5e8a9e62
add edi, 0xec65ccd6
sub edi, 0xec65ccd2
loop 0x1000f1f0
add eax, 0x1a3472e
add eax, 0xfe5ddbe9
xor ebx, ebx
add ebx, eax
add eax, 0x19f7da8d
add eax, 0xe6082578
mov ecx, 0x280a1d83
sub ecx, 0x180a1d83
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4131e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49f5fb
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.0049400f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413262
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00491e67
mov eax, dword [eax]
push 0x4b8210
push eax
call fcn.004836a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049429a
test bl, bl
je 0x413262
push 0x4b8210
lea ecx, [esp + 0xc]
call fcn.0049462a
push 0x4bbd6c
lea ecx, [esp + 0xc]
call fcn.0049462a
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 0x41329e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049429a
jmp 0x413369
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 0x413322
lea edx, [esp + 0x7c]
push 0x4bbd68
push edx
call fcn.004836a4
add esp, 8
test eax, eax
je 0x413322
lea eax, [esp + 0x7c]
push 0x4bbd64
push eax
call fcn.004836a4
add esp, 8
test eax, eax
je 0x413322
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 0x4132b2
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.0049429a
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 0x413b60
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 0x413bc2
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 0x413bd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49f67b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4cb008]
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 0x413d08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413c36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049429a
xor eax, eax
jmp 0x413d7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004943d7
push esi
lea ecx, [esp + 0xc]
call fcn.00494666
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 0x413d5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00413b60
test eax, eax
jne 0x413d5d
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 SysReAllocString
mov ecx, edi
call fcn.00413b60
test eax, eax
jne 0x413d5d
lea eax, [esp + 0x14]
push 0x4bbd80
push eax
call fcn.004847f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x413d3c
lea ecx, [esp + 0x14]
push 0x4bbd7c
push ecx
call fcn.00484770
mov esi, eax
add esp, 8
test esi, esi
jne 0x413d3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x413d3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00494387
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x413c4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049429a
xor eax, eax
jmp 0x413d7f
mov byte [esi], 0
push 0x4bbd78
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.0049429a
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 0x41f340
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 0x41f3ae
cmp si, 0x69
ja 0x41f3ae
add esi, 0xffd0
cmp si, 0x11
je 0x41f37e
push 0x11
call edi
test ax, ax
jge 0x41f37e
or esi, 0x2000
cmp si, 0x10
je 0x41f393
push 0x10
call edi
test ax, ax
jge 0x41f393
or esi, 0x4000
cmp si, 0x12
je 0x41f3a8
push 0x12
call edi
test ax, ax
jge 0x41f3a8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f3bb
mov esi, 0xbd
jmp 0x41f36f
cmp si, 0x6e
jne 0x41f3c8
mov esi, 0xbe
jmp 0x41f36f
cmp si, 0x6f
jne 0x41f369
mov esi, 0xbf
jmp 0x41f36f

Function at 0x420b60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4db788]
xor edx, edx
cmp eax, edx
jne 0x420b86
xor eax, eax
mov byte [eax + 0x4db688], al
inc eax
cmp eax, 0x100
jl 0x420b6e
mov dword [0x4db788], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4db688
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420c17
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 0x420bea
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 0x420bb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420c90
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 0x420ce3
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 0x420cca
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