joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x75684cbb
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x28e52b15
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7c79154b
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3c546bd1
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402908
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403a70
test esi, esi
jne 0x40293e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403b60
jmp 0x40295c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040281c
mov edi, eax
test esi, esi
je 0x40295c
cmp dword [ebx], 0
je 0x40295c
dec esi
jmp 0x402945
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x414044], 0
je 0x403955
cmp word [0x414218], 0xd7b2
jne 0x40391d
cmp dword [0x414220], 0
jbe 0x40391d
mov eax, 0x414214
call dword [0x414230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41306c
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 0x40397c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x413030], 0
jne 0x403971
push 0
push 0x413064
push 0x41306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40469c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004042df
push eax
push esi
push dword [ebp + 8]
call fcn.00404294
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004042df
push eax
push esi
push dword [ebp + 8]
call fcn.00404294
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004042cf
xchg ebx, eax
fdivr st(3), st(0)
retf 0x9d88
Function at 0x40485c
Capabilities:
Inspect section memory permissions

Disassembly:
test byte [ebp + 2], bl
add byte [eax], al
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x404874
cmp dword [eax + 0xc], ebx
je 0x404917
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004042cf
inc ebx
fcmovne st(0), st(4)
inc edx
cmp dword [ebp + 0xc], ebx
jne 0x4048a3
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404abe
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x4048b7
mov dword [ebp + 0x10], edi
jmp 0x4048bc
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.004042cf
loopne 0x40490c
invalid
invalid
call fcn.004042cf
rcr dword [edx + edx], cl
pop edx
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x404983
add eax, esi
Function at 0x40573c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
movsd dword es:[edi], dword [esi]
xlatb
clc
invalid
inc dword [eax]
mov byte [ebp - 0x728], 0x6b
fdivr st(0)
invalid
jmp [ebx - 0x3a]
test ecx, ebx
clc
invalid
call dword [esi + eax*8 - 0x7b]
invalid
clc
invalid
dec dword [edi - 0x3a]
test ebx, ebx
clc
invalid

Function at 0x10398d68
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10398d72
pushal
call 0x10398d78
pop ebp
sub ebp, 0x10
sub ebp, 0x398d68
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10398d9c
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10398da5
mov eax, 0x398d68
add eax, ebp
add eax, 0x63
mov ecx, 0x5eb
mov edx, 0x1270b13f
xor byte [eax], dl
inc eax
dec ecx
jne 0x10398dbc
jmp 0x10398dcf
mov ah, 0xf2
mov ah, 0xb6
add edi, dword [edi]
aas
aas
mov esi, 0x3f3fc7fe
aas
cmp al, 0xf2
xchg dword [ecx], edi
aas
aas
aas
test dword [edi], edx
aas
aas
aas
enter 0x3cdd, 0xfffffffffffffff7
mov ah, 0xbe
xor edi, dword [edi]
aas
aas
cmp al, 0xfa
mov dl, 0x5b
sbb eax, ebx
mov dh, 0x3b
sbb ebp, dword [edi + 0x57]
fist dword [edx - 0x42a8c0cf]
loopne 0x10398e1b
aas
adc ebx, dword ds:[ebx]
push edi
invalid
sal dword [edx + edi*4 + 0x3f3f3f37], cl
mov ah, 0xaa
xor edi, dword [edi]
aas
aas
mov ah, 0xb2
das
aas
aas
aas
invalid
Function at 0x4017b0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4018a0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4018a0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x401804
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x40180b
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
mov ecx, esi
cmp edi, ebp
jb 0x4017e0
jmp 0x40180d
mov esi, 0x1505
jmp 0x40180d
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x4018a0
mov eax, edi
not eax
and eax, 1
mov ebx, edi
and ebx, 0xfffffffe
sub ebx, eax
and ebx, esi
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401844
inc ebx
dec edi
je 0x40189e
mov eax, ebx
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40189e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401840
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.004084c0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401840
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.004084e0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401840
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4018a0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402640
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4027f6
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4027ef
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x4026d5
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0x4027ef
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 8], esi
jb 0x402755
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + edx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 3]
mov edi, eax
and edi, esi
xor eax, esi
lea eax, [eax + edi*2]
add ecx, eax
movzx esi, byte [ebp + edx + 4]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 5]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 6]
add esi, eax
add ecx, esi
movzx edi, byte [ebp + edx + 7]
add edi, esi
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x4026f0
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ebx
sub eax, edx
jae 0x40269d
mov dword [esp + 0xc], eax
mov eax, edx
and eax, 3
mov dword [esp + 4], ebx
je 0x4027a0
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x402780
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402690
jmp 0x4027af
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402690
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x4027c0
jmp 0x402690
shl ecx, 0x10
or ecx, edi
jmp 0x4027fb
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402810
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402873
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x402875
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
mov ebp, dword [eax*4 + 0x44280c]
mov eax, ebp
and eax, ebx
add eax, eax
add ebx, ebp
mov ebp, ebx
sub ebp, eax
mov eax, ebp
shr eax, 4
shr edi, 4
and ebx, 1
and ebp, 0xe
or ebp, ebx
xor ebp, edi
xor eax, dword [ebp*4 + 0x44280c]
inc esi
cmp edx, esi
jne 0x402830
not eax
jmp 0x402875
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408210
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov ebx, dword [edx + 8]
mov esi, 1
cmp ebx, eax
jae 0x40827c
mov edi, edx
cmp dword [esp + 0x18], 0
je 0x40825e
cmp ebx, 1
adc ebx, 0
cmp ebx, eax
jae 0x408260
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
and edx, 0xfffffffd
mov ebp, ebx
and ebp, 2
or ebx, 2
imul ebx, ebp
xor ebp, 2
imul ebp, edx
add ebx, ebp
cmp ebx, eax
jb 0x408240
jmp 0x408260
mov ebx, eax
push ebx
push dword [edi + 0xc]
push dword [edi]
push dword [ecx + 0x34]
call dword [ecx + 0x30]
add esp, 0x10
test eax, eax
je 0x40827a
mov dword [edi], eax
mov dword [edi + 8], ebx
jmp 0x40827c
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push esi
mov edx, dword [esp + 8]
mov dword [0x44a654], edx
mov eax, 0xfffffd92
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x26f
mov dword [eax*4 + 0x44b010], edx
test eax, eax
je 0x408baf
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x270
mov dword [eax*4 + 0x44b014], edx
add eax, 2
jmp 0x408b30
mov dword [0x44a650], 0x270
pop esi
ret

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

Disassembly:
push esi
mov eax, dword [0x44a650]
cmp eax, 0x270
jne 0x408c2b
mov eax, 0xfffff640
mov edx, dword [0x44a654]
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
xor ecx, 0x7fffffff
or edx, 0x80000000
and edx, ecx
mov ecx, dword [eax + 0x44b018]
mov esi, ecx
and esi, 0x7fffffff
or esi, edx
mov edx, esi
shr edx, 1
and esi, 1
neg esi
and esi, 0x9908b0df
xor edx, dword [eax + 0x44b648]
xor edx, esi
mov dword [eax + 0x44b9d4], edx
mov edx, ecx
add eax, 4
jne 0x408be0
mov eax, 0x270
jmp 0x408c41
cmp eax, 0x4e0
jb 0x408c41
mov ecx, 0x44a650
call fcn.00408e70
mov eax, dword [0x44a650]
lea ecx, [eax + 1]
mov dword [0x44a650], ecx
mov eax, dword [eax*4 + 0x44a654]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [0x44b9d4]
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor eax, ecx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
mov edx, ecx
and edx, eax
add ecx, eax
add edx, edx
sub ecx, edx
shr ecx, 0x12
and eax, 0x7fff
xor eax, ecx
pop esi
ret
Function at 0x408c90
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x214
call fcn.0043c630
test al, al
je 0x408e62
lea eax, [esp + 0xc]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00435bf0
test al, al
je 0x408e5d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x944e533a
mov esi, 0x7943f414
mov ecx, ebx
shrd esi, edx, cl
mov dword [esp + 8], eax
mov ebp, 0x944e533a
sar ebp, cl
test bl, 0x20
je 0x408cf9
sar edx, 0x1f
mov esi, ebp
mov ebp, edx
mov ecx, esi
xor ecx, 0x7943f414
mov ebx, ebp
xor ebx, 0x944e533a
mov eax, esi
and eax, 0xea4a72fd
mov edi, ebp
and edi, 0x6259e5c8
xor eax, 0x68427014
xor edi, 0x484108
add eax, 0x15b58d03
adc edi, 0x1da61a37
xor esi, 0x930986e9
xor ebp, 0x7617b6f2
and esi, ecx
and ebp, ebx
imul ebp, eax
mul esi
mov dword [esp], eax
add edx, ebp
imul esi, edi
add esi, edx
mov edi, ecx
and edi, 0xea4a72fd
mov edx, ebx
and edx, 0x6259e5c8
or ecx, 0xea4a72fd
mov eax, ecx
imul ecx, edx
mul edi
add ecx, edx
or ebx, 0xe259e5c8
imul ebx, edi
add ebx, ecx
sub eax, dword [esp]
sbb ebx, esi
mov edi, ebx
shr edi, 0x15
xor edi, ebx
mov esi, ebx
shld esi, eax, 0xb
xor esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x408e0f
mov eax, esi
and eax, 0x4dceba02
mov dword [esp + 4], eax
mov ebx, edi
and ebx, 0xb7e3fe04
xor eax, 0x4dceba02
mov ebp, esi
and ebp, 0xb23145fd
mov ecx, edi
and ecx, 0x481c01fb
imul ecx, eax
mul ebp
mov dword [esp], eax
or esi, 0x4dceba02
mov eax, esi
imul esi, ebx
xor ebx, 0xb7e3fe04
imul ebp, ebx
add ebp, edx
mov ebx, dword [esp + 4]
mul ebx
add ebp, ecx
add esi, edx
or edi, 0xb7e3fe04
imul edi, ebx
add edi, esi
add eax, dword [esp]
adc edi, ebp
mov esi, eax
mov ecx, dword [esp + 8]
shrd esi, edi, cl
mov edx, edi
shr edx, cl
test cl, 0x20
je 0x408e0b
mov esi, edx
xor edx, edx
xor edi, edx
xor esi, eax
mov ecx, esi
not ecx
mov eax, edi
not eax
xor esi, 0x1010101
mov edx, edi
xor edx, 0x1010101
or eax, 0xfefefefe
or ecx, 0xfefefefe
lea ebx, [ecx + ecx]
add edi, edi
and edi, 0x2020202
not ebx
add ebx, ecx
adc edi, eax
or edi, edx
or ebx, esi
push edi
push ebx
call fcn.00409ff0
add esp, 8
test al, al
je 0x408e5d
call fcn.0040cfe0
call fcn.0040b9e0
call fcn.0043dcd0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408e70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [ecx + 0x9c4]
mov eax, 0x3fe
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 - 0x630]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4]
xor edi, edx
mov dword [ecx + eax*4 - 0xff4], edi
inc eax
cmp eax, 0x4e1
jne 0x408e80
mov esi, dword [ecx + 0xd50]
mov eax, 0xe4
mov edx, 0x1c6
nop
nop
nop
nop
nop
nop
lea ebx, [eax - 1]
mov edi, dword [ecx + eax*4 + 0x9c4]
xor ebx, 0x3ffffd8f
mov ebp, edx
and ebp, 0x31e
add ebp, ebx
mov ebx, edi
and ebx, 1
neg ebx
and ebx, 0x9908b0df
xor ebx, dword [ecx + ebp*4 + 0x63c]
mov ebp, edi
and esi, 0x80000000
and ebp, 0x7ffffffe
or ebp, esi
shr ebp, 1
xor ebx, ebp
mov dword [ecx + eax*4], ebx
mov esi, edi
inc eax
add edx, 2
cmp eax, 0x270
jne 0x408ed0
mov esi, 0x80000000
and esi, dword [ecx + 0x1380]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x7ffffffe
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
mov dword [ecx], 0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x44ba30]
mov dword [esp + 0x1a8], 0x97966198
mov dword [esp + 0x1ac], 0
mov ecx, 0x66
mov edx, 0x99
nop
movzx ebx, byte [esp + ecx + 0x142]
mov esi, ecx
or esi, ebx
not ebx
or ebx, edx
and ebx, esi
add bl, 2
mov byte [esp + ecx + 0x142], bl
inc ecx
dec edx
cmp ecx, 0x6e
jne 0x40a020
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x18], 0xb7298913
mov dword [esp + 0x1c], 0xb351b56a
mov dword [esp + 0x20], 0xbf60b16f
mov dword [esp + 0x24], 0xbb56bd6e
mov dword [esp + 0x28], 0xa732b92c
mov dword [esp + 0x2c], 0xa5a4
xor edx, edx
nop
nop
nop
nop
mov ebx, edx
add bl, 0xde
xor bl, byte [esp + edx + 0x18]
add bl, 0xaa
mov byte [esp + edx + 0x18], bl
mov esi, edx
xor esi, 1
and edx, 1
lea edx, [esi + edx*2]
add edx, 0x55919a1a
mov esi, edx
xor esi, 0xaa6e65e6
and edx, 0x66
lea edx, [esi + edx*2]
cmp edx, 0x18
jb case.default.0x40a0e3
lea esi, [esp + 0x18]
push ecx
push 0
push esi
call eax
mov ecx, 0x44ba34
push eax
call fcn.0043c5a0
movzx eax, al
mov eax, dword [eax*4 + 0x4459f8]
mov ecx, 0x9c53141c
xor ecx, dword [0x445a00]
add ecx, eax
inc ecx
xor eax, eax
jmp ecx
inc ebp
inc esi
inc edi
inc eax
mov byte [esp + 0x20], 0
xor ecx, ecx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + esi + 0x1c]
mov edx, ecx
and edx, 2
mov ebx, esi
xor ebx, 0xa8086811
add ebx, edx
mov edx, ebx
and edx, eax
mov ebp, edx
and ebp, 0x1d
mov edi, edx
or edi, 0xfd
inc edi
imul edi, ebp
mov ebp, edx
and ebp, 2
or edx, 2
imul edx, ebp
sub edi, edx
add ebx, eax
add ebx, edi
add bl, 0xab
mov byte [esp + esi + 0x1c], bl
inc esi
add ecx, 2
cmp esi, 5
jne 0x428010
mov eax, dword [0x44cd58]
test eax, eax
mov ebx, dword [esp + 8]
je 0x4280b0
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov esi, dword [0x44cd5c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x1b6183f2
je 0x42809a
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, eax
jb 0x428080
jmp 0x4280b0
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
jne 0x4280d4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [esp + 0xc]
jmp dword [0x447cb0]
push dword [esp + 0x38]
push 4
push eax
push dword [0x44cd60]
call fcn.0043dda0
add esp, 0x10
mov edi, dword [esp + 0xc]
jmp dword [0x447cb0]
Function at 0x40b380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x150
mov esi, esp
mov eax, dword [ebp + 8]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0x3c
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
mov edx, 0xfffffffe
mov ecx, dword [0x44ba0c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + edx + 2], 0
lea edx, [edx + 2]
jne case.default.0x40b42e
sar edx, 1
lea edi, [esi + 0x24]
push edi
push 0
push edx
push eax
call ecx
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x445c60]
xor eax, eax
jmp 0x40b9d8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret