joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413c60
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x413e84
sub esp, 0x18
mov eax, dword [0x63b3e4]
test eax, eax
jne 0x413e6d
nop
lea eax, [0x63b3d0]
mov dword [esp], eax
call fcn.00409680
mov eax, dword [0x63b3d4]
test eax, eax
je 0x413ca9
cmp dword [eax + 8], 0xcc
jne 0x413d1f
mov edx, dword [0x63b3c8]
test edx, edx
jne 0x413d01
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x63dcb0]
mov dword [esp + 8], eax
call fcn.0040ba70
mov eax, dword [esp + 0xc]
mov dword [0x63b3c8], eax
mov ecx, dword [0x63b38c]
mov dword [eax], ecx
mov eax, dword [0x63b3c8]
mov dword [0x63b38c], eax
movzx eax, byte [0x63b920]
test al, al
jne 0x413d01
xor eax, eax
jmp 0x413e19
mov edx, dword [0x63b3c8]
mov ebx, dword [edx + 4]
mov dword [0x63b3c8], ebx
mov ebx, dword [0x63b3d4]
mov dword [edx + 4], ebx
mov dword [0x63b3d4], edx
mov edx, dword [0x63b3d4]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x413e01
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.00402140
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x63b600]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x413d7d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x413d8a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00461550
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x63b600]
test edx, edx
jne 0x413db6
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 0x413dd7
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00461550
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00461550
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00461550
nop
lea eax, [0x63b3d0]
mov dword [esp], eax
call fcn.00409880
nop
lea eax, [0x63b3cc]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.004022c0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.004615e0
lea esi, [0x63b920]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x413d01
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 0x413e63
lea edx, [0x5d323c]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x413e0b
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.004615d0
mov ecx, 5
call fcn.004615d0
lea eax, [0x512bd5]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00413c60
Function at 0x427280
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4273f0
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00425010
mov eax, dword [esp + 4]
test eax, eax
je 0x4273d9
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.00422d90
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.00409680
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x4c]
movzx edx, byte [esp + 0xb]
mov ebx, dword [esp + 0x10]
jmp 0x427317
mov ecx, ebp
mov ebp, dword [ecx]
test ebp, ebp
je 0x42737d
movzx esi, word [ebp + 4]
cmp esi, ebx
jne 0x42732c
cmp byte [ebp + 6], dl
je 0x427337
cmp esi, ebx
ja 0x42737d
jne 0x427315
cmp byte [ebp + 6], dl
jbe 0x427315
jmp 0x42737d
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409880
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 0x427374
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x427374
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.00427180
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409880
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 0x4273d0
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4273d0
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 1
add esp, 0x1c
ret
lea eax, [0x5145c4]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00427280
Function at 0x427870
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42798c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x427905
cmp cl, 2
je 0x4278ad
cmp cl, 3
jne 0x427975
mov byte [eax + 8], 1
jmp 0x427971
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042caa0
nop
lea eax, [0x61f998]
mov dword [esp], eax
call fcn.00409680
nop
mov eax, dword [0x61f964]
sub eax, dword [0x61f948]
mov dword [0x61f964], eax
mov eax, dword [0x61f954]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x61f954], ecx
nop
lea eax, [0x61f998]
mov dword [esp], eax
call fcn.00409880
jmp 0x427971
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.00413c60
nop
lea eax, [0x61f998]
mov dword [esp], eax
call fcn.00409680
nop
mov eax, dword [0x61f93c]
sub eax, dword [0x61f920]
mov dword [0x61f93c], eax
mov eax, dword [0x61f92c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x61f92c], ecx
nop
nop
lea eax, [0x61f998]
mov dword [esp], eax
call fcn.00409880
add esp, 0x14
ret
lea eax, [0x50f991]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00427870
Function at 0x454660
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x454760
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.00454ef0
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x4f4180]
mov dword [esp], ecx
call fcn.0040b720
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax], ecx
lea ecx, [0x61fa30]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00453ee0
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.00453300
add esp, 0x28
ret
call fcn.00460140
jmp fcn.00454660
Function at 0x461400
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 [0x63b700]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45fbcb
je 0x45fc1e
cmp ebx, 0x20
jbe 0x45fc24
cmp ebx, 0x40
jbe 0x45fc6a
jmp 0x45fd0b
test ebx, ebx
je 0x45fc14
add eax, 0x10
test ax, 0xff0
je 0x45fc00
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x540fc0]
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 + 0x5411c0]
jmp 0x45fbe8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45fbe8
pxor xmm1, xmmword [0x63b710]
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 [0x63b710]
pxor xmm2, xmmword [0x63b720]
pxor xmm3, xmmword [0x63b730]
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 [0x63b710]
pxor xmm2, xmmword [0x63b720]
pxor xmm3, xmmword [0x63b730]
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 0x45fd6a
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 [0x63b34f], 0
je 0x46141a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45fb90
jmp fcn.004080e0
Function at 0x461420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40293e
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.004080e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.00460140
jmp 0x402900
cmp byte [0x63b34f], 0
je 0x46143b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x45fb90
jmp 0x402900
Function at 0x10005e80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 3
je 0x10005ead
push 0xdd
push str.C:BuildAgentwork80faf78a66134abf_src_thirdparty_rapidxml_print.hpp
push str.node__type____node_cdata
call fcn.1000b8ee
add esp, 0xc
test byte [ebp + 0xc], 1
jne 0x10005ec9
push ecx
push dword [ebp + 8]
mov edx, edi
lea ecx, [ebp - 8]
call fcn.10006d80
add esp, 8
mov eax, dword [eax]
mov dword [ebp + 8], eax
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x3c
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x21
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x5b
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x43
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x44
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x41
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x54
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x41
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x5b
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
mov ecx, dword [esi + 4]
mov edx, 0x100252d8
test ecx, ecx
mov edi, edx
cmovne edi, ecx
je 0x10005f6f
mov eax, dword [esi + 0xc]
jmp 0x10005f71
xor eax, eax
push dword [ebp + 8]
test ecx, ecx
cmovne edx, ecx
add eax, edi
push eax
lea ecx, [ebp - 8]
call fcn.10006e10
add esp, 8
mov byte [ebp - 1], 0x5d
lea ecx, [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
lea eax, [ebp - 1]
push eax
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x5d
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x3e
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
mov ecx, dword [ebp + 8]
mov eax, ebx
pop edi
pop esi
mov dword [ebx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 6
je 0x100061bd
push 0x155
push str.C:BuildAgentwork80faf78a66134abf_src_thirdparty_rapidxml_print.hpp
push str.node__type____node_doctype
call fcn.1000b8ee
add esp, 0xc
test byte [ebp + 0xc], 1
jne 0x100061d9
push ecx
push dword [ebp + 8]
mov edx, edi
lea ecx, [ebp - 8]
call fcn.10006d80
add esp, 8
mov eax, dword [eax]
mov dword [ebp + 8], eax
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x3c
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x21
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x44
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x4f
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x43
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x54
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x59
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x50
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x45
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
lea eax, [ebp - 1]
mov byte [ebp - 1], 0x20
push eax
lea ecx, [ebp + 8]
call fcn.10004ec0
mov ecx, dword [esi + 4]
mov edx, 0x100252d8
test ecx, ecx
mov edi, edx
cmovne edi, ecx
je 0x1000628f
mov eax, dword [esi + 0xc]
jmp 0x10006291
xor eax, eax
push dword [ebp + 8]
test ecx, ecx
cmovne edx, ecx
add eax, edi
push eax
lea ecx, [ebp - 8]
call fcn.10006e10
add esp, 8
mov byte [ebp - 1], 0x3e
mov ecx, dword [eax]
lea eax, [ebp - 1]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push eax
call fcn.10004ec0
mov ecx, dword [ebp + 8]
mov eax, ebx
pop edi
pop esi
mov dword [ebx], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000f588
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000f48d

Function at 0x10014c02
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push es
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1001491b
retf 0x8b64
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x11027b36
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x17d7324b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4019d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x401b30
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401a60
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401adf
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a50
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b57
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4053a0]
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 0x401b37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ad8
sub eax, 4
and eax, 0xfffffffb
jne 0x401ae6
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ad8
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
xor esi, esi
jmp 0x401a6a
mov eax, dword [0x4053a0]
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 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]
nop
Function at 0x402010
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x402065
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 0x40205e
test esi, esi
je 0x40205e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402040
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x10], edi
push esi
push str.Reading_data_from__s_n
mov dword [esp + 0x1c], ebx
call fcn.00403610
push 0x41e700
mov dword [edi], 0
push esi
mov dword [ebx], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4036e7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push esi
push str.read_file:_cannot_open__s:__s_n
call fcn.004035a0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
add esp, 8
test eax, eax
jns 0x403738
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push str.read_file:_fstat:__s_n
call fcn.004035a0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x2c]
push esi
mov dword [esp + 0x10], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x40377c
push str.ERROR:_Out_of_memory_n
call fcn.004035a0
add esp, 4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [esp + 0x20]
add esp, 0x14
cmp esi, eax
je 0x4037c7
push str.ERROR:_Unable_to_read_entire_file_n
call fcn.004035a0
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret