joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473ff2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00462102
mov dword [ebp - 0x14], eax
cmp dword [0x4d7a64], edi
jne 0x4740e3
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x474070
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4741c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4741c3
push 0x4bae70
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4741c3
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4d7a64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4d7a68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4d7a6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d7a74], eax
test eax, eax
je 0x4740e0
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d7a70], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x474108
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4740fb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x47411d
push 4
pop eax
jmp 0x4741c5
cmp dword [ebp - 0x14], edi
je 0x47411d
push dword [0x4d7a64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x474102
mov eax, dword [0x4d7a70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x47417b
cmp dword [0x4d7a74], esi
je 0x47417b
push eax
call ebx
push dword [0x4d7a74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47417b
test eax, eax
je 0x47417b
call ecx
test eax, eax
je 0x474170
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x474170
test byte [ebp - 8], 1
jne 0x47417b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4741ab
mov eax, dword [0x4d7a68]
cmp eax, esi
je 0x4741a8
push eax
call ebx
test eax, eax
je 0x4741a8
call eax
mov edi, eax
test edi, edi
je 0x4741a8
mov eax, dword [0x4d7a6c]
cmp eax, esi
je 0x4741a8
push eax
call ebx
test eax, eax
je 0x4741a8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4d7a64]
call ebx
test eax, eax
je 0x4741c3
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4741c5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004591d7
leave
ret
Function at 0x484ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a91d1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d4e88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0x4ac964
mov dword [edi + 0x30], 0x4ac96c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x34], eax
mov dword [edi + 0x20], 7
mov dword [edi + 0x1c], 0
xor eax, eax
mov word [edi + 0xc], ax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 4]
push dword [eax + edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [edi + 0x38]
mov dword [ebp - 4], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.0048a000
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 1
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.00489fa0
mov dword [edi + 0x40], eax
lea ecx, [edi + 0x4c]
mov byte [ebp - 4], 2
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
call fcn.00489fd0
mov dword [edi + 0x4c], eax
mov dword [edi + 0x58], 0
push str.uxtheme.dll
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x48], 1
mov byte [edi + 0x54], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [edi + 0x58]
mov esi, eax
cmp edx, esi
je 0x484ff6
test edx, edx
je 0x484ff3
mov ecx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ecx, ecx
je 0x484ff3
push edx
call ecx
mov dword [edi + 0x58], 0
mov dword [edi + 0x58], esi
mov eax, dword [edi + 0x58]
test eax, eax
je 0x48501f
push str.SetWindowTheme
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x5c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x5c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x487a10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x9e
push eax
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xa2]
push eax
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb8], ebx
call fcn.00459250
add esp, 0xc
lea eax, [ebp - 0xb4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0xb4]
push eax
push dword [ebx]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
add dword [ebp - 0xb4], 0xa
sub dword [ebp - 0xac], 0xa
push 0xa0
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0xa4], 0
je 0x487c0a
push edi
push 0x4c11c8
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xfffffffffffffff0
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
call esi
push 0xffffffffffffffec
push dword [ebp - 0xbc]
mov edi, eax
call esi
push 0
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xac]
push 0xffffffffffffffff
push dword [ebx]
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0xb4]
sub eax, ecx
push eax
push edx
shr edi, 0x10
push ecx
and edi, 0xff7faffc
or edi, 0x50000000
push edi
lea eax, [ebp - 0xa4]
push eax
push str.STATIC
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x487c09
mov eax, dword [ebp - 0xb8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push dword [eax]
call esi
push 1
push eax
push 0x30
push ebx
mov dword [ebp - 0xc8], eax
call esi
push 0x489e10
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 0xb8]
mov esi, dword [sym.imp.USER32.dll_SetPropW]
push str.PROP_STAT_PSKIN
push ebx
mov edi, eax
call esi
push edi
push str.PROP_STAT_OLDPROC
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ecx
test esi, esi
je 0x487bd9
push dword [ebp - 0xc8]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc4]
push 2
push ecx
push eax
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
push dword [ebp - 0xbc]
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [eax + 0x14c]
push ebx
call fcn.00487660
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004591d7
mov esp, ebp
pop ebp
ret
Function at 0x493830
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9dbe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d4e88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x80], 0
push 0x4c
push 0
push ebx
mov dword [ebp - 4], 0
call fcn.00459250
push 0x30
lea esi, [ebx + 0x4c]
push 0
push esi
call fcn.00459250
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebx + 0x54], 1
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x64], 0x64
mov dword [ebx + 0x68], 0x64
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x34], 0x4000
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x48], eax
call fcn.00498740
mov dword [ebx + 0x58], eax
add esp, 0x1c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x494f60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x494f6c
pop ebp
ret
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00493e70

Function at 0x496530
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d4e88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
or esi, 0xffffffff
mov dword [ebp - 4], 0
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x4965e9
push edi
push edi
push edi
push 2
push edi
mov esi, ebx
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x4965e9
push 0
push 0
push 0
push 4
mov edi, eax
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 8], eax
test eax, eax
je 0x4965e9
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
push ebx
call fcn.004962d0
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp + 0xb], 1
test eax, eax
je 0x4965ed
push ebx
call eax
jmp 0x4965ed
mov byte [ebp + 0xb], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4965fe
test ebx, ebx
je 0x4965fe
push edi
call ebx
cmp esi, 0xffffffff
je 0x49660a
test ebx, ebx
je 0x49660a
push esi
call ebx
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x498170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x30], eax
movzx eax, cx
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4981b1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4981aa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.004969d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x4981f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x498203
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.004986f0
movzx ebx, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x4bba98
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x498252
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x49823a
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.00498640
add esp, 8
mov dword [edi], eax
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov ebx, eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4982df
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4982df
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4982d8
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
call fcn.00459810
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4982d1
push eax
push dword [ebp + 0x10]
call fcn.00498690
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x49a840
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x7863513
call fcn.0049a9da
add esp, 0x10
mov dword [ebp - 8], eax
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x49a99c
push edi
mov edi, dword [ebp + 0x18]
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0049a9ab
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49a994
push esi
push esi
push esi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x49a988
mov ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ecx
cmp esi, esi
jl 0x49a965
jg 0x49a903
cmp ecx, esi
jbe 0x49a965
mov eax, dword [ebp + 0x10]
cdq
mov ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
mov edi, esi
mov eax, esi
jmp 0x49a918
mov ecx, dword [ebp - 0xc]
push edx
push ecx
push eax
push edi
call fcn.0049acb0
mov ecx, dword [ebp - 8]
movzx eax, byte [eax + ecx]
push eax
movzx eax, byte [edi + ebx]
push eax
cmp dword [ebp + 0x14], esi
je 0x49a93a
call fcn.0049a823
jmp 0x49a93f
call fcn.0049a70e
mov edx, dword [ebp - 0x14]
mov byte [edi + ebx], al
mov eax, dword [ebp - 0x10]
add edi, 1
adc eax, esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp eax, esi
jl 0x49a918
mov ecx, dword [ebp - 0x18]
jg 0x49a962
cmp edi, ecx
jb 0x49a915
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x49a97e
mov eax, dword [edi + 4]
test eax, eax
je 0x49a97e
push dword [edi + 8]
push esi
push ecx
push ebx
call eax
add esp, 0x10
mov dword [edi + 0xc], eax
xor esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 8]
call fcn.0045973a
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x49a9da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call fcn.0045885f
mov esi, eax
xor eax, eax
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x49aa19
push ebx
mov ebx, dword [ebp + 8]
sub ebx, esi
lea ecx, [eax + esi]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [ebx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jl 0x49a9fa
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x406c30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41bf90
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
push edi
xor eax, eax
mov edx, dword [esi + 0x11c]
cmp eax, 0x150
mov dword [eax + edx + 0x10], ebx
jge 0x406c6e
mov edx, dword [esi + 0x124]
mov dword [edx + eax + 0x10], ebx
cmp eax, 0x118
jge 0x406c7f
mov edx, dword [esi + 0x128]
mov dword [edx + ecx + 0x10], ebx
add eax, 0x38
add ecx, 0x28
cmp eax, 0x578
jl 0x406c53
mov eax, dword [esi + 0x154]
mov ecx, dword [esi + 0x19c]
mov dword [ecx + eax*4], 1
mov eax, dword [esi + 0x1c0]
cmp eax, ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x188], ebx
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x180], 0xffffff9c
je 0x406ced
mov dword [esi + 0x1a0], 1
mov edx, dword [0x424944]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x154]
lea ecx, [esp + 0x10]
inc eax
mov dword [esp + 0x40], ebx
push eax
push 0x424458
push ecx
call fcn.00410997
mov ecx, dword [esi + 0x154]
add esp, 0xc
inc ecx
cmp ecx, 0x13
mov dword [esi + 0x154], ecx
jle 0x406d67
xor eax, eax
dec ecx
cmp ecx, ebx
mov edi, 1
jle 0x406d49
mov edx, dword [esi + 0x19c]
cmp dword [edx], ebx
je 0x406d47
inc eax
add edx, 4
cmp eax, ecx
jl 0x406d39
jmp 0x406d49
xor edi, edi
cmp dword [esi + 0x1c4], ebx
je 0x406d61
cmp edi, ebx
je 0x406d61
push ebx
push ebx
push 0x4243fc
call fcn.004175e3
mov dword [esi + 0x154], ebx
mov edx, dword [0x424944]
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x154]
lea ecx, [esp + 0xc]
inc eax
mov byte [esp + 0x40], 1
push eax
push 0x4243e8
push ecx
call fcn.00410997
add esp, 0xc
lea edx, [esp + 0xc]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00414cc6
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x50], 2
call fcn.00414cc6
push 1
push 0x46
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.00402cd0
mov edi, eax
mov ecx, dword [edi + 4]
mov byte [esp + 0x40], 3
mov dword [esi + 0x134], ecx
mov edx, dword [edi + 8]
mov dword [esi + 0x138], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0x13c], eax
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x14]
mov dword [esi + 0x140], ecx
push edx
lea ecx, [esi + 0x144]
call fcn.00414ffa
add edi, 0x18
lea ecx, [esi + 0x148]
push edi
call fcn.00414ffa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.00401500
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], bl
call fcn.00414f51
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.00414f51
mov ecx, dword [esp + 0x38]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 8
Function at 0x40c6a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4251c8
cmp edx, dword [eax]
je 0x40c6c9
add eax, 8
inc ecx
cmp eax, 0x425258
jl 0x40c6ba
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4251c8]
jne 0x40c7f7
mov eax, dword [0x427b70]
cmp eax, 1
je 0x40c7d1
test eax, eax
jne 0x40c6fa
cmp dword [0x424dc4], 1
je 0x40c7d1
cmp edx, 0xfc
je 0x40c7f7
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c731
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040da30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040db20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c774
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040db20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f904
push edi
call fcn.0040f020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040da30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040da40
lea eax, [ebp - 0xa0]
push 0x41f8e4
push eax
call fcn.0040da40
push dword [esi + 0x4251cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040da40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ef89
add esp, 0x2c
pop edi
jmp 0x40c7f7
lea eax, [ebp + 8]
lea esi, [esi + 0x4251cc]
push 0
push eax
push dword [esi]
call fcn.0040db20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x413ef5
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 0x413f37
call fcn.0041a9d3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x413f37
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x413f2e
xor eax, eax
jmp 0x413f3f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00413f45
pop edi
pop esi
pop ebx
ret 4

Function at 0x41b100
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 0x41b12e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41b14c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041b066
jmp 0x41b14c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41b14c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041b066
test edi, edi
mov eax, edi
jne 0x41b136
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8