joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c345
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 0x41c3e2
push ebx
push esi
call fcn.0041c30e
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.0041c2a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c38f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c3e1
push edi
push eax
call fcn.00417980
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c3af
call fcn.00415440
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c3e0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c2a4
add esp, 0x20
test eax, eax
jne 0x41c3ce
push edi
call fcn.00415440
jmp 0x41c3d6
push ebx
call fcn.00415440
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 0x41c3e5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41c3f6
pop esi
ret
push ebx
push edi
push esi
call fcn.0041c30e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00417980
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41c41e
push ebx
push esi
push edi
call fcn.00407e10
add esp, 0xc
push 0
call fcn.00415440
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41cb75
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c691
Function at 0x41e20b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x435da8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e24d
cmp byte [ebx], 0xa
jne 0x41e24d
or byte [edi + eax + 0x28], 4
jmp 0x41e252
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e355
mov cl, byte [eax]
cmp cl, 0x1a
je 0x41e330
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x41e281
mov eax, dword [ebp - 8]
jmp 0x41e2a1
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x41e2bd
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x41e29b
add eax, 2
mov cl, 0xa
jmp 0x41e29e
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x41e263
jmp 0x41e355
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 0x41e32b
cmp dword [ebp - 0x10], 0
je 0x41e32b
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x435da8]
test byte [eax + edi + 0x28], 0x48
je 0x41e30a
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x41e2fa
mov byte [esi], 0xa
jmp 0x41e354
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x435da8]
mov byte [eax + edi + 0x2a], cl
jmp 0x41e354
cmp byte [ebp - 1], 0xa
jne 0x41e314
cmp esi, ebx
je 0x41e2f5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417f66
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e355
mov byte [esi], 0xd
jmp 0x41e354
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x435da8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x41e352
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x41e355
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e35e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x435da8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41e3a2
push 0xa
pop esi
cmp word [ebx], si
jne 0x41e3a2
or byte [eax + edi + 0x28], 4
jmp 0x41e3a7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x41e512
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x41e4ea
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x41e3f4
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x41e41e
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x41e43d
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41e40b
push ebx
add eax, 4
pop edx
jmp 0x41e413
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x41e3b9
jmp 0x41e512
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 0x41e4e5
cmp dword [ebp - 0x14], 0
je 0x41e4e5
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x435da8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x41e4c1
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x41e489
mov word [esi], ax
jmp 0x41e50f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x435da8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x435da8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x435da8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x41e50f
cmp word [ebp - 4], ax
jne 0x41e4cb
cmp esi, ebx
je 0x41e481
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417f66
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41e512
push 0xd
pop eax
jmp 0x41e481
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x435da8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41e50c
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x41e512
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f7b1
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x41f7cb
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x41f7e2
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x41f83a
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0041b228
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x41f83a
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41f83a
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41f83a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41f834
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x41f836
xor bl, bl
mov al, bl
jmp 0x41f83c
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x422039
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x434480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x42207c
call fcn.004153aa
mov dword [eax], 0xf
call fcn.004153bf
mov dword [eax], 0xd
call fcn.00415241
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004060be
leave
ret
test eax, eax
jne 0x422083
inc eax
jmp 0x422070
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x42206e
xor eax, eax
cmp ecx, 1
setne al
jmp 0x422070
Function at 0x42367a
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.004235f6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4237e9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4237e9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42379e
jg 0x4236d6
test eax, eax
je 0x423794
push 1
push 0x1000
call fcn.004153e0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4236f9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42378b
push 0x8000
push ebx
call fcn.004140de
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423722
jg 0x42371d
cmp ecx, 0x1000
jb 0x423722
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00416efe
add esp, 0x10
cmp eax, 0xffffffff
je 0x423767
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 0x42371d
jl 0x42374e
test ecx, ecx
jne 0x42370f
push dword [ebp - 0xc]
push ebx
call fcn.004140de
push esi
call fcn.00415440
add esp, 0xc
xor ebx, ebx
jmp 0x4237f7
cmp byte [edi + 0x24], 0
je 0x42377e
cmp dword [edi + 0x20], 5
jne 0x42377e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423789
mov ebx, dword [edi + 0x18]
jmp 0x42378b
xor ebx, ebx
push esi
call fcn.00415440
pop ecx
jmp 0x4237f7
test ecx, ecx
jg 0x423760
jl 0x42379e
test eax, eax
jae 0x423760
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417f66
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4237be
cmp byte [edi + 0x1c], 0
je 0x423760
jmp 0x4237ef
push ebx
call fcn.0041b228
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423760
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 0x4237f7
cmp byte [edi + 0x1c], 0
je 0x4237f4
mov ebx, dword [edi + 0x18]
jmp 0x4237f7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00417f66
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4259d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4259fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4259fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402d80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x402db8
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x402db8
call fcn.0043e2a0
jmp 0x402dc7
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov dword [esp + 0x10], 0x40000000
mov dword [esp + 0x14], 0
mov dword [esi + 0x20], 0x40000000
mov dword [esi + 0x24], 0
mov dword [esi + 0x10], 0x40000000
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x40000000
mov dword [esi + 0x1c], 0
call fcn.0043e170
mov byte [esi + 9], al
test al, al
je 0x402e68
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x402e34
cmp ebx, 0x70000000
jbe 0x402e3b
mov ebx, 0x70000000
xor edi, edi
push 0
push 0x50
push edi
push ebx
call fcn.00402d20
shrd ebx, edi, 5
mov dword [esi + 0x10], eax
shr edi, 5
mov eax, ebx
mov ecx, edi
mov dword [esi + 0x14], edx
shld ecx, eax, 4
shl eax, 4
add eax, ebx
mov dword [esi + 0x18], eax
adc ecx, edi
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404a90
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0
push 0
call fcn.00425484
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x404abc
xor eax, eax
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
pop ecx
ret 8
Function at 0x406a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451607
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45f008]
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 + 0x10], 0
mov dword [esi], 0x45a0e4
mov dword [esi + 4], 0x45a0f8
mov dword [esi + 8], 0x45a11c
mov dword [esi + 0xc], 0x45a0d0
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
push 8
mov dword [esi + 0x44], 0
call fcn.004213b4
xor ecx, ecx
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 3
mov word [eax], cx
mov byte [ebp - 4], 3
push 8
mov dword [esi + 0x50], ecx
call fcn.004213b4
xor ecx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
add esp, 8
mov dword [esi + 0x58], 3
mov word [eax], cx
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 4
call fcn.00401be0
mov dword [esi + 0x98], 0
mov eax, esi
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xffffffff
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0x54fffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4071f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451708
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x45f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.00421279
push dword [esi + 0xc0]
call fcn.00421279
push dword [esi + 0x9c]
call fcn.00421279
push dword [esi + 0x90]
call fcn.00421279
push dword [esi + 0x30]
call fcn.00421279
push dword [esi + 0x24]
call fcn.00421279
push dword [esi + 0x18]
call fcn.00421279
add esp, 0x1c
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x407270
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
test eax, eax
je 0x407284
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407298
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x4072d0
mov eax, dword [ecx]
mov edx, dword [eax + 8]
cmp eax, 0x459c24
jne 0x4072cd
add dword [ecx + 8], 0xffffffff
jne 0x4072d0
push ecx
call fcn.004032c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407ab0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451869
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x45f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi], 0x45a190
mov dword [edi + 8], 0
push 8
mov dword [edi + 0xc], 0
call fcn.004213b4
xor ecx, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 3
mov word [eax], cx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x44], ecx
lea esi, [edi + 0x48]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.00437aa0
mov word [esi + 0x18], 0
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
push 0
push 0
push 1
mov byte [ebp - 4], 3
push 0
mov dword [edi + 0x78], 0xffffffff
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x44], eax
test eax, eax
jne 0x407ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
je 0x407ba7
push 0x45c3e8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x145ecb
push eax
call fcn.00423cb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4519ed
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45f008]
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 + 8], 0
mov dword [esi], 0x45a1c4
mov dword [esi + 4], 0x45a14c
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
push 8
mov dword [esi + 0x10], 0
call fcn.004213b4
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 3
mov word [eax], cx
mov byte [ebp - 4], 1
push 8
mov dword [esi + 0x1c], ecx
call fcn.004213b4
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 3
mov word [eax], cx
mov byte [ebp - 4], 2
push 8
mov dword [esi + 0x28], ecx
call fcn.004213b4
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 3
mov word [eax], cx
mov dword [esi + 0x4c], ecx
mov byte [ebp - 4], 4
push 8
mov dword [esi + 0x50], ecx
call fcn.004213b4
xor ecx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
add esp, 0x10
mov dword [esi + 0x58], 3
mov word [eax], cx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 5
call fcn.00407ab0
mov byte [ebp - 4], 6
push 8
mov dword [esi + 0xec], 0
call fcn.004213b4
add esp, 4
mov dword [esi + 0xec], eax
xor ecx, ecx
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 3
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408910
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451a76
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x45f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x80]
mov dword [ebp - 0x68], 0
push esi
push 0x4590a0
mov dword [ebp - 0x60], esi
call fcn.00430800
mov edi, eax
mov dword [ebp - 0x6c], edi
test edi, edi
jne 0x408985
push 0x45c3e8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push eax
call fcn.00423cb0
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], 0
lea esi, [edi + 0x80]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push esi
call fcn.0042e540
mov dword [edi], 0x436f60
add esp, 0xc
mov dword [edi + 8], 0
mov edx, esi
mov dword [edi + 0xc], 0
mov ecx, edi
mov dword [edi + 0x20], 0x6a09e667
push dword [ebp - 0x4c]
mov dword [edi + 0x24], 0xbb67ae85
mov dword [edi + 0x28], 0x3c6ef372
mov dword [edi + 0x2c], 0xa54ff53a
mov dword [edi + 0x30], 0x510e527f
mov dword [edi + 0x34], 0x9b05688c
mov dword [edi + 0x38], 0x1f83d9ab
mov dword [edi + 0x3c], 0x5be0cd19
call fcn.00436ec0
xorps xmm0, xmm0
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x30]
movq qword [ebp - 0x1f], xmm0
mov ecx, edi
mov dword [ebp - 0x17], 0
movups xmmword [ebp - 0x2f], xmm0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 0
call fcn.00436dd0
mov byte [ebp - 0x50], 0
lea eax, [ebp - 0x10]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x58], 0
push eax
mov dword [ebp - 0x54], 0
call fcn.00421210
push dword [ebp - 0x60]
mov byte [ebp - 4], 1
push 0
push edi
call fcn.00423d20
add esp, 0xc
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x48]
call fcn.00408880
cmp dword [eax + 0x14], 0x10
jb 0x408a78
mov eax, dword [eax]
movups xmm0, xmmword [eax]
mov ecx, dword [ebp - 0x64]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
mov eax, dword [ebp - 0x34]
movups xmmword [ecx + 0x30], xmm0
cmp eax, 0x10
jb 0x408aab
inc eax
push eax
push dword [ebp - 0x48]
call fcn.00420f80
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x58], eax
call fcn.00420d50
mov dword [ebp - 4], 2
push dword [edi - 4]
call fcn.00425231
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421268
mov esp, ebp
pop ebp
ret 8
Function at 0x408af0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x45f008]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
push edi
push 0x208
lea eax, [esp + 0x18]
mov esi, edx
push 0
push eax
mov ebp, ecx
call fcn.00423d20
add esp, 0xc
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408bb9
push ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408b8b
mov eax, dword [esp + 0x10]
xor ecx, ecx
add ecx, ebx
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
mov dword [esp + 0x18], 0
call fcn.004213b4
add esp, 4
mov dword [ebp], eax
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00421268
add esp, 0x214
ret
Function at 0x4278a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4561e0
push str.FlsAlloc
push 0x1e
call fcn.00427784
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4278da
push dword [ebp + 8]
mov ecx, esi
call dword [0x45425c]
call esi
jmp 0x4278e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x427924
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x456204
push str.FlsGetValue
push 0x20
call fcn.00427784
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42795b
push dword [ebp + 8]
mov ecx, esi
call dword [0x45425c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]