joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40551d
Capabilities:
Encode data using xor

Disassembly:
jb 0x684855a5
mov eax, dword [edi + 8]
cdq
add eax, ebx
adc edx, ecx
sub eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
sbb edx, 0
cmp eax, edx
jl 0x405543
jg 0x4055a5
cmp esi, dword [ebp - 8]
ja 0x4055a5
mov ecx, esi
mov dword [edi + 0x14], eax
sub ecx, ebx
mov dword [edi + 0x10], esi
mov dword [edi + 0xc], ecx
mov al, 1
fsub st(0), st(0)
pop ebx
add dword [eax], esi
or al, 0xc7
add byte [ebp + 0x10], bh
add dword [edi + edx*4 + 0x46], esi
inc esi
adc al, 0x89
inc edi
and dword [edi + 0xc], 0xffffffc7
add byte [ebp + 0x10], bh
add dword [ebx + 0x49c1d81d], ecx
or dword [edi], 0xffffff84
cmp dl, ch
add eax, dword [eax]
push ss
add byte [eax], dl
push 0
push edx
push esi
push dword [edi]
call ebx
push 1
mov esi, eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push dword [edi]
add bh, bh
aaa
call ebx
inc eax
xor bl, ch
js 0x40558d
mov dword [edi + 0x10], eax
call 0x47c961e4
adc al, 0xf
xchg ebp, eax
shr bl, 0xad
lea ecx, [edi + 0x20]
mov edx, dword [ebp + 0xc]
jmp 0x40555f

Function at 0x471ff9
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x47200c
call fcn.0047209d
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x47204f
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x47209d
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720c0
push 0
call fcn.0042e53f
pop ecx
mov ecx, eax
call 0x6955205d
mov dword [0x4d06e0], 0xf7c0270
mov edx, 0x30300e3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0xf7c0634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x4720d5
mov eax, dword [esi]
mov dword [ebp - 4], 0xc79018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
invalid

Function at 0x472955
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf00e0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call fcn.004727a5
push dword [ebp + 8]
lea ecx, [ebp - 0xdc]
call fcn.004727e9
xor esi, esi
test ebx, ebx
je 0x472999
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00472929
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x472984
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402766
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea eax, [eax + 0xc]
mov edx, eax
cmp edx, eax
je 0x4027c0
push eax
push 0x4012ca
call fcn.004027fe
push 7
push 0x56c0bc
push dword [eax + 0x30]
call fcn.00402b57
cmp eax, 0
jne 0x40279a
inc eax
jmp 0x4027c2
push 0x4012e2
call fcn.004027fe
push 7
push 0x56c0bc
push dword [eax + 0x30]
call fcn.00402b57
cmp eax, 0
jne 0x4027bb
inc eax
jmp 0x4027c2
pop eax
mov eax, dword [eax]
jmp 0x402774
xor eax, eax
ret

Function at 0x4027d8
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
sete al
movzx eax, al
ret

Function at 0x4027ec
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
test al, al
setne al
movzx eax, al
ret

Function at 0x4027fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x56c0bc]
mov esi, dword [ebp + 8]
lodsw ax, word [esi]
xor ax, 0xee
stosw word es:[edi], ax
cmp ax, 0
jne 0x40280c
pop edi
pop esi
leave
ret 4

Function at 0x402820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x56c0bc]
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
xor al, 0xee
stosb byte es:[edi], al
cmp al, 0
jne 0x40282e
pop edi
pop esi
leave
ret 4

Function at 0x402a62
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [edx + ebx]
test edi, edi
je 0x402ab3
add edi, ebx
xchg esi, eax
push ecx
xor eax, eax
lea ecx, [eax - 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg esi, eax
mov esi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
pop ecx
jne 0x402ab3
sub ecx, dword [eax + 0x18]
neg ecx
mov edx, dword [eax + 0x24]
add edx, ebx
movzx edx, word [edx + ecx*2]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov eax, dword [eax + edx*4]
add eax, ebx
jmp 0x402aba
add edx, 4
loop 0x402a7a
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x402ac1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea ebp, [eax + 0xc]
mov eax, dword [ebp]
mov esi, dword [eax + 0x30]
movzx ecx, word [eax + 0x2e]
mov edi, dword [esp + 0x10]
mov dx, word [esi]
cmp dx, word [edi]
je 0x402b0d
cmp dx, 0x41
jb 0x402af2
cmp dx, 0x5a
jbe 0x402af8
cmp dx, 0x61
jb 0x402b04
cmp dx, 0x7a
ja 0x402b04
xor dx, 0x20
jmp 0x402b06
jmp 0x402b20
cmp dx, word [edi]
je 0x402b0d
jmp 0x402b20
add edi, 2
add esi, 2
sub ecx, 2
cmp ecx, 0
jne 0x402ade
mov eax, dword [eax + 0x18]
jmp 0x402b28
mov eax, dword [eax]
cmp ebp, eax
jne 0x402ad3
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x5158fd
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x402c56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x38
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x56b2a0
push 0
push 0x3f
push 1
push 0x11
push 0x56c1d0
push 1
push pe_nt_image_headers32
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x30]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
and dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 3
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
shl ecx, 4
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
add ecx, eax
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x56c1f8]
push 0xd
pop ecx
sub ecx, dword [eax + 0x14]
mov eax, dword [0x56c1f8]
mov eax, dword [eax + 0xc]
push dword [eax + ecx*4]
call fcn.00402908
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x30]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x408c04
push 0x408c0c
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x408bfc
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x408c14
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL___vbaI4Str
push eax
push 0x408a30
push 0x408bfc
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL___vbaI4Str
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_VirtualProtect
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
push dword [0x56c1d0]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
add eax, ecx
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x1c]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
push 0x40
push dword [ebp - 0x44]
push dword [ebp - 0x14]
call fcn.00402bdb
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 0x40
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_VirtualProtect
push 0x515ad0
jmp 0x515acf
ret
Function at 0x616e10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x159000]
push edi
jmp 0x616e2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x616e31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x616e20
mov eax, 1
add ebx, ebx
jne 0x616e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x616e54
jne 0x616e73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x616e73
dec eax
add ebx, ebx
jne 0x616e60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x616e38
add ebx, ebx
jne 0x616e6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x616ec5
xor ecx, ecx
sub eax, 3
jb 0x616e8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x616efa
sar eax, 1
mov ebp, eax
jmp 0x616e96
add ebx, ebx
jne 0x616e96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x616e64
inc ecx
add ebx, ebx
jne 0x616ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x616e64
add ebx, ebx
jne 0x616eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x616ea6
jne 0x616ec2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x616ea6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x616ee4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x616ed6
jmp 0x616e26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x616ee4
add edi, ecx
jmp 0x616e26
pop esi
mov edi, esi
mov ecx, 0x6c92
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x616f02
cmp byte [edi], 0x25
jne 0x616f02
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 0x616f07
lea edi, [esi + 0x213000]
mov eax, dword [edi]
or eax, eax
je 0x616f7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21c6b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21c7d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x616f34
mov ecx, edi
jns 0x616f63
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 + 0x21c7dc]
or eax, eax
je 0x616f79
mov dword [ebx], eax
add ebx, 4
jmp 0x616f51
call dword [esi + 0x21c7d8]
mov ebp, dword [esi + 0x21c7e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x616fb3
sub esp, 0xffffff80
jmp 0x4f4db7
Function at 0x10002550
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100025c8
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x41
jl 0x100025a1
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x5a
jg 0x100025a1
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
lea eax, [eax + edx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x100025b3
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x1000256b
mov eax, dword [ebp - 0xc]
and eax, 0x7fffffff
mov esp, ebp
pop ebp
ret

Function at 0x100025e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 1
jmp 0x10002616
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x10002674
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
push edx
call fcn.10002550
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x10002672
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
mov cx, word [edx + eax*2]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
mov eax, edx
jmp 0x10002676
jmp 0x1000260d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10002680
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call dword [0x1000a03c]
mov esp, ebp
pop ebp
ret
Function at 0x4085d0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
inc ecx
enter 0xffffffffffffc12f, 0x21
ja 0x40861f
inc ebp
inc ecx
inc esp
inc esi
or dword [ebx], esp
test byte [edi - 0x71], dl
fcmove st(0), st(5)
aaa
adc byte [ebx + 0xf], bl
pop ss
inc ecx
arpl word [ebx + 0x24], sp
lodsd eax, dword [esi]
rcr byte [edx + 0x17], 1
xchg byte [ebp + 0x6e], al
sub al, 0xf0
mov dh, byte [eax + edx*4]
jl 0x408667
and dword [edi - 0x25], 0x154f2270
xor dword [ecx - 0x4d], ebx
in eax, dx
arpl word [esp + eax*4 + 0x65], bp
inc eax
mov dword [0x24784b47], eax
imul eax, esp, 0x5b
aas
mov bh, 0xc3
mov byte [0xb9b90917], al
push 4
out 0x91, al
invalid
xor al, 0xb5
nop
xchg ecx, eax
hlt
or eax, eax
xchg edi, edx
push 0xffffffffffffffe7
mov eax, dword [0xb34b0f39]
inc ecx
adc eax, 0x36928990
push cs
xor byte [edi + 0x2f], ah
mov edi, 0x541ee89b
jns 0x4086f3
push ecx
popal
mov ch, byte [ecx + 0x63]
popal
inc esi
das
js 0x4086d7
cld
push es
fld xword [0x492d0077]
jb 0x408704
sub eax, 0x2a07275
enter 0x3f48, 0
lahf
pop ss
pushfd
adc dword [eax + 0x2e], edi
adc dword [eax], eax
xor ecx, dword [ecx]
dec ecx
mov cl, 0xd6
dec edx
add al, 0x70
add dword [edi + esi*4 + 0x22], ebp
leave
xchg dword [edx - 0x19], ebx
cmp byte [ebp + esi*8 - 0x1f], ch
adc dl, byte [eax - 0x78]
sbb byte [ecx - 0x48], cl
call 0x855f8982
mov eax, dword [0xedbadf5e]
mov eax, 0xbe485389
push 0xcb670a14
mov dword [0xb43dd216], eax
nop
push ds
sub eax, 0x25a23e32
invalid
retf
pop ds
sbb byte [edi], cl
xchg edx, eax
mov bh, 0x2a
aas
or al, 0x10
inc eax
cmp al, 0x6e
sub al, 0xbc
inc eax
insb byte es:[edi], dx
add ecx, dword [ecx]
push ebx
or dword [esi], ebp
push ebx
outsd dx, dword [esi]
arpl word [esi + 0x74], si
adc ecx, dword [eax]
pushfd
adc eax, 0x4aeeecef
test eax, 0x6d90c08e
out 0x5d, al
push esp
in eax, dx
or ch, byte [esi + 0x41]
add al, 0x44
push 6
and dh, bh
mov dl, 0x5b
lcall 0x6614, 0x370d02
mov dword [ebp - 0x14], 0xed54f402
jg 0x40873c
enter 0xffffffffffff8966, 0x45
out dx, al
mov esp, dword [eax]
inc ebp
rcl byte [ebp - 0x7d]
mov ebp, 0x798926b1
inc esi
jne 0x408762
adc byte [edi], dh
sub ch, byte [esi]
add al, 0x74
rcr byte [0x58008b90], 0x73
adc eax, 0x6af0976f
adc byte [ebp + 0x2d40ec], cl
cmp dword [ecx], ebx
cld
add byte [ecx], bh
sbb esp, edi
rol dh, 0x43
adc byte [ecx], al
call 0xbdc7f4c1
or bh, al
invalid
Function at 0x401308
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4013a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401380
xor eax, eax
push ebp
push 0x401379
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4013bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401380
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x401a58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x401ab9
cmp word [0x406208], 0xd7b2
jne 0x401a81
cmp dword [0x406210], 0
jbe 0x401a81
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x401ae0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x401ad5
push 0
push 0x405060
push 0x405040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x402568
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebx, edx
mov esi, eax
xor edi, edi
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp], 0x128
push esp
push ebp
call sub.kernel32.dll_Process32First
jmp 0x4025b1
lea eax, [esp + 0x24]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4025aa
mov edi, dword [esp + 8]
test bl, bl
je 0x4025bb
push esp
push ebp
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x402593
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4025d0
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
test edi, edi
je 0x4025f1
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40264f
test ebx, ebx
je 0x402626
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x40263e
test edi, edi
je 0x402638
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
mov ebp, dword [esp + 0x14]
jmp 0x40264f
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x402613
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402694
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.00402664
test al, al
jne 0x4026b8
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4026c0
Capabilities:
Create process on windows
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xfffff9f8
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00402664
cmp al, 1
jne 0x4028a5
push 0
call sub.kernel32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcpyA
call sub.kernel32.dll_GetTickCount
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrlenA
call sub.kernel32.dll_GetCurrentProcessId
push 1
call sub.kernel32.dll_Sleep
push 1
lea eax, [esp + 4]
push eax
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_RtlMoveMemory
push 1
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_RtlZeroMemory
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrlenA
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esp
push 0x4028b0
lea eax, [esp + 0xc]
push eax
call sub.user32.dll_wvsprintfA
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcatA
push 0
call sub.kernel32.dll_CloseHandle
push 1
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetCurrentProcess
push 0x4028b4
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcpyA
call sub.kernel32.dll_GetTickCount
mov dword [esp], eax
push esp
push 0x4028b0
lea eax, [esp + 0xc]
push eax
call sub.user32.dll_wvsprintfA
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4028bc
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x104]
call fcn.00402694
cmp al, 1
jne 0x4028a5
push 0x4028c4
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4028d0
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4028d8
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push esi
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4028e4
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push esi
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4028fc
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push esi
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0x40290c
lea eax, [esp + 0x20c]
push eax
call sub.kernel32.dll_lstrcatA
push 0
push 1
lea eax, [esp + 0x210]
push eax
call sub.kernel32.dll_lstrlenA
mov ecx, eax
lea edx, [esp + 0x210]
lea eax, [esp + 0x10c]
call fcn.0040294c
push 0
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_WinExec
mov bl, 1
mov eax, ebx
add esp, 0x608
pop esi
pop ebx
ret