joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004a20
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0xa014
call fcn.1000b4a0
push ebx
push esi
mov esi, ecx
mov ebx, dword [esp + 0xa024]
mov ecx, dword [esp + 0xa020]
push edi
lea edx, [esi + 0x1ee4]
lea eax, [ecx + ecx*4]
push edx
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
mov ecx, dword [esi + 0x1f44]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4 + 0x424], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x36b4]
xor edi, edi
inc ecx
cmp ebx, edi
mov dword [esi + 0x36b4], ecx
je 0x10004a7d
inc dword [esi + 0x36b8]
mov eax, dword [esi + 0x1edc]
lea ecx, [esi + 0x1edc]
call dword [eax + 0x1c]
cmp dword [esi + 0x3a5c], edi
je 0x10004ab4
mov ecx, dword [esi + 0x36b4]
mov eax, dword [esi + 0x36b0]
cmp ecx, eax
jb 0x10004ab4
push 2
mov ecx, esi
call fcn.100021a0
mov ecx, esi
call fcn.10004ca0
mov edx, dword [esi + 0x36b8]
mov eax, dword [esi + 0x36b0]
cmp edx, eax
jne 0x10004c14
push edi
push 0x80
push 4
push edi
push 2
lea eax, [esi + 0x35ac]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x36b0]
cmp eax, edi
mov dword [esp + 0x14], edi
jbe 0x10004bc5
push ebp
mov dword [esp + 0x14], edi
jmp 0x10004b04
xor edi, edi
mov ecx, dword [esi + 0x1f44]
mov edx, dword [esp + 0x14]
push edi
push 0x80
push 4
push edi
push 1
lea eax, [edx + ecx + 0x310]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
jbe 0x10004b82
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x2c]
push 0xa000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push 0
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [esp + 0x10]
cmp edi, ebp
jb 0x10004b46
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x1f44]
mov edi, dword [esp + 0x14]
lea edx, [edi + ecx + 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x36b0]
inc eax
add edi, 0x42c
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jb 0x10004b02
xor edi, edi
pop ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x36c0], edi
mov dword [esi + 0x36c8], edi
push 1
mov ecx, esi
mov dword [esi + 0x36c4], edi
mov dword [esi + 0x36cc], edi
mov dword [esi + 0x2d94], 0x42c80000
call fcn.100021a0
push 3
mov ecx, esi
call fcn.100021a0
mov dword [esi + 0x3a24], edi
mov dword [esi + 0x3a64], 0x10
pop edi
pop esi
pop ebx
add esp, 0xa014
ret 8
Function at 0x10006b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100562ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
push 0x100675bc
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
lea ecx, [esp + 0x38]
push edx
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x30], 1
call fcn.1000b1a6
mov dword [esp + 4], 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x10008580
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10056418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
mov esi, dword [esp + 0x90]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi]
mov edi, dword [esp + 0x8c]
push eax
push 1
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
mov eax, dword [esi + 0xc]
cdq
sete bl
idiv dword [esi + 0x10]
test bl, bl
mov byte [esp + 0x90], bl
mov dword [esi + 0x14], eax
je 0x1000871c
push ebp
push eax
lea edx, [esp + 0x20]
push str.length__d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x18]
push eax
mov dword [esp + 0x1c], ecx
call fcn.1000b10a
mov ecx, dword [esi + 0x10]
mov ebp, dword [esi + 0x14]
xor ebx, ebx
xor eax, eax
cmp ecx, 1
mov edx, ebp
sete byte [esp + 0x13]
dec ebp
test edx, edx
je 0x100086c8
inc ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.MSVCRT.dll_memmove]
mov dl, byte [esp + 0x13]
test dl, dl
je 0x1000864c
xor edx, edx
cmp byte [edi], dl
jmp 0x10008651
xor edx, edx
cmp word [edi], dx
sete dl
test edx, edx
je 0x10008678
test eax, eax
je 0x10008671
cmp edi, eax
je 0x10008671
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call ebp
add esp, 0xc
mov ecx, dword [esi + 0x10]
inc ebx
lea eax, [ecx + edi]
mov edx, dword [esp + 0x14]
add edi, ecx
dec edx
mov dword [esp + 0x14], edx
jne 0x1000863e
test eax, eax
je 0x1000869f
cmp edi, eax
je 0x1000869f
mov ecx, dword [esi + 0x10]
sub edi, eax
imul ecx, ebx
push edi
push eax
sub eax, ecx
push eax
call ebp
add esp, 0xc
test ebx, ebx
je 0x100086c8
push ebx
lea edx, [esp + 0x20]
push str.__d_nulls_removed_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
sub dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
pop ebp
cmp eax, 1
jle 0x10008703
mov ecx, dword [esi + 4]
push ecx
call fcn.10008180
add esp, 4
test al, al
je 0x10008703
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x8c]
push edx
push eax
call fcn.10008190
mov ecx, dword [esp + 0x1c]
add esp, 8
push str.endian_swap
call sub.MFC42.DLL_CString::operator_1
mov al, byte [esp + 0x90]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
lea ecx, [esp + 0x8c]
push ecx
call fcn.10005c40
add esp, 4
push eax
lea ecx, [esi + 0x18]
mov dword [esp + 0x88], 0
call fcn.1000b128
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x7c]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret
Function at 0x10008da0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x10068180
jmp 0x10008db0
push 0xffffffffffffffff
push 0x100564c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
push edi
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.10004d00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000b710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10056883
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [esp + 0x14]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi], 0x1005b88c
mov byte [esi + 0x1c], al
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov cl, byte [esp + 0x1c]
mov dword [esp + 0x14], edi
mov byte [esi + 0x2c], cl
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 1
call fcn.1000f010
mov dl, byte [esp + 0x1c]
lea ecx, [esi + 0x90]
push edi
mov byte [esp + 0x18], 2
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x1c]
mov cl, byte [esp + 0x1c]
mov dl, byte [esp + 0x1c]
mov byte [esi + 0xe4], al
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
push 0x1000b6c0
mov byte [esi + 0xf4], cl
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
push 0xfffffffffffffffc
mov byte [esi + 0x104], dl
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
push eax
mov dword [esi], 0x1005b7f4
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push edi
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 4]
push edi
push 0x32
push 1
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0x8c], 0xd8e9ec
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1000d220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10056938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push edi
mov eax, dword [esi + 0xc]
xor ebp, ebp
push ecx
push eax
mov dword [esp + 0x18], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
push 0xfe000000
push eax
mov dword [esp + 0x60], ebp
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, ebp
je 0x1000d275
mov dword [esp + 0x1c], eax
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
push edx
push eax
push ebp
lea ecx, [esp + 0x24]
push ebp
push ecx
lea ecx, [esi + 0x3c]
call fcn.1000f5a0
xor ebx, ebx
mov eax, dword [esi + 0xe8]
cmp eax, ebp
je 0x1000d2c8
mov edx, dword [esi + 0xec]
sub edx, eax
sar edx, 2
cmp ebx, edx
jae 0x1000d2c8
mov edi, dword [eax + ebx*4]
cmp edi, ebp
je 0x1000d2c5
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x70]
test eax, eax
jne 0x1000d2c5
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x6c]
inc ebx
jmp 0x1000d28e
xor edi, edi
mov eax, dword [esi + 0xf8]
cmp eax, ebp
je 0x1000d2fc
mov edx, dword [esi + 0xfc]
sub edx, eax
sar edx, 2
cmp edi, edx
jae 0x1000d2fc
mov ecx, dword [eax + edi*4]
cmp ecx, ebp
je 0x1000d2f9
cmp dword [ecx + 4], ebp
je 0x1000d2f9
lea edx, [esp + 0x18]
push edx
call fcn.1001c460
inc edi
jmp 0x1000d2ca
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
call edi
push 1
mov ebx, eax
call edi
mov edx, dword [esi + 4]
mov dword [esp + 0x4c], eax
xor eax, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
push ecx
mov dword [esp + 0x3c], eax
push edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push ecx
mov dword [esp + 0x2c], eax
push eax
lea eax, [esp + 0x48]
mov ebp, edx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
call ebx
test eax, eax
je 0x1000d3a0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x40]
push ecx
push ebp
push edx
call ebx
test eax, eax
je 0x1000d3a0
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x44]
push eax
push ecx
call ebx
test eax, eax
je 0x1000d3a0
mov edx, edi
mov eax, ebp
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call ebx
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x1004e310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1005a071
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
push esi
push edi
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x18], ebp
call fcn.10010300
mov dl, byte [esp + 0x28]
lea ebx, [ebp + 0x90]
xor esi, esi
mov dword [ebp + 0x8c], 0x1005dca4
mov dword [esp + 0x1c], esi
mov byte [ebx], dl
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov al, byte [esp + 0x28]
mov dword [ebp + 0xa4], esi
mov byte [ebp + 0xa0], al
mov dword [ebp + 0xa8], esi
mov dword [ebp + 0xac], esi
mov edi, 0x1006814c
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp], 0x1005dbe8
mov dword [ebp + 0x8c], 0x1005dbbc
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x20], 2
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1004e3e5
mov eax, dword [ebx + 4]
mov ecx, edi
mov edx, ecx
mov esi, 0x1006814c
mov edi, eax
mov eax, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
add eax, ecx
xor esi, esi
mov byte [eax], 0
push 0x2c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, esi
mov byte [esp + 0x1c], 3
je 0x1004e405
mov ecx, eax
call fcn.10052e60
jmp 0x1004e407
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0xb4], eax
mov dword [ebp + 0xb8], esi
mov dword [ebp + 0xbc], esi
pop edi
mov dword [ebp + 0xb0], 1
mov dword [ebp + 0x3c], 0xb
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x403360
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 0xc]
push 0
test eax, eax
jne 0x40337d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret 0xc
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
push ecx
call eax
ret 0xc
Function at 0x404620
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40463c
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret 0xc
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
push edx
push ecx
call eax
ret 0xc
Function at 0x41cce0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040fbf0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41cdab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41cdab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41cd5e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41cd69
or bh, 8
and edi, 0x8000000
je 0x41cd84
mov eax, dword [0x4404bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41cdab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41d1ab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41d1cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41d1ea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x423459
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 0x42349b
call fcn.00428191
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42349b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x423492
xor eax, eax
jmp 0x4234a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004234a9
pop edi
pop esi
pop ebx
ret 4

Function at 0x4289aa
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 0x4289d8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4289f6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428910
jmp 0x4289f6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4289f6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00428910
test edi, edi
mov eax, edi
jne 0x4289e0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401704
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00407f42
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00407f42
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x40179a
mov dword [ebp - 0x18], esp
mov eax, 0
call fcn.00407f5a
cmp dword [ebp - 0x18], esp
je 0x401797
push 6
call fcn.00407f54
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 1
call fcn.00407f5a
cmp dword [ebp - 0x18], esp
je 0x4017c6
push 6
call fcn.00407f54
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 2
call fcn.00407f5a
cmp dword [ebp - 0x18], esp
je 0x4017f4
push 6
call fcn.00407f54
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
mov eax, 3
call fcn.00407f5a
cmp dword [ebp - 0x18], esp
je 0x401820
push 6
call fcn.00407f54
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 4
call fcn.00407f5a
cmp dword [ebp - 0x18], esp
je 0x4018af
push 6
call fcn.00407f54
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 5
call fcn.00407f5a
cmp dword [ebp - 0x18], esp
je 0x4018d4
push 6
call fcn.00407f54
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x4018dc
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00407f36
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00407f36
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8