joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435db0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x435dd0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x435dd0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x435dd0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4477f0
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.004491d0
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.004491b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x447837
push edi
call fcn.004491e0
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.00447480
mov dword [esi + 4], fcn.00447310
mov dword [esi + 8], fcn.004473e0
mov dword [esi + 0xc], fcn.00447260
mov dword [esi + 0x10], 0x447b50
mov dword [esi + 0x14], 0x447ae0
mov dword [esi + 0x18], 0x447940
mov dword [esi + 0x1c], 0x447110
mov dword [esi + 0x20], 0x446fc0
mov dword [esi + 0x24], 0x4476f0
mov dword [esi + 0x28], 0x447bc0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x44791a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x44791a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x447909
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x447911
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x45d92d
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0x4db0d8
cmp dword [0x4db0d4], edi
jne 0x45d95c
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4db0d4], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4db0d0]
test esi, esi
je 0x45d9b7
test edi, edi
jne 0x45dafe
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x45d98d
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x45d97e
jmp 0x45d9a9
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.0045d8d6
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x45d96d
test edi, edi
jne 0x45dafe
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x45dafe
mov esi, dword [0x4db0d0]
jmp 0x45d9f8
cmp dword [esi + 0xc], 0x3f
jl 0x45da99
mov esi, dword [esi]
test esi, esi
jne 0x45d9ec
push 0x310
push 8
push dword [0x4d9bb8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x45daf8
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 8], eax
test eax, eax
je 0x45daea
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x45db11
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x45dae5
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.0045d8d6
mov eax, dword [0x4db0d0]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x45da91
mov dword [eax + 4], esi
mov dword [0x4db0d0], esi
jmp 0x45dafe
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.0045d8d6
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x45dafe
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0x4d9bb8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0x4db0d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x45e149
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x4d9bb8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4db504]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4db508], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00460eaf
mov dword [esi + 0x58], 0x45eec6
mov eax, esi
mov dword [esi + 0x5c], 0x45ef12
mov dword [esi + 0x10], fcn.0045e8fd
mov dword [esi + 0x30], 0x45e7ef
mov dword [esi + 0x64], 0x45ef9c
mov dword [esi + 0x60], 0x45ef54
mov dword [esi + 0x34], 0x45e49f
mov dword [esi + 0x24], 0x45e476
mov dword [esi + 0x28], 0x45e44b
mov dword [esi + 0x2c], 0x45e39d
mov dword [esi + 0x44], 0x45eb62
pop esi
ret 4
Function at 0x464143
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x4641f9
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x4641d9
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x4641b4
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x4641ee
add edi, dword [esp + 0x14]
jmp 0x4641f2
add edi, dword [esp + 0x24]
test edx, edx
jne 0x464192
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x464504
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x4645de
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x4645b4
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x46457c
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4645cb
add edi, ecx
jmp 0x4645cf
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x464552
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x464bfe
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x464cb3
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x464c94
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x464c6f
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x464ca9
add edx, dword [esp + 0x14]
jmp 0x464cad
add edx, dword [esp + 0x24]
test esi, esi
jne 0x464c4d
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x100094c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x100094e7
jl 0x100094de
test ebx, ebx
jne 0x100094e7
xor eax, eax
xor edx, edx
jmp 0x1000959f
cmp dword [esi + 0x38], 0
je 0x100094fc
push eax
push ebx
push dword [ebp + 8]
call fcn.100095a5
jmp 0x1000959f
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x1000953a
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x1000953a
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.1000ff50
mov ecx, dword [ebp - 4]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x10009540
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x10009594
mov ecx, esi
call fcn.10002f77
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x1000957f
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.10014373
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10009594
jmp 0x10009552
test edx, edx
je 0x10009594
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.10014373
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10009850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp ebx, 0x10
jae 0x100098cf
mov esi, dword [ebp + 8]
test esi, esi
je 0x100098cf
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x100098cf
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x100098cf
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x100098cf
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x100098cf
cmp dword [edi], 0x4550
jne 0x100098cf
push esi
call fcn.10009d90
movzx eax, al
add esp, 4
lea eax, [eax*2 + 0xf]
add eax, ebx
cmp byte [ebp + 0x10], 0
lea eax, [edi + eax*8]
jne 0x100098d1
xor ecx, ecx
cmp dword [eax], ecx
pop edi
pop esi
cmove eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100098e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x1000993c
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x1000993c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000993c
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x1000993c
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x1000993c
cmp dword [edi], 0x4550
jne 0x1000993c
push esi
call fcn.10009d90
mov eax, dword [edi + 0x28]
add esp, 4
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10009950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x100099c1
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x100099c1
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x100099c1
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x100099c1
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x100099c1
cmp dword [edi], 0x4550
jne 0x100099c1
push esi
call fcn.10009d90
movzx eax, al
add esp, 4
shl eax, 4
add eax, 0x78
add eax, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100099c1
test eax, eax
je 0x100099c1
pop edi
lea eax, [ecx + esi]
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100099d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x5a4d
push edi
test esi, esi
je 0x10009a3c
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009a3c
cmp word [esi], bx
jne 0x10009a3c
mov eax, dword [esi + 0x3c]
lea edi, [esi + 0x3c]
cmp eax, 0x400
jg 0x10009a3c
lea ebx, [eax + esi]
push 0xf8
push ebx
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009a3c
cmp dword [ebx], 0x4550
jne 0x10009a3c
push 0xf8
push ebx
call fcn.1000ca30
add esp, 8
test al, al
je 0x10009a36
xor ebx, ebx
jmp 0x10009a45
movzx ebx, word [ebx + 0x18]
jmp 0x10009a45
xor ebx, ebx
lea edi, [esi + 0x3c]
test esi, esi
je 0x10009aa2
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009aa2
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10009aa2
mov eax, dword [edi]
cmp eax, 0x400
jg 0x10009aa2
add esi, eax
push 0xf8
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009aa2
cmp dword [esi], 0x4550
jne 0x10009aa2
mov eax, 0x20b
cmp bx, ax
jne 0x10009a98
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x34]
xor edx, edx
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret

Function at 0x10009ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10009b28
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009b28
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10009b28
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x10009b28
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009b28
cmp dword [edi], 0x4550
jne 0x10009b28
push esi
call fcn.10009d90
add esp, 4
push esi
test al, al
je 0x10009b19
call fcn.10009ba0
add esp, 4
mov eax, dword [eax + 0x50]
pop edi
pop esi
pop ebp
ret
call fcn.10009b30
add esp, 4
mov eax, dword [eax + 0x50]
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10009b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10009b92
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009b92
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10009b92
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x10009b92
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009b92
cmp dword [edi], 0x4550
jne 0x10009b92
push esi
call fcn.10009d90
add esp, 4
xor ecx, ecx
test al, al
cmove ecx, edi
pop edi
mov eax, ecx
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10009ba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10009c02
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009c02
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10009c02
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x10009c02
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009c02
cmp dword [edi], 0x4550
jne 0x10009c02
push esi
call fcn.10009d90
add esp, 4
xor ecx, ecx
test al, al
cmovne ecx, edi
pop edi
mov eax, ecx
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10009c10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10009c35
mov ebx, dword [ebp + 0xc]
push 0x40
push esi
test ebx, ebx
je 0x10009c3c
push ebx
push esi
call fcn.1000c9f0
add esp, 0x10
test al, al
jne 0x10009c48
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009c35
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10009c35
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x10009c35
lea edi, [eax + esi]
push 0xf8
push edi
test ebx, ebx
je 0x10009c89
push ebx
push esi
call fcn.1000c9f0
add esp, 0x10
test al, al
je 0x10009c35
xor eax, eax
cmp dword [edi], 0x4550
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009c35
xor eax, eax
cmp dword [edi], 0x4550
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10009d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10009d7e
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009d7e
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10009d7e
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x10009d7e
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009d7e
cmp dword [edi], 0x4550
jne 0x10009d7e
push esi
call fcn.10009d90
movzx eax, al
add esp, 4
add eax, 0xa
shl eax, 4
add eax, edi
cmp dword [eax], 0
je 0x10009d7e
test eax, eax
pop edi
setne al
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x10009d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10009dfe
push 0x40
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009dfe
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10009dfe
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x10009dfe
add esi, eax
push 0xf8
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009dfe
cmp dword [esi], 0x4550
jne 0x10009dfe
push 0xf8
push esi
call fcn.1000ca30
add esp, 8
test al, al
jne 0x10009dfe
movzx eax, word [esi + 0x18]
mov ecx, 0x20b
cmp ax, cx
pop esi
sete al
pop ebp
ret
xor al, al
pop esi
pop ebp
ret

Function at 0x10019815
Capabilities:
Parse pe header

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

Function at 0x1001c630
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076d30
push 0x10076d28
push str.FlsAlloc
push 0x1f
call fcn.1001c4f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c664
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d150]
call esi
jmp 0x1001c66a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001c6ae
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076d40
push 0x10076d38
push str.FlsGetValue
push 0x21
call fcn.1001c4f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c6e5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001c6ed
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076d48
push 0x10076d40
push str.FlsSetValue
push 0x22
call fcn.1001c4f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c727
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002d150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001e1ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000fa60
mov eax, dword [0x1007e080]
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.1001cc63
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001e1f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001e34c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1002b840
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 + 0x1007fc80]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001f1ae
mov ecx, dword [esi*4 + 0x1007fc80]
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 0x1001e345
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001e345
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 0x1001e345
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001f1ae
add esp, 0x14
test edx, edx
jl 0x1001e345
jg 0x1001e2bb
test eax, eax
jb 0x1001e345
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001e345
jl 0x1001e2d5
cmp dword [ebp - 0x1008], eax
ja 0x1001e345
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001e2f3
test ebx, ebx
je 0x1001e32c
cmp ecx, edi
jae 0x1001e32c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001e30d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001e319
cmp byte [ecx + 1], 0xa
jne 0x1001e319
inc ecx
jmp 0x1001e319
movzx eax, al
movsx eax, byte [eax + 0x1007e328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001e2f3
cmp edx, ebx
jne 0x1001e2f3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001e34a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000e950
leave
ret