joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab9c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0xc]
mov eax, dword [ecx + 0x20c]
test eax, eax
cmovne ecx, eax
call fcn.0040c74d
test eax, eax
jne 0x40ace4
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40ace4
push str.NtQueryInformationFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40ace4
push 0x20e
xor ebx, ebx
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.00419dc0
add esp, 0xc
lea eax, [ebp - 0x258]
push 9
push 0x20c
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x21c]
call esi
test eax, eax
js 0x40ace4
mov eax, dword [ebp - 0x258]
xor ecx, ecx
shr eax, 1
mov word [ebp + eax*2 - 0x254], cx
lea eax, [ebp - 0x48]
push eax
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x40ace4
push 0x410
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.00419dc0
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [0x43e3bc]
lea esi, [ebp - 0x668]
mov dword [ebp - 0xc], eax
mov eax, dword [0x43e3c0]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x668]
mov word [ebp - 0xc], ax
cmp ax, 0x41
je 0x40acd1
cmp ax, 0x42
je 0x40acd1
lea ecx, [ebp - 0xc]
call fcn.0040c6dd
cmp eax, 3
jne 0x40acd1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x2c]
je 0x40aced
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x40acd1
movzx eax, word [esi]
test ax, ax
jne 0x40ac95
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push 2
push eax
push esi
call fcn.0041fac4
push 0x102
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 4]
push eax
call fcn.0041fac4
xor eax, eax
add esp, 0x18
inc eax
jmp 0x40ace6
Function at 0x40ae1c
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.0041031b
cmp dword [esp + 0x10], 0
jne 0x40ae44
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40ae3c
and dword [ecx], 0
xor eax, eax
inc eax
jmp 0x40af0c
push ebx
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 8]
add dword [edi + 0x220], eax
adc dword [edi + 0x224], 0
test ecx, ecx
je 0x40ae7d
mov dword [ecx], eax
test ebx, ebx
jne 0x40af09
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.0041031b
mov ecx, dword [edi + 8]
mov ebp, 0x43db38
push 1
push ebp
call fcn.004101f4
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.004109cf
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.004105f2
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.004105f2
add esp, 0x18
mov ecx, edi
call fcn.0040d08a
push eax
push 0x6d68
push ebp
push dword [edi + 8]
call fcn.00410433
add esp, 0x10
mov ecx, edi
call fcn.0040d08a
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.0041068d
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x40af11
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 8]
call fcn.0041031b
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0x18]
test eax, eax
push 0
cmovne ebx, eax
xor ecx, ecx
push ebx
test eax, eax
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
sete cl
mov dword [esp + 0x20], eax
and dword [ebx], 0
push dword [esi + 0x21c]
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x24], 0
mov edi, eax
mov ebp, dword [ebx]
jbe 0x40afb4
test edi, edi
jne 0x40afb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40af84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x40afb4
mov eax, dword [esp + 0x10]
sub eax, dword [ebx]
mov ecx, dword [esp + 0x20]
add ecx, dword [ebx]
push 0
push ebx
push eax
push ecx
push dword [esi + 0x21c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebp, dword [ebx]
mov edi, eax
cmp dword [esp + 0x10], 0
jne 0x40af66
mov dword [ebx], ebp
add dword [esi + 0x220], ebp
adc dword [esi + 0x224], 0
test edi, edi
je 0x40afdb
cmp dword [esp + 0x28], 0
jne 0x40afd4
cmp ebp, dword [esp + 0x24]
jne 0x40afdb
mov eax, edi
jmp 0x40b098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov ebx, eax
push 3
call fcn.0041031b
mov ecx, dword [esi + 8]
push 1
push 0x43db38
call fcn.004101f4
mov ecx, dword [esi + 8]
push ecx
test edi, edi
je 0x40b008
push 0
jmp 0x40b009
push ebx
call fcn.004109cf
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.004105f2
push dword [esp + 0x20]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.004105f2
push ebp
push dword [esp + 0x40]
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.004105f2
mov ecx, dword [esi + 0x220]
mov eax, dword [esi + 0x224]
sub ecx, ebp
sbb eax, 0
push eax
push ecx
push str._IXStream__Offset__I64u_
push dword [esi + 8]
call fcn.004105f2
add esp, 0x38
mov ecx, esi
call fcn.0040d08a
push eax
push 0x6d63
push 0x43db38
push dword [esi + 8]
call fcn.00410433
add esp, 0x10
mov ecx, esi
call fcn.0040d08a
mov ecx, dword [esi + 8]
push eax
push 1
call fcn.0041068d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40b515
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.0041031b
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x40b536
sub eax, 1
jne 0x40b549
push 2
jmp 0x40b538
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x24]
test eax, eax
jne 0x40b550
xor eax, eax
jmp 0x40b5d8
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40b5d5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.0041031b
mov ecx, dword [edi + 8]
mov ebx, 0x43db38
push 1
push ebx
call fcn.004101f4
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.004109cf
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.004105f2
add esp, 0xc
mov ecx, edi
call fcn.0040d08a
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.00410433
add esp, 0x10
mov ecx, edi
call fcn.0040d08a
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.0041068d
pop esi
xor eax, eax
pop ebx
jmp 0x40b5d8
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x40baa3
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca7
test eax, eax
je 0x40bb0a
push 1
mov esi, 0x43db38
xor ecx, ecx
push esi
call fcn.004101f4
push ebp
push 0x6ddb
push esi
push 0
call fcn.00410415
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.0041068d
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x40bb13
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40bb90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40bb90
push ecx
mov edx, ebp
lea ecx, [esp + 0x10]
call fcn.0040c01b
pop ecx
test eax, eax
je 0x40bb8c
mov edx, dword [esp + 0xc]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.0040c0c2
pop ecx
test eax, eax
je 0x40bb8c
pop edi
pop esi
mov ecx, ebp
pop ebp
add esp, 4
jmp fcn.0040baa3
xor eax, eax
jmp 0x40bbc5
call fcn.00404ca7
test eax, eax
je 0x40bbc3
push 1
mov edi, 0x43db38
xor ecx, ecx
push edi
call fcn.004101f4
push ebp
push 0x6ddb
push edi
push 0
call fcn.00410415
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.0041068d
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x40bbca
Capabilities:
Move file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca7
test eax, eax
je 0x40bc48
push 1
mov edi, 0x43db38
xor ecx, ecx
push edi
call fcn.004101f4
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddc
push edi
push 0
call fcn.00410415
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0041068d
push esi
push 2
xor ecx, ecx
call fcn.0041068d
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40bc52
Capabilities:
Copy file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca7
test eax, eax
je 0x40bcd2
push 1
mov edi, 0x43db38
xor ecx, ecx
push edi
call fcn.004101f4
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddd
push edi
push 0
call fcn.00410415
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0041068d
push esi
push 2
xor ecx, ecx
call fcn.0041068d
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40bdcb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x3a
pop eax
cmp ax, word [edi + edx*2 - 2]
jne 0x40bde7
cmp byte [esp + 0x20], 0
je 0x40be3a
jmp 0x40be0c
push ecx
dec edx
call fcn.0040e2a5
pop ecx
mov esi, eax
xor bl, bl
push 0x5c
pop ebp
test esi, esi
je 0x40be21
lea eax, [edi + 2]
cmp eax, esi
jne 0x40be1a
cmp word [edi], bp
jne 0x40be1a
cmp byte [esp + 0x20], bl
je 0x40be18
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40be7c
mov bl, 1
xor eax, eax
cmp edi, esi
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40be36
mov ecx, eax
call fcn.0040be84
jmp 0x40be7c
test bl, bl
je 0x40be3f
xor eax, eax
inc eax
jmp 0x40be7c
test esi, esi
je 0x40be5e
xor eax, eax
mov edx, esi
sub edx, edi
mov word [esi], ax
push eax
sar edx, 1
mov ecx, edi
call fcn.0040bdcb
pop ecx
test eax, eax
je 0x40be14
mov word [esi], bp
and dword [esp + 0x14], 0
lea eax, [esp + 0x10]
and dword [esp + 0x18], 0
push eax
push edi
mov dword [esp + 0x18], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40c037
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
call esi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca7
test eax, eax
je 0x40c0b4
push 1
mov edi, 0x43db38
xor ecx, ecx
push edi
call fcn.004101f4
mov esi, dword [esp + 0xc]
push esi
push dword [ebp]
push 0x6de2
push edi
push 0
call fcn.00410415
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.0041068d
xor eax, eax
cmp dword [ebp], 0xffffffff
pop edi
pop esi
setne al
pop ebp
pop ecx
ret

Function at 0x40c0c2
Capabilities:
Set file attributes

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca7
test eax, eax
je 0x40c135
push 1
mov esi, 0x43db38
xor ecx, ecx
push esi
call fcn.004101f4
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.00410415
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0041068d
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40c13f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call ebp
mov dword [esp + 0x14], eax
call fcn.004124e3
test eax, eax
lea eax, [esp + 0x18]
je 0x40c188
push ebx
push ebx
push ebx
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40c190
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [esp + 0x14]
mov esi, eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi], 0xffffffff
jne 0x40c1e3
call ebx
cmp eax, 2
je 0x40c1b7
call ebx
call fcn.00404ca7
test eax, eax
je 0x40c1df
push 1
mov esi, 0x43db38
xor ecx, ecx
push esi
call fcn.004101f4
push 0x6de7
push esi
push 0
call fcn.00410415
add esp, 0xc
xor eax, eax
jmp 0x40c207
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.0040c343
mov ecx, edi
test eax, eax
jne 0x40c1fb
call fcn.0040c20f
jmp 0x40c207
lea edx, [esp + 0x18]
call fcn.0040c68b
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c39e
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x40c401
call fcn.00404ca7
test eax, eax
je 0x40c409
push 1
mov esi, 0x43db38
xor ecx, ecx
push esi
call fcn.004101f4
push 0x6de5
push esi
push ebp
call fcn.00410415
add esp, 0xc
jmp 0x40c409
cmp ebp, 0x104
jbe 0x40c40d
xor eax, eax
jmp 0x40c410
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x40c414
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0
push dword [ebp + 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test edi, edi
setne bl
call fcn.00404ca7
test eax, eax
je 0x40c489
push 1
mov esi, 0x43db38
xor ecx, ecx
push esi
call fcn.004101f4
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.00410415
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40d4ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov eax, esi
mov edi, ecx
shr eax, 4
movzx eax, ax
push 6
inc eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d54f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d54f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
and esi, 0xf
jbe 0x40d500
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x40d4f2
mov ebx, dword [esp + 0x10]
movzx edi, word [ecx]
test ebx, ebx
jne 0x40d50f
mov eax, edi
jmp 0x40d551
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40d51e
lea eax, [ecx + 2]
mov dword [ebx], eax
jmp 0x40d50b
lea eax, [edx - 1]
cmp eax, edi
cmovge eax, edi
mov edi, eax
test edi, edi
jle 0x40d545
lea esi, [edi + edi]
push esi
lea eax, [ecx + 2]
push eax
push ebx
call fcn.00419840
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x40d50b
cmp edx, 1
jle 0x40d50b
xor eax, eax
mov word [ebx], ax
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40f78d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ebx, word [esi + 2]
movzx eax, word [edi + 2]
cmp bx, ax
jae 0x40f7ac
or eax, 0xffffffff
jmp 0x40f888
jbe 0x40f7b6
xor eax, eax
inc eax
jmp 0x40f888
movzx edx, word [edi + 4]
push ebp
movzx ebp, word [esi + 6]
cmp edx, 6
ja 0x40f841
movzx eax, word [esi + 4]
mov ecx, ebp
sub ecx, eax
lea eax, [edx + 6]
add eax, ecx
cdq
push 7
pop ecx
idiv ecx
movzx eax, word [edi + 6]
imul eax, eax, 7
inc edx
movzx ecx, dx
add eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xfffffff9
mov dword [esp + 0x14], eax
cmp ebx, 2
jne 0x40f822
movzx ecx, word [esi]
test cl, 3
jne 0x40f822
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x40f81d
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x40f822
push 0xc
pop ecx
jmp 0x40f824
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x43d844]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x40f845
movzx edx, word [edi + 6]
movzx ecx, word [edi + 8]
imul eax, edx, 0x18
add ecx, eax
movzx eax, word [edi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, bp
imul edx, ecx, 0x3c
imul ecx, eax, 0x18
movzx eax, word [esi + 8]
pop ebp
add ecx, eax
movzx eax, word [esi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [esi + 0xc]
imul ecx, ecx, 0x3c
add ecx, eax
xor eax, eax
cmp ecx, edx
setg al
or esi, 0xffffffff
cmp ecx, edx
cmovl eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x412529
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
mov esi, 0x11c
lea eax, [ebp - 0x11c]
push esi
push 0
push eax
call fcn.00419dc0
add esp, 0xc
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
pop esi
sbb eax, eax
inc eax
leave
ret
Function at 0x41256a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x3c], 0x3c
mov esi, edx
mov dword [ebp - 0x38], 0x440
push edi
mov edi, ecx
cmp dword [ebp + 0x28], ebx
je 0x412591
mov dword [ebp - 0x34], ebx
jmp 0x41259a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [ebp - 0x2c], edi
cmp dword [ebp + 0x30], ecx
mov eax, 0x43f850
xorps xmm0, xmm0
mov dword [ebp - 0x28], esi
cmove eax, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4125e9
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret

Function at 0x4125eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x5c]
mov esi, ecx
push 0
push eax
mov ebx, edx
mov dword [ebp - 4], esi
call fcn.00419dc0
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x18]
push 0x10
xor edi, edi
push 0
inc edi
push eax
mov word [ebp - 0x2c], di
call fcn.00419dc0
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.00412529
test eax, eax
je 0x412657
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
mov edx, ebx
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
sub esp, 0x14
call fcn.0041256a
add esp, 0x2c
jmp 0x4126fc
push esi
call fcn.0041faa9
push ebx
mov esi, eax
call fcn.0041faa9
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.0042fda0
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.0041fa56
push 0x43cc30
push esi
call fcn.0041fa78
push ebx
push esi
call fcn.0041fa78
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x4126b0
cmp word [esi], bx
je 0x4126b0
push esi
call fcn.0041faa9
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0042fda0
mov edi, esp
test esi, esi
je 0x4126c9
push esi
push edi
call fcn.0041fa56
pop ecx
pop ecx
jmp 0x4126ce
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
test esi, esi
cmovne eax, edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
je 0x4126fc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413100
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x3c
push ebp
push edi
push 0x1c
lea eax, [esp + 0x10]
mov ebp, edx
push 0
push eax
mov edi, ecx
call fcn.00419dc0
add esp, 0xc
lea eax, [esp + 0xc]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [esp + 0x20], 0x40
je 0x41314c
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0xc]
dec edi
add eax, dword [esp + 0x18]
add edi, ebp
cmp eax, edi
jae 0x413197
push 0x1c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00419dc0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x3c]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebp
add esp, 0x3c
ret

Function at 0x4131a0
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.004131f0
push 0x28
call fcn.00418868
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
call fcn.00413060
mov edi, eax
push 0
push ecx
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x24]
mov edx, eax
mov ecx, esi
call fcn.004135b0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
mov esi, eax
call dword [edx + 0x10]
pop edi
mov eax, esi
pop esi
pop ecx
ret