joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x5fcebc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x463cc3
sub esp, 0x24
mov eax, dword [esp + 0x28]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp + 0x20], ecx
nop
mov dword [esp], ecx
call fcn.0040ab20
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax + 0x1c]
test cl, cl
jne 0x463cac
mov byte [eax + 0x1c], 1
inc dword [eax + 0x24]
inc dword [eax + 0x60]
mov dword [esp], eax
call fcn.00433490
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], 0x72
mov byte [esp + 8], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], ecx
call fcn.00433b70
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], 0x77
mov byte [esp + 8], 0
lea edx, [esp + 0x14]
mov dword [esp + 0xc], edx
call fcn.00433b70
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x463c18
lea ecx, [eax + 0x28]
mov dword [esp], ecx
call fcn.00454a50
mov eax, dword [0x5fcf70]
test eax, eax
jne 0x463bff
mov eax, dword [esp + 0x28]
jmp 0x463c0d
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
call fcn.00466f40
mov dword [edi], ecx
mov dword [eax + 0x3c], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x463c4f
lea ecx, [eax + 0x64]
mov dword [esp], ecx
call fcn.00454a50
mov eax, dword [0x5fcf70]
test eax, eax
jne 0x463c3a
mov eax, dword [esp + 0x28]
jmp 0x463c48
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x78]
call fcn.00466f40
mov dword [edi], ecx
mov dword [eax + 0x78], 0
nop
nop
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040ad40
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x463c75
mov dword [esp], eax
mov dword [esp + 4], 3
call fcn.00433970
mov eax, dword [esp + 0x18]
test eax, eax
je 0x463c8d
mov dword [esp], eax
mov dword [esp + 4], 3
call fcn.00433970
mov eax, dword [esp + 0x14]
test eax, eax
je 0x463ca8
nop
lea ecx, [0x5fce1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00402c10
add esp, 0x24
ret
lea eax, [0x4da169]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.00438390
nop
call fcn.00465b40
jmp fcn.00463b30
Function at 0x466df0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x5fd0c0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x46557b
je 0x4655ce
cmp ebx, 0x20
jbe 0x4655d4
cmp ebx, 0x40
jbe 0x46561a
jmp 0x4656bb
test ebx, ebx
je 0x4655c4
add eax, 0x10
test ax, 0xff0
je 0x4655b0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4f98c0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x4f99c0]
jmp 0x465598
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x465598
pxor xmm1, xmmword [0x5fd0d0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x5fd0d0]
pxor xmm2, xmmword [0x5fd0e0]
pxor xmm3, xmmword [0x5fd0f0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x5fd0d0]
pxor xmm2, xmmword [0x5fd0e0]
pxor xmm3, xmmword [0x5fd0f0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x46571a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x5fcda6], 0
je 0x466e0a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x465540
jmp fcn.004091e0
Function at 0x466e10
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [0x5fcebc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x403bdc
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004091e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.00465b40
jmp 0x403ba0
cmp byte [0x5fcda6], 0
je 0x466e2b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x465540
jmp 0x403ba0

Function at 0x467cb0
Capabilities:
Allocate thread local storage

Disassembly:
mov ebp, esp
mov eax, dword [sym.imp.kernel32.dll_TlsAlloc]
call eax
mov esp, ebp
mov ecx, eax
cmp ecx, 0x40
jb 0x467cca
mov ecx, 0x14
jmp 0x467cd3
shl ecx, 2
add ecx, 0xe10
mov dword [0x5fcebc], ecx
ret
Function at 0x4981f0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x5fcebc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4983da
sub esp, 0x48
mov eax, dword [0x5ba390]
mov ecx, dword [esp + 0x50]
movzx edx, word [ecx + 2]
movzx ebx, word [ecx + 8]
movzx ebp, word [ecx + 0xa]
movzx esi, word [ecx + 0xc]
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call fcn.00494900
lea edi, [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.0046763e
lea edi, [esp]
lea esi, [esp + 0x34]
call fcn.0046763e
call fcn.00493ed0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x15180
mov dword [esp], eax
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x93a80
mov dword [esp + 0xc], 0
call fcn.004604a0
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
mov eax, ebp
sar ebp, 0x1f
add eax, edx
sar eax, 0x10
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x4982c7
add ecx, 7
movzx edx, word [ebx + 6]
lea ebp, [edx - 1]
cmp ebp, 4
jge 0x4982e1
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*2]
lea ecx, [ecx + edx - 6]
mov edx, ecx
jmp 0x498358
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x49832e
mov edx, dword [esp + 0x4c]
test edx, 3
jne 0x49832a
mov ebx, edx
sar edx, 0x1f
mov ebp, eax
mov eax, 0x51eb851f
mov esi, edx
imul ebx
mov edi, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
cmp ebx, edx
jne 0x498323
sar edi, 7
sub edi, esi
imul edx, edi, 0x190
cmp ebx, edx
jne 0x498330
mov ebx, 0x1d
jmp 0x49834e
mov ebp, eax
jmp 0x498330
mov ebp, eax
cmp ebp, 0xd
jae 0x4983cd
lea eax, [ebp - 1]
lea edx, [0x574620]
mov ebx, dword [edx + ebp*4]
cmp eax, 0xd
jae 0x4983c3
sub ebx, dword [edx + ebp*4 - 4]
lea edx, [ecx + 0x1d]
cmp ebx, edx
jge 0x498358
lea edx, [ecx + 0x16]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x49838a
mov ebx, dword [esp + 0x34]
shl ecx, 1
mov ebp, ebx
shl ebx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
shl ebp, 1
shr ecx, 0x1f
shr ebx, 0x1f
or ebp, ebx
add ebp, 0xd7b17f80
adc ecx, 0xd
jmp 0x498392
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
mov edx, eax
sar edx, 0x1f
mov ebx, 0x15180
mov esi, edx
mul ebx
imul ebx, esi, 0x15180
add edx, ebx
add eax, ebp
adc edx, ecx
add eax, 0x886e0900
mov dword [esp + 0x54], eax
adc edx, 0xfffffff1
mov dword [esp + 0x58], edx
add esp, 0x48
ret
mov ecx, 0xd
call fcn.00466fc0
mov eax, ebp
mov ecx, 0xd
call fcn.00466fc0
nop
call fcn.00465b40
jmp fcn.004981f0
Function at 0x4a9220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x5fcebc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a931a
sub esp, 0x20
mov ecx, dword [esp + 0x24]
test byte [ecx], al
mov edx, dword [esp + 0x28]
mov ebx, edx
and edx, 0x7f
shl edx, 5
add ecx, edx
mov dword [esp + 0x1c], ecx
xor eax, eax
jmp 0x4a9260
mov ebp, dword [esp + 0x14]
inc ebp
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov eax, ebp
cmp eax, 4
jge 0x4a9299
mov dword [esp + 0x14], eax
lea edx, [ecx + eax*8]
mov dword [esp], edx
call fcn.0046b3e0
mov eax, dword [esp + 0x28]
cmp dword [esp + 4], eax
sete cl
mov edx, dword [esp + 0x2c]
cmp dword [esp + 8], edx
sete bl
and ebx, ecx
test bl, bl
je 0x4a9253
mov byte [esp + 0x30], 1
add esp, 0x20
ret
xor eax, eax
mov edx, 0x84222325
jmp 0x4a92a3
inc eax
cmp eax, 4
jge 0x4a92b9
mov dword [esp + 0x18], eax
lea ebp, [ecx + eax*8]
mov esi, dword [ebp]
mov ebp, dword [ebp + 4]
xor edi, edi
jmp 0x4a9313
and edx, 3
lea eax, [ecx + edx*8]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0046b420
mov byte [esp + 0x30], 0
add esp, 0x20
ret
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
and esi, 0xff
xor edx, esi
mov esi, dword [esp + 0xc]
shr esi, 8
shl ebp, 0x18
mov eax, edx
mov ebx, 0x1b3
mul ebx
inc edi
or esi, ebp
mov ebp, dword [esp + 0x10]
shr ebp, 8
mov ebx, dword [esp + 0x28]
mov edx, eax
mov eax, dword [esp + 0x18]
cmp edi, 8
jl 0x4a92dc
jmp 0x4a92a2
call fcn.00465b40
jmp fcn.004a9220
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40288e
pop dword [ebp - 0x30]
mov eax, 0x40288e
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xea070ce0
add dword [ebp - 0x40], 0x644b386b
mov dword [ebp - 0x3c], 0x366d7118
add dword [ebp - 0x3c], 0xfbc5db2d
mov dword [ebp - 0x38], 0xa45d4a97
add dword [ebp - 0x38], 0xa7eef997
mov dword [ebp - 0x34], 0xa23a8d3c
sub dword [ebp - 0x34], 0xa23a8d3c
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x3c284325
add dword [ebp - 0x40], 0x384a2631
mov dword [ebp - 0x3c], 0x5bbbad6a
sub dword [ebp - 0x3c], 0x1a4f4bf5
mov dword [ebp - 0x38], 0x9ab9bd0e
sub dword [ebp - 0x38], 0x374a50a2
mov dword [ebp - 0x34], 0xe532c47c
add dword [ebp - 0x34], 0x1acd3b84
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x9daf2351
add eax, 0x62915d83
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x370de
push 0
call eax
mov ecx, 0x80128346
add ecx, 0x7fedc68f
mov esi, eax
mov edx, 0x9266ada2
sub edx, 0x92259da2
add edx, dword [ebp - 0x30]
mov ebx, 0x6b8afd8a
add ebx, 0x9a2e9a54
xor dword [ebp - 0x2c], 0xb5c4b471
mov edi, dword [edx]
mov dword [ebp - 0x20], 0x62a7ee28
sub edi, ebx
add dword [ebp - 4], ebx
mov dword [esi], edi
sub dword [ebp - 0xc], 0x93edb516
add esi, 0xdaeeb5bc
add esi, 0x25114a48
add edx, 0xc82883e4
add edx, 0x37d77c20
loop 0x4029a6
add eax, 0x11a27
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10011be
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x1002018]
push 0x104
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x174], ecx
push 1
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ecx
push eax
call fcn.01001149
cmp eax, 1
jl 0x100129e
push ebx
xor ebx, ebx
cmp byte [ebp - 0x160], bl
push esi
lea esi, [ebp - 0x160]
je 0x1001238
cmp byte [esi], 0x3a
je 0x100121b
inc esi
cmp byte [esi], bl
jne 0x100120f
jmp 0x100121e
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x1001238
push 0x10010ac
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100123e
lea esi, [ebp - 0x160]
push 0x29
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100129c
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x100129c
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x100129c
push ebx
lea eax, [ebp - 0x170]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.01001324
leave
ret 0x10

Function at 0x404b33
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4016c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x2c
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4011c8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0x402d04
call fcn.00404c1c
mov dword [ebp - 4], 4
mov eax, dword [ebp + 0x10]
cmp word [eax], 0xffff
jne 0x404bb5
mov dword [ebp - 4], 5
mov dword [ebp - 0x24], 0x1d
jmp 0x404bc0
mov dword [ebp - 4], 7
and dword [ebp - 0x24], 0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x38], eax
push 4
push dword [ebp - 0x38]
push 0x1d
xor eax, eax
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
push eax
call fcn.0040307c
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x404bfe
jmp 0x404bfd
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414df3
Capabilities:
Encode data using xor

Disassembly:
xor dword [esi], ecx
add esi, 4
cmp esi, eax
jne fcn.00414df3
ret
Function at 0x40107e
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x42f6f8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [0x42f6fc]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], 0x9e3779b9
call fcn.00401077
mov eax, dword [0x42f700]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x42f704]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x43e95c], 0xc
mov dword [ebp - 4], eax
jne 0x401103
push edx
lea eax, [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x438]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x43e95c]
cmp eax, 0xfa9
jne 0x40111f
mov dword [0x43e958], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401135
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x43e8ac], 0
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [0x43e954], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x4010d3
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x4078bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ec70]
jne 0x4078c9
repz ret
jmp fcn.0040c1f9

Function at 0x40a71a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004039ac
and dword [ebp - 4], 0
cmp dword [0x43393c], 0
mov ebx, eax
jne 0x40a7cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a87c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a87c
push eax
call fcn.0040393a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43393c], eax
call esi
push eax
call fcn.0040393a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433940], eax
call esi
push eax
call fcn.0040393a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433944], eax
call esi
push eax
call fcn.0040393a
pop ecx
mov dword [0x43394c], eax
test eax, eax
je 0x40a7cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040393a
pop ecx
mov dword [0x433948], eax
mov eax, dword [0x433948]
cmp eax, ebx
je 0x40a823
cmp dword [0x43394c], ebx
je 0x40a823
push eax
call fcn.004039b5
push dword [0x43394c]
mov esi, eax
call fcn.004039b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a823
test edi, edi
je 0x40a823
call esi
test eax, eax
je 0x40a81a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a81a
test byte [ebp - 0xc], 1
jne 0x40a823
or dword [ebp + 0x10], 0x200000
jmp 0x40a85c
mov eax, dword [0x433940]
cmp eax, ebx
je 0x40a85c
push eax
call fcn.004039b5
pop ecx
test eax, eax
je 0x40a85c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a85c
mov eax, dword [0x433944]
cmp eax, ebx
je 0x40a85c
push eax
call fcn.004039b5
pop ecx
test eax, eax
je 0x40a85c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43393c]
call fcn.004039b5
pop ecx
test eax, eax
je 0x40a87c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a87e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10030e00
Capabilities:
Encode data using xor

Disassembly:
fnsave dword [ecx - 0x5df26cf2]
dec ebp
inc edi
sub esp, dword [ecx + 0x7ec812ac]
mov ecx, 0x7a695f82
pop edx
and dword [ecx - 0x1065c45e], edi
stc
dec esp
xchg ebp, eax
aas
xor eax, 0x1c917bc3
aaa
sbb al, 0xf3
aaa
inc ebx
push ds
inc ebp
lcall 0x18c, 0x170106d3
invalid
test edi, edi
jo sym.Main.dll__vprintf_l
pop es
arpl word [esi + 0x17fdf500], di
sal byte [edi], cl
outsb dx, byte [esi]
lahf
or eax, 0x78cb5e88
cmp bl, byte cs:[eax]
jl 0x10030e58
ja 0x10030df3
invalid
push edi
out 0x88, eax
invalid
and al, 0x95
pop ss
dec edi
dec edi