joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aff0
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b1be
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40b01b
mov eax, 0x7000000
jmp 0x40b023
test eax, eax
je 0x40b199
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.00452af0
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, [0x4c0640]
movsd xmm0, qword [ebx + ebp*8]
test esi, esi
jne 0x40b1b1
cmp ecx, 0x21
jae 0x40b1a5
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.0044d900
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.0044d9d0
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 [0x51dd6c]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x51ddc4]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40b174
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x51de0c]
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.00452bd0
mov eax, ecx
mov ecx, 0x21
call fcn.00452cb0
nop
call fcn.00451710
jmp fcn.0040aff0
Function at 0x412560
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x412784
sub esp, 0x18
mov eax, dword [0x5af7e8]
test eax, eax
jne 0x41276d
nop
lea eax, [0x5af7d4]
mov dword [esp], eax
call fcn.00409100
mov eax, dword [0x5af7d8]
test eax, eax
je 0x4125a9
cmp dword [eax + 8], 0xcc
jne 0x41261f
mov edx, dword [0x5af7cc]
test edx, edx
jne 0x412601
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x5b2050]
mov dword [esp + 8], eax
call fcn.0040b1d0
mov eax, dword [esp + 0xc]
mov dword [0x5af7cc], eax
mov ecx, dword [0x5af790]
mov dword [eax], ecx
mov eax, dword [0x5af7cc]
mov dword [0x5af790], eax
movzx eax, byte [0x5afcc0]
test al, al
jne 0x412601
xor eax, eax
jmp 0x412719
mov edx, dword [0x5af7cc]
mov ebx, dword [edx + 4]
mov dword [0x5af7cc], ebx
mov ebx, dword [0x5af7d8]
mov dword [edx + 4], ebx
mov dword [0x5af7d8], edx
mov edx, dword [0x5af7d8]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x412701
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.00402870
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x5af9a0]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x41267d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x41268a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00452b40
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x5af9a0]
test edx, edx
jne 0x4126b6
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 0x4126d7
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00452b40
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00452b40
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00452b40
nop
lea eax, [0x5af7d4]
mov dword [esp], eax
call fcn.00409300
nop
lea eax, [0x5af7d0]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.004029f0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.00452bd0
lea esi, [0x5afcc0]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x412601
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 0x412763
lea edx, [0x4bc0b8]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x41270b
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.00452bc0
mov ecx, 5
call fcn.00452bc0
lea eax, [0x4ff190]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.0042f840
nop
call fcn.00451710
jmp fcn.00412560
Function at 0x41a320
Capabilities:
Hash data using murmur3

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41a54e
sub esp, 0x20
mov eax, dword [esp + 0x24]
test eax, 3
jne 0x41a537
mov edx, dword [esp + 0x30]
mov ebx, dword [edx + 0x2c]
test byte [ebx], al
nop
movzx ebp, byte [0x5af74d]
mov ecx, dword [esp + 0x38]
mov esi, ecx
shr ecx, 3
mov dword [esp + 0x1c], ecx
mov edi, esi
and esi, 7
mov ecx, esi
mov eax, 1
shl eax, cl
mov esi, dword [esp + 0x1c]
mov ecx, eax
lea eax, [ebx + esi]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x41a448
mov ebp, dword [0x5afb2c]
test ebp, ebp
jle 0x41a3ac
cmp dword [edx + 0x58], edi
ja 0x41a3ac
mov ebp, dword [edx + 0x28]
test byte [ebp], al
movzx ebp, byte [ebp + esi]
nop
xchg ebp, eax
test cl, al
xchg ebp, eax
je 0x41a4be
movzx ebx, byte [esi + ebx]
test cl, bl
jne 0x41a444
nop
mov dword [esp], eax
mov byte [esp + 4], cl
call fcn.004029c0
mov eax, dword [0x58f87c]
test byte [eax], al
nop
nop
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0xc]
nop
mov ebx, edx
shr edx, 0x16
mov edx, dword [eax + edx*4]
test byte [edx], al
mov ebp, ebx
shr ebx, 0x10
and ebx, 0x3f
movzx esi, byte [edx + ebx + 0x21840]
lea edx, [edx + ebx + 0x21840]
shr ebp, 0xd
and ebp, 7
mov eax, ecx
mov ecx, ebp
mov ebx, 1
shl ebx, cl
xchg esi, eax
test bl, al
xchg esi, eax
jne 0x41a41f
mov dword [esp], edx
mov byte [esp + 4], bl
call fcn.004029c0
mov eax, dword [esp + 0x30]
movzx edx, byte [eax + 0x3a]
test dl, 1
je 0x41a479
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov eax, dword [eax + 0x40]
add edx, eax
adc ebx, 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], ebx
add esp, 0x20
ret
add esp, 0x20
ret
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov ebx, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], cl
mov dword [esp + 0x14], edi
call fcn.00411ef0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x41a4b0
mov edx, dword [esp + 0x34]
mov ebx, dword [edx]
test ebx, ebx
je 0x41a49c
mov eax, dword [ebx + 0xc]
cmp eax, 0x1fc
je 0x41a49c
jae 0x41a4b4
mov ecx, dword [esp + 0x24]
mov dword [ebx + eax*4 + 0x10], ecx
inc dword [ebx + 0xc]
jmp 0x41a4ac
mov dword [esp], edx
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00420730
add esp, 0x20
ret
add esp, 0x20
ret
mov ecx, 0x1fc
call fcn.00452bc0
lea eax, [0x4fa575]
mov dword [esp], eax
mov dword [esp + 4], 4
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
call fcn.0041a560
lea eax, [0x4fa4d6]
mov dword [esp], eax
mov dword [esp + 4], 3
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xffffffff
call fcn.0041a560
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x9d], 2
lea eax, [0x4fd3b4]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.0042f840
lea eax, [0x50201a]
mov dword [esp], eax
mov dword [esp + 4], 0x23
call fcn.0042f840
nop
call fcn.00451710
jmp fcn.0041a320
Function at 0x4495b0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4496b0
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.00449e40
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x4e4a80]
mov dword [esp], ecx
call fcn.0040ae80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax], ecx
lea ecx, [0x593e30]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00448e80
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov byte [esp], 0xd
mov dword [esp + 4], 2
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004482a0
add esp, 0x28
ret
call fcn.00451710
jmp fcn.004495b0

Function at 0x44b2b0
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 0x44b34f
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.00452d67
lea ecx, [0x44b360]
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.00451600
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00451710
jmp fcn.0044b2b0
Function at 0x4529d0
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 [0x5afaa0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x4511bb
je 0x45120e
cmp ebx, 0x20
jbe 0x451214
cmp ebx, 0x40
jbe 0x45125a
jmp 0x4512fb
test ebx, ebx
je 0x451204
add eax, 0x10
test ax, 0xff0
je 0x4511f0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x51e980]
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 + 0x51ea80]
jmp 0x4511d8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x4511d8
pxor xmm1, xmmword [0x5afab0]
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 [0x5afab0]
pxor xmm2, xmmword [0x5afac0]
pxor xmm3, xmmword [0x5afad0]
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 [0x5afab0]
pxor xmm2, xmmword [0x5afac0]
pxor xmm3, xmmword [0x5afad0]
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 0x45135a
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 [0x5af74c], 0
je 0x4529ea
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x451180
jmp fcn.00407ae0
Function at 0x4907e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x490951
sub esp, 0x68
lea eax, [0x4e6b40]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
shr eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0043f8f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x70]
mov edx, ecx
xor ebx, ebx
xor ebp, ebp
jmp 0x490830
add ebx, 2
cmp edx, ebx
jle 0x490921
cmp ecx, 1
je 0x49082d
cmp edx, ebx
jbe 0x490947
mov dword [esp + 0x24], ebp
mov esi, dword [esp + 0x6c]
movzx edi, byte [esi + ebx]
lea ebp, [ebx + 1]
cmp edx, ebp
jbe 0x49093e
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ecx
movzx eax, byte [ebx + esi + 1]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call fcn.00442cf0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 8], 0
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
call fcn.00442cf0
lea eax, [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.00442640
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 0x20
call fcn.00466d00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jae 0x490935
mov ebx, dword [esp + 0x64]
mov byte [ebx + ecx], al
lea ebp, [ecx + 1]
mov esi, dword [esp + 0x20]
lea ecx, [esi - 2]
mov eax, ebx
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x28]
jmp 0x49082d
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
add esp, 0x68
ret
mov eax, ecx
mov ecx, edx
call fcn.00452bc0
mov eax, ebp
mov ecx, edx
call fcn.00452bc0
mov eax, ebx
mov ecx, edx
call fcn.00452bc0
nop
call fcn.00451710
jmp fcn.004907e0
Function at 0x4a9e50
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a9fc3
movzx eax, byte [esp + 4]
lea ecx, [eax - 0x61]
cmp cl, 0x19
jbe 0x4a9e83
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x4a9e83
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x4a9e89
mov byte [esp + 0xc], 0
ret
mov ecx, dword [esp + 8]
cmp ecx, 3
je 0x4a9e97
cmp ecx, 4
jne 0x4a9ec8
cmp al, 0x2c
ja 0x4a9eb0
lea edx, [eax - 0x21]
cmp dl, 1
jbe 0x4a9ec2
cmp al, 0x24
je 0x4a9ec2
cmp al, 0x26
jae 0x4a9ec2
jmp 0x4a9ec8
lea edx, [eax - 0x3a]
cmp dl, 4
jbe 0x4a9ec2
cmp al, 0x5b
je 0x4a9ec2
cmp al, 0x5d
jne 0x4a9ec8
mov byte [esp + 0xc], 0
ret
cmp al, 0x2f
ja 0x4a9eff
cmp al, 0x26
ja 0x4a9ee1
cmp al, 0x24
je 0x4a9f1e
cmp al, 0x26
je 0x4a9f1e
jmp 0x4a9fa5
lea edx, [eax - 0x2b]
cmp dl, 1
jbe 0x4a9f1e
lea edx, [eax - 0x2d]
cmp dl, 1
jbe 0x4a9f9f
cmp al, 0x2f
je 0x4a9f1e
jmp 0x4a9fa5
cmp al, 0x3d
ja 0x4a9f16
lea edx, [eax - 0x3a]
cmp dl, 1
jbe 0x4a9f1e
cmp al, 0x3d
je 0x4a9f1e
jmp 0x4a9fa5
lea edx, [eax - 0x3f]
cmp dl, 1
ja 0x4a9f95
cmp ecx, 2
jg 0x4a9f59
cmp ecx, 1
je 0x4a9f4e
cmp ecx, 2
jne 0x4a9fa5
cmp al, 0x2f
je 0x4a9f3c
cmp al, 0x3b
je 0x4a9f3c
cmp al, 0x2c
jne 0x4a9f43
mov eax, 1
jmp 0x4a9f49
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 5
jne 0x4a9f7f
cmp al, 0x40
je 0x4a9f6d
cmp al, 0x2f
je 0x4a9f6d
cmp al, 0x3f
jne 0x4a9f74
mov eax, 1
jmp 0x4a9f7a
cmp al, 0x3a
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 6
je 0x4a9f8f
cmp ecx, 7
jne 0x4a9fa5
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
cmp al, 0x5f
je 0x4a9f9f
cmp al, 0x7e
jne 0x4a9fa5
mov byte [esp + 0xc], 0
ret
cmp ecx, 7
jne 0x4a9fbd
cmp al, 0x21
je 0x4a9fb7
add eax, 0xffffffd8
cmp al, 2
ja 0x4a9fbd
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
call fcn.00451710
jmp fcn.004a9e50
Function at 0x4b41f0
Capabilities:
Create thread

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__beginthread]
cmp eax, 0xffffffff
jne 0x4b4258
call ebx
cmp dword [eax], 0xd
je 0x4b4260
call ebx
mov ebx, dword [eax]
mov dword [esp], 2
call dword [0x4d8620]
mov dword [esp + 4], str.runtime:_failed_to_create_new_OS_thread___d__n
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.004b3f10
call sub.msvcrt.dll_abort
lea esi, [esi]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
add ebp, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
cmp ebp, 0x14
jne 0x4b4207
jmp 0x4b4228

Function at 0x4b43a0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x4c
mov eax, 0x500
mov word [esp + 0x3e], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3a]
mov dword [esp + 0x3a], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4b4430
test eax, eax
setne al
add esp, 0x4c
ret
lea eax, [esp + 0x30]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
sub esp, 0xc
test eax, eax
jne 0x4b445c
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
setne al
add esp, 0x4c
ret
Function at 0x4b9a20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004ba9b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004ba9b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4b9a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5b3fb0]
test esi, esi
jle 0x4b9ba0
mov eax, dword [0x5b3fb4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4b9ab4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4b9b37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4b9aa0
mov dword [esp], ebx
call fcn.004ba470
mov edi, eax
test eax, eax
je 0x4b9bc7
mov eax, dword [0x5b3fb4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004ba5b0
mov edx, dword [0x5b3fb4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4b9ba7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4b9b30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4b9b40
add dword [0x5b3fb0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5b3fb4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4b9b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004b9a20
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4b9abe
mov eax, dword [0x5b3fb4]
mov eax, dword [eax + ebx + 0xc]
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 fcn.004b9a20
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004b9a20
lea esi, [esi]
nop
Function at 0x4ba0e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5b3fcc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5b3fc4]
sub esp, 4
test ebx, ebx
je 0x4ba135
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x4ba12e
test esi, esi
je 0x4ba12e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4ba110
mov dword [esp], 0x5b3fcc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4ba470
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4ba495
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4ba4a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4ba495
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4ba4e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4ba4de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4ba4ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4ba4d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x68
xchg ecx, eax
call dword [esi + 0x4f]
shl dword [edi], 1
in al, 0x13
arpl word ss:[ebp - 0x13606e3f], di
push edi
invalid
mov eax, dword [eax]
jbe 0x403d09
cld
insb byte es:[edi], dx
sub al, ah
lea esi, [ebp + 0x16ffe2f0]
dec ebp
pop ss
nop
inc esp
arpl word [eax], si
fld dword [ecx - 0x19]
invalid