joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cf60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487ca9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ae070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [0x4b29cc], 0
jne 0x44cfad
call fcn.0043a560
mov dword [0x4b29cc], 0x42fcb0
mov esi, dword [ebp + 8]
mov ecx, 2
mov dword [esi], vtable.CryptoPP::Integer.0
mov dword [esi + 8], 2
call fcn.00440a30
mov ecx, 8
call fcn.00448640
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, edi
push dword [ebp + 0xc]
mov edx, dword [edi]
push esi
mov dword [ebp - 0x10], 1
call dword [edx + 0x30]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x455be0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + 0x499d58]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x4b29e0], ecx
mov dword [eax*8 + 0x4b29e4], edx
inc eax
cmp eax, 0x100
jl 0x455be4
xorps xmm0, xmm0
pop edi
movlpd qword [0x4b31e8], xmm0
movlpd qword [0x4b31e0], xmm0
mov byte [0x4b29d8], 1
pop esi
ret
Function at 0x457480
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movaps xmm0, xmmword [eax]
lea edx, [esi - 1]
pxor xmm0, xmmword [edi]
movaps xmmword [eax], xmm0
cmp edx, 1
jbe 0x4574cd
add edx, 0xfffffffe
lea ecx, [edi + 0x10]
shr edx, 1
inc edx
nop dword [eax]
movaps xmm0, xmmword [eax]
lea ecx, [ecx + 0x20]
aesenc xmm0, xmmword [ecx - 0x20]
movaps xmmword [eax], xmm0
aesenc xmm0, xmmword [ecx - 0x10]
movaps xmmword [eax], xmm0
sub edx, 1
jne 0x4574b0
movaps xmm0, xmmword [eax]
add esi, esi
aesenc xmm0, xmmword [edi + esi*8 - 0x10]
movaps xmmword [eax], xmm0
aesenclast xmm0, xmmword [edi + esi*8]
pop edi
movaps xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4574f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x18]
sub esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movaps xmm1, xmmword [eax]
movaps xmm0, xmmword [ecx]
mov eax, dword [ebp + 0x14]
pxor xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
push esi
mov esi, dword [ebp + 0x10]
pxor xmm0, xmm1
movaps xmmword [edx], xmm0
push edi
mov edi, dword [ebp + 0x1c]
movaps xmm0, xmmword [esi]
pxor xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
pxor xmm0, xmm1
movaps xmmword [eax], xmm0
cmp edi, 1
jbe 0x45758d
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
add edi, 0x10
dec ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
nop
sub dword [esp + 0xc], 1
lea edi, [edi + 0x10]
movaps xmm1, xmmword [edi - 0x10]
movaps xmm0, xmmword [ecx]
aesenc xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
aesenc xmm0, xmm1
movaps xmmword [edx], xmm0
movaps xmm0, xmmword [esi]
aesenc xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
aesenc xmm0, xmm1
movaps xmmword [eax], xmm0
jne 0x457550
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
add edi, edi
movaps xmm0, xmmword [ecx]
movaps xmm1, xmmword [eax + edi*8]
mov eax, dword [ebp + 0x14]
aesenclast xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
aesenclast xmm0, xmm1
movaps xmmword [edx], xmm0
movaps xmm0, xmmword [esi]
aesenclast xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
aesenclast xmm0, xmm1
pop edi
movaps xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47416b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00473fea

Function at 0x47a26d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00479bdb

Function at 0x47a278
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00479e16

Function at 0x47b5e2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
or al, 0xf
mov bh, 0xd0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x47b5f5
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x47b5e6
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0047b3a1
sbb dword [ebp + 0x458d77c7], 0xffffffa8
push eax
call fcn.0047b3b1
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0047b366
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x47b68f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0047b3a1
fdivr dword [edx]
retf 0x8de9
Function at 0x4b82d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x75000]
push edi
or ebp, 0xffffffff
jmp 0x4b82f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b82f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b82e8
mov eax, 1
add ebx, ebx
jne 0x4b830b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b831c
jne 0x4b833b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b833b
dec eax
add ebx, ebx
jne 0x4b8328
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8300
add ebx, ebx
jne 0x4b8337
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b838d
xor ecx, ecx
sub eax, 3
jb 0x4b8353
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b83c2
sar eax, 1
mov ebp, eax
jmp 0x4b835e
add ebx, ebx
jne 0x4b835e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b832c
inc ecx
add ebx, ebx
jne 0x4b836c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b832c
add ebx, ebx
jne 0x4b8379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b836e
jne 0x4b838a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b836e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b83ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b839e
jmp 0x4b82ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b83ac
add edi, ecx
jmp 0x4b82ee
pop esi
mov edi, esi
mov ecx, 0x370c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b83ca
cmp byte [edi], 0x4a
jne 0x4b83ca
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 0x4b83cf
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc22ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2460]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b83fc
mov ecx, edi
jns 0x4b842b
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 + 0xc2468]
or eax, eax
je 0x4b8441
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8419
call dword [esi + 0xc2464]
mov ebp, dword [esi + 0xc246c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b847b
sub esp, 0xffffff80
jmp 0x418150
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x7561925
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x3cbe7166
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret
Function at 0x4028d0
Capabilities:
Terminate process

Disassembly:
call fcn.00401000
push 0x18
push 0x4029f8
call fcn.004032a6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call sub.MSVCR120_CLR0400.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call 0x559000
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret
Function at 0x401c10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416560
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x41d490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, esi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c60
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00405650
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x20]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x401c8a
push str.invalid_string_position
call fcn.00406c1e
mov ecx, dword [ebp - 0x30]
mov ebx, 0x10
cmp dword [ebp - 0x1c], ebx
jae 0x401c9a
lea ecx, [ebp - 0x30]
cmp byte [ecx + eax], 0x5c
je 0x401ca8
lea esi, [ebp - 0x30]
call fcn.00403c20
push 0x41a0f8
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00405e90
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x401cc4
mov eax, dword [eax]
lea edx, [ebp - 0x1ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp dword [ebp - 0x38], ebx
jb 0x401ce5
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0040715b
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x4c], 0
cmp esi, 0xffffffff
jne 0x401d10
cmp dword [ebp - 0x1c], ebx
jb 0x401d09
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0040715b
add esp, 4
xor al, al
jmp 0x401dff
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401d20
lea edx, [ebp - 0x180]
test byte [ebp - 0x1ac], bl
je 0x401d96
push 0x41a0fc
push edx
call fcn.00414bd0
add esp, 8
test eax, eax
je 0x401dc2
lea eax, [ebp - 0x180]
push 0x41a100
push eax
call fcn.00414bd0
add esp, 8
test eax, eax
je 0x401dc2
lea ecx, [ebp - 0x180]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.00405e90
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], ebx
jb 0x401d7e
mov eax, dword [eax]
push eax
call fcn.00401c10
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x54], ebx
jb 0x401dc2
mov ecx, dword [ebp - 0x68]
push ecx
jmp 0x401dba
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00405e90
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x401dae
mov eax, dword [eax]
push eax
call edi
cmp dword [ebp - 0x54], ebx
jb 0x401dc2
mov edx, dword [ebp - 0x68]
push edx
call fcn.0040715b
add esp, 4
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401d20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [ebp - 0x1c], ebx
jb 0x401dfd
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040715b
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407166
mov esp, ebp
pop ebp
ret
Function at 0x401f70
Capabilities:
Generate random numbers via winapi
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jbe 0x402034
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp dword [0x41f2a0], 0
jne 0x401fb6
push 0xf0000040
push 1
push 0
push 0
push 0x41f2a0
call edi
test eax, eax
je 0x40203c
mov ecx, dword [0x41f2a0]
lea eax, [ebp - 8]
push eax
push 4
push ecx
call ebx
mov eax, dword [ebp - 8]
and eax, 0x7fffffff
cdq
idiv dword [ebp + 0x10]
test edx, edx
je 0x402028
cmp dword [0x41f2a0], 0
jne 0x401ff4
push 0xf0000040
push 1
push 0
push 0
push 0x41f2a0
call edi
test eax, eax
je 0x40203c
mov eax, dword [0x41f2a0]
lea edx, [ebp - 0xc]
push edx
push 4
push eax
call ebx
mov ecx, dword [ebp - 0xc]
and ecx, 0x7fffffff
and ecx, 0x80000001
jns 0x402018
dec ecx
or ecx, 0xfffffffe
inc ecx
mov eax, dword [ebp + 8]
jne 0x402022
dec byte [esi + eax]
jmp 0x402025
inc byte [esi + eax]
inc dword [ebp - 4]
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x401f93
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402050
Capabilities:
Generate random numbers via winapi
Query or enumerate registry key
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, 0x104
push edi
push 0
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, dword [ebp + 8]
push 0
push 0
push 0
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
mov dword [ebp - 4], edi
push ebx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x4020df
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4020bb
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
push edx
push eax
call fcn.00402050
add esp, 8
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push ebx
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc edi
cmp eax, 0x103
jne 0x402094
push 0x2000
push 0
mov dword [ebp - 8], 0x2000
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea edx, [ebp - 8]
push edx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push 0
push ebx
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
mov dword [ebp - 0x10], 1
cmp edi, 0x103
je 0x402213
cmp dword [0x41f2a0], 0
jne 0x402159
push 0xf0000040
push 1
push 0
push 0
push 0x41f2a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x402230
mov eax, dword [0x41f2a0]
lea edx, [ebp - 0x18]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [ebp - 0x18]
and eax, 0x7fffffff
xor edx, edx
div dword [ebp + 0xc]
test edx, edx
je 0x4021d6
test edi, edi
jne 0x4021d6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.AppInit_DLLs
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, edi
jg 0x4021af
sub edi, eax
push str.AppInit_DLLs
add edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb eax, eax
inc eax
jne 0x4021d6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
push ecx
push edx
push edi
call fcn.00401f70
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push eax
push edi
push ecx
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 4]
push edx
push esi
push eax
push ebx
mov dword [ebp - 8], 0x2000
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc dword [ebp - 0x10]
mov edi, eax
cmp edi, 0x103
jne 0x402132
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402490
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x41d490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4024f3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
lea ecx, [ebp - 0x10c]
push ecx
call ebx
test eax, eax
je 0x402506
lea edx, [ebp - 0x130]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4024d3
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407166
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop esi
xor ecx, ebp
pop ebx
call fcn.00407166
mov esp, ebp
pop ebp
ret

Function at 0x4029c0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4026a0
push 0
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
push 0
push 0
push 0x402610
push 0x1000
push 0
call edi
push 0x3e8
call esi
jmp 0x4029e0