joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423470
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4235e0
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00421520
mov eax, dword [esp + 4]
test eax, eax
je 0x4235c9
mov dword [esp + 0xc], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
inc dword [edx + 0x7c]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call fcn.0041f790
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
movzx ebx, byte [edx + 6]
mov byte [esp + 0xb], bl
lea ebp, [ecx + 0x48]
mov dword [esp + 0x18], ebp
nop
mov dword [esp], ebp
call fcn.00409100
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x4c]
movzx edx, byte [esp + 0xb]
mov ebx, dword [esp + 0x10]
jmp 0x423507
mov ecx, ebp
mov ebp, dword [ecx]
test ebp, ebp
je 0x42356d
movzx esi, word [ebp + 4]
cmp esi, ebx
jne 0x42351c
cmp byte [ebp + 6], dl
je 0x423527
cmp esi, ebx
ja 0x42356d
jne 0x423505
cmp byte [ebp + 6], dl
jbe 0x423505
jmp 0x42356d
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409300
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x423564
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x423564
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 0
add esp, 0x1c
ret
mov edx, dword [esp + 0x24]
mov word [edx + 4], bx
mov ebx, dword [ecx]
mov dword [edx], ebx
mov dword [ecx], edx
mov dword [esp], eax
call fcn.00423370
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409300
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4235c0
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4235c0
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 1
add esp, 0x1c
ret
lea eax, [0x5009cf]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.0042f840
nop
call fcn.00451710
jmp fcn.00423470
Function at 0x423a60
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x423b7c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x423af5
cmp cl, 2
je 0x423a9d
cmp cl, 3
jne 0x423b65
mov byte [eax + 8], 1
jmp 0x423b61
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.004282c0
nop
lea eax, [0x593d98]
mov dword [esp], eax
call fcn.00409100
nop
mov eax, dword [0x593d64]
sub eax, dword [0x593d48]
mov dword [0x593d64], eax
mov eax, dword [0x593d54]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x593d54], ecx
nop
lea eax, [0x593d98]
mov dword [esp], eax
call fcn.00409300
jmp 0x423b61
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.00412560
nop
lea eax, [0x593d98]
mov dword [esp], eax
call fcn.00409100
nop
mov eax, dword [0x593d3c]
sub eax, dword [0x593d20]
mov dword [0x593d3c], eax
mov eax, dword [0x593d2c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x593d2c], ecx
nop
nop
lea eax, [0x593d98]
mov dword [esp], eax
call fcn.00409300
add esp, 0x14
ret
lea eax, [0x4fc529]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0042f840
nop
call fcn.00451710
jmp fcn.00423a60
Function at 0x4454f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x445677
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x44566d
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x44554c
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x44554c
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 0x44555f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x445642
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 0x445634
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 0x44562b
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x4455b6
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x4455ff
mov eax, 1
cmp eax, ecx
ja 0x4455ed
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.00452c30
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x445626
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 0x4455f2
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x4455bb
call fcn.00452bd0
xor eax, eax
mov ecx, eax
call fcn.00452bc0
call fcn.00452c30
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x445668
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 0x445639
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x445564
call fcn.00452bd0
xor eax, eax
mov ecx, eax
call fcn.00452bc0
nop
call fcn.00451710
jmp fcn.004454f0
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, [0x4e49e0]
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 + 0x51e9a0]
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 + 0x51eaa0]
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 [0x5af74b], 0
je 0x4529ea
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x451180
jmp fcn.00407ae0
Function at 0x4529f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40306e
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.00407ae0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.00451710
jmp 0x403030
cmp byte [0x5af74b], 0
je 0x452a0b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x451180
jmp 0x403030
Function at 0x4907f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x490961
sub esp, 0x68
lea eax, [0x4e6b60]
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 0x490840
add ebx, 2
cmp edx, ebx
jle 0x490931
cmp ecx, 1
je 0x49083d
cmp edx, ebx
jbe 0x490957
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x6c]
movzx edi, byte [esi + ebx]
lea ebp, [ebx + 1]
cmp edx, ebp
jbe 0x49094e
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 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 + 0x28]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jae 0x490945
mov ebx, dword [esp + 0x64]
mov byte [ebx + ecx], al
lea ebp, [ecx + 1]
mov esi, dword [esp + 0x24]
lea ecx, [esi - 2]
mov eax, ebx
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x20]
jmp 0x49083d
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.004907f0
Function at 0x4a9dd0
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a9f43
movzx eax, byte [esp + 4]
lea ecx, [eax - 0x61]
cmp cl, 0x19
jbe 0x4a9e03
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x4a9e03
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x4a9e09
mov byte [esp + 0xc], 0
ret
mov ecx, dword [esp + 8]
cmp ecx, 3
je 0x4a9e17
cmp ecx, 4
jne 0x4a9e48
cmp al, 0x2c
ja 0x4a9e30
lea edx, [eax - 0x21]
cmp dl, 1
jbe 0x4a9e42
cmp al, 0x24
je 0x4a9e42
cmp al, 0x26
jae 0x4a9e42
jmp 0x4a9e48
lea edx, [eax - 0x3a]
cmp dl, 4
jbe 0x4a9e42
cmp al, 0x5b
je 0x4a9e42
cmp al, 0x5d
jne 0x4a9e48
mov byte [esp + 0xc], 0
ret
cmp al, 0x2f
ja 0x4a9e7f
cmp al, 0x26
ja 0x4a9e61
cmp al, 0x24
je 0x4a9e9e
cmp al, 0x26
je 0x4a9e9e
jmp 0x4a9f25
lea edx, [eax - 0x2b]
cmp dl, 1
jbe 0x4a9e9e
lea edx, [eax - 0x2d]
cmp dl, 1
jbe 0x4a9f1f
cmp al, 0x2f
je 0x4a9e9e
jmp 0x4a9f25
cmp al, 0x3d
ja 0x4a9e96
lea edx, [eax - 0x3a]
cmp dl, 1
jbe 0x4a9e9e
cmp al, 0x3d
je 0x4a9e9e
jmp 0x4a9f25
lea edx, [eax - 0x3f]
cmp dl, 1
ja 0x4a9f15
cmp ecx, 2
jg 0x4a9ed9
cmp ecx, 1
je 0x4a9ece
cmp ecx, 2
jne 0x4a9f25
cmp al, 0x2f
je 0x4a9ebc
cmp al, 0x3b
je 0x4a9ebc
cmp al, 0x2c
jne 0x4a9ec3
mov eax, 1
jmp 0x4a9ec9
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 0x4a9eff
cmp al, 0x40
je 0x4a9eed
cmp al, 0x2f
je 0x4a9eed
cmp al, 0x3f
jne 0x4a9ef4
mov eax, 1
jmp 0x4a9efa
cmp al, 0x3a
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 6
je 0x4a9f0f
cmp ecx, 7
jne 0x4a9f25
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
cmp al, 0x5f
je 0x4a9f1f
cmp al, 0x7e
jne 0x4a9f25
mov byte [esp + 0xc], 0
ret
cmp ecx, 7
jne 0x4a9f3d
cmp al, 0x21
je 0x4a9f37
add eax, 0xffffffd8
cmp al, 2
ja 0x4a9f3d
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
call fcn.00451710
jmp fcn.004a9dd0
Function at 0x4b4190
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 0x4b41f8
call ebx
cmp dword [eax], 0xd
je 0x4b4200
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.004b3eb0
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 0x4b41a7
jmp 0x4b41c8

Function at 0x4b4340
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 0x4b43d0
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 0x4b43fc
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 0x4b99c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004ba950
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.004ba950
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 0x4b9a20
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 0x4b9b40
mov eax, dword [0x5b3fb4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4b9a54
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4b9ad7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4b9a40
mov dword [esp], ebx
call fcn.004ba410
mov edi, eax
test eax, eax
je 0x4b9b67
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.004ba550
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 0x4b9b47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4b9ad0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4b9ae0
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 0x4b9ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004b99c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4b9a5e
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.004b99c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004b99c0
lea esi, [esi]
nop
Function at 0x4ba080
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 0x4ba0d5
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 0x4ba0ce
test esi, esi
je 0x4ba0ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4ba0b0
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 0x4ba410
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4ba435
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4ba440
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4ba435
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 0x4ba488
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4ba47e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4ba48a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4ba470
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1000b1b3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000b1f2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000b1f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000b1f2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000b1f2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000b1f2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000de6f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000df0c
push ebx
push esi
call fcn.1000de38
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000ddcc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000deb9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000df0b
push edi
push eax
call fcn.1000ee2a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000ded9
call fcn.1000c914
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000df0a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000ddcc
add esp, 0x20
test eax, eax
jne 0x1000def8
push edi
call fcn.1000c914
jmp 0x1000df00
push ebx
call fcn.1000c914
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000e179
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015678
push 0x10015670
push str.FlsAlloc
push 0x1f
call fcn.1000e095
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e1ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014158]
call esi
jmp 0x1000e1b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000e1f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015688
push 0x10015680
push str.FlsGetValue
push 0x21
call fcn.1000e095
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e22e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000e236
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015690
push 0x10015688
push str.FlsSetValue
push 0x22
call fcn.1000e095
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e270
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10014158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]