joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, ecx
xor ecx, ecx
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x1001a27d
cmp eax, ebp
jae 0x1001a3e7
mov bl, byte [eax]
test bl, bl
je 0x1001a3e7
movzx ecx, bl
mov edx, ebp
shr ecx, 3
movsx edi, byte [ecx + 0x100a5f38]
xor ecx, ecx
test edi, edi
mov dword [esp + 0x14], edi
sete cl
add ecx, edi
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x1001a2ae
lea edx, [ecx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, bl
mov byte [esp + 0x13], cl
cmp esi, edx
jae 0x1001a2c7
mov bl, byte [esi]
mov byte [esp + 0x10], bl
jmp 0x1001a2cc
mov byte [esp + 0x10], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x1001a2d7
mov ch, byte [esi]
jmp 0x1001a2d9
xor ch, ch
lea ebx, [eax + 3]
mov byte [esp + 0x12], ch
cmp ebx, edx
jae 0x1001a2e8
mov bl, byte [ebx]
jmp 0x1001a2ea
xor bl, bl
mov edi, dword [edi*4 + 0x100a5f58]
movzx esi, byte [esp + 0x10]
movzx edx, ch
movzx ecx, cl
and edi, ecx
mov byte [esp + 0x11], bl
shl edi, 6
mov ecx, esi
and ecx, 0x3f
movzx ebx, bl
or edi, ecx
and esi, 0xc0
shl edi, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or edi, ecx
mov ecx, ebx
and ecx, 0x3f
shr ebx, 2
or ebx, edx
shl edi, 6
or edi, ecx
shr ebx, 2
mov ecx, dword [esp + 0x14]
or ebx, esi
mov esi, dword [esp + 0x14]
shr ebx, 2
mov ecx, dword [ecx*4 + 0x100a5f24]
shr edi, cl
cmp edi, dword [esi*4 + 0x100a5f6c]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or ebx, ecx
mov ecx, edi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
or ebx, edx
mov edx, 0xffff
cmp edx, edi
sbb ecx, ecx
and ecx, 0x100
or ebx, ecx
mov ecx, dword [esi*4 + 0x100a5f80]
xor ebx, 0x2a
sar ebx, cl
test ebx, ebx
je 0x1001a3d7
xor edx, edx
cmp byte [esp + 0x11], dl
setne dl
xor ecx, ecx
cmp byte [esp + 0x12], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x10], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
add edx, ecx
cmp dword [esp + 0x18], edx
cmovl edx, dword [esp + 0x18]
mov ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
jmp 0x1001a26d
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
jmp 0x1001a26d
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
Function at 0x1001ca90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, ecx
push esi
push edi
lea esi, [esp + 8]
mov edi, 0x10
movss xmm1, dword [edx + 0x108]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x10c]
subss xmm0, xmm1
mov ecx, dword [edx + 0xec]
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [esp + 0xc], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xf4]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [esp + 0x14], xmm0
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100a0680]
sub edi, 1
jne 0x1001cb01
not edx
pop edi
mov eax, edx
pop esi
add esp, 0x10
ret 4
Function at 0x1001fe50
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [0x100b7db4]
push ebx
push esi
push edi
mov esi, dword [eax + 0x1238]
mov edi, ecx
mov eax, dword [eax + 0x1230]
lea ebx, [esi + eax*8]
test eax, eax
je 0x1001fe2e
nop dword [eax]
mov edx, eax
shr edx, 1
cmp dword [esi + edx*8], edi
lea ecx, [esi + edx*8]
jae 0x1001fe28
lea esi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add eax, ecx
jmp 0x1001fe2a
mov eax, edx
test eax, eax
jne 0x1001fe10
cmp esi, ebx
je 0x1001fe3d
cmp dword [esi], edi
jne 0x1001fe3d
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x1001fe8d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1001fe73
cmp byte [esi], bl
jne 0x1001fe73
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x100a0680]
test bl, bl
jne 0x1001fe64
pop edi
pop esi
not ecx
pop ebx
jmp 0x1001fdf0
Function at 0x10025950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
mov eax, dword [0x100b7db4]
push ebx
mov dword [esp + 4], ecx
push esi
mov ebx, dword [eax + 0x124c]
lea esi, [esp + 8]
push edi
mov edi, 4
mov ecx, dword [ebx + 0xec]
mov eax, dword [ebx + 0xf4]
mov eax, dword [eax + ecx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100a0680]
sub edi, 1
jne 0x10025980
not eax
lea ecx, [ebx + 0xec]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
call fcn.1002e750
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1002d520
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x100b7db4]
test bl, bl
je 0x1002d569
push ebp
or ebp, 0xffffffff
nop dword [eax]
cmp bl, 0x23
jne 0x1002d54f
cmp byte [esi], bl
jne 0x1002d54f
cmp byte [esi + 1], bl
cmove eax, ebp
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x100a0680]
test bl, bl
jne 0x1002d540
pop ebp
mov ecx, dword [edi + 0x3088]
not eax
mov edx, dword [edi + 0x3090]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1002d590
cmp dword [edx + 4], eax
je 0x1002d593
add edx, 0x24
cmp edx, ecx
jne 0x1002d584
xor eax, eax
ret
mov eax, edx
ret
Function at 0x10036ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x10036f17
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.1005864b
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10036f3c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.1005864b
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10036f61
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.1005864b
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10036fa2
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.1005864b
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10036fc7
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.1005864b
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10036fec
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.1005864b
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100397d0
Function at 0x1003a090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
push edi
cmp byte [ecx + 0x3c], 0
lea ebp, [ebx + 0x3c]
jne 0x1003a0ce
push 0x60
call fcn.100589d3
add esp, 4
test eax, eax
je 0x1003a0bc
mov ecx, eax
call fcn.1003c270
jmp 0x1003a0be
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, ebp
lea eax, [esp + 0x10]
push eax
call fcn.1002e750
mov ecx, dword [ebx + 0x58]
push esi
mov esi, dword [ebx + 0x54]
cmp esi, ecx
jne 0x1003a12c
inc esi
test ecx, ecx
je 0x1003a0e9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1003a0ee
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1003a12c
imul eax, esi, 0x7c
push eax
call fcn.100589d3
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x1003a123
imul ecx, dword [ebx + 0x54], 0x7c
push ecx
push eax
push edi
call fcn.100568a0
push dword [ebx + 0x5c]
call fcn.1005864b
add esp, 0x10
mov dword [ebx + 0x5c], edi
lea ebp, [ebx + 0x3c]
mov dword [ebx + 0x58], esi
imul edi, dword [ebx + 0x54], 0x7c
mov ecx, 0x1f
mov edx, dword [esp + 0x1c]
mov esi, edx
add edi, dword [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x54]
imul edi, dword [ebx + 0x54], 0x7c
add edi, dword [ebx + 0x5c]
cmp dword [edi - 4], 0
jne 0x1003a15d
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi - 4], eax
cmp byte [edi - 0x74], 0
jne 0x1003a188
push dword [edi - 0x78]
call fcn.100589d3
mov ecx, dword [esp + 0x20]
push dword [edi - 0x78]
mov dword [edi - 0x7c], eax
mov byte [edi - 0x74], 1
push dword [ecx]
push eax
call fcn.100568a0
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [edi - 4]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x1003a19e
mov ax, word [edx + 0x4c]
mov word [ecx + 0x3c], ax
imul esi, dword [ebx + 0x54], 0x7c
mov eax, dword [ebx + 0x5c]
add esi, eax
cmp eax, esi
je 0x1003a1ce
nop dword [eax + eax]
cmp byte [eax + 0x3c], 0
mov edx, dword [eax + 0x78]
lea ecx, [edx + 0x38]
jne 0x1003a1c4
mov dword [edx + 0x34], eax
xor edx, edx
mov word [ecx], dx
inc word [ecx]
add eax, 0x7c
cmp eax, esi
jne 0x1003a1b0
mov eax, dword [ebx + 0x1c]
mov byte [ebx + 0x18], 0
pop esi
test eax, eax
je 0x1003a1e3
push eax
call fcn.1005864b
add esp, 4
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1003a1f3
push eax
call fcn.1005864b
add esp, 4
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x19], 0
mov eax, dword [edi - 4]
pop edi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x100506e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov eax, dword [0x100b3100]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
mov esi, dword [0x100b7db4]
mov ebp, edx
push edi
mov edi, ecx
test esi, esi
je 0x10050705
mov esi, dword [esi + 0x78]
jmp 0x10050707
xor esi, esi
push 0xbe2
call dword [0x100b7e28]
push 0x8006
call dword [0x100b7dd8]
push 0x303
push 1
push 0x303
push 0x302
call dword [0x100b7de0]
push 0xb44
call dword [0x100b7e18]
push 0xb71
call dword [0x100b7e18]
push 0xb90
call dword [0x100b7e18]
push 0xc11
call dword [0x100b7e28]
cmp dword [esi], 0x136
jb 0x10050773
push 0x8f9d
call dword [0x100b7e18]
push 0x1b02
push 0x408
call dword [0x100b7e80]
cmp byte [esi + 0x58], 0
mov bl, 1
je 0x100507b3
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x935c
call dword [0x100b7e48]
xor eax, eax
movzx ebx, bl
cmp dword [esp + 0x10], 0x8ca2
cmove ebx, eax
push dword [esp + 0x5c]
push ebp
push 0
push 0
call dword [0x100b7ea8]
movss xmm6, dword [edi + 0x1c]
movss xmm4, dword [edi + 0x20]
movaps xmm5, xmm6
movaps xmm3, xmm4
addss xmm5, dword [edi + 0x24]
addss xmm3, dword [edi + 0x28]
test bl, bl
jne 0x100507e9
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm2, dword [0x100a7020]
movaps xmm1, xmm5
subss xmm1, xmm6
mov dword [esp + 0x3c], 0xbf800000
movaps xmm0, xmm2
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x3f800000
divss xmm0, xmm1
movss dword [esp + 0x14], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
movaps xmm0, xmm4
subss xmm0, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
movaps xmm0, xmm5
movss dword [esp + 0x28], xmm2
addss xmm0, xmm6
subss xmm6, xmm5
divss xmm0, xmm6
movss dword [esp + 0x44], xmm0
movaps xmm0, xmm3
addss xmm0, xmm4
subss xmm3, xmm4
divss xmm0, xmm3
movss dword [esp + 0x48], xmm0
push dword [esi + 0x30]
call dword [0x100b7ea0]
push 0
push dword [esi + 0x34]
call dword [0x100b7e98]
lea eax, [esp + 0x14]
push eax
push 0
push 1
push dword [esi + 0x38]
call dword [0x100b7e9c]
cmp dword [esi], 0x14a
jae 0x100508a4
cmp byte [esi + 0x25], 0
je 0x100508ae
push 0
push 0
call dword [0x100b7dcc]
push dword [esp + 0x60]
call dword [0x100b7dd4]
push dword [esi + 0x48]
push 0x8892
call dword [0x100b7dc8]
push dword [esi + 0x4c]
push 0x8893
call dword [0x100b7dc8]
push dword [esi + 0x3c]
call dword [0x100b7e2c]
push dword [esi + 0x40]
call dword [0x100b7e2c]
push dword [esi + 0x44]
call dword [0x100b7e2c]
push 0
push 0x14
push 0
push 0x1406
push 2
push dword [esi + 0x3c]
call dword [0x100b7ea4]
push 8
push 0x14
push 0
push 0x1406
push 2
push dword [esi + 0x40]
call dword [0x100b7ea4]
push 0x10
push 0x14
push 1
push 0x1401
push 4
push dword [esi + 0x44]
call dword [0x100b7ea4]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10054aad
add esp, 0x48
ret
Function at 0x100514c0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov eax, dword [0x100b7db4]
push esi
test eax, eax
je 0x100514cf
mov esi, dword [eax + 0x74]
jmp 0x100514d1
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x100514f4
mov dword [esi], eax
pop esi
ret
Function at 0x10058ca6
Capabilities:
Parse pe header

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

Function at 0x1005e086
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10055ae0
mov eax, dword [0x100b3100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10064483
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005e0c8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005e224
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006f380
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100b6558]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10064965
mov ecx, dword [esi*4 + 0x100b6558]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1005e21d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1005e21d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005e21d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10064965
add esp, 0x14
test edx, edx
jl 0x1005e21d
jg 0x1005e193
test eax, eax
jb 0x1005e21d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005e21d
jl 0x1005e1ad
cmp dword [ebp - 0x1008], eax
ja 0x1005e21d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005e1cb
test ebx, ebx
je 0x1005e204
cmp ecx, edi
jae 0x1005e204
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005e1e5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005e1f1
cmp byte [ecx + 1], 0xa
jne 0x1005e1f1
inc ecx
jmp 0x1005e1f1
movzx eax, al
movsx eax, byte [eax + 0x100b3358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005e1cb
cmp edx, ebx
jne 0x1005e1cb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005e222
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10054aad
leave
ret
Function at 0x10063544
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10078194
push 0x1007818c
push str.FlsAlloc
push 0x1f
call fcn.10063420
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10063578
push dword [ebp + 8]
mov ecx, esi
call dword [0x10075278]
call esi
jmp 0x1006357e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100635c2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100781a4
push 0x1007819c
push str.FlsGetValue
push 0x21
call fcn.10063420
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100635f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10075278]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10063601
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100781ac
push 0x100781a4
push str.FlsSetValue
push 0x22
call fcn.10063420
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006363b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10075278]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100649e1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100b6558]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10064a21
cmp byte [ebx], 0xa
jne 0x10064a21
or byte [edi + eax + 0x28], 4
jmp 0x10064a26
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10064b25
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10064b08
inc eax
cmp dl, 0xd
je 0x10064a52
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10064a78
cmp eax, ecx
jae 0x10064a86
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10064a3a
jmp 0x10064b25
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10064b03
cmp dword [ebp - 0x10], 0
je 0x10064b03
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b6558]
test byte [eax + edi + 0x28], 0x48
je 0x10064add
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10064ac8
mov byte [esi], dl
jmp 0x10064ad9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b6558]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10064b25
cmp byte [ebp - 1], 0xa
jne 0x10064aec
cmp esi, ebx
jne 0x10064aec
mov byte [esi], 0xa
jmp 0x10064b24
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10064983
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10064b25
mov byte [esi], 0xd
jmp 0x10064b24
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b6558]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10064b22
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10064b25
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10064b2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100b6558]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10064b74
cmp word [ebx], dx
jne 0x10064b74
or byte [eax + edi + 0x28], 4
jmp 0x10064b79
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10064cdc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10064cbc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10064bba
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10064bf0
cmp eax, edx
jae 0x10064bfe
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10064b95
jmp 0x10064cdc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10064cb7
cmp dword [ebp - 0x18], 0
je 0x10064cb7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b6558]
test byte [eax + edi + 0x28], 0x48
je 0x10064c8d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10064c51
mov word [esi], cx
jmp 0x10064c88
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b6558]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100b6558]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b6558]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10064cdc
pop eax
cmp word [ebp - 4], ax
jne 0x10064c9d
cmp esi, ebx
jne 0x10064c9d
mov word [esi], ax
jmp 0x10064cd9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10064983
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10064cdc
push 0xd
pop eax
jmp 0x10064c98
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b6558]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10064cd6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10064cdc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10068c8d
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 0x10068d2a
push ebx
push esi
call fcn.10068c56
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.10068bea
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10068cd7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10068d29
push edi
push eax
call fcn.10063bd9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10068cf7
call fcn.100632cd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10068d28
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10068bea
add esp, 0x20
test eax, eax
jne 0x10068d16
push edi
call fcn.100632cd
jmp 0x10068d1e
push ebx
call fcn.100632cd
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