joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496ca0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0049d0b0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x496d99
lea ecx, [esp + 0x10]
push ecx
push str..htm
push accept
mov ecx, esi
call fcn.0041f450
test eax, eax
jne 0x496d99
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push accept
mov ecx, esi
call fcn.0041f450
test eax, eax
jne 0x496d99
lea edx, [esp + 0x10]
push 0x895adc
push edx
call fcn.004b95b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x496d6a
lea eax, [esp + 0x10]
push 0x895ad8
push eax
call fcn.004b95b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x496d6a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x496d6d
mov byte [esi], 0
push 0x8952a0
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x49cff0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f0d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x49d0a0
mov eax, dword [0x896804]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004dc62f
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004dc67e
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004dc5db
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x49d087
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x49d087
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004dc1ff
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a01a0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f11e0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a0347
mov ecx, dword [0x896804]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4a029c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0049eec0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004dc338
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004dc1ff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x8952a0
call fcn.004dc26d
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0049f280
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004dc338
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004dc1ff
lea ecx, [esp + 0xc]
call fcn.004dc713
mov ecx, dword [esp + 0xc]
push 0x895cdc
push ecx
call fcn.004b83f4
add esp, 8
test eax, eax
je 0x4a02c4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4a01fd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004dc1ff
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004dc1ff
jmp 0x4a034b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0049ff40
test eax, eax
push 0
je 0x4a032f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0049e5e0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4a0315
cmp eax, 0x64
jg 0x4a0303
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4a02a0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4a02a0
cmp eax, 0x64
jge 0x4a029c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4a02a0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0049e5e0
mov esi, eax
jmp 0x4a02a0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4a0355
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4aa4e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f1498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004aa8e0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x9063cc
call fcn.004ba538
mov ecx, dword [0x86bdf4]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004a7c90
mov esi, 0x86be4c
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x4aa587
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4aa57e
cmp al, 0xff
je 0x4aa57e
dec al
mov byte [ecx], al
jmp 0x4aa587
push ecx
call fcn.004dbf69
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004d71a0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x4aa5cd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4aa5c4
cmp al, 0xff
je 0x4aa5c4
dec al
mov byte [ecx], al
jmp 0x4aa5cd
push ecx
call fcn.004dbf69
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004ba5bf
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4d1800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f2bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004c674f
mov eax, dword [0x870148]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004c6681
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004d22f0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4d18a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4d189e
cmp al, 0xff
je 0x4d189e
dec al
mov byte [ecx], al
jmp 0x4d18a7
push ecx
call fcn.004dbf69
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4d18d8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4d18cf
cmp al, 0xff
je 0x4d18cf
dec al
mov byte [ecx], al
jmp 0x4d18d8
push ecx
call fcn.004dbf69
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4de659
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4de691
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004dc6a6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dc67e
jmp 0x4de69d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4dfe50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4dfe92
call fcn.004e682d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4dfe92
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4dfe89
xor eax, eax
jmp 0x4dfe9a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004dfea0
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e6d5d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e6d8b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e6da9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e6cc3
jmp 0x4e6da9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e6da9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e6cc3
test edi, edi
mov eax, edi
jne 0x4e6d93
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403f29
Capabilities:
Accept command line arguments
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
call fcn.004033ab
xor ebx, ebx
push ebx
push 0x403ed7
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [0x405d68], bl
jne 0x404087
push 0x403320
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x404087
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x403310
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push ebx
push 0x403db8
push ebx
push 0x66
push dword [ebp + 8]
mov dword [0x405d08], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403304
push dword [ebp - 4]
mov esi, eax
call edi
call eax
push 0x65
push ebx
mov dword [0x405d10], 0x58
mov dword [0x405d1c], 7
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x405008
push 0x405d28
mov dword [0x405d24], eax
mov dword [0x405d18], 1
mov dword [0x405d20], 0x8000
mov dword [0x405d14], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 2
jl 0x40401f
push 0x4032fc
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40403b
push 0x405d10
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
call fcn.00403ba9
test al, al
je 0x40403b
push ebx
call fcn.00403c42
pop ecx
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x404057
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
jne 0x404043
mov eax, dword [0x405d24]
cmp eax, ebx
je 0x404074
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0x4032ec
push dword [ebp - 4]
call edi
call eax
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
jmp 0x404089
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x4040d4
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.004040a8
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00403f29
mov esi, eax
call fcn.004040ba
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405a50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42a0cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x437368]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], 0x42ed00
call fcn.0041375e
push 4
mov dword [esp + 0x20], 0
call fcn.00414361
mov edi, eax
add esp, 4
test edi, edi
je 0x405ad0
call fcn.004139c9
mov dword [edi], eax
call fcn.004137fd
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00413e3f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405ac5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00413e60
jmp 0x405ad2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4098b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42a3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x437368]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00401600
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409904
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00409960
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00401600
cmp dword [esp + 0x24], 8
jb 0x40994a
mov eax, dword [esp + 0x10]
push eax
call fcn.00414041
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40a6e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42a8e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437368]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov eax, ebp
lea esi, [esp + 0x14]
call fcn.0040a160
xor ebx, ebx
mov esi, 0x10
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x18], esi
jb 0x40a72f
mov eax, dword [eax + 4]
jmp 0x40a732
add eax, 4
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov dword [esp + 0x48], eax
call fcn.0041415f
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], esi
jb 0x40a75a
mov edx, dword [esp + 0x18]
push edx
call fcn.00414041
add esp, 4
lea ecx, [edi + 0xc]
mov dword [edi], 0x42f660
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
mov eax, ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov word [ecx + 4], bx
call fcn.00401600
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8

Function at 0x40c240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x437368]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
call fcn.0040c7b0
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], 8
jb 0x40c285
mov eax, dword [eax + 4]
jmp 0x40c288
add eax, 4
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
mov edi, eax
call fcn.0040c110
cmp dword [esp + 0x24], 8
mov esi, eax
jb 0x40c2af
mov eax, dword [esp + 0x10]
push eax
call fcn.00414041
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0xc
Function at 0x40f270
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x154
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x168]
push edi
lea eax, [esp + 0x64]
lea ecx, [esp + 0x14]
call fcn.0040fe60
mov esi, eax
test esi, esi
jne 0x40f40b
push 0x2000
call fcn.00415c3b
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40f2ba
lea eax, [esi - 0x68]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret
mov al, byte [esp + 0x60]
test al, al
lea edx, [esp + 0x60]
mov ecx, edx
je 0x40f400
lea esp, [esp]
cmp al, 0x2f
je 0x40f2d8
cmp al, 0x5c
jne 0x40f2db
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x40f2d0
cmp byte [edx], al
je 0x40f400
mov eax, dword [esp + 0x16c]
cmp dword [eax], 0
lea ebx, [esp + 0x60]
je 0x40f2ff
mov ebx, edx
mov eax, dword [esp + 0x174]
push edi
call fcn.00410330
mov ecx, dword [esp + 0x170]
cmp dword [ecx], 0
mov esi, eax
jne 0x40f34c
test esi, esi
jne 0x40f3f9
push 0x4300e0
push ebx
call fcn.00415ee8
add esp, 8
test eax, eax
je 0x40f354
push eax
call fcn.00415b70
mov edx, dword [esp + 0x174]
add esp, 4
mov dword [edx], 1
jmp 0x40f354
test esi, esi
jne 0x40f3f9
push 0x4300e4
push ebx
call fcn.00415ee8
mov edi, eax
add esp, 8
test edi, edi
je 0x40f3e2
jmp 0x40f370
mov eax, dword [esp + 0x168]
push ebp
push eax
call fcn.00410340
mov esi, eax
test esi, esi
jle 0x40f399
push edi
push 1
push esi
push ebp
call fcn.00415a7c
add esp, 0x10
cmp eax, 1
je 0x40f370
or esi, 0xffffffff
push edi
call fcn.00415b70
add esp, 4
test esi, esi
jne 0x40f3f2
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub esp, 0x18
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x14], edx
mov eax, ebx
call fcn.0040f1f0
add esp, 0x18
mov ebx, dword [esp + 0x168]
call fcn.00410580
mov esi, eax
jmp 0x40f400
mov edi, dword [esp + 0x168]
mov ebx, edi
call fcn.00410580
push ebp
call fcn.00414527
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret
Function at 0x410130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x41014a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0x18
ret 4
cmp dword [ebx + 0x38], edi
je 0x41013d
cmp dword [ebx + 0x9c], edi
je 0x41015c
call fcn.00410580
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, ebx
call fcn.0040ff30
add esp, 0xc
test eax, eax
je 0x410188
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0x18
ret 4
push ebp
push 0x90
call fcn.00415c3b
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x4101d0
push 0x4000
call fcn.00415c3b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
cmp eax, edi
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x8c], edi
jne 0x4101df
push ebp
call fcn.00414527
add esp, 4
pop ebp
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0x18
ret 4
mov dword [ebp + 0x40], edi
mov eax, dword [ebx + 0x5c]
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], eax
mov ecx, dword [ebx + 0x54]
mov dword [ebp + 0x84], ecx
mov edx, dword [ebx + 0x20]
mov dword [ebp + 0x80], edx
lea edi, [ebp + 0x60]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x2c]
xor edi, edi
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x18], edi
cmp dword [ebx + 0x54], 8
jne 0x410242
lea esi, [ebp + 4]
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], edi
mov dword [esi], edi
mov dword [ebp + 8], edi
call fcn.00410d20
mov esi, eax
cmp esi, edi
jne 0x41031a
mov dword [ebp + 0x40], 1
mov ecx, dword [ebx + 0x60]
mov dword [ebp + 0x58], ecx
mov edx, dword [ebx + 0x64]
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x5c], edx
mov eax, dword [ebx + 0x98]
lea edx, [eax + ecx + 0x1e]
mov dword [ebp + 0x3c], edx
mov edx, dword [esp + 0x2c]
cmp edx, edi
mov dword [ebp + 8], edi
mov dword [ebx + 0x9c], ebp
je 0x41030e
call fcn.00410880
lea esi, [ebx + 0xa4]
mov ecx, esi
mov dword [ebx + 0xb0], eax
call fcn.0040f6b0
mov eax, dword [ebx + 0x9c]
mov ecx, dword [eax + 0x88]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
push edi
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x4101d0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
push 0xc
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, 0xc
jb 0x4101d0
xor ebp, ebp
mov eax, esi
call fcn.0040f650
xor byte [esp + ebp + 0x1c], al
movsx eax, byte [esp + ebp + 0x1c]
mov edi, dword [ebx + 0xb0]
call fcn.0040f670
add ebp, 1
cmp ebp, 0xc
jl 0x4102d7
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret 4
push ebp
call fcn.00414527
add esp, 4
pop ebp
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x18
ret 4