joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401590
Capabilities:
Resolve ntoskrnl gadgets
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x4015c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t_t____Failed_To_Load_NtDll.dll:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push str.NtQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41fa40], eax
test eax, eax
jne 0x4015f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t_t____Failed_Resolving_NtQuerySystemInformation:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push ebx
push esi
push edi
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0xb
call eax
mov edx, dword [ebp - 4]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40163c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t_t____Memory_Allocation_Failed_For_SYSTEM_MODULE_INFORMATION:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push ebx
push 0xb
call dword [0x41fa40]
test eax, eax
je 0x40166f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t_t____Failed_To_Get_SYSTEM_MODULE_INFORMATION:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov edi, dword [ebx + 0xc]
lea edx, [ebx + 0x20]
push 0x5c
push edx
call dword [sym.imp.MSVCR100.dll_strrchr]
lea esi, [eax + 1]
push esi
push str._t_t_t___Loaded_Kernel:__s_n
push 1
call fcn.00401380
push edi
push str._t_t_t___Kernel_Base_Address:_0x_p_n
push 1
call fcn.00401380
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4016ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t_t____Failed_To_Load_Kernel:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push str.HalDispatchTable
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x4016fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t_t____Failed_Resolving_HalDispatchTable:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
sub edi, dword [ebp - 8]
add esi, edi
push esi
push str._t_t_t___HalDispatchTable:_0x_p_n
push 1
call fcn.00401380
add esp, 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.ntdll.dll
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x1000
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push str.NtAllocateVirtualMemory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x424880], eax
test eax, eax
jne 0x401785
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_Resolving_NtAllocateVirtualMemory:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push 0x40
push 0x103000
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 4]
push edx
push 0xffffffffffffffff
call eax
test eax, eax
je 0x4017b6
push eax
push str._t_t_t_t____Virtual_Memory_Allocation_Failed:_0x_x_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 4]
push eax
push str._t_t_t___Memory_Allocated:_0x_p_n
push 1
call fcn.00401380
mov ecx, dword [ebp - 8]
push ecx
push str._t_t_t___Allocation_Size:_0x_X_n
push 1
call fcn.00401380
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4017f0
Capabilities:
Terminate process

Disassembly:
push eax
push eax
push str._nUsage:__s__option___c__process_to_launch__n_n________s__a_cmd.exe_n_n________option__n____________p_:_Pool_Overflow_n____________s_:_Stack_Overflow_n____________u_:_Use_After_Free_n____________t_:_Type_Confusion_n____________i_:_Integer_Overflow_n____________g_:_Stack_Overflow_GS_n____________n_:_Null_Pointer_Dereference_n____________a_:_Arbitrary_Memory_Overwrite_n_n
push 4
call fcn.00401380
add esp, 0x10
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x401810
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push str._t___Creating_The_Exploit_Thread_n
push 7
call fcn.00401380
mov eax, dword [ebp + 8]
add esp, 8
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40185b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_To_Create_Exploit_Thread:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push str._t_t___Exploit_Thread_Handle:_0x_X_n
push 1
call fcn.00401380
add esp, 0xc
push 0x50000
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401894
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
push str._t_t___Terminated_Exploit_Thread:_0x_X_n
push 1
call fcn.00401380
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x4018a0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
push str.csrss.exe
push str._t___Trying_To_Get_Process_ID_Of:__s_n
push 7
xor edi, edi
call fcn.00401380
add esp, 0xc
call fcn.00401470
mov esi, eax
test esi, esi
jne 0x4018e0
push str.csrss.exe
push str._t_t____Failed_To_Get_Process_ID_Of:__s_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push str.csrss.exe
push str._t_t___Process_ID_Of__s:__d_n
push 1
call fcn.00401380
push esi
push str.csrss.exe
push str._t___Trying_To_Open__s_With_PROCESS_ALL_ACCESS_n
push 7
call fcn.00401380
add esp, 0x20
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x40193a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.csrss.exe
push str._t_t____Failed_To_Open__s_Process:_0x_X_n
push 4
call fcn.00401380
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ecx
ret
push eax
push str.csrss.exe
push str._t_t___Process_Handle_Of__s:_0x_X_n
push 1
call fcn.00401380
mov edi, 1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4021d0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0x9c40
push 0
push 0x415e00
call sub.MSVCR100.dll_memset
push 0x4e20
push 0
push 0x41fa60
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0x18
xor esi, esi
nop
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x40c1c0], eax
test eax, eax
je 0x402243
add esi, 4
cmp esi, 0x9c40
jb 0x402200
xor esi, esi
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x4073a0], eax
test eax, eax
je 0x402243
add esi, 4
cmp esi, 0x4e20
jb 0x402221
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_To_Allocate_Event_Objects:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x402270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x40c1c0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4022e0
add esi, 4
cmp esi, 0x9c40
jb 0x402280
mov ebx, 0x4073c0
mov dword [ebp - 4], 0x20
xor esi, esi
mov edi, ebx
lea esp, [esp]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4022e0
inc esi
add edi, 4
cmp esi, 8
jb 0x4022b0
mov eax, dword [ebp - 4]
add eax, 0x40
add ebx, 0x40
mov dword [ebp - 4], eax
cmp eax, 0x4e20
jb 0x4022a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_To_Close_Event_Objects_Handle:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x402ee0
Capabilities:
Terminate process

Disassembly:
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x402f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_To_Load_NtDll.dll:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push ebx
push esi
push edi
push str.NtAllocateReserveObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [0x407390], ebx
test ebx, ebx
jne 0x402f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_Resolving_NtAllocateReserveObject:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push 0x9c40
push 0
push 0x415e00
call sub.MSVCR100.dll_memset
push 0x4e20
push 0
push 0x41fa60
call sub.MSVCR100.dll_memset
add esp, 0x18
mov esi, 0x415e00
xor edi, edi
jmp 0x402f7a
mov ebx, dword [0x407390]
push 1
push 0
push esi
call ebx
test eax, eax
jne 0x402fc1
add edi, 4
add esi, 4
cmp edi, 0x9c40
jb 0x402f74
mov esi, 0x41fa60
xor edi, edi
lea ebx, [ebx]
push 1
push 0
push esi
call dword [0x407390]
test eax, eax
jne 0x402fc1
add edi, 4
add esi, 4
cmp edi, 0x4e20
jb 0x402fa0
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_To_Allocate_Reserve_Objects:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x4033a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4033b0
repz ret
jmp fcn.0040364d
Function at 0x401220
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x554
push ebp
push esi
push edi
mov ebp, dword [esp + 0x564]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, ebp
or ecx, 0xffffffff
mov dword [esp + 0x18], eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x60]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x64]
push ecx
call fcn.004022e0
add esp, 8
mov byte [eax], 0
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4012f5
mov eax, dword [esp + 0x568]
test eax, eax
je 0x401323
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push edx
call esi
test eax, eax
je 0x401323
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov eax, dword [esp + 0xc]
push 0
push eax
call esi
test eax, eax
jne 0x4012d2
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x554
ret
push ebp
lea ecx, [esp + 0x164]
push 0x408048
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x160]
push 0
push 0x408040
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x554
ret
Function at 0x4013b0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x128
push ebx
mov ebx, dword [esp + 0x134]
test ebx, ebx
push esi
je 0x4014ee
mov eax, dword [0x40a7c0]
test eax, eax
jne 0x4013e0
push 0x4080bc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x40a7c0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4080a0
push eax
call esi
mov dword [0x40a7c4], eax
mov eax, dword [0x40a7c0]
push 0x408090
push eax
call esi
mov ecx, dword [0x40a7c0]
push 0x408080
push ecx
mov dword [0x40a7c8], eax
call esi
mov edx, dword [0x40a7c0]
push 0x408070
push edx
mov dword [0x40a7cc], eax
call esi
mov dword [0x40a7d0], eax
mov eax, dword [0x40a7c0]
push 0x408060
push eax
call esi
mov ecx, dword [0x40a7c4]
mov dword [0x40a7d4], eax
test ecx, ecx
je 0x4014ee
mov edx, dword [0x40a7c8]
test edx, edx
je 0x4014ee
mov edx, dword [0x40a7cc]
test edx, edx
je 0x4014ee
mov edx, dword [0x40a7d0]
test edx, edx
je 0x4014ee
test eax, eax
je 0x4014ee
push 0
push 2
call ecx
mov esi, eax
test esi, esi
je 0x4014ee
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x128
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [0x40a7c8]
test eax, eax
je 0x4014d8
mov edi, dword [esp + 0x138]
lea edx, [esp + 0x30]
push edx
call ebx
add esp, 4
test eax, eax
je 0x4014c8
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.004017a0
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [0x40a7cc]
test eax, eax
jne 0x4014ae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x128
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret

Function at 0x401d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x20d]
mov byte [esp + 0x20c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x30d]
mov byte [esp + 0x30c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
mov byte [esp + 0xc], dl
mov word [esp + 0xd], dx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30c]
lea edx, [esp + 0x10c]
push ecx
lea eax, [esp + 0x210]
push edx
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0040239c
add esp, 0x14
lea eax, [esp + 4]
lea ecx, [esp + 8]
push 0x40818c
push eax
push 0x408184
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x18]
push edx
call fcn.004010e0
add esp, 0x14
test eax, eax
pop edi
jne 0x401e12
push 0x40818c
call fcn.004010e0
add esp, 4
test eax, eax
jne 0x401e12
add esp, 0x408
ret
mov eax, 1
add esp, 0x408
ret
Function at 0x402828
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402848
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052a5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x402869
test byte [esp + 8], 2
je 0x402869
mov dword [0x40a7ec], 0xd
mov dword [0x40a7f0], 5
jmp 0x402844
xor eax, eax
ret

Function at 0x102f7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.102f71a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x102f707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102f706a
add dl, dl
jne 0x102f7089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102f70dc
xor eax, eax
add dl, dl
jne 0x102f7096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102f717d
add dl, dl
jne 0x102f70a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102f70b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102f70bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102f70c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102f70d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102f7075
mov eax, 1
add dl, dl
jne 0x102f70ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102f70f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102f70e1
sub eax, ebx
mov ebx, 1
jne 0x102f7128
mov ecx, 1
add dl, dl
jne 0x102f710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102f7119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102f7105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102f7075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x102f713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102f714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102f7136
cmp eax, 0x7d00
jae 0x102f716d
cmp eax, 0x500
jb 0x102f7168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102f7075
cmp eax, 0x7f
ja 0x102f7170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102f7075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x102f719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x102f7075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010d7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401108
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401104
cmp esi, eax
jae 0x401108
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4010f4
cmp esi, eax
jb 0x40110e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4013c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x578a63
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
call edi
mov dword [esp + 0x14], 0
lea eax, [esi + 0x18]
push eax
call edi
mov byte [esp + 0x14], 1
push 0
push 1
push 1
push 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x34], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x404c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x581bba
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x38]
push eax
call fcn.0040d040
mov dword [esp + 0x2c], esi
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
add ebp, 0x78
mov eax, ebp
mov dword [esp + 0x14], 1
call fcn.00410150
mov edi, eax
mov dword [esp + 0x1c], edi
cmp ebp, esi
jne 0x404c78
call fcn.004fe843
mov esi, dword [ebp]
mov dword [esp + 0x18], esi
nop
mov ebx, dword [esp + 0x3c]
mov eax, ebp
call fcn.0040eb40
mov ebx, eax
test ebp, ebp
jne 0x404c96
call fcn.004fe843
mov eax, dword [ebp]
test esi, esi
je 0x404ca1
cmp esi, eax
je 0x404ca6
call fcn.004fe843
cmp edi, ebx
je 0x404cfc
test esi, esi
jne 0x404cf8
call fcn.004fe843
cmp edi, dword [esi + 0x18]
jne 0x404cbd
call fcn.004fe843
mov ecx, dword [esp + 0x38]
mov esi, dword [ecx + 0x14]
mov edx, dword [esi + 4]
lea eax, [edi + 0x28]
push eax
push edx
push esi
call fcn.00410440
mov ecx, dword [esp + 0x38]
mov edi, eax
call fcn.004104f0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [esp + 0x18]
mov dword [eax], edi
call fcn.0041e8b0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x404c80
mov esi, dword [esi]
jmp 0x404cb3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x406960
Capabilities:
Check for peb beingdebugged flag
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x57d009
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x10], ebx
xor eax, eax
mov word [esp + 0x38], ax
mov eax, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
lea ecx, [eax + 2]
jmp 0x4069c0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4069c0
sub eax, ecx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x38]
call fcn.0040e430
mov dword [esp + 0x5c], 1
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
add esi, 2
mov word [edi + 4], cx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x10], 1
neg ecx
or ecx, eax
push ecx
call fcn.004fd2d4
add esp, 4
push esi
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, 7
test eax, eax
je 0x406a93
xor eax, eax
mov word [esp + 0x18], ax
push esi
mov eax, ebx
lea esi, [esp + 0x18]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 0
call fcn.0040e430
mov byte [esp + 0x5c], 2
push 0xffffffffffffffff
push 0
mov eax, esi
mov ecx, edi
call fcn.0040e380
mov byte [esp + 0x5c], 1
cmp dword [esp + 0x2c], 8
jb 0x406a80
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004fdb3f
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 0
mov word [esp + 0x18], dx
push ebx
call fcn.004fe853
add esp, 4
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x4c], 8
jb 0x406ab5
mov eax, dword [esp + 0x38]
push eax
call fcn.004fdb3f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
mov eax, edi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x50
ret
Function at 0x406eb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x57f9e9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], ebx
lea ebp, [esi + 4]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x30], esi
mov word [ebp], ax
mov dword [esp + 0x40], ebx
mov eax, ecx
mov dword [esp + 0x10], 1
lea edi, [eax + 2]
jmp 0x406f10
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406f10
sub eax, edi
sar eax, 1
je 0x406fc5
push ecx
lea edi, [esp + 0x18]
call fcn.00406960
add esp, 4
mov dword [esp + 0x40], 1
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0040e380
mov byte [esp + 0x40], bl
mov edi, 8
cmp dword [esp + 0x2c], edi
jb 0x406f60
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004fdb3f
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esi + 0x18], edi
jb 0x406f7b
mov ebp, dword [ebp]
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00406af0
add esp, 8
mov dword [esp + 0x40], 2
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0040e380
mov byte [esp + 0x40], bl
cmp dword [esp + 0x2c], edi
jb 0x406fb2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004fdb3f
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x34
ret