joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa73
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.0040c6e4
test eax, eax
jne 0x40abbb
push 0x43e24c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40abbb
push str.NtQueryInformationFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40abbb
push 0x20e
xor ebx, ebx
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.00419d10
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 0x40abbb
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 0x40abbb
push 0x410
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.00419d10
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [0x43e278]
lea esi, [ebp - 0x668]
mov dword [ebp - 0xc], eax
mov eax, dword [0x43e27c]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x668]
mov word [ebp - 0xc], ax
cmp ax, 0x41
je 0x40aba8
cmp ax, 0x42
je 0x40aba8
lea ecx, [ebp - 0xc]
call fcn.0040c674
cmp eax, 3
jne 0x40aba8
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 0x40abc4
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x40aba8
movzx eax, word [esi]
test ax, ax
jne 0x40ab6c
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.0041fa14
push 0x102
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 4]
push eax
call fcn.0041fa14
xor eax, eax
add esp, 0x18
inc eax
jmp 0x40abbd
Function at 0x40acf3
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.0041029d
cmp dword [esp + 0x10], 0
jne 0x40ad1b
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40ad13
and dword [ecx], 0
xor eax, eax
inc eax
jmp 0x40ade3
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 0x40ad54
mov dword [ecx], eax
test ebx, ebx
jne 0x40ade0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.0041029d
mov ecx, dword [edi + 8]
mov ebp, 0x43dab8
push 1
push ebp
call fcn.00410176
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.00410954
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.00410574
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.00410574
add esp, 0x18
mov ecx, edi
call fcn.0040d021
push eax
push 0x6d68
push ebp
push dword [edi + 8]
call fcn.004103b5
add esp, 0x10
mov ecx, edi
call fcn.0040d021
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.0041060f
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x40ade8
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.0041029d
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 0x40ae8b
test edi, edi
jne 0x40ae8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40ae5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x40ae8b
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 0x40ae3d
mov dword [ebx], ebp
add dword [esi + 0x220], ebp
adc dword [esi + 0x224], 0
test edi, edi
je 0x40aeb2
cmp dword [esp + 0x28], 0
jne 0x40aeab
cmp ebp, dword [esp + 0x24]
jne 0x40aeb2
mov eax, edi
jmp 0x40af6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov ebx, eax
push 3
call fcn.0041029d
mov ecx, dword [esi + 8]
push 1
push 0x43dab8
call fcn.00410176
mov ecx, dword [esi + 8]
push ecx
test edi, edi
je 0x40aedf
push 0
jmp 0x40aee0
push ebx
call fcn.00410954
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.00410574
push dword [esp + 0x20]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.00410574
push ebp
push dword [esp + 0x40]
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.00410574
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.00410574
add esp, 0x38
mov ecx, esi
call fcn.0040d021
push eax
push 0x6d63
push 0x43dab8
push dword [esi + 8]
call fcn.004103b5
add esp, 0x10
mov ecx, esi
call fcn.0040d021
mov ecx, dword [esi + 8]
push eax
push 1
call fcn.0041060f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40b3ec
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.0041029d
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x40b40d
sub eax, 1
jne 0x40b420
push 2
jmp 0x40b40f
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 0x40b427
xor eax, eax
jmp 0x40b4af
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40b4ac
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.0041029d
mov ecx, dword [edi + 8]
mov ebx, 0x43dab8
push 1
push ebx
call fcn.00410176
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.00410954
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.00410574
add esp, 0xc
mov ecx, edi
call fcn.0040d021
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.004103b5
add esp, 0x10
mov ecx, edi
call fcn.0040d021
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.0041060f
pop esi
xor eax, eax
pop ebx
jmp 0x40b4af
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x40b98c
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.00404cb9
test eax, eax
je 0x40b9f3
push 1
mov esi, 0x43dab8
xor ecx, ecx
push esi
call fcn.00410176
push ebp
push 0x6ddb
push esi
push 0
call fcn.00410397
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.0041060f
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x40b9fc
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 0x40ba79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40ba79
push ecx
mov edx, ebp
lea ecx, [esp + 0x10]
call fcn.0040bfb2
pop ecx
test eax, eax
je 0x40ba75
mov edx, dword [esp + 0xc]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.0040c059
pop ecx
test eax, eax
je 0x40ba75
pop edi
pop esi
mov ecx, ebp
pop ebp
add esp, 4
jmp fcn.0040b98c
xor eax, eax
jmp 0x40baae
call fcn.00404cb9
test eax, eax
je 0x40baac
push 1
mov edi, 0x43dab8
xor ecx, ecx
push edi
call fcn.00410176
push ebp
push 0x6ddb
push edi
push 0
call fcn.00410397
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.0041060f
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x40bab3
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.00404cb9
test eax, eax
je 0x40bb31
push 1
mov edi, 0x43dab8
xor ecx, ecx
push edi
call fcn.00410176
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddc
push edi
push 0
call fcn.00410397
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0041060f
push esi
push 2
xor ecx, ecx
call fcn.0041060f
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40bb51
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 esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
call esi
mov ecx, dword [esp + 0x18]
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.00404cb9
test eax, eax
je 0x40bbdb
push 1
mov edi, 0x43dab8
xor ecx, ecx
push edi
call fcn.00410176
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddd
push edi
push 0
call fcn.00410397
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0041060f
push esi
push 2
xor ecx, ecx
call fcn.0041060f
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40bcd4
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 0x40bcf0
cmp byte [esp + 0x20], 0
je 0x40bd43
jmp 0x40bd15
push ecx
dec edx
call fcn.0040e239
pop ecx
mov esi, eax
xor bl, bl
push 0x5c
pop ebp
test esi, esi
je 0x40bd2a
lea eax, [edi + 2]
cmp eax, esi
jne 0x40bd23
cmp word [edi], bp
jne 0x40bd23
cmp byte [esp + 0x20], bl
je 0x40bd21
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40bd85
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 0x40bd3f
mov ecx, eax
call fcn.0040bd8d
jmp 0x40bd85
test bl, bl
je 0x40bd48
xor eax, eax
inc eax
jmp 0x40bd85
test esi, esi
je 0x40bd67
xor eax, eax
mov edx, esi
sub edx, edi
mov word [esi], ax
push eax
sar edx, 1
mov ecx, edi
call fcn.0040bcd4
pop ecx
test eax, eax
je 0x40bd1d
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 0x40bfce
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.00404cb9
test eax, eax
je 0x40c04b
push 1
mov edi, 0x43dab8
xor ecx, ecx
push edi
call fcn.00410176
mov esi, dword [esp + 0xc]
push esi
push dword [ebp]
push 0x6de2
push edi
push 0
call fcn.00410397
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.0041060f
xor eax, eax
cmp dword [ebp], 0xffffffff
pop edi
pop esi
setne al
pop ebp
pop ecx
ret

Function at 0x40c059
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.00404cb9
test eax, eax
je 0x40c0cc
push 1
mov esi, 0x43dab8
xor ecx, ecx
push esi
call fcn.00410176
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.00410397
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0041060f
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40c0d6
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.004125ca
test eax, eax
lea eax, [esp + 0x18]
je 0x40c11f
push ebx
push ebx
push ebx
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40c127
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 0x40c17a
call ebx
cmp eax, 2
je 0x40c14e
call ebx
call fcn.00404cb9
test eax, eax
je 0x40c176
push 1
mov esi, 0x43dab8
xor ecx, ecx
push esi
call fcn.00410176
push 0x6de7
push esi
push 0
call fcn.00410397
add esp, 0xc
xor eax, eax
jmp 0x40c19e
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.0040c2da
mov ecx, edi
test eax, eax
jne 0x40c192
call fcn.0040c1a6
jmp 0x40c19e
lea edx, [esp + 0x18]
call fcn.0040c622
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c335
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 0x40c398
call fcn.00404cb9
test eax, eax
je 0x40c3a0
push 1
mov esi, 0x43dab8
xor ecx, ecx
push esi
call fcn.00410176
push 0x6de5
push esi
push ebp
call fcn.00410397
add esp, 0xc
jmp 0x40c3a0
cmp ebp, 0x104
jbe 0x40c3a4
xor eax, eax
jmp 0x40c3a7
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x40c3ab
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.00404cb9
test eax, eax
je 0x40c420
push 1
mov esi, 0x43dab8
xor ecx, ecx
push esi
call fcn.00410176
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.00410397
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40d451
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 0x40d4e6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d4e6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
and esi, 0xf
jbe 0x40d497
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x40d489
mov ebx, dword [esp + 0x10]
movzx edi, word [ecx]
test ebx, ebx
jne 0x40d4a6
mov eax, edi
jmp 0x40d4e8
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40d4b5
lea eax, [ecx + 2]
mov dword [ebx], eax
jmp 0x40d4a2
lea eax, [edx - 1]
cmp eax, edi
cmovge eax, edi
mov edi, eax
test edi, edi
jle 0x40d4dc
lea esi, [edi + edi]
push esi
lea eax, [ecx + 2]
push eax
push ebx
call fcn.00419790
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x40d4a2
cmp edx, 1
jle 0x40d4a2
xor eax, eax
mov word [ebx], ax
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40f70f
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 0x40f72e
or eax, 0xffffffff
jmp 0x40f80a
jbe 0x40f738
xor eax, eax
inc eax
jmp 0x40f80a
movzx edx, word [edi + 4]
push ebp
movzx ebp, word [esi + 6]
cmp edx, 6
ja 0x40f7c3
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 0x40f7a4
movzx ecx, word [esi]
test cl, 3
jne 0x40f7a4
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x40f79f
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x40f7a4
push 0xc
pop ecx
jmp 0x40f7a6
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x43d7c4]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x40f7c7
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 0x412610
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 0x412637
mov dword [ebp - 0x34], ebx
jmp 0x412640
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, 0x43f740
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 0x41268f
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret

Function at 0x412691
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.00419d10
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.00419d10
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.004125c0
test eax, eax
je 0x4126fd
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.00412610
add esp, 0x2c
jmp 0x4127a2
push esi
call fcn.0041f9f9
push ebx
mov esi, eax
call fcn.0041f9f9
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.0042fd00
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.0041f9a6
push 0x43cbb0
push esi
call fcn.0041f9c8
push ebx
push esi
call fcn.0041f9c8
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x412756
cmp word [esi], bx
je 0x412756
push esi
call fcn.0041f9f9
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0042fd00
mov edi, esp
test esi, esi
je 0x41276f
push esi
push edi
call fcn.0041f9a6
pop ecx
pop ecx
jmp 0x412774
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 0x4127a2
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 0x413050
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.00419d10
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 0x41309c
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 0x4130e7
push 0x1c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00419d10
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 0x4130f0
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.00413140
push 0x28
call fcn.004187b9
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
call fcn.00412fb0
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.00413500
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