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

Disassembly:
add esp, 4
sub ecx, 0x7b47
xor ecx, 0x3913
pop ecx
mov dword [ebp - 0x108], 0
push ebx
jmp 0x4ca718
pop ebx
push ebx
push edx
add esp, 4
sub ebx, 0x3167
add ebx, 0x14429
jmp 0x4ca731
call fcn.004ca73f
add byte [esp + edi], dh
dec eax
dec edi
xor al, 0x38
cmp esi, dword [0x5b04c483]
add esp, 4
pop ebx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
jne 0x4ca798
push edx
add edx, 0x5818
pop edx
push edi
push ebx
add esp, 4
or edi, 0x16470
call 0x4ca775
add byte [edx + 0x33], al
inc edi
aas
xor al, 0x4a
inc esi
add esp, 4
and edi, 0x6f49
pop edi
push ebx
sub ebx, 0x16e09
pop ebx
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0xb8], ecx
jmp 0x4cac72
mov edx, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x78]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x360], eax
jne 0x4ca7bd
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0xb8], ecx
jmp 0x4cac72
push edx
push eax
add esp, 4
and edx, 0x12e14
pop edx
push ebx
push edi
add esp, 4
jmp 0x4ca7d7
add ebx, 0x439e
call 0x4ca7eb
add byte [edi], dh
inc edi
inc ebx
xor al, 0x33
aaa
inc ecx
cmp al, byte [ebx - 0x45a4fb3c]
or byte [eax], al
add byte [eax], al
imul eax, edx, 0
mov ecx, dword [ebp - 0x360]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x364], edx
cmp dword [ebp - 0x364], 0
jne 0x4ca853
push ebx
add ebx, 0x17239
add ebx, 0x644c
or ebx, 0xab83
pop ebx
push ecx
push esi
add esp, 4
xor ecx, 0xbc1c
xor ecx, 0x1670
and ecx, 0x917e
or ecx, 0xbce3
pop ecx
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xb8], eax
jmp 0x4cac72
push ecx
push edi
add esp, 4
jmp 0x4ca85f
call 0x4ca86f
add byte [ecx + 0x3c], al
aaa
dec ebp
inc eax
dec esp
dec edx
inc ebp
add esp, 4
xor ecx, 0x13f06
pop ecx
push edx
push esi
add esp, 4
sub edx, 0x17d59
pop edx
mov ecx, dword [ebp - 0x78]
add ecx, dword [ebp - 0x364]
mov dword [ebp - 0xe4], ecx
jne 0x4ca8d9
push edx
push ebx
add esp, 4
call 0x4ca8a8
add byte [0x36464f4f], dh
cmp eax, 0x4c48348
and edx, 0x16981
pop edx
push ecx
jmp 0x4ca8bb
or ecx, 0x61c4
sub ecx, 0x3d9
pop ecx
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0xb8], edx
jmp 0x4cac72
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x78]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x46c], ecx
push ecx
xor ecx, 0x15457
xor ecx, 0xee05
xor ecx, 0x5040
and ecx, 0xe614
pop ecx
push ebx
push ecx
add esp, 4
add ebx, 0x16a93
add ebx, 0xc477
and ebx, 0x14d72
pop ebx
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x78]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x470], eax
push esi
and esi, 0x1518e
jmp 0x4ca93f
and esi, 0xcdd4
add esi, 0x30d5
pop esi
push edi
jmp 0x4ca954
or edi, 0x2e79
add edi, 0x9af3
pop edi
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x78]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x474], edx
mov dword [ebp - 0xe8], 0
jmp 0x4ca98e
Function at 0x4cd137
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x511270
call fcn.004bd2c8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x6e5ad8], edi
jne 0x4cd17b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4cd166
mov dword [0x6e5ad8], ebx
jmp 0x4cd17b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4cd17b
mov dword [0x6e5ad8], 2
mov eax, dword [0x6e5ad8]
cmp eax, ebx
jne 0x4cd19b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
jmp 0x4cd25e
cmp eax, 2
je 0x4cd1a4
cmp eax, edi
jne 0x4cd1cc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4cd1b7
mov eax, dword [0x6e5a70]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4cd1d3
xor eax, eax
jmp 0x4cd25e
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004bc670
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4cd206
cmp esi, edi
jne 0x4cd21c
push dword [ebp - 0x20]
call fcn.004bd4da
pop ecx
mov esi, eax
cmp esi, edi
je 0x4cd1cc
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x4cd24f
cmp dword [ebp + 0x14], edi
jne 0x4cd239
push edi
push edi
jmp 0x4cd23f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4cd25b
push esi
call fcn.004bc79f
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004bd303
ret
Function at 0x4cd267
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x511280
call fcn.004bd2c8
xor esi, esi
cmp dword [0x6e5adc], esi
jne 0x4cd2ab
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4cd296
mov dword [0x6e5adc], edi
jmp 0x4cd2ab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4cd2ab
mov dword [0x6e5adc], 2
mov eax, dword [0x6e5adc]
cmp eax, 2
je 0x4cd38c
cmp eax, esi
je 0x4cd38c
cmp eax, 1
jne 0x4cd2f0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4cd2d9
mov eax, dword [0x6e5a70]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4cd2f7
xor eax, eax
jmp 0x4cd39e
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004bc670
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4cd32d
cmp edi, esi
jne 0x4cd348
lea eax, [ebx + ebx]
push eax
call fcn.004bd4da
pop ecx
mov edi, eax
cmp edi, esi
je 0x4cd2f0
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4cd37b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4cd365
push esi
push esi
jmp 0x4cd36b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4cd387
push edi
call fcn.004bc79f
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4cd39e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004bd303
ret
Function at 0x40be70
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40c03e
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40be9b
mov eax, 0x7000000
jmp 0x40bea3
test eax, eax
je 0x40c019
mov dword [esp + 0x14], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
mov dword [ecx + 0x94], ebx
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
mov dword [ecx + 0x98], ebp
lea ecx, [ebp + ebx]
shr ecx, 6
inc ecx
mov dword [esp], ecx
call fcn.00464110
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr eax, 0x14
and eax, 0x7ff
mov edx, eax
add eax, 0xfffffc01
mov ebx, ecx
shr ecx, 0xf
and ecx, 0x1f
mov ebp, ecx
add ecx, 1
mov esi, 0
adc esi, 0
shl ebx, 5
mov edi, dword [esp + 0x28]
shr edi, 0x1b
or edi, ebx
lea ebx, [0x8a48e0]
movsd xmm0, qword [ebx + ebp*8]
test esi, esi
jne 0x40c031
cmp ecx, 0x21
jae 0x40c025
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x10], edi
add edx, 0xfffffc01
mov edx, 0xffffffff
adc edx, 0
movsd xmm0, qword [ebx + ecx*8]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045d050
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
and eax, 0xfffff
mov dword [esp], eax
call fcn.0045d120
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x73f684]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x73f754]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40bff4
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x73f7c4]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, ecx
mov ecx, 0x21
call fcn.004641f0
mov eax, ecx
mov ecx, 0x21
call fcn.004642c0
nop
call fcn.00462d50
jmp fcn.0040be70
Function at 0x415030
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415254
sub esp, 0x18
mov eax, dword [0x8fa41c]
test eax, eax
jne 0x41523d
nop
lea eax, [0x8fa408]
mov dword [esp], eax
call fcn.00409c60
mov eax, dword [0x8fa40c]
test eax, eax
je 0x415079
cmp dword [eax + 8], 0xcc
jne 0x4150ef
mov edx, dword [0x8fa400]
test edx, edx
jne 0x4150d1
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x8ff750]
mov dword [esp + 8], eax
call fcn.0040c050
mov eax, dword [esp + 0xc]
mov dword [0x8fa400], eax
mov ecx, dword [0x8fa3c4]
mov dword [eax], ecx
mov eax, dword [0x8fa400]
mov dword [0x8fa3c4], eax
movzx eax, byte [0x8fab60]
test al, al
jne 0x4150d1
xor eax, eax
jmp 0x4151e9
mov edx, dword [0x8fa400]
mov ebx, dword [edx + 4]
mov dword [0x8fa400], ebx
mov ebx, dword [0x8fa40c]
mov dword [edx + 4], ebx
mov dword [0x8fa40c], edx
mov edx, dword [0x8fa40c]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x4151d1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402180
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x8fa7e0]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x41514d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x41515a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00464160
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x8fa7e0]
test edx, edx
jne 0x415186
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x4151a7
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00464160
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00464160
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00464160
nop
lea eax, [0x8fa408]
mov dword [esp], eax
call fcn.00409e60
nop
lea eax, [0x8fa404]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00402300
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.004641f0
lea esi, [0x8fab60]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x4150d1
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x415233
lea edx, [0x89e2bc]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x4151db
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.004641e0
mov ecx, 5
call fcn.004641e0
lea eax, [0x6d695f]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.004368a0
nop
call fcn.00462d50
jmp fcn.00415030
Function at 0x428c40
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x428d5c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x428cd5
cmp cl, 2
je 0x428c7d
cmp cl, 3
jne 0x428d45
mov byte [eax + 8], 1
jmp 0x428d41
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042de70
nop
lea eax, [0x8de9b8]
mov dword [esp], eax
call fcn.00409c60
nop
mov eax, dword [0x8de984]
sub eax, dword [0x8de968]
mov dword [0x8de984], eax
mov eax, dword [0x8de974]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x8de974], ecx
nop
lea eax, [0x8de9b8]
mov dword [esp], eax
call fcn.00409e60
jmp 0x428d41
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00415030
nop
lea eax, [0x8de9b8]
mov dword [esp], eax
call fcn.00409c60
nop
mov eax, dword [0x8de95c]
sub eax, dword [0x8de940]
mov dword [0x8de95c], eax
mov eax, dword [0x8de94c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x8de94c], ecx
nop
nop
lea eax, [0x8de9b8]
mov dword [esp], eax
call fcn.00409e60
add esp, 0x14
ret
lea eax, [0x6d21e4]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.004368a0
nop
call fcn.00462d50
jmp fcn.00428c40
Function at 0x452000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x452187
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x45217d
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x45205c
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x45205c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x45206f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x452152
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x452144
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x45213b
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x4520c6
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x45210f
mov eax, 1
cmp eax, ecx
ja 0x4520fd
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.00464250
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x452136
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x452102
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x4520cb
call fcn.004641f0
xor eax, eax
mov ecx, eax
call fcn.004641e0
call fcn.00464250
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x452178
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x452149
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x452074
call fcn.004641f0
xor eax, eax
mov ecx, eax
call fcn.004641e0
nop
call fcn.00462d50
jmp fcn.00452000
Function at 0x459bc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x459c5f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.004643f7
lea ecx, [0x459c70]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.00462c40
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00462d50
jmp fcn.00459bc0
Function at 0x464010
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 [0x8fa940]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x4627db
je 0x46282e
cmp ebx, 0x20
jbe 0x462834
cmp ebx, 0x40
jbe 0x46287a
jmp 0x46291b
test ebx, ebx
je 0x462824
add eax, 0x10
test ax, 0xff0
je 0x462810
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x741fc0]
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 + 0x7421c0]
jmp 0x4627f8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x4627f8
pxor xmm1, xmmword [0x8fa950]
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 [0x8fa950]
pxor xmm2, xmmword [0x8fa960]
pxor xmm3, xmmword [0x8fa970]
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 [0x8fa950]
pxor xmm2, xmmword [0x8fa960]
pxor xmm3, xmmword [0x8fa970]
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 0x46297a
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 [0x8fa379], 0
je 0x46402a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x4627a0
jmp fcn.004085a0
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4019a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x406054]
test esi, esi
jle 0x401aed
mov edi, dword [0x406058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401a34
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401ae6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401a20
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401b2a
lea ebx, [esi + esi*2]
mov esi, dword [0x406058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x406058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b0a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401adf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401adf
mov eax, dword [esp + 0x20]
add ebx, dword [0x406058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401af4
add dword [0x406054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401a3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x406058]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x401ff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402045
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40203e
test esi, esi
je 0x40203e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402020
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402260
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402298
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40228e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40229a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402280
xor eax, eax
pop ebx
pop esi
ret

Function at 0x402a40
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
push ebx
mov esi, eax
sub esp, 0x2e4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x402a70
add esp, 0x2e4
mov eax, 0xffffffff
pop ebx
pop esi
ret
lea eax, [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x14], 0x10003
mov ebx, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
cmovne ebx, dword [esp + 0xcc]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
add esp, 0x2e4
mov eax, ebx
pop ebx
pop esi
ret