joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d12b0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x735d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x18], esi
call fcn.0049f110
xor ebx, ebx
mov dword [esi], 0x757bdc
lea ecx, [esi + 0x44]
mov dword [esp + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call fcn.006d10b0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [0x7a3a28]
mov eax, dword [ecx + 0xb8]
mov edi, dword [eax + 0x74]
push str.DISTANCE
lea ecx, [esp + 0x1c]
call fcn.005e5a90
lea edx, [esi + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
push 8
mov ecx, edi
mov byte [esp + 0x38], 1
call int.00413430
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.005e5c20
push str.HEIGHT
lea ecx, [esp + 0x1c]
call fcn.005e5a90
lea ecx, [esi + 0x40]
push ecx
lea edx, [esp + 0x1c]
push edx
push 8
mov ecx, edi
mov byte [esp + 0x38], 2
call int.00413430
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.005e5c20
push str.PITCH
lea ecx, [esp + 0x1c]
call fcn.005e5a90
lea eax, [esi + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 8
mov ecx, edi
mov byte [esp + 0x38], 3
call int.00413430
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.005e5c20
push str.ROTATION
lea ecx, [esp + 0x1c]
call fcn.005e5a90
lea edx, [esi + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
push 8
mov ecx, edi
mov byte [esp + 0x38], 4
call int.00413430
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.005e5c20
push str.SPEED
lea ecx, [esp + 0x1c]
call fcn.005e5a90
lea ecx, [esi + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 8
mov ecx, edi
mov byte [esp + 0x38], 5
call int.00413430
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.005e5c20
push str.VIEWANGLE
lea ecx, [esp + 0x1c]
call fcn.005e5a90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 8
mov ecx, edi
mov byte [esp + 0x38], 6
call int.00413430
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.005e5c20
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x44]
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
call fcn.005ed700
mov ecx, eax
call fcn.0061d5e0
fstp dword [esi + 0x84]
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005ed700
mov ecx, eax
call fcn.0061d610
fstp dword [esi + 0x88]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
call fcn.005ed700
mov ecx, eax
call fcn.0061d640
mov ecx, dword [esp + 0x24]
fstp dword [esi + 0x8c]
mov edx, dword [0x8338f0]
pop edi
mov dword [esi + 0x90], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x436014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x82c], esi
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x82c], esi
jb 0x402dd2
mov edx, dword [edx]
push 0
lea eax, [ebp - 0x810]
push eax
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x818], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x814], 0
movups xmmword [ebp - 0x828], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402e10
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00407cb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402e8d
test al, 0x10
jne 0x402e8d
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x828]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x818]
movq qword [esi + 0x10], xmm0
jmp 0x402f2f
mov edx, str.WARNING:
mov ecx, 0x4374a0
call fcn.00406b60
cmp dword [ebp - 0x814], 8
lea edx, [ebp - 0x828]
push dword [ebp - 0x818]
cmovae edx, dword [ebp - 0x828]
mov ecx, eax
call fcn.00409260
add esp, 4
mov edx, str._not_found.
mov ecx, eax
call fcn.00406b60
mov ecx, dword [ebp - 0x814]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp ecx, 8
jb 0x402f2f
mov edx, dword [ebp - 0x828]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402f25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f4b
push ecx
push edx
call fcn.0040d340
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d0ac
mov esp, ebp
pop ebp
ret
call fcn.00414469
int3
Function at 0x404540
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429090
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x436014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4046f9
push ebx
push 0
lea eax, [eax*2 + 2]
push 0x43a
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov ecx, 0x437330
test edi, edi
je 0x4046de
mov edx, str.Opened_handle_for_pid
call fcn.00407190
push ebx
mov ecx, eax
call fcn.00404720
mov edx, str.__32_bit_
mov ecx, 0x437330
call fcn.00407190
push 0x437330
call fcn.00407440
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x432120
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x4046cd
push str.LoadLibraryW
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4046bc
push 4
push 0x1000
push dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x4046ab
cmp dword [esi + 0x14], 8
jb 0x404628
mov esi, dword [esi]
push 0
push dword [ebp - 0x18]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40469a
push 0
push 0
push 0
push ebx
push dword [ebp - 0x1c]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
test eax, eax
je 0x404689
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
test eax, eax
je 0x404678
push edi
call esi
test eax, eax
je 0x404678
mov edx, str.Success_
mov ecx, 0x437330
call fcn.00407190
jmp 0x4046f0
mov edx, str.Injected_Dll__but_failed_to_close_handles
mov ecx, 0x437330
call fcn.00407190
jmp 0x4046f0
mov edx, str.Failed_to_create_remote_thread
mov ecx, 0x437330
call fcn.00407190
jmp 0x4046f0
mov edx, str.Failed_to_write_to_allocated_memory
mov ecx, 0x437330
call fcn.00407190
jmp 0x4046f0
mov edx, str.Failed_to_allocate_memory
mov ecx, 0x437330
call fcn.00407190
jmp 0x4046f0
mov edx, str.Failed_to_get_address_of_LoadLibraryW
mov ecx, 0x437330
call fcn.00407190
jmp 0x4046f0
mov edx, str.Failed_to_acquire_handle_on_kernel32.dll
mov ecx, 0x437330
call fcn.00407190
jmp 0x4046f0
mov edx, str.Failed_to_acquire_handle_on_process
call fcn.00407190
push ebx
mov ecx, eax
call fcn.00404720
push eax
call fcn.00407440
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d0ac
mov esp, ebp
pop ebp
ret 8
Function at 0x406890
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp edx, eax
je 0x4069e6
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, edx
xor ecx, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 4], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.0040d340
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x10]
je 0x406949
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x406907
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x4069dc
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
pop edi
mov dword [edx], esi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x40695d
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov dword [edx], eax
jmp 0x406960
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], ecx
cmp esi, eax
je 0x4069dc
nop word [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.0040d340
dec dword [ebx + 8]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp - 0x10]
je 0x4069ed
cmp esi, eax
jne 0x4069b7
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x406970
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409090
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, 0x1fffffff
mov esi, 1
push edi
mov edi, ecx
bsr ecx, eax
mov eax, esi
mov dword [ebp - 4], edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4091dc
lea eax, [ecx - 1]
mov ebx, dword [edi + 4]
or eax, esi
mov dword [ebp - 0xc], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00406640
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x4091b7
mov eax, ecx
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
imul edx, esi, 0x1000193
mov esi, dword [edi + 0x18]
and esi, edx
mov edx, dword [edi + 0xc]
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp - 8], ebx
cmp esi, dword [ebp - 0xc]
jne 0x409144
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x4091ac
mov edx, dword [ebx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x40917b
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
cmp edx, eax
je 0x409176
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0x10]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp - 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x4091a9
cmp esi, edx
je 0x40918c
nop
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x4091c0
cmp esi, edx
jne 0x409180
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov edi, dword [ebp - 4]
mov eax, ecx
cmp ecx, dword [ebp - 0xc]
jne 0x4090f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x4091a9
push str.invalid_hash_bucket_count
call fcn.00409e77
int3
Function at 0x40aeef
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 0x40af10
jl 0x40af07
test edi, edi
jne 0x40af10
xor eax, eax
xor edx, edx
jmp 0x40afd1
cmp dword [ebx + 0x38], 0
je 0x40af25
push eax
push edi
push dword [ebp + 8]
call fcn.0040afd7
jmp 0x40afd1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40af6c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40af6c
cmp eax, edi
jb 0x40af46
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040e580
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 0x40af72
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40afc6
mov ecx, ebx
call fcn.0040a748
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40afb1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004150e4
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 0x40afc6
jmp 0x40af84
test edx, edx
je 0x40afc6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004150e4
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 0x40dc66
Capabilities:
Parse pe header

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

Function at 0x41c602
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e220
push 0x42e218
push str.FlsAlloc
push 0x1f
call fcn.0041c48c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c636
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a154]
call esi
jmp 0x41c63c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c680
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e230
push 0x42e228
push str.FlsGetValue
push 0x21
call fcn.0041c48c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c6b7
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c6bf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e238
push 0x42e230
push str.FlsSetValue
push 0x22
call fcn.0041c48c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c6f9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42a154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41dfaf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ded0
mov eax, dword [0x436014]
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.0041b495
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41dff1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e14d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428860
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 + 0x437e40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041f185
mov ecx, dword [esi*4 + 0x437e40]
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 0x41e146
cmp eax, dword [ecx + edi + 0x24]
jne 0x41e146
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 0x41e146
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f185
add esp, 0x14
test edx, edx
jl 0x41e146
jg 0x41e0bc
test eax, eax
jb 0x41e146
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e146
jl 0x41e0d6
cmp dword [ebp - 0x1008], eax
ja 0x41e146
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e0f4
test ebx, ebx
je 0x41e12d
cmp ecx, edi
jae 0x41e12d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e10e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e11a
cmp byte [ecx + 1], 0xa
jne 0x41e11a
inc ecx
jmp 0x41e11a
movzx eax, al
movsx eax, byte [eax + 0x436290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e0f4
cmp edx, ebx
jne 0x41e0f4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e14b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040d0ac
leave
ret
Function at 0x41e61d
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 + 0x437e40]
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 0x41e65d
cmp byte [ebx], 0xa
jne 0x41e65d
or byte [edi + eax + 0x28], 4
jmp 0x41e662
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 0x41e761
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41e744
inc eax
cmp dl, 0xd
je 0x41e68e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41e6b4
cmp eax, ecx
jae 0x41e6c2
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 0x41e676
jmp 0x41e761
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 0x41e73f
cmp dword [ebp - 0x10], 0
je 0x41e73f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x437e40]
test byte [eax + edi + 0x28], 0x48
je 0x41e719
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e704
mov byte [esi], dl
jmp 0x41e715
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x437e40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e761
cmp byte [ebp - 1], 0xa
jne 0x41e728
cmp esi, ebx
jne 0x41e728
mov byte [esi], 0xa
jmp 0x41e760
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041f1a3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e761
mov byte [esi], 0xd
jmp 0x41e760
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x437e40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e75e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e761
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret