joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017c00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
mov dword [ebp - 0x10], 0
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x10017c28
mov byte [ebp - 4], al
mov byte [esi], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
mov byte [esi], bl
test eax, eax
je 0x10017c5f
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
shl eax, 2
mov dword [ebp - 0x10], 0
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x10017c9b
mov byte [ebp - 4], al
mov dword [esi], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
mov dword [esi], edi
test eax, eax
je 0x10017cd2
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10017ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
shl eax, 2
mov dword [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x10017d0d
movss xmm0, dword [ebp + 0xc]
mov byte [ebp - 4], al
movss dword [esi], xmm0
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movss xmm0, dword [ebp + 0xc]
test eax, eax
setne byte [ebp - 4]
movss dword [esi], xmm0
test eax, eax
je 0x10017d4b
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10018320
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0xf
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jbe 0x1001833e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x10018364
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10018350
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.10010580
xor ecx, ecx
pop edi
pop esi
cmp dword [eax + 4], ecx
pop ebx
setne cl
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x10018b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esi], 0
test edx, edx
jne 0x10018b4f
xor al, al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
push ecx
push 0x40
push edx
push eax
mov dword [esi + 4], edx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1001b6d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100446dd
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x100c7140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
lea ecx, [ebp - 0x58]
mov eax, esp
mov dword [eax], str.D8_0D_________D8_0D_________DE_E9_D9_5A_04
mov dword [eax + 4], 0x2a
call fcn.100187b0
push 1
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.100017a0
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
call fcn.100017a0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xa4]
push dword [eax]
call fcn.10018ab0
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 0xc
push esi
mov dword [ebp - 0xb4], 0xc
mov dword [ebp - 0xb8], esi
call edi
test eax, eax
setne byte [ebp - 0xac]
mov dword [esi], 0x90909090
mov dword [esi + 4], 0x90909090
mov dword [esi + 8], 0x90909090
cmp byte [ebp - 0xac], 0
je 0x1001b7b4
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
push ecx
push eax
push dword [ebp - 0xb4]
mov dword [ebp - 0xa4], eax
push dword [ebp - 0xb8]
call edi
sub esp, 8
lea ecx, [ebp - 0xa0]
mov eax, esp
mov dword [eax], str.D9_5A_0C_83_C4_08_5B_C2_04_00
mov dword [eax + 4], 0x1d
call fcn.100187b0
push eax
lea ecx, [ebp - 0x58]
call fcn.10018e00
lea ecx, [ebp - 0xa0]
call fcn.10018d20
push 1
lea ecx, [ebp - 0x58]
call fcn.100017a0
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
call fcn.100017a0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xa4]
push dword [eax]
call fcn.10018ab0
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0xb0]
push eax
push 0x40
push 3
push esi
mov dword [ebp - 0xb4], 3
mov dword [ebp - 0xb8], esi
call edi
test eax, eax
mov eax, 0x90909090
setne byte [ebp - 0xac]
mov word [esi], ax
mov byte [esi + 2], al
cmp byte [ebp - 0xac], 0
je 0x1001b86c
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
push ecx
push eax
push dword [ebp - 0xb4]
mov dword [ebp - 0xa4], eax
push dword [ebp - 0xb8]
call edi
push 0xffffffffffffffff
mov ecx, 0x100c7088
call fcn.100017a0
mov eax, dword [0x100c70b8]
push 1
push ecx
mov edx, dword [eax + 0x38]
mov eax, esp
push ecx
mov ecx, esp
mov dword [eax], 0x1001b360
lea eax, [edx + 7]
push eax
call fcn.10018ab0
lea eax, [ebp - 0xa8]
push eax
call fcn.1001f650
add esp, 0x10
mov ecx, 0x100c7088
mov eax, dword [eax]
push 0xffffffffffffffff
mov dword [0x100c8628], eax
call fcn.100017a0
mov eax, dword [0x100c70b8]
push 1
push ecx
mov edx, dword [eax + 0x54]
mov eax, esp
push ecx
mov ecx, esp
mov dword [eax], 0x1001b360
lea eax, [edx + 7]
push eax
call fcn.10018ab0
lea eax, [ebp - 0xa8]
push eax
call fcn.1001f650
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.10018d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100230bc
mov esp, ebp
pop ebp
ret
Function at 0x1001dcf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, bl
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], edx
push esi
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test bl, bl
jne 0x1001dd1a
xor cl, cl
jmp 0x1001dd35
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 0xc], cl
mov ch, byte [esi]
mov byte [ebp + 0x13], ch
test cl, cl
je 0x1001dd58
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp + 0x13]
movzx ecx, ch
sub ecx, 0xe8
je 0x1001ddf5
sub ecx, 1
je 0x1001ddf5
sub ecx, 0x16
jne 0x1001dde5
push ebx
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.10017ba0
add esp, 8
cmp al, 0x15
je 0x1001dd8c
cmp al, 0x25
jne 0x1001dde5
mov eax, dword [ebp - 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
shl eax, 2
add esi, 2
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x1001dda5
xor al, al
jmp 0x1001ddbd
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 0x18]
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov esi, dword [esi]
test al, al
je 0x1001ddd7
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
inc eax
push ebx
push 4
push ecx
mov ecx, esp
push esi
mov dword [ecx], eax
call fcn.100207b0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001f650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push ebx
push ecx
mov ecx, esp
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.1001dcf0
mov esi, dword [ebp + 0xc]
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x10], 0
test bl, bl
jne 0x1001f688
mov byte [ebp - 4], bl
mov byte [esi], 0xe8
jmp 0x1001f6c0
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
mov byte [esi], 0xe8
test eax, eax
je 0x1001f6c0
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push 4
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, esp
push ecx
mov dword [edx], ecx
mov edx, esp
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [edx], ecx
call fcn.1001f800
mov eax, dword [ebp + 8]
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001f6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push ebx
push ecx
mov ecx, esp
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.1001dcf0
mov esi, dword [ebp + 0xc]
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x10], 0
test bl, bl
jne 0x1001f728
mov byte [ebp - 4], bl
mov byte [esi], 0xe9
jmp 0x1001f760
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
mov byte [esi], 0xe9
test eax, eax
je 0x1001f760
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push 4
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, esp
push ecx
mov dword [edx], ecx
mov edx, esp
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [edx], ecx
call fcn.1001f800
mov eax, dword [ebp + 8]
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001f790
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], al
push esi
cmovne eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1001f7b3
mov byte [ebp - 4], al
jmp 0x1001f7cd
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
push dword [ebp + 0xc]
push 0x90
push esi
call fcn.100249e0
add esp, 0xc
cmp byte [ebp - 4], 0
je 0x1001f7fb
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f800
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x1001f834
sub eax, 1
je 0x1001f88d
sub eax, 2
je 0x1001f8ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
sub bl, al
mov bh, byte [ebp + 0x14]
dec bl
mov dword [ebp - 4], eax
movzx ecx, bh
mov dword [ebp - 0x18], 0
test bh, bh
jne 0x1001f859
mov byte [ebp - 0xc], bh
mov byte [eax], bl
jmp 0x1001f890
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 4]
test eax, eax
setne byte [ebp - 0xc]
mov byte [ecx], bl
test eax, eax
je 0x1001f890
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
jmp 0x1001f890
mov bh, byte [ebp + 0x14]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
sub eax, esi
movzx eax, ax
mov dword [ebp - 8], eax
movzx ecx, ax
movzx eax, bh
add eax, eax
jne 0x1001f8ba
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x1001f8ed
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov word [esi], cx
test eax, eax
je 0x1001f8ed
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, esi
mov ebx, dword [ebp + 0xc]
sub ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x14]
shl eax, 2
test eax, eax
jne 0x1001f918
mov byte [ebp - 0xc], al
mov dword [esi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], ebx
test eax, eax
je 0x1001f947
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100207b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
push ebx
push esi
push edi
sub eax, 1
je 0x100208b0
sub eax, 1
je 0x10020847
sub eax, 2
je 0x100207df
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
shl ecx, 2
mov dword [ebp - 0x10], edx
test ecx, ecx
jne 0x100207fe
xor cl, cl
jmp 0x10020819
lea edx, [ebp - 8]
mov dword [ebp - 0xc], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x10], eax
call edi
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 4], cl
mov esi, dword [esi]
test cl, cl
je 0x10020836
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 4]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x10], edx
add ecx, ecx
jne 0x10020863
xor cl, cl
jmp 0x1002087e
lea edx, [ebp - 8]
mov dword [ebp - 0xc], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x10], eax
call edi
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 4], cl
movzx esi, word [esi]
test cl, cl
je 0x1002089c
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
movsx ecx, si
add ecx, 2
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x10], edx
test ecx, ecx
jne 0x100208cc
xor cl, cl
jmp 0x100208e7
lea edx, [ebp - 8]
mov dword [ebp - 0xc], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x10], eax
call edi
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 4], cl
mov bl, byte [esi]
test cl, cl
je 0x10020904
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
movsx ecx, bl
inc ecx
add ecx, eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100227ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10022813
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10022816
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100227c8
pop esi
leave
ret 8

Function at 0x10030c3c
Capabilities:
Parse pe header

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

Function at 0x10034438
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ba8a8
push 0x100ba8a0
push str.FlsAlloc
push 0x1f
call fcn.10034300
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003446c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100461a4]
call esi
jmp 0x10034472
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100344b6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ba8b8
push 0x100ba8b0
push str.FlsGetValue
push 0x21
call fcn.10034300
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100344ed
push dword [ebp + 8]
mov ecx, esi
call dword [0x100461a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100344f5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ba8c0
push 0x100ba8b8
push str.FlsSetValue
push 0x22
call fcn.10034300
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003452f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100461a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10035fb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100241a0
mov eax, dword [0x100c7140]
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.10034a6b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10035ff8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10036154
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10043060
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 + 0x100c9228]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10036fb3
mov ecx, dword [esi*4 + 0x100c9228]
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 0x1003614d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1003614d
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 0x1003614d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10036fb3
add esp, 0x14
test edx, edx
jl 0x1003614d
jg 0x100360c3
test eax, eax
jb 0x1003614d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003614d
jl 0x100360dd
cmp dword [ebp - 0x1008], eax
ja 0x1003614d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100360fb
test ebx, ebx
je 0x10036134
cmp ecx, edi
jae 0x10036134
mov al, byte [ecx]
cmp al, 0xd
jne 0x10036115
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10036121
cmp byte [ecx + 1], 0xa
jne 0x10036121
inc ecx
jmp 0x10036121
movzx eax, al
movsx eax, byte [eax + 0x100c7408]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100360fb
cmp edx, ebx
jne 0x100360fb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10036152
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100230bc
leave
ret
Function at 0x1003644b
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 + 0x100c9228]
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 0x1003648b
cmp byte [ebx], 0xa
jne 0x1003648b
or byte [edi + eax + 0x28], 4
jmp 0x10036490
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 0x1003658f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10036572
inc eax
cmp dl, 0xd
je 0x100364bc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100364e2
cmp eax, ecx
jae 0x100364f0
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 0x100364a4
jmp 0x1003658f
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 0x1003656d
cmp dword [ebp - 0x10], 0
je 0x1003656d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c9228]
test byte [eax + edi + 0x28], 0x48
je 0x10036547
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10036532
mov byte [esi], dl
jmp 0x10036543
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c9228]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003658f
cmp byte [ebp - 1], 0xa
jne 0x10036556
cmp esi, ebx
jne 0x10036556
mov byte [esi], 0xa
jmp 0x1003658e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10036fd1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003658f
mov byte [esi], 0xd
jmp 0x1003658e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c9228]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003658c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003658f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret