joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408370
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x437040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 8], ebx
mov eax, dword fs:[0x18]
push esi
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
xor esi, esi
test eax, eax
je 0x4083dc
add eax, eax
mov dword [ebp - 8], eax
mov eax, dword fs:[0x18]
push dword [ebp - 8]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x4084b7
mov eax, dword [ebp - 8]
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x4083f5
cmp eax, 0xc0000004
je 0x408396
test esi, esi
je 0x4084b7
mov dword [ebp - 0x48], esi
cmp dword [esi + 0x44], edi
je 0x408421
mov dword [ebp - 0x48], esi
nop dword [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x4084a0
add esi, eax
cmp dword [esi + 0x44], edi
jne 0x408410
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0x18
xor edi, edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x28], ebx
movq qword [ebp - 0x30], xmm0
cmp dword [esi + 4], ebx
jbe 0x4084a0
lea ebx, [esi + 0xd8]
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x40
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtOpenThread]
test eax, eax
js 0x408494
push 0
push 0x1c
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x40848b
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x2c], 0
je 0x40848b
inc dword [ebp - 0x44]
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
inc edi
add ebx, 0x40
cmp edi, dword [esi + 4]
jb 0x408453
mov ebx, dword [ebp - 0x44]
mov eax, dword fs:[0x18]
push dword [ebp - 0x48]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c1c5
mov esp, ebp
pop ebp
ret
Function at 0x409260
Capabilities:
Create thread
Get process heap force flags

Disassembly:
push ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x2c]
sub eax, 8
je 0x40928f
mov ecx, dword [eax]
mov eax, dword fs:[0x18]
cmp ecx, dword [eax + 0x24]
je 0x40928f
cmp ecx, 0x80
jbe 0x40928f
push 0xc00000bb
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
call fcn.00408370
mov ecx, dword [0x438ce4]
mov ecx, dword [ecx + 0x48]
mov dword [ecx + 0x34], eax
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x48]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x48]
add eax, 0x2c
mov dword [eax + 4], eax
mov dword [eax], eax
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x48]
mov dword [eax + 4], eax
mov dword [eax], eax
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x48]
add eax, 0x10
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeSRWLock]
mov eax, dword fs:[0x18]
push 0x20
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
jne 0x409306
push 0xc0000017
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
movaps xmm0, xmmword [0x433ea0]
push 0x100
push eax
movups xmmword [eax], xmm0
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x48]
add eax, 8
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x2c], 0
je 0x409348
call fcn.004089b0
test eax, eax
jne 0x409348
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [0x438ce4]
push str.RtlUserThreadStart
mov ecx, dword [eax + 0x48]
mov eax, dword [sym.imp.ntdll.dll_LdrShutdownThread]
mov dword [ecx + 0x44], eax
mov eax, dword [0x438ce4]
mov ecx, dword [eax + 0x48]
mov eax, dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov dword [ecx + 0x40], eax
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 4]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x438ce4]
mov ecx, dword [ecx + 0x48]
mov dword [ecx + 0x48], eax
call fcn.004078d0
call fcn.00407dd0
mov eax, dword [0x438ce4]
sub esp, 0xc
mov edx, 0x408800
mov ecx, dword [eax + 0x48]
add ecx, 0x44
call fcn.00407e50
mov eax, dword [0x438ce4]
sub esp, 0xc
mov edx, fcn.00408ba0
mov ecx, dword [eax + 0x48]
add ecx, 0x40
call fcn.00407e50
mov eax, dword [0x438ce4]
sub esp, 0xc
mov edx, 0x4087d0
mov ecx, dword [eax + 0x48]
add ecx, 0x48
call fcn.00407e50
call fcn.00407970
push 0x438cf4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0xc
push 0
mov dword [0x438d0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x409ed0
mov dword [0x438cf0], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.0040c6c6
add esp, 4
push 0
push 0
push 0
push 0x409e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ecx
ret
Function at 0x409ca0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x437040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0xffffffffffffffff
push dword [0x438d0c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x438cf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x438cf0]
test ebx, ebx
je 0x409e34
push esi
push edi
nop word [eax + eax]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x409ded
nop dword [eax + eax]
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
jne 0x409d13
mov ebx, dword [0x438cf0]
add esi, 0xc
jmp 0x409de4
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x48]
add eax, 0x10
push eax
call dword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
mov eax, dword [0x438ce4]
mov ebx, dword [esi + 8]
mov eax, dword [eax + 0x48]
mov edi, dword [eax]
cmp edi, eax
je 0x409d67
nop word [eax + eax]
mov eax, dword [edi + 0x1c]
push dword [ebx + eax*4 + 8]
mov eax, dword fs:[0x18]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [0x438ce4]
mov edi, dword [edi]
cmp edi, dword [eax + 0x48]
jne 0x409d40
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [eax + 0xc]
sub eax, 8
push eax
mov eax, dword fs:[0x18]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
push dword [esi + 4]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
push dword [esi + 8]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x48]
add eax, 0x10
push eax
call dword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [0x438cf0]
lea ecx, [esi + 0xc]
mov eax, dword [ebx + 4]
sub eax, ecx
push eax
push ecx
push esi
call fcn.0040da80
add esp, 0xc
add dword [ebx + 4], 0xfffffff4
cmp esi, dword [ebx + 4]
jne 0x409cf0
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
push 0x438cf4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, esi
mov ecx, 0xffffffff
mov eax, 0x3e8
cmove eax, ecx
push eax
push dword [0x438d0c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x438cf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x438cf0]
test ebx, ebx
jne 0x409ce0
pop edi
pop esi
push 0x438cf4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0040c1c5
mov esp, ebp
pop ebp
ret
Function at 0x40b741
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40b762
jl 0x40b759
test edi, edi
jne 0x40b762
xor eax, eax
xor edx, edx
jmp 0x40b823
cmp dword [ebx + 0x38], 0
je 0x40b777
push eax
push edi
push dword [ebp + 8]
call fcn.0040b829
jmp 0x40b823
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b7be
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b7be
cmp eax, edi
jb 0x40b798
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040da80
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40b7c4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b818
mov ecx, ebx
call fcn.0040af90
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b803
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004158ee
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40b818
jmp 0x40b7d6
test edx, edx
je 0x40b818
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004158ee
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40cf82
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d0f0
mov eax, dword [0x437040]
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.0041b488
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41110a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x411266
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042ad90
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 + 0x4388c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b891
mov ecx, dword [esi*4 + 0x4388c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41125f
cmp eax, dword [edi + ecx + 0x24]
jne 0x41125f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41125f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b891
add esp, 0x14
test edx, edx
jl 0x41125f
jg 0x4111d5
test eax, eax
jb 0x41125f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41125f
jl 0x4111ef
cmp dword [ebp - 0x1008], eax
ja 0x41125f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41120d
test ebx, ebx
je 0x411246
cmp ecx, edi
jae 0x411246
mov al, byte [ecx]
cmp al, 0xd
jne 0x411227
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411233
cmp byte [ecx + 1], 0xa
jne 0x411233
inc ecx
jmp 0x411233
movzx eax, al
movsx eax, byte [eax + 0x4372d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41120d
cmp edx, ebx
jne 0x41120d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411264
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c1c5
leave
ret
Function at 0x41bf38
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4388c0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bf78
cmp byte [ebx], 0xa
jne 0x41bf78
or byte [eax + edi + 0x28], 4
jmp 0x41bf7d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c07b
mov al, byte [edx]
cmp al, 0x1a
je 0x41c05d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bfac
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bfd1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bfdb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41bf8e
jmp 0x41c07b
push 0
lea eax, [ebp - 0xc]
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 0x41c058
cmp dword [ebp - 0xc], 0
je 0x41c058
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4388c0]
test byte [eax + edi + 0x28], 0x48
je 0x41c032
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c01d
mov byte [esi], dl
jmp 0x41c02e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4388c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c07b
cmp byte [ebp - 1], 0xa
jne 0x41c041
cmp esi, ebx
jne 0x41c041
mov byte [esi], 0xa
jmp 0x41c07a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b8af
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c07b
mov byte [esi], 0xd
jmp 0x41c07a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4388c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c077
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c07b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c084
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4388c0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c0c7
cmp word [esi], dx
jne 0x41c0c7
or byte [edi + eax + 0x28], 4
jmp 0x41c0cc
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c21f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c1ff
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c10e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c144
cmp eax, edx
jae 0x41c150
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c0e6
jmp 0x41c21f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c1fb
cmp dword [ebp - 0x14], 0
je 0x41c1fb
mov eax, dword [ebx*4 + 0x4388c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c1d3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c19c
mov word [esi], cx
jmp 0x41c1cf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4388c0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4388c0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4388c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c21f
pop ebx
cmp word [ebp - 4], bx
jne 0x41c1e4
cmp esi, dword [ebp + 0xc]
jne 0x41c1e4
mov word [esi], bx
jmp 0x41c21c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b8af
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c21f
push 0xd
jmp 0x41c218
mov ecx, dword [ebx*4 + 0x4388c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c216
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c21f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cf6e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ff94
push 0x42ff8c
push str.FlsAlloc
push 0x1e
call fcn.0041cddb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cfa2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c240]
call esi
jmp 0x41cfa8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41cfef
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ffa4
push 0x42ff9c
push str.FlsGetValue
push 0x20
call fcn.0041cddb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d026
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c240]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ece2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041eb53
Function at 0x422b1c
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 0x422bb9
push ebx
push esi
call fcn.00422ae5
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.004218e7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422b66
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422bb8
push edi
push eax
call fcn.0041d75c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422b86
call fcn.0041cb00
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422bb7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004218e7
add esp, 0x20
test eax, eax
jne 0x422ba5
push edi
call fcn.0041cb00
jmp 0x422bad
push ebx
call fcn.0041cb00
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 0x4296c5
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]
push dword [ebp + 0xc]
push ebx
call fcn.00429641
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42983d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42983d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4297ec
jg 0x42971e
test eax, eax
je 0x4297e2
push 1
push 0x1000
call fcn.0041caa3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429744
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4297d9
push 0x8000
push ebx
call fcn.00419053
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x429770
jg 0x42976b
cmp ecx, 0x1000
jb 0x429770
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041fee8
add esp, 0x10
cmp eax, 0xffffffff
je 0x4297b5
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 0x42976b
jl 0x42979c
test ecx, ecx
jne 0x42975d
push dword [ebp - 0xc]
push ebx
call fcn.00419053
push esi
call fcn.0041cb00
add esp, 0xc
xor edi, edi
jmp 0x42984e
cmp byte [edi + 0x24], 0
je 0x4297cc
cmp dword [edi + 0x20], 5
jne 0x4297cc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4297d7
mov edi, dword [edi + 0x18]
jmp 0x4297d9
xor edi, edi
push esi
call fcn.0041cb00
pop ecx
jmp 0x42984e
test ecx, ecx
jg 0x4297ae
jl 0x4297ec
test eax, eax
jae 0x4297ae
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b8af
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42980f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4297ae
jmp 0x429846
push ebx
call fcn.0042333f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4297ae
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42984e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42984b
mov edi, dword [edi + 0x18]
jmp 0x42984e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041b8af
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42acb0
Capabilities:
Parse pe header

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