joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d9e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
mov eax, dword [0x100bc128]
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x1a6c]
mov esi, 4
add edi, 0xc0
mov dword [esp + 0x10], ecx
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + ebp*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100a9490]
sub esi, 1
jne 0x1001da10
mov ecx, dword [edi + 4]
not ebx
cmp ebp, ecx
jne 0x1001da57
inc ebp
test ecx, ecx
je 0x1001da43
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001da48
mov eax, 8
cmp eax, ebp
mov ecx, edi
cmovg ebp, eax
push ebp
call fcn.10024570
mov ebp, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ebp*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10022b30
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0xc
mov edx, dword [0x100bc128]
mov eax, ecx
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], eax
xor esi, esi
mov ebp, dword [edi + 0x1a6c]
test al, 0x10
jne 0x10022c82
mov ebx, dword [ebp + 0x118]
test ebx, ebx
je 0x10022b6b
cmp dword [edi + 0x1aa4], ebx
jne 0x10022c78
cmp byte [edi + 0xec], 0
je 0x10022c78
test ebx, ebx
jne 0x10022c07
test al, 8
je 0x10022c78
test byte [ebp + 0x11c], 1
jne 0x10022ba9
cmp dword [edi + 0x1aa4], esi
je 0x10022c78
cmp dword [edi + 0x1ad0], ebp
jne 0x10022c78
lea esi, [ebp + 0x120]
mov ecx, ebp
push esi
call fcn.10014320
mov ebx, eax
mov ecx, esi
mov edx, ebx
mov dword [ebp + 0x118], ebx
call fcn.10014670
mov cl, al
mov byte [esp + 0x13], cl
test cl, cl
je 0x10022bef
cmp byte [edi + 0x3d8], 0
je 0x10022bef
mov edx, ebp
mov ecx, ebx
call fcn.100143e0
mov ecx, ebp
call fcn.1001d240
mov cl, byte [esp + 0x13]
mov eax, dword [edi + 0x1aa4]
cmp eax, ebx
jne 0x10022bff
mov byte [edi + 0x1ab1], cl
mov edx, dword [0x100bc128]
jmp 0x10022c14
mov eax, dword [edi + 0x1aa4]
mov byte [edi + 0x1ab1], 0
cmp eax, ebx
jne 0x10022c78
cmp byte [edx + 0xec], 0
mov ecx, dword [ebp + 0xc0]
mov eax, dword [ebp + 0xc8]
mov esi, dword [eax + ecx*4 - 4]
jne 0x10022c35
xor al, al
jmp 0x10022c4c
movss xmm1, dword [edx + 0x30]
movss xmm0, dword [edx + 0x444]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
mov dword [edi + 0x1ab8], 0xffffffff
mov dword [edi + 0x1abc], 0xffffffff
mov dword [edi + 0x1ac0], 0xffffffff
mov dword [edi + 0x1ac4], 0xffffffff
test al, al
jne 0x10022cbc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
or ebx, 0xffffffff
mov edx, 0x100a9289
mov al, 0x23
or esi, 0xffffffff
cmp al, 0x23
jne 0x10022c9f
cmp byte [edx], al
jne 0x10022c9f
cmp byte [edx + 1], al
cmove ebx, esi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x100a9490]
test al, al
jne 0x10022c91
not ebx
mov esi, ebp
cmp byte [edi + 0x1e6c], 0
jne 0x10022d00
call fcn.10022a50
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1e84], ebx
mov dword [edi + 0x1e88], esi
mov byte [edi + 0x1e6c], 1
mov dword [edi + 0x1e70], eax
mov dword [edi + 0x1e78], 0
cmp ebx, dword [edi + 0x1aa4]
jne 0x10022d00
mov byte [edi + 0x1ab2], 1
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x1a10]
mov dword [edi + 0x1e74], eax
mov byte [edi + 0x1e6d], 1
test bl, 1
jne 0x10022d4e
xor edx, edx
xor ecx, ecx
call fcn.1001e8b0
cmp dword [edi + 0x1ed4], 0
je 0x10022d4e
test dword [edi + 0x1ec8], 0x1000
je 0x10022d4e
mov eax, dword [edi + 0x1a6c]
mov byte [eax + 0x8f], 1
mov byte [eax + 0xa8], 1
test bl, 0x12
jne 0x10022d5a
and dword [ebp + 0x11c], 0xfffffffe
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x10027540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, ecx
mov dword [esp + 8], 0xffffffff
push ebp
push esi
mov eax, edx
mov dword [esp + 0xc], ebx
movq xmm0, qword [ebx + 0x70]
mov esi, dword [ebx + 0x78]
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x24]
test esi, esi
js 0x100276b1
xor edx, edx
test esi, esi
jle 0x100276b3
mov cl, byte [edi]
mov edx, 1
test cl, cl
je 0x100276b3
cmp cl, 3
jne 0x10027636
cmp edx, esi
jl 0x1002759f
xor al, al
jmp 0x100275a3
mov al, byte [edi + edx]
inc edx
movzx ecx, al
cmp edx, esi
jl 0x100275ae
xor al, al
jmp 0x100275b2
mov al, byte [edi + edx]
inc edx
shl ecx, 8
movzx eax, al
or ecx, eax
mov dword [esp + 0x1c], ecx
cmp edx, esi
jl 0x100275c6
xor al, al
jmp 0x100275ca
mov al, byte [edi + edx]
inc edx
movzx ebp, al
cmp edx, esi
jl 0x100275d5
xor al, al
jmp 0x100275d9
mov al, byte [edi + edx]
inc edx
shl ebp, 8
xor ebx, ebx
movzx eax, al
or ebp, eax
test ecx, ecx
je 0x10027632
cmp edx, esi
jl 0x100275ef
xor al, al
jmp 0x100275f3
mov al, byte [edi + edx]
inc edx
movzx eax, al
mov dword [esp + 0x20], eax
cmp edx, esi
jl 0x10027602
xor al, al
jmp 0x10027606
mov al, byte [edi + edx]
inc edx
movzx eax, al
cmp edx, esi
jl 0x10027611
xor cl, cl
jmp 0x10027615
mov cl, byte [edi + edx]
inc edx
shl eax, 8
movzx ecx, cl
or eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
jl 0x10027629
cmp ecx, eax
jl 0x100276a7
inc ebx
mov ebp, eax
cmp ebx, dword [esp + 0x1c]
jl 0x100275e7
mov ebx, dword [esp + 0x10]
movq xmm0, qword [ebx + 0x64]
sub esp, 0xc
mov eax, dword [ebx + 0x6c]
mov edx, esp
mov ecx, dword [esp + 0x20]
movq qword [edx], xmm0
mov dword [edx + 8], eax
lea eax, [esp + 0x30]
push eax
call fcn.10025d20
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
movq xmm0, qword [ebx + 0x34]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [ebx + 0x3c]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x48]
push eax
call fcn.10025ee0
mov edx, dword [esp + 0x40]
pop edi
pop esi
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, edx
pop ebp
movq qword [edx], xmm0
mov dword [edx + 8], ecx
pop ebx
add esp, 0x2c
ret 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x10027632
mov edx, esi
add eax, edx
cmp eax, esi
jg 0x100276d0
test eax, eax
js 0x100276d0
cmp eax, esi
jge 0x100276d0
mov al, byte [edi + eax]
movzx eax, al
mov dword [esp + 0x14], eax
jmp 0x10027636
xor al, al
movzx eax, al
mov dword [esp + 0x14], eax
jmp 0x10027636
Function at 0x1002c8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002c8d6
mov eax, dword [0x100bc128]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002c8c6
dec dword [eax + 0x370]
push ecx
call fcn.1007998a
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002c90a
mov eax, dword [0x100bc128]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002c8fa
dec dword [eax + 0x370]
push ecx
call fcn.1007998a
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002c93e
mov eax, dword [0x100bc128]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002c92e
dec dword [eax + 0x370]
push ecx
call fcn.1007998a
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 ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1002c98e
mov eax, dword [0x100bc128]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002c97e
dec dword [eax + 0x370]
push ecx
call fcn.1007998a
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1002c9c2
mov eax, dword [0x100bc128]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1002c9b2
dec dword [eax + 0x370]
push ecx
call fcn.1007998a
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1002c9f6
mov eax, dword [0x100bc128]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1002c9e6
dec dword [eax + 0x370]
push ecx
call fcn.1007998a
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1002f020
Function at 0x10040540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
or eax, 2
mov dword [esp + 4], eax
jmp fcn.10040550
Function at 0x1005f9f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x1005fa00
mov eax, dword [esi]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
js 0x1005fa82
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1005fa82
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx*2 + 2]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x1005fa7b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1005fa7b
cmp dword [esi + 0x14], 0x10
jb 0x1005fa59
mov esi, dword [esi]
push ebx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 4

Function at 0x1005fa90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100999c0
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
push 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1005fb02
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x1005fafc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1005fafc
push eax
mov ecx, esi
call fcn.10009bb0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10062fa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100999b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], 0x100ae06c
call fcn.1007140e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10072937
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10079f4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10095780
mov eax, dword [0x100ba014]
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.1008724c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10079f8e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007a0ea
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100956d0
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 + 0x100bbc90]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10088176
mov ecx, dword [esi*4 + 0x100bbc90]
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 0x1007a0e3
cmp eax, dword [ecx + edi + 0x24]
jne 0x1007a0e3
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 0x1007a0e3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10088176
add esp, 0x14
test edx, edx
jl 0x1007a0e3
jg 0x1007a059
test eax, eax
jb 0x1007a0e3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007a0e3
jl 0x1007a073
cmp dword [ebp - 0x1008], eax
ja 0x1007a0e3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007a091
test ebx, ebx
je 0x1007a0ca
cmp ecx, edi
jae 0x1007a0ca
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007a0ab
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007a0b7
cmp byte [ecx + 1], 0xa
jne 0x1007a0b7
inc ecx
jmp 0x1007a0b7
movzx eax, al
movsx eax, byte [eax + 0x100ba2c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007a091
cmp edx, ebx
jne 0x1007a091
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007a0e8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10072220
leave
ret

Function at 0x10082308
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10082347
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10082347
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10082347
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10082347
cmp dword [ecx + 0x74], 0xe
jbe 0x10082347
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100881f2
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 + 0x100bbc90]
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 0x10088232
cmp byte [ebx], 0xa
jne 0x10088232
or byte [edi + eax + 0x28], 4
jmp 0x10088237
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 0x10088336
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10088319
inc eax
cmp dl, 0xd
je 0x10088263
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10088289
cmp eax, ecx
jae 0x10088297
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 0x1008824b
jmp 0x10088336
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 0x10088314
cmp dword [ebp - 0x10], 0
je 0x10088314
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100bbc90]
test byte [eax + edi + 0x28], 0x48
je 0x100882ee
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100882d9
mov byte [esi], dl
jmp 0x100882ea
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100bbc90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10088336
cmp byte [ebp - 1], 0xa
jne 0x100882fd
cmp esi, ebx
jne 0x100882fd
mov byte [esi], 0xa
jmp 0x10088335
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10088194
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10088336
mov byte [esi], 0xd
jmp 0x10088335
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100bbc90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10088333
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10088336
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008833f
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 + 0x100bbc90]
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 0x10088385
cmp word [ebx], dx
jne 0x10088385
or byte [eax + edi + 0x28], 4
jmp 0x1008838a
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 0x100884ed
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 0x100884cd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100883cb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10088401
cmp eax, edx
jae 0x1008840f
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 0x100883a6
jmp 0x100884ed
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 0x100884c8
cmp dword [ebp - 0x18], 0
je 0x100884c8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100bbc90]
test byte [eax + edi + 0x28], 0x48
je 0x1008849e
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 0x10088462
mov word [esi], cx
jmp 0x10088499
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100bbc90]
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 + 0x100bbc90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100bbc90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100884ed
pop eax
cmp word [ebp - 4], ax
jne 0x100884ae
cmp esi, ebx
jne 0x100884ae
mov word [esi], ax
jmp 0x100884ea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10088194
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100884ed
push 0xd
pop eax
jmp 0x100884a9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100bbc90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100884e7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100884ed
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 0x10089481
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a17b0
push 0x100a17a8
push str.FlsAlloc
push 0x1f
call fcn.10089349
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100894b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009d224]
call esi
jmp 0x100894bb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100894ff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a17c0
push 0x100a17b8
push str.FlsGetValue
push 0x21
call fcn.10089349
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10089536
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009d224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1008953e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a17c8
push 0x100a17c0
push str.FlsSetValue
push 0x22
call fcn.10089349
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10089578
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1009d224]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1008c048
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 0x1008c0e5
push ebx
push esi
call fcn.1008c011
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.1008bfa5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008c092
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008c0e4
push edi
push eax
call fcn.100863d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008c0b2
call fcn.10086396
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008c0e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1008bfa5
add esp, 0x20
test eax, eax
jne 0x1008c0d1
push edi
call fcn.10086396
jmp 0x1008c0d9
push ebx
call fcn.10086396
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 0x1009037f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1008492a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100903ee
cmp esi, dword [ebp - 4]
je 0x100903e9
cmp dword [ebp + 0xc], 0
je 0x100903e9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100903c6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1008fed1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100903f0
xor eax, eax
inc eax
jmp 0x100903f0
xor eax, eax
pop edi
pop esi
leave
ret