joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4321ce
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45b048]
je 0x4321e9
inc edi
cmp edi, 0x17
jb 0x4321da
cmp edi, 0x17
jae 0x432369
push ebp
push 3
call fcn.0043badb
cmp eax, 1
pop ecx
je 0x432335
push 3
call fcn.0043badb
test eax, eax
pop ecx
jne 0x43221d
cmp dword [0x45b008], 1
je 0x432335
cmp ebx, 0xfc
je 0x432368
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45ccf0
push ebp
call fcn.004335ba
add esp, 0xc
test eax, eax
je 0x432253
push esi
push esi
push esi
push esi
push esi
call fcn.0042ed9c
add esp, 0x14
push 0x104
mov esi, 0x45cd09
push esi
push 0
mov byte [0x45ce0d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432297
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004335ba
add esp, 0xc
test eax, eax
je 0x432297
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042ed9c
add esp, 0x14
push esi
call fcn.0042d420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4322dc
push esi
call fcn.0042d420
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45d004
push 0x4545ec
sub ecx, eax
push ecx
push eax
call fcn.00437286
add esp, 0x14
test eax, eax
je 0x4322dc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042ed9c
add esp, 0x14
jmp 0x4322de
xor esi, esi
push 0x44bb08
push ebx
push ebp
call fcn.004371c1
add esp, 0xc
test eax, eax
je 0x4322fe
push esi
push esi
push esi
push esi
push esi
call fcn.0042ed9c
add esp, 0x14
push dword [edi*8 + 0x45b04c]
push ebx
push ebp
call fcn.004371c1
add esp, 0xc
test eax, eax
je 0x432320
push esi
push esi
push esi
push esi
push esi
call fcn.0042ed9c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043b91e
add esp, 0xc
jmp 0x432368
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x432368
cmp ebp, 0xffffffff
je 0x432368
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45b04c]
push dword [esi]
call fcn.0042d420
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43b91e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00432d93
xor ebx, ebx
cmp dword [0x45d738], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43b9f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43bad4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43bad4
push eax
call fcn.00432d25
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45d738], eax
call esi
push eax
call fcn.00432d25
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45d73c], eax
call esi
push eax
call fcn.00432d25
mov dword [0x45d740], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00431f5b
test eax, eax
pop ecx
pop ecx
je 0x43b9c2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ed9c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43b9f4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00432d25
cmp eax, ebx
pop ecx
mov dword [0x45d748], eax
je 0x43b9f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00432d25
pop ecx
mov dword [0x45d744], eax
mov eax, dword [0x45d744]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43ba79
cmp dword [0x45d748], ecx
je 0x43ba79
push eax
call fcn.00432d9c
push dword [0x45d748]
mov esi, eax
call fcn.00432d9c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43ba79
cmp edi, ebx
je 0x43ba79
call esi
cmp eax, ebx
je 0x43ba46
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43ba46
test byte [ebp - 0x18], 1
jne 0x43ba79
lea eax, [ebp - 0x10]
push eax
call fcn.00431f92
test eax, eax
pop ecx
je 0x43ba61
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ed9c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43ba70
or dword [ebp + 0x10], 0x200000
jmp 0x43bab4
or dword [ebp + 0x10], 0x40000
jmp 0x43bab4
mov eax, dword [0x45d73c]
cmp eax, dword [ebp - 8]
je 0x43bab4
push eax
call fcn.00432d9c
cmp eax, ebx
pop ecx
je 0x43bab4
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43bab4
mov eax, dword [0x45d740]
cmp eax, dword [ebp - 8]
je 0x43bab4
push eax
call fcn.00432d9c
cmp eax, ebx
pop ecx
je 0x43bab4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d738]
call fcn.00432d9c
cmp eax, ebx
pop ecx
je 0x43bad4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43bad6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056e8
Capabilities:
Delete file
Enumerate gui resources
Manipulate console buffer
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00406ab0
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x4057e5
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
cmp dword [0x4afdc4], 0x5d
jne 0x4057cd
push esi
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x824]
push eax
push 0x401258
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push 0x401264
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push esi
push esi
push esi
push 0x4012a0
push 0x4012c0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4012f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push esi
lea eax, [ebp - 0x1024]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00405549
add ebx, 8
dec dword [ebp - 8]
jne 0x40570a
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4063c7
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [0x41c7ac]
sub esp, 0x800
push esi
push edi
mov dword [0x4afdc4], eax
mov eax, 0xb2d3b
add dword [0x4afdc4], eax
push 0x6e
pop eax
push 0x33
mov word [0x4af45e], ax
pop eax
push 0x2e
mov word [0x4af464], ax
xor eax, eax
mov word [0x4af470], ax
pop eax
push 0x6b
mov word [0x4af468], ax
pop eax
push 0x6c
mov word [0x4af458], ax
pop eax
push 0x64
mov word [0x4af46c], ax
pop eax
push 0x6c
mov word [0x4af46a], ax
pop eax
push 0x32
mov word [0x4af46e], ax
mov word [0x4af462], ax
pop eax
push 0x65
mov word [0x4af466], ax
pop eax
push 0x72
mov word [0x4af45a], ax
mov word [0x4af460], ax
pop eax
mov word [0x4af45c], ax
call fcn.00405a17
mov edi, HeapFree
xor esi, esi
cmp dword [0x4afdc4], 0x1833b
jne 0x4064af
push esi
lea eax, [esp + 0xc]
push eax
push 0x4013e0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x401410
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
dec edi
jne 0x40645e
mov eax, dword [0x4af3a4]
mov dword [0x4af44c], eax
call eax
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x40777b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4adef0]
jne 0x407785
repz ret
jmp fcn.0040d86b
Function at 0x412ab3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409cb7
and dword [ebp - 4], 0
cmp dword [0x4b07bc], 0
mov ebx, eax
jne 0x412b64
push 0x4048b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412c15
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4048a4
push edi
call esi
test eax, eax
je 0x412c15
push eax
call fcn.00409c45
mov dword [esp], 0x404894
push edi
mov dword [0x4b07bc], eax
call esi
push eax
call fcn.00409c45
mov dword [esp], 0x404880
push edi
mov dword [0x4b07c0], eax
call esi
push eax
call fcn.00409c45
mov dword [esp], 0x404864
push edi
mov dword [0x4b07c4], eax
call esi
push eax
call fcn.00409c45
pop ecx
mov dword [0x4b07cc], eax
test eax, eax
je 0x412b64
push 0x40484c
push edi
call esi
push eax
call fcn.00409c45
pop ecx
mov dword [0x4b07c8], eax
mov eax, dword [0x4b07c8]
cmp eax, ebx
je 0x412bbc
cmp dword [0x4b07cc], ebx
je 0x412bbc
push eax
call fcn.00409cc0
push dword [0x4b07cc]
mov esi, eax
call fcn.00409cc0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412bbc
test edi, edi
je 0x412bbc
call esi
test eax, eax
je 0x412bb3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412bb3
test byte [ebp - 0xc], 1
jne 0x412bbc
or dword [ebp + 0x10], 0x200000
jmp 0x412bf5
mov eax, dword [0x4b07c0]
cmp eax, ebx
je 0x412bf5
push eax
call fcn.00409cc0
pop ecx
test eax, eax
je 0x412bf5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412bf5
mov eax, dword [0x4b07c4]
cmp eax, ebx
je 0x412bf5
push eax
call fcn.00409cc0
pop ecx
test eax, eax
je 0x412bf5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b07bc]
call fcn.00409cc0
pop ecx
test eax, eax
je 0x412c15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412c17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406f50
Capabilities:
Compute adler32 checksum

Disassembly:
jmp 0x406f60
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x407077
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
movzx ecx, di
shr edi, 0x10
test ebp, ebp
je 0x40706c
push ebx
mov edx, 0x15b0
cmp ebp, edx
cmovb edx, ebp
sub ebp, edx
cmp edx, 0x10
jb 0x40702e
mov ebx, edx
shr ebx, 4
movzx eax, byte [esi]
sub edx, 0x10
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 8]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 9]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xa]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xb]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xc]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xd]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xe]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 0xf]
add edi, ecx
add esi, 0x10
add ecx, eax
add edi, ecx
sub ebx, 1
jne 0x406fa0
test edx, edx
je 0x40703f
movzx eax, byte [esi]
inc esi
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x407032
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebp, ebp
jne 0x406f86
pop ebx
shl edi, 0x10
or edi, ecx
mov eax, edi
pop edi
pop ebp
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x408710
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x40872f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x294], 0xffffffff
mov eax, dword [esi + 0x298]
cmp eax, 0xffffffff
je 0x40874b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x298], 0xffffffff
mov ecx, esi
pop esi
jmp fcn.00411780
Function at 0x4094f0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x54
mov eax, dword [0x45e068]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x6c]
mov eax, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
and eax, 0x7fffeff
or eax, 0xe0000000
mov ebp, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp + 8]
push eax
mov eax, dword [esp + 0x70]
mov edx, eax
push dword [esp + 0x78]
or edx, 0x80000000
mov byte [ebp + 0x20], 1
push dword [esp + 0x78]
test eax, eax
cmovs edx, eax
mov eax, dword [esi + 0x30]
or edx, 0x40000000
push edx
push edi
call eax
shr ebx, 0x1c
lea esi, [ebp + 0x18]
not bl
mov byte [esp + 0x13], al
and bl, 1
movzx ecx, bl
push ecx
push dword [esp + 0x80]
push dword [ebp + 0xc]
push esi
call fcn.0041e930
mov ecx, eax
call fcn.0041e5d0
mov bl, byte [esp + 0x13]
test bl, bl
je 0x4095b4
push 0x34
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00423110
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4095b4
mov ecx, dword [esi]
push 0
push 0
push dword [esp + 0x4c]
add ecx, 0x18
push dword [esp + 0x54]
call fcn.0041ec00
lea eax, [esp + 0x58]
mov ecx, 2
lea esi, [ecx + 1]
test edi, edi
je 0x4095df
movzx edx, word [edi]
lea edi, [edi + 2]
dec ecx
test dx, dx
je 0x4095df
sub esi, 1
je 0x4095df
mov word [eax], dx
add eax, 2
test ecx, ecx
jg 0x4095c4
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x409615
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0x60]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420bdf
add esp, 0x54
ret 0x18
Function at 0x40a730
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2f4]
test ecx, ecx
je 0x40a809
mov ecx, dword [ecx + 0x35c]
or eax, 0xffffffff
test ecx, ecx
je 0x40a770
mov ecx, dword [ecx + 0x29c]
test ecx, ecx
je 0x40a770
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x40a770
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [esp + 4], vtable.HandleClass.0
test eax, eax
cmovne ecx, eax
mov dword [esp + 8], ecx
cmp ecx, 0xffffffff
je 0x40a792
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [esi + 0x2f4]
mov eax, dword [edi + 0x1bc]
lea ecx, [edi + 0x1bc]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x40a7c4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x88]
mov eax, dword [edi]
mov ecx, edi
push 0xffffffffffffffff
call dword [eax + 0x94]
mov ecx, dword [esi + 0x2f4]
pop edi
test ecx, ecx
je 0x40a7d5
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 4]
mov dword [esi + 0x2f4], 0
mov dword [esp + 4], vtable.HandleClass.0
call fcn.0040fd40
test al, al
je 0x40a809
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
call dword [eax + 0x1c]
mov al, 1
pop esi
add esp, 8
ret

Function at 0x40a9c0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, ecx
mov dword [esp + 8], 0
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
or ecx, 0xf003f
mov edi, dword [esi + 4]
cmp eax, 0x80000004
je 0x40aa1d
cmp eax, 0x80000050
je 0x40aa1d
lea edx, [esp + 0xc]
push edx
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40aa21
push 0
push edi
push eax
mov ecx, ebx
call fcn.00414ca0
test al, al
je 0x40aa44
jmp 0x40aa21
mov dword [esp + 0xc], eax
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40aa48
push 0
push dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00414ca0
test al, al
jne 0x40aa48
xor bl, bl
jmp 0x40aa4a
mov bl, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40aa59
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 8
Function at 0x40b240
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
test bl, 2
je 0x40b26c
push edi
push esi
call fcn.00415560
add esp, 8
test al, al
jne 0x40b26c
pop edi
pop esi
pop ebx
add esp, 0x10
ret
test bl, 4
je 0x40b33e
test esi, esi
je 0x40b335
cmp word [esi], 0
je 0x40b335
lea eax, [esp + 0xc]
mov dword [esp + 0xc], vtable.ErrorClass.0
push eax
and bl, 1
mov dword [esp + 0x14], 0
movzx eax, bl
mov ecx, 0x45ffa8
push eax
push esi
mov dword [esp + 0x18], vtable.TextErrorClass.0
mov dword [esp + 0x20], 0x441510
mov dword [esp + 0x24], 0
call fcn.00413f30
sub eax, 1
je 0x40b2f0
sub eax, 1
je 0x40b324
push edi
push esi
call fcn.00412740
add esp, 8
test al, al
je 0x40b316
mov eax, dword [0x4600b4]
test eax, eax
je 0x40b2f0
push 0
push esi
push 5
push 4
call eax
mov bl, 1
cmp dword [esp + 0x18], 0
mov dword [esp + 0xc], vtable.TextErrorClass.0
je 0x40b30d
push dword [esp + 0x14]
call fcn.00426f61
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
sete bl
jmp 0x40b2f2
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x14]
mov eax, dword [eax + 4]
call eax
mov bl, al
jmp 0x40b2f2
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
push edi
push esi
call fcn.00412740
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x40b487
Capabilities:
Create process on windows

Disassembly:
cmp dword [0x45fff8], 0
push esi
mov esi, ecx
je 0x40b583
mov eax, dword [esi + 0x14]
shr eax, 0x19
test al, 1
je 0x40b4bb
mov eax, dword [esi + 0x364]
test eax, eax
je 0x40b583
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
test eax, eax
jne 0x40b54e
mov al, 1
pop esi
ret
mov eax, dword [esi + 0x35c]
test eax, eax
je 0x40b583
or dword [eax + 0x268], 3
mov ecx, dword [esi + 0x35c]
push ebx
lea eax, [ecx + 0x294]
push eax
lea eax, [ecx + 0x2b0]
push eax
push dword [ecx + 0x260]
push 0
push dword [ecx + 0x268]
push 1
push 0
push 0
push dword [ecx + 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
cmp byte [0x4e01b8], 0
je 0x40b53d
cmp byte [0x4e0200], 0
je 0x40b53d
mov eax, dword [esi + 0x35c]
push dword [eax + 0x294]
push str.CreateProcess:_Info.hProcess__p
push 0
push 8
push 0x460160
call fcn.00417390
add esp, 0x14
push dword [esi + 0x350]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test bl, bl
pop ebx
je 0x40b583
movzx eax, byte [esi + 0x368]
push eax
call dword [0x45fff8]
mov ecx, esi
call fcn.0040abf0
mov ecx, dword [esi + 0x364]
test ecx, ecx
je 0x40b583
mov eax, dword [0x45fff4]
test eax, eax
je 0x40b579
push ecx
call eax
mov dword [esi + 0x364], 0
mov al, 1
pop esi
ret
Function at 0x40b5a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x228
mov eax, dword [0x45e068]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
test eax, eax
je 0x40b644
cmp word [eax], 0
je 0x40b644
lea ecx, [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 0x10], ecx
xor ecx, ecx
push 0x45b4e0
mov word [esp + 0x18], cx
lea ecx, [esp + 4]
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], pe_nt_image_headers32
call fcn.00413850
test al, al
je 0x40b63c
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [esp + 4]
setne bl
call fcn.0040bea0
mov al, bl
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00420bdf
add esp, 0x228
ret
lea ecx, [esp]
call fcn.0040bea0
mov ecx, dword [esp + 0x224]
xor al, al
xor ecx, esp
call fcn.00420bdf
add esp, 0x228
ret

Function at 0x40d420
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
mov esi, ecx
push edi
push dword [esi + 0xc]
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x40d47e
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x40d495
lea edi, [eax + eax]
cmp edi, ecx
jbe 0x40d46f
mov eax, dword [esi]
shr eax, 0xa
test al, 1
jne 0x40d47e
cmp dword [esi + 0x10], 0
je 0x40d45b
mov ecx, esi
call fcn.0040bea0
push 0
push edi
mov ecx, esi
call fcn.00410850
mov dword [esi + 0x10], eax
test eax, eax
je 0x40d486
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
push dword [esi + 0xc]
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x40d437
pop edi
pop esi
xor al, al
pop ebx
ret 4
pop edi
mov dword [esi + 0xc], 0
xor al, al
pop esi
pop ebx
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d4a9
push eax
mov ecx, esi
call fcn.00407200
test al, al
je 0x40d47e
pop edi
pop esi
mov al, 1
pop ebx
ret 4
Function at 0x40d690
Capabilities:
Get common file path

Disassembly:
sub esp, 0x228
mov eax, dword [0x45e068]
xor eax, esp
mov dword [esp + 0x224], eax
lea eax, [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 0x10], eax
xor eax, eax
push ebx
push edi
mov word [esp + 0x1c], ax
mov edi, ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0
push eax
push pe_nt_image_headers32
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40d7c1
mov eax, dword [0x45ffbc]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
test eax, eax
je 0x40d70a
push dword [edi + 0xc]
push dword [edi + 0x10]
push ebp
call eax
test eax, eax
jne 0x40d787
test ebp, ebp
je 0x40d77c
mov esi, ebp
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40d713
sub esi, ecx
sar esi, 1
je 0x40d77c
lea ebx, [esi + 1]
cmp ebx, dword [edi + 0xc]
jbe 0x40d756
mov eax, dword [edi]
shr eax, 0xa
test al, 1
jne 0x40d787
cmp dword [edi + 0x10], 0
je 0x40d742
mov ecx, edi
call fcn.0040bea0
push 0
push ebx
mov ecx, edi
call fcn.00410850
mov dword [edi + 0x10], eax
test eax, eax
je 0x40d773
mov dword [edi + 0xc], ebx
add esi, esi
mov dword [edi + 4], ebx
push esi
push ebp
push dword [edi + 0x10]
call fcn.00422b90
mov eax, dword [edi + 0x10]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x40d787
mov dword [edi + 0xc], 0
jmp 0x40d787
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 4], ecx
mov edx, dword [edi + 0x10]
test edx, edx
je 0x40d7a4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d793
sub ecx, esi
sar ecx, 1
jmp 0x40d7a6
xor ecx, ecx
test ecx, ecx
lea eax, [ecx - 1]
pop esi
cmove eax, ecx
pop ebp
cmp word [edx + eax*2], 0x5c
jne 0x40d7bd
xor ecx, ecx
mov word [edx + eax*2], cx
mov bl, 1
jmp 0x40d7c3
xor bl, bl
lea ecx, [esp + 8]
call fcn.0040bea0
mov ecx, dword [esp + 0x22c]
mov al, bl
pop edi
pop ebx
xor ecx, esp
call fcn.00420bdf
add esp, 0x228
ret