joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d2a0
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 + 0x4348c8]
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 0x41d2e0
cmp byte [ebx], 0xa
jne 0x41d2e0
or byte [edi + eax + 0x28], 4
jmp 0x41d2e5
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 0x41d3e4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41d3c7
inc eax
cmp dl, 0xd
je 0x41d311
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41d337
cmp eax, ecx
jae 0x41d345
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 0x41d2f9
jmp 0x41d3e4
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 0x41d3c2
cmp dword [ebp - 0x10], 0
je 0x41d3c2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4348c8]
test byte [eax + edi + 0x28], 0x48
je 0x41d39c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d387
mov byte [esi], dl
jmp 0x41d398
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4348c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d3e4
cmp byte [ebp - 1], 0xa
jne 0x41d3ab
cmp esi, ebx
jne 0x41d3ab
mov byte [esi], 0xa
jmp 0x41d3e3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041dcef
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d3e4
mov byte [esi], 0xd
jmp 0x41d3e3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4348c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d3e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d3e4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d3ed
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 + 0x4348c8]
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 0x41d433
cmp word [ebx], dx
jne 0x41d433
or byte [eax + edi + 0x28], 4
jmp 0x41d438
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 0x41d59b
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 0x41d57b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41d479
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d4af
cmp eax, edx
jae 0x41d4bd
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 0x41d454
jmp 0x41d59b
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 0x41d576
cmp dword [ebp - 0x18], 0
je 0x41d576
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4348c8]
test byte [eax + edi + 0x28], 0x48
je 0x41d54c
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 0x41d510
mov word [esi], cx
jmp 0x41d547
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4348c8]
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 + 0x4348c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4348c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41d59b
pop eax
cmp word [ebp - 4], ax
jne 0x41d55c
cmp esi, ebx
jne 0x41d55c
mov word [esi], ax
jmp 0x41d598
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041dcef
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41d59b
push 0xd
pop eax
jmp 0x41d557
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4348c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41d595
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41d59b
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 0x41e5fa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c2a0
push 0x42c298
push str.FlsAlloc
push 0x1f
call fcn.0041e496
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e62e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281cc]
call esi
jmp 0x41e634
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e678
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c2b0
push 0x42c2a8
push str.FlsGetValue
push 0x21
call fcn.0041e496
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e6af
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41e6b7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c2b8
push 0x42c2b0
push str.FlsSetValue
push 0x22
call fcn.0041e496
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e6f1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41f990
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 0x41fa2d
push ebx
push esi
call fcn.0041f959
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.0041e2dd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f9da
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fa2c
push edi
push eax
call fcn.0041a5f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f9fa
call fcn.0041a5b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fa2b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e2dd
add esp, 0x20
test eax, eax
jne 0x41fa19
push edi
call fcn.0041a5b6
jmp 0x41fa21
push ebx
call fcn.0041a5b6
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 0x424845
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004247c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4249b4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4249b4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424969
jg 0x4248a1
test eax, eax
je 0x42495f
push 1
push 0x1000
call fcn.0041e9b2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4248c4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424956
push 0x8000
push ebx
call fcn.00418026
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4248ed
jg 0x4248e8
cmp ecx, 0x1000
jb 0x4248ed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041d084
add esp, 0x10
cmp eax, 0xffffffff
je 0x424932
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4248e8
jl 0x424919
test ecx, ecx
jne 0x4248da
push dword [ebp - 0xc]
push ebx
call fcn.00418026
push esi
call fcn.0041a5b6
add esp, 0xc
xor ebx, ebx
jmp 0x4249c2
cmp byte [edi + 0x24], 0
je 0x424949
cmp dword [edi + 0x20], 5
jne 0x424949
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424954
mov ebx, dword [edi + 0x18]
jmp 0x424956
xor ebx, ebx
push esi
call fcn.0041a5b6
pop ecx
jmp 0x4249c2
test ecx, ecx
jg 0x42492b
jl 0x424969
test eax, eax
jae 0x42492b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041dcef
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424989
cmp byte [edi + 0x1c], 0
je 0x42492b
jmp 0x4249ba
push ebx
call fcn.0041fe1f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42492b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4249c2
cmp byte [edi + 0x1c], 0
je 0x4249bf
mov ebx, dword [edi + 0x18]
jmp 0x4249c2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041dcef
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425da0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425dcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425dcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100017d9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0x1002b68f
call fcn.1001c638
mov edi, dword [ebp + 8]
mov eax, edi
and dword [ebp - 4], 0
sub eax, 1
je 0x10001801
sub eax, 1
je 0x10001801
push 6
jmp 0x10001803
push 5
mov ebx, dword [ebp + 0x14]
pop eax
add ebx, eax
mov dword [ebp + 8], eax
push 0x1001d1c7
push ebx
call fcn.100083f4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100018ff
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub ecx, eax
sub ecx, dword [ebp + 0xc]
cmp edi, 1
je 0x1000183a
push 2
pop edx
cmp edi, edx
jne 0x1000183d
xor edx, edx
inc edx
dec edi
cmp edi, 0xd
ja case.default.0x10001843
jmp dword [edi*4 + 0x10001909]
mov byte [esi], 0xe9
jmp case.default.0x10001843
mov byte [esi], 0xe8
jmp case.default.0x10001843
mov word [esi], 0x840f
jmp case.default.0x10001843
mov word [esi], 0x850f
jmp case.default.0x10001843
mov word [esi], 0x8c0f
jmp case.default.0x10001843
mov word [esi], 0x8d0f
jmp case.default.0x10001843
mov word [esi], 0x8e0f
jmp case.default.0x10001843
mov word [esi], 0x8f0f
jmp case.default.0x10001843
mov word [esi], 0x820f
jmp case.default.0x10001843
mov word [esi], 0x830f
jmp case.default.0x10001843
mov word [esi], 0x860f
jmp case.default.0x10001843
mov word [esi], 0x870f
mov dword [edx + esi], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100018b3
push ecx
add eax, esi
push 0x90
push eax
call fcn.100095d0
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x100018ff
push ebx
push esi
push dword [ebp + 0xc]
call fcn.1000ab00
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x100018ff
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
call fcn.1000833a
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10001964
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
push edi
mov ecx, 0x1002b68f
call fcn.1001c638
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
push eax
mov dword [ebp + 8], eax
call fcn.1000b8dc
push 0
mov ebx, eax
call fcn.1000b4f5
push eax
call fcn.1000b889
push edi
push esi
push ebx
call fcn.1000ab00
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, ecx
mov ecx, dword [ebp - 4]
add esp, 0x18
sub eax, ecx
mov dword [ebx + edi], eax
lea eax, [ebp - 8]
mov edi, dword [ebp + 8]
push eax
push 0x40
push edi
push ecx
call esi
push edi
push ebx
mov ebx, dword [ebp - 4]
push ebx
call fcn.1000ab00
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, 0x1002b68f
call fcn.1001c638
mov edx, esi
mov ecx, edi
call fcn.100019e5
mov esi, dword [ebp + 8]
add edi, 5
push esi
call fcn.1000b8dc
pop ecx
mov ebx, eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x10001a5d
push esi
push 0x90
push ebx
call fcn.100095d0
add esp, 0xc
push esi
push ebx
push edi
call fcn.1000ab00
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100027f9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x1002b68f
call fcn.1001c638
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002837
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 8

Function at 0x1000283c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x1002b68f
call fcn.1001c638
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000287a
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 0xc

Function at 0x10002d63
Capabilities:
Allocate or change rwx memory

Disassembly:
push 8
push 0x10026070
call fcn.10008bc0
mov ecx, 0x1002b69d
call fcn.1001c638
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
sub eax, esi
je 0x10002e45
sub eax, 1
jne 0x10002e5b
lea eax, [ebp + 8]
push eax
push 0x40
push 0x1effff
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10001aa9
push 0x1002311c
mov ebx, str.ntdlll.dll
push ebx
lea eax, [ebp + 0xc]
push eax
call fcn.1000e9a8
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x10002de9
push 2
push esi
push dword [ebp + 0xc]
call fcn.1000e8b7
push dword [ebp + 0xc]
call fcn.1000e449
mov esi, eax
push dword [ebp + 0xc]
call fcn.1000e59e
add esp, 0x14
cmp esi, 0x36600
jne 0x10002e77
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10002e77
mov edx, 0x5d3418
lea ecx, [edx - 0x1b]
call fcn.100019e5
mov edx, 0x5d3434
lea ecx, [edx - 0x1b]
call fcn.100019e5
mov edx, 0x5d344c
lea ecx, [edx - 0x17]
call fcn.100019e5
call fcn.1000270b
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x1effff
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10002e5b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10002e5b
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
push 1
call fcn.1000de0e
int3
Function at 0x1000dcf6
Capabilities:
Parse pe header

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

Function at 0x1000e242
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001c250
mov eax, dword [0x10027040]
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.100108ba
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1000e284
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1000e3e0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001c1a0
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 + 0x10028110]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100127c2
mov ecx, dword [esi*4 + 0x10028110]
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 0x1000e3d9
cmp eax, dword [ecx + edi + 0x24]
jne 0x1000e3d9
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 0x1000e3d9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100127c2
add esp, 0x14
test edx, edx
jl 0x1000e3d9
jg 0x1000e34f
test eax, eax
jb 0x1000e3d9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000e3d9
jl 0x1000e369
cmp dword [ebp - 0x1008], eax
ja 0x1000e3d9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1000e387
test ebx, ebx
je 0x1000e3c0
cmp ecx, edi
jae 0x1000e3c0
mov al, byte [ecx]
cmp al, 0xd
jne 0x1000e3a1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1000e3ad
cmp byte [ecx + 1], 0xa
jne 0x1000e3ad
inc ecx
jmp 0x1000e3ad
movzx eax, al
movsx eax, byte [eax + 0x10027238]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1000e387
cmp edx, ebx
jne 0x1000e387
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1000e3de
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10007fb1
leave
ret
Function at 0x100101fc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ebf0
push 0x1001ebe8
push str.FlsAlloc
push 0x1f
call fcn.10010118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010230
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d130]
call esi
jmp 0x10010236
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001027a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ec00
push 0x1001ebf8
push str.FlsGetValue
push 0x21
call fcn.10010118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100102b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100102b9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ec08
push 0x1001ec00
push str.FlsSetValue
push 0x22
call fcn.10010118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100102f3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001d130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001283e
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 + 0x10028110]
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 0x1001287e
cmp byte [ebx], 0xa
jne 0x1001287e
or byte [edi + eax + 0x28], 4
jmp 0x10012883
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 0x10012982
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10012965
inc eax
cmp dl, 0xd
je 0x100128af
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100128d5
cmp eax, ecx
jae 0x100128e3
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 0x10012897
jmp 0x10012982
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 0x10012960
cmp dword [ebp - 0x10], 0
je 0x10012960
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10028110]
test byte [eax + edi + 0x28], 0x48
je 0x1001293a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10012925
mov byte [esi], dl
jmp 0x10012936
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10028110]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10012982
cmp byte [ebp - 1], 0xa
jne 0x10012949
cmp esi, ebx
jne 0x10012949
mov byte [esi], 0xa
jmp 0x10012981
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100127e0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10012982
mov byte [esi], 0xd
jmp 0x10012981
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10028110]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001297f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10012982
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret