joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e3e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc3ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0048ed00
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4f36a4
call fcn.004ad32f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x48e473
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ad32f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48e46c
push 0
mov ecx, eax
call fcn.00485510
mov dword [esi + 0xc], eax
jmp 0x48e475
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x48e475
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4af9bf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4af9f7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ada49
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ada21
jmp 0x4afa03
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b10ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b10ef
call fcn.004b6c2b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b10ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b10e6
xor eax, eax
jmp 0x4b10f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b10fd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b715b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b7189
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b71a7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b70c1
jmp 0x4b71a7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b71a7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b70c1
test edi, edi
mov eax, edi
jne 0x4b7191
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000113d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10001167
mov eax, dword [ebp + 8]
push eax
mov dword [0x100f5b44], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x100014d5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x10001fb0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.10002230
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 4], 1
nop dword [eax + eax]
movsd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 1
call fcn.100c7323
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
nop dword [eax + eax]
rdtsc
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
test eax, eax
jle 0x10002027
mov edi, dword [ebp + 0x10]
mov esi, eax
mov ecx, dword [ebp + 0xc]
push edi
push ecx
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
add esp, 8
sub esi, 1
jne 0x10002014
rdtsc
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.100c39c0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
movsd qword [ebp - 0xc], xmm0
call fcn.100c39c0
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
subsd xmm1, xmm0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000207c
push 1
sub esp, 8
movsd qword [esp], xmm1
push ebx
call dword [ebp - 8]
fstp qword [ebp - 0xc]
movsd xmm1, qword [ebp - 0xc]
add esp, 0x10
xorps xmm0, xmm0
comisd xmm0, xmm1
ja 0x10001fd4
cmp dword [ebp - 0x10], 0
jne 0x1000209a
movsd xmm0, qword [ebp - 0x20]
comisd xmm0, xmm1
jbe 0x1000209f
movsd qword [ebp - 0x20], xmm1
mov dword [ebp - 0x10], 0
call fcn.100c7323
sub eax, dword [ebp - 0x18]
movd xmm0, eax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x100de228]
test eax, eax
je 0x100020e1
push 1
sub esp, 8
movsd qword [esp], xmm0
push ebx
call dword [ebp - 8]
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
add esp, 0x10
comisd xmm0, xmmword [0x100de220]
ja 0x100020fb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 8
jl 0x10002000
movsd xmm0, qword [ebp - 0x20]
comisd xmm0, xmmword [0x100de230]
jae 0x10002120
mov eax, dword [ebp - 4]
xorps xmm0, xmm0
add eax, eax
mov dword [ebp - 4], eax
jne 0x10001fe0
jmp 0x10001fd4
push 0
push dword [ebp + 0xc]
call fcn.10002230
movd xmm0, dword [ebp - 4]
add esp, 8
movsd xmm1, qword [ebp - 0x20]
cvtdq2pd xmm0, xmm0
pop edi
pop esi
pop ebx
divsd xmm1, xmm0
movsd qword [ebp - 0x30], xmm1
fld qword [ebp - 0x30]
mov esp, ebp
pop ebp
ret
Function at 0x10004690
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
ret

Function at 0x100bf910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd2bc
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100f4084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
push 0x68
mov dword [ebp - 4], 0
mov dword [esi], vtable.soundtouch::SoundTouch.0
call fcn.100c35f0
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100bf96d
mov ecx, eax
call fcn.100c0220
jmp 0x100bf96f
xor eax, eax
mov byte [ebp - 4], 0
mov dword [esi + 8], eax
call fcn.100c0c60
xorps xmm0, xmm0
mov dword [esi + 0xc], eax
movups xmmword [esi + 0x40], xmm0
mov ecx, esi
mov dword [esi + 4], eax
movaps xmm0, xmmword [0x100e5ad0]
movups xmmword [esi + 0x10], xmm0
movsd qword [esi + 0x20], xmm0
call fcn.100bfb90
xorps xmm0, xmm0
mov dword [esi + 0x38], 0
movsd qword [esi + 0x30], xmm0
mov eax, esi
mov dword [esi + 0x3c], 0
mov byte [esi + 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100c06f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd396
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100f4084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x64]
mov dword [edi + 4], eax
push 2
mov ecx, eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.soundtouch::TDStretch.0
call fcn.100c1840
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 1
push 2
call fcn.100c1840
movsd xmm0, qword [0x100def88]
mov ecx, edi
push 8
push 0
push 0
push 0xac44
mov byte [ebp - 4], 2
mov word [edi + 0x58], 0x100
mov dword [edi + 8], 2
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x5a], 1
movsd qword [edi + 0x40], xmm0
call fcn.100c14f0
cmp byte [edi + 0x59], 0
movsd xmm0, qword [0x100def88]
movsd qword [edi + 0x40], xmm0
je 0x100c07b2
mov dword [edi + 0x2c], 0x49
mov eax, 0x49
jmp 0x100c07b5
mov eax, dword [edi + 0x2c]
cmp byte [edi + 0x5a], 0
je 0x100c07c2
mov dword [edi + 0x30], 0x12
mov esi, dword [edi + 0x28]
mov ecx, esi
imul ecx, eax
mov eax, 0x10624dd3
imul ecx
mov eax, dword [edi + 0x10]
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea ecx, [eax + eax]
mov dword [edi + 0x18], ebx
cmp ebx, ecx
jge 0x100c07ed
mov dword [edi + 0x18], ecx
mov ebx, ecx
mov ecx, dword [edi + 0x30]
mov eax, 0x10624dd3
imul ecx, esi
imul ecx
mov eax, ebx
lea ecx, [edi + 0x64]
sub eax, dword [edi + 0x10]
sar edx, 6
mov esi, edx
shr esi, 0x1f
movd xmm0, eax
add esi, edx
cvtdq2pd xmm0, xmm0
mov dword [edi + 0x14], esi
movsd qword [edi + 0x48], xmm0
addsd xmm0, qword [0x100de270]
cvttsd2si eax, xmm0
add eax, dword [edi + 0x10]
cmp eax, ebx
cmovle eax, ebx
add eax, esi
mov dword [edi + 0xc], eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [edi + 0x80]
lea ecx, [edi + 0x80]
call dword [eax + 0x1c]
mov eax, dword [edi + 0x10]
imul eax, dword [edi + 8]
shl eax, 2
push eax
push 0
push dword [edi + 0x5c]
call fcn.100c4ec0
xorps xmm0, xmm0
mov byte [edi + 0x5b], 1
add esp, 0xc
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0x4cbebc20
mov eax, edi
movsd qword [edi + 0x50], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100cbb20
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100cbb5f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100cbb5f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100cbb5f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100cbb5f
cmp dword [ecx + 0x74], 0xe
jbe 0x100cbb5f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100cdcef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100c3a40
mov eax, dword [0x100f4084]
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.100ccdbf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100cdd31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100cde8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100dcb70
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 + 0x100f5638]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100cd907
mov ecx, dword [esi*4 + 0x100f5638]
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 0x100cde86
cmp eax, dword [ecx + edi + 0x24]
jne 0x100cde86
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 0x100cde86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100cd907
add esp, 0x14
test edx, edx
jl 0x100cde86
jg 0x100cddfc
test eax, eax
jb 0x100cde86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100cde86
jl 0x100cde16
cmp dword [ebp - 0x1008], eax
ja 0x100cde86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100cde34
test ebx, ebx
je 0x100cde6d
cmp ecx, edi
jae 0x100cde6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x100cde4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100cde5a
cmp byte [ecx + 1], 0xa
jne 0x100cde5a
inc ecx
jmp 0x100cde5a
movzx eax, al
movsx eax, byte [eax + 0x100f4280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100cde34
cmp edx, ebx
jne 0x100cde34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100cde8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100c35e2
leave
ret
Function at 0x100ce0e8
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 + 0x100f5638]
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 0x100ce128
cmp byte [ebx], 0xa
jne 0x100ce128
or byte [edi + eax + 0x28], 4
jmp 0x100ce12d
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 0x100ce22c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100ce20f
inc eax
cmp dl, 0xd
je 0x100ce159
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100ce17f
cmp eax, ecx
jae 0x100ce18d
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 0x100ce141
jmp 0x100ce22c
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 0x100ce20a
cmp dword [ebp - 0x10], 0
je 0x100ce20a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100f5638]
test byte [eax + edi + 0x28], 0x48
je 0x100ce1e4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ce1cf
mov byte [esi], dl
jmp 0x100ce1e0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100f5638]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100ce22c
cmp byte [ebp - 1], 0xa
jne 0x100ce1f3
cmp esi, ebx
jne 0x100ce1f3
mov byte [esi], 0xa
jmp 0x100ce22b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100cd925
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100ce22c
mov byte [esi], 0xd
jmp 0x100ce22b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100f5638]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ce229
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ce22c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ce235
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 + 0x100f5638]
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 0x100ce27b
cmp word [ebx], dx
jne 0x100ce27b
or byte [eax + edi + 0x28], 4
jmp 0x100ce280
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 0x100ce3e3
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 0x100ce3c3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100ce2c1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100ce2f7
cmp eax, edx
jae 0x100ce305
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 0x100ce29c
jmp 0x100ce3e3
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 0x100ce3be
cmp dword [ebp - 0x18], 0
je 0x100ce3be
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100f5638]
test byte [eax + edi + 0x28], 0x48
je 0x100ce394
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 0x100ce358
mov word [esi], cx
jmp 0x100ce38f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100f5638]
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 + 0x100f5638]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100f5638]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100ce3e3
pop eax
cmp word [ebp - 4], ax
jne 0x100ce3a4
cmp esi, ebx
jne 0x100ce3a4
mov word [esi], ax
jmp 0x100ce3e0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100cd925
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100ce3e3
push 0xd
pop eax
jmp 0x100ce39f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100f5638]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100ce3dd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100ce3e3
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 0x100cf473
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100e8690
push 0x100e8688
push str.FlsAlloc
push 0x1f
call fcn.100cf38f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cf4a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x100de158]
call esi
jmp 0x100cf4ad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100cf4f1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100e86a0
push 0x100e8698
push str.FlsGetValue
push 0x21
call fcn.100cf38f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cf528
push dword [ebp + 8]
mov ecx, esi
call dword [0x100de158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100cf530
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100e86a8
push 0x100e86a0
push str.FlsSetValue
push 0x22
call fcn.100cf38f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cf56a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100de158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100d33aa
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 0x100d3447
push ebx
push esi
call fcn.100d3373
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.100d3307
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d33f4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d3446
push edi
push eax
call fcn.100d0405
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d3414
call fcn.100ccd85
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d3445
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d3307
add esp, 0x20
test eax, eax
jne 0x100d3433
push edi
call fcn.100ccd85
jmp 0x100d343b
push ebx
call fcn.100ccd85
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 0x100d99e1
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.100d995d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100d9b50
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100d9b50
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100d9b05
jg 0x100d9a3d
test eax, eax
je 0x100d9afb
push 1
push 0x1000
call fcn.100cf219
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100d9a60
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100d9af2
push 0x8000
push ebx
call fcn.100d988e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100d9a89
jg 0x100d9a84
cmp ecx, 0x1000
jb 0x100d9a89
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100d01e9
add esp, 0x10
cmp eax, 0xffffffff
je 0x100d9ace
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 0x100d9a84
jl 0x100d9ab5
test ecx, ecx
jne 0x100d9a76
push dword [ebp - 0xc]
push ebx
call fcn.100d988e
push esi
call fcn.100ccd85
add esp, 0xc
xor ebx, ebx
jmp 0x100d9b5e
cmp byte [edi + 0x24], 0
je 0x100d9ae5
cmp dword [edi + 0x20], 5
jne 0x100d9ae5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100d9af0
mov ebx, dword [edi + 0x18]
jmp 0x100d9af2
xor ebx, ebx
push esi
call fcn.100ccd85
pop ecx
jmp 0x100d9b5e
test ecx, ecx
jg 0x100d9ac7
jl 0x100d9b05
test eax, eax
jae 0x100d9ac7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100cd925
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100d9b25
cmp byte [edi + 0x1c], 0
je 0x100d9ac7
jmp 0x100d9b56
push ebx
call fcn.100d4416
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100d9ac7
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 0x100d9b5e
cmp byte [edi + 0x1c], 0
je 0x100d9b5b
mov ebx, dword [edi + 0x18]
jmp 0x100d9b5e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100cd925
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100dcac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100dcaed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100dcaed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402c40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00407df0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402c6d
push str.malloc
call fcn.00407cc0
add esp, 4
push 1
call fcn.00405f50
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4033a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x462350]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x188]
push eax
call fcn.00401420
add esp, 8
push 0x461c7c
lea ecx, [ebp - 0x188]
push ecx
call fcn.00406b50
add esp, 8
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x403414
lea edx, [ebp - 0x188]
push edx
push str.Cant_open__s_n
call fcn.004047f0
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00404a00
add esp, 0xc
mov eax, 1
jmp 0x40347b
mov edx, dword [ebp - 0x18c]
push edx
push 0x80
push 1
lea eax, [ebp - 0x84]
push eax
call fcn.00407280
add esp, 0x10
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
je 0x40346a
call fcn.004047f0
mov ecx, 0x20
shl ecx, 0
add eax, ecx
push eax
mov edx, dword [ebp - 0x190]
push edx
push 1
lea eax, [ebp - 0x84]
push eax
call fcn.00407b60
add esp, 0x10
jmp 0x403414
mov ecx, dword [ebp - 0x18c]
push ecx
call fcn.00406080
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004053f0
mov esp, ebp
pop ebp
ret