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

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 1
mov eax, dword [esp + 4]
jmp fcn.1001a6c0

Function at 0x1001d3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xb8]
cmp dword [ebx + 4], ebp
lea edi, [ebx + 0x18]
jae 0x1001d508
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebx + 0x14]
mov eax, dword [esp + 0xb4]
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebx + 0x10]
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
mov dword [ebx + 0x98], ebp
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebx + 0x14]
mov edi, dword [ebx + 0x98]
xor eax, eax
lea edx, [esp + 0x10]
test edi, edi
jle 0x1001d460
movzx ecx, byte [ebx + eax + 0x18]
xor cl, 0x36
mov byte [edx + eax], cl
inc eax
cmp eax, edi
jne 0x1001d450
mov ebp, dword [ebx + 4]
cmp ebp, edi
jle 0x1001d487
mov esi, ebp
sub esi, edi
add edi, edx
cmp esi, 8
jae 0x1001d4d8
test esi, 4
jne 0x1001d4c0
test esi, 2
jne 0x1001d4b0
and esi, 1
jne 0x1001d4a8
mov dword [esp + 8], ebp
mov dword [esp + 4], edx
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebx + 0x10]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [edi], 0x36
jmp 0x1001d487
mov word [edi], 0x3636
add edi, 2
and esi, 1
je 0x1001d487
jmp 0x1001d4a8
mov dword [edi], 0x36363636
add edi, 4
test esi, 2
je 0x1001d482
jmp 0x1001d4b0
test edi, 1
jne 0x1001d54d
test edi, 2
jne 0x1001d554
test edi, 4
jne 0x1001d561
mov ecx, esi
mov eax, 0x36363636
shr ecx, 2
and esi, 3
rep stosd dword es:[edi], eax
jmp 0x1001d472
cmp ebp, 8
mov esi, dword [esp + 0xb4]
mov ecx, ebp
jae 0x1001d520
rep movsb byte es:[edi], byte [esi]
jmp 0x1001d432
test edi, 1
jne 0x1001d581
test edi, 2
jne 0x1001d56f
test edi, 4
je 0x1001d516
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1001d432
mov byte [edi], 0x36
dec esi
inc edi
jmp 0x1001d4e0
mov word [edi], 0x3636
sub esi, 2
add edi, 2
jmp 0x1001d4e8
mov dword [edi], 0x36363636
sub esi, 4
add edi, 4
jmp 0x1001d4f0
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x1001d530
movzx eax, byte [esi]
lea edi, [ebx + 0x19]
inc esi
lea ecx, [ebp - 1]
mov byte [ebx + 0x18], al
jmp 0x1001d528
Function at 0x1001d720
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x30], esi
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x4c]
mov dword [esp], ebx
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x58]
mov dword [esp + 4], edx
call sym.avutil_lav_57.dll_mv_hmac_init
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebx + 0x10]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x2c]
add esp, 0x3c
jmp sym.avutil_lav_57.dll_mv_hmac_final
Function at 0x10028b00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ecx, 0x10325476
push edi
mov eax, 0x67452301
push esi
mov edi, 0xefcdab89
push ebx
mov esi, 0x98badcfe
sub esp, 0x7c
mov dword [esp + 0x68], ecx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x70], edi
mov edx, dword [esp + 0x94]
xor edi, edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x20], ebx
mov ecx, ebx
mov esi, ebx
mov dword [esp + 0x24], edi
shr ecx, 6
call fcn.10028070
mov ecx, ebx
and ecx, 0x3f
jne 0x10028c60
mov ebx, 0x100b7204
mov ecx, 1
mov dword [esp + 4], ebx
lea ebx, [esp + 0x20]
mov dword [esp + 8], ecx
shld edi, esi, 3
mov dword [esp], ebx
shl esi, 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call sym.avutil_lav_57.dll_mv_md5_update
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, esi
and eax, 0x3f
xor eax, 0x38
or eax, 0
je 0x10028be0
mov eax, esi
and eax, 0x3f
add esi, 1
mov dword [esp + 0x20], esi
adc edi, 0
test eax, eax
mov dword [esp + 0x24], edi
jne 0x10028c20
xor ecx, ecx
mov edx, 0x100b7206
lea eax, [esp + 0x68]
call fcn.10028070
mov eax, esi
mov byte [esp + 0x28], 0
and eax, 0x3f
xor eax, 0x38
or eax, 0
jne 0x10028ba7
mov dword [esp], ebx
mov eax, 8
mov dword [esp + 8], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
call sym.avutil_lav_57.dll_mv_md5_update
mov eax, dword [esp + 0x74]
mov dword [ebp], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [ebp + 0xc], eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + eax + 0x28], 0
cmp eax, 0x3f
jne 0x10028b92
lea edx, [esp + 0x28]
mov ecx, 1
lea eax, [esp + 0x68]
call fcn.10028070
xor ecx, ecx
mov edx, 0x100b7207
lea eax, [esp + 0x68]
call fcn.10028070
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
jmp 0x10028b9a
mov edx, dword [esp + 0x94]
mov eax, ebx
and eax, 0xffffffc0
add eax, edx
cmp ecx, 4
lea edx, [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, eax
jae 0x10028cc8
xor eax, eax
test cl, 2
jne 0x10028ca8
test cl, 1
je 0x10028b65
movzx ebx, byte [edx + eax]
mov edx, dword [esp + 0x10]
mov byte [esp + 0x17], bl
mov byte [edx + eax], bl
jmp 0x10028b65
mov eax, dword [esp + 0x10]
test cl, 1
movzx ebx, word [edx]
mov word [eax], bx
mov eax, 2
je 0x10028b65
jmp 0x10028c8d
mov dword [esp + 0x10], ecx
and ebx, 0x3c
xor edx, edx
mov ecx, dword [eax + edx]
mov dword [esp + edx + 0x28], ecx
add edx, 4
cmp edx, ebx
jb 0x10028cd1
lea ebx, [esp + 0x28]
mov ecx, dword [esp + 0x10]
add ebx, edx
add edx, eax
mov dword [esp + 0x10], ebx
jmp 0x10028c7d
Function at 0x1002f520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002f558
cmp dword [ecx + 0xc], 0
jne 0x1002f558
test byte [ecx + 0x28], 0x80
jne 0x1002f558
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002eeb0
pop ebx
mov eax, 0xffffffea
ret

Function at 0x1002f560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002f598
cmp dword [ecx + 0xc], 1
jne 0x1002f598
test byte [ecx + 0x28], 0x80
jne 0x1002f598
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002eeb0
pop ebx
mov eax, 0xffffffea
ret

Function at 0x1002f5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002f5d8
cmp dword [ecx + 0xc], 2
jne 0x1002f5d8
test byte [ecx + 0x28], 0x80
jne 0x1002f5d8
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002eeb0
pop ebx
mov eax, 0xffffffea
ret

Function at 0x1002f5e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002f618
cmp dword [ecx + 0xc], 4
jne 0x1002f618
test byte [ecx + 0x28], 0x80
jne 0x1002f618
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002eeb0
pop ebx
mov eax, 0xffffffea
ret

Function at 0x1002f620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002f658
cmp dword [ecx + 0xc], 3
jne 0x1002f658
test byte [ecx + 0x28], 0x80
jne 0x1002f658
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002eeb0
pop ebx
mov eax, 0xffffffea
ret

Function at 0x1002f660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002f698
cmp dword [ecx + 0xc], 6
jne 0x1002f698
test byte [ecx + 0x28], 0x80
jne 0x1002f698
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002eeb0
pop ebx
mov eax, 0xffffffea
ret
Function at 0x100364e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
movzx eax, byte [ebx + 0x104]
mov edx, dword [ebx + 0x100]
test ecx, ecx
mov byte [esp + 6], al
lea eax, [ecx - 1]
mov byte [esp + 7], dl
mov dword [esp + 8], eax
jle 0x100365a2
mov byte [esp + 5], dl
lea ebp, [esi + ecx]
movzx eax, dl
mov dword [esp], ebp
movzx eax, byte [ebx + eax]
movzx ebp, dl
nop
movzx ecx, byte [esp + 6]
add ecx, ebx
movzx edx, byte [ecx]
mov byte [ecx], al
mov byte [ebx + ebp], dl
add dl, al
movzx edx, dl
add edx, ebx
test edi, edi
je 0x10036578
movzx eax, byte [edi]
lea ecx, [edi + 1]
inc esi
inc byte [esp + 5]
mov edi, dword [esp]
xor al, byte [edx]
movzx ebp, byte [esp + 5]
mov byte [esi - 1], al
movzx eax, byte [ebx + ebp]
add byte [esp + 6], al
cmp esi, edi
je 0x10036597
mov edi, ecx
jmp 0x10036530
inc byte [esp + 5]
inc esi
movzx eax, byte [edx]
mov ecx, dword [esp]
movzx ebp, byte [esp + 5]
mov byte [esi - 1], al
movzx eax, byte [ebx + ebp]
add byte [esp + 6], al
cmp esi, ecx
jne 0x10036530
movzx eax, byte [esp + 8]
inc al
add byte [esp + 7], al
movzx eax, byte [esp + 7]
mov dword [ebx + 0x100], eax
movzx eax, byte [esp + 6]
mov dword [ebx + 0x104], eax
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1004d3b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, edx
push edi
mov edx, ecx
push esi
push ebx
sub esp, 0x18
mov edi, dword [eax]
mov ebx, dword [eax + 0x40]
mov esi, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [esp], edi
mov edi, dword [eax + 8]
mov edx, dword [edx + 4]
mov dword [esp + 4], esi
bswap ecx
mov dword [esp + 8], edi
mov edi, dword [eax + 0xc]
mov eax, ebx
shr eax, 0x1f
bswap edx
add eax, ebx
sar eax, 1
dec ebx
mov dword [esp + 0xc], eax
jle 0x1004d44e
mov dword [esp + 0x10], edi
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x14], ebp
lea esi, [esi]
mov eax, dword [esp]
mov ebp, edx
sub ebx, 0x61c88647
mov edi, dword [esp + 4]
shl ebp, 4
inc esi
add ebp, eax
mov eax, edx
shr eax, 5
add eax, edi
mov edi, dword [esp + 0x10]
xor eax, ebp
lea ebp, [edx + ebx]
xor eax, ebp
add ecx, eax
mov eax, dword [esp + 8]
mov ebp, ecx
shl ebp, 4
add ebp, eax
mov eax, ecx
shr eax, 5
add eax, edi
xor eax, ebp
lea ebp, [ebx + ecx]
xor eax, ebp
add edx, eax
cmp dword [esp + 0xc], esi
jg 0x1004d400
mov ebp, dword [esp + 0x14]
bswap ecx
bswap edx
mov dword [ebp], ecx
mov dword [ebp + 4], edx
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1004fed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ecx + 4]
mov ebp, dword [eax + 4]
mov dword [esp + 0x10], edi
mov edx, dword [ecx]
mov esi, dword [eax]
xor ebx, ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 4], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
xor edx, esi
mov esi, dword [eax + 8]
xor ecx, ebp
mov dword [esp + 8], ecx
lea ecx, [eax + 0xa0]
xor ebx, esi
mov dword [esp], ebx
lea esi, [eax + 0x20]
mov dword [esp + 0xc], ecx
lea esi, [esi]
lea esi, [esi]
mov ebx, edx
movzx ecx, dl
shr ebx, 0x18
mov ecx, dword [eax + ecx*4 + 0xb4]
mov edi, dword [eax + ebx*4 + 0xcb4]
movzx ebx, dh
mov ebp, dword [eax + ebx*4 + 0x4b4]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor ecx, edi
mov edi, dword [eax + ebx*4 + 0x8b4]
xor ecx, ebp
xor ecx, edi
mov edi, dword [esp + 4]
mov ebx, edi
rol ebx, 8
shr edi, 0x18
mov ebp, ebx
shr ebp, 0x18
mov edi, dword [eax + edi*4 + 0xb4]
xor edi, dword [eax + ebp*4 + 0xcb4]
movzx ebp, bh
shr ebx, 0x10
xor edi, dword [eax + ebp*4 + 0x4b4]
movzx ebx, bl
mov ebp, dword [eax + ebx*4 + 0x8b4]
mov ebx, dword [esi]
xor edi, ebp
mov ebp, dword [esp]
add ebx, ecx
add ebx, edi
xor ebx, ebp
mov ebp, dword [esp + 8]
ror ebx, 1
mov dword [esp], ebx
mov ebx, dword [esi + 4]
rol ebp, 1
add ecx, ebx
mov ebx, dword [esp]
lea ecx, [ecx + edi*2]
xor ecx, ebp
mov dword [esp + 8], ecx
mov ebp, ecx
movzx ecx, bh
movzx ebx, byte [esp]
mov ecx, dword [eax + ecx*4 + 0x4b4]
mov edi, dword [eax + ebx*4 + 0xb4]
mov ebx, dword [esp]
xor ecx, edi
shr ebx, 0x10
movzx ebx, bl
mov edi, dword [eax + ebx*4 + 0x8b4]
mov ebx, dword [esp]
xor ecx, edi
shr ebx, 0x18
mov edi, dword [eax + ebx*4 + 0xcb4]
mov ebx, ebp
rol ebx, 8
shr ebp, 0x18
xor ecx, edi
mov edi, ebp
mov ebp, ebx
mov edi, dword [eax + edi*4 + 0xb4]
shr ebp, 0x18
xor edi, dword [eax + ebp*4 + 0xcb4]
movzx ebp, bh
shr ebx, 0x10
xor edi, dword [eax + ebp*4 + 0x4b4]
movzx ebx, bl
mov ebp, dword [eax + ebx*4 + 0x8b4]
mov ebx, dword [esi + 8]
xor edi, ebp
add ebx, ecx
add ebx, edi
add esi, 0x10
xor ebx, edx
mov edx, ebx
mov ebx, dword [esi - 4]
ror edx, 1
add ecx, ebx
lea ecx, [ecx + edi*2]
mov edi, dword [esp + 4]
rol edi, 1
xor ecx, edi
cmp dword [esp + 0xc], esi
mov dword [esp + 4], ecx
jne 0x1004ff20
mov esi, dword [eax + 0x14]
mov ebx, ecx
mov ecx, dword [esp + 8]
mov ebp, dword [eax + 0x18]
mov edi, dword [esp + 0x10]
xor ecx, esi
mov esi, dword [eax + 0x1c]
xor edx, ebp
mov ebp, dword [eax + 0x10]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
xor ebx, esi
mov esi, dword [esp]
mov dword [edi + 0xc], ebx
xor esi, ebp
mov dword [edi], esi
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10090d70
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.1009ff60
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.1009ff60
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 0x10090dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x101d8704]
test esi, esi
jle 0x10090ef0
mov eax, dword [0x101d8708]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x10090e04
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x10090e87
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x10090df0
mov dword [esp], ebx
call fcn.100915c0
mov edi, eax
test eax, eax
je 0x10090f17
mov eax, dword [0x101d8708]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.10091700
mov edx, dword [0x101d8708]
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 0x10090ef7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x10090e80
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x10090e90
add dword [0x101d8704], 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 [0x101d8708]
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 0x10090e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.10090d70
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x10090e0e
mov eax, dword [0x101d8708]
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.10090d70
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.10090d70
lea esi, [esi]
nop
Function at 0x10091230
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x101d8714
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x101d870c]
sub esp, 4
test ebx, ebx
je 0x10091285
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 0x1009127e
test esi, esi
je 0x1009127e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x10091260
mov dword [esp], 0x101d8714
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x100915c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x10000000], 0x5a4d
jne 0x100915e5
mov ecx, dword [0x1000003c]
cmp dword [ecx + 0x10000000], 0x4550
lea edx, [ecx + 0x10000000]
je 0x100915f0
ret
cmp word [ecx + 0x10000018], 0x10b
jne 0x100915e5
push esi
movzx eax, word [ecx + 0x10000014]
push ebx
movzx esi, word [ecx + 0x10000006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x10000000
test si, si
je 0x10091638
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x1009162e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x1009163a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x10091620
xor eax, eax
pop ebx
pop esi
ret
Function at 0x100a1310
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x100a13eb
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x100a13bd
cmp eax, 0x6a
je 0x100a13da
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x100a13b8
cmp eax, 0x6a
je 0x100a13da
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x100a13d0
Function at 0x100a1770
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x101d9248], 1
je 0x100a1828
push edi
mov eax, 0x101d9248
push esi
push ebx
sub esp, 0x10
call fcn.100a10f0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.100a4070
mov edi, dword [0x101d9248]
test edi, edi
jne 0x100a17e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100ad0f0], eax
cmp eax, 0xffffffff
je 0x100a1829
mov dword [0x101d9248], 1
mov dword [esp], esi
call fcn.100a43b0
test ebx, ebx
je 0x100a181a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.100a1400
cmp edi, 1
je 0x100a17be
mov dword [esp], 2
call dword [0x100ad0cc]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x101d9248
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.100a43b0
test ebx, ebx
jne 0x100a17ca
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
nop
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x100a1969
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x100ad0f0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x100a1969
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x100a1970
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100a1998
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.100a1830