joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x460f83
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0044e08c
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4039a1
mov eax, dword [esi + 0x1c]
push eax
call fcn.00417700
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x403c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x460383
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.0041bfe9
xor edi, edi
mov dword [esp + 0x2c], edi
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [ebp + 4], edi
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x2c], 1
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
cmp dword [ebx + 0xc], edi
sete al
cmp eax, edi
mov dword [esi + 0x30], eax
je 0x403d80
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041c43e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
lea edi, [esi + 0x20]
je 0x403d1d
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x403d38
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [edi], ecx
mov ecx, dword [esp + 0x44]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0041c705
test ebp, ebp
je 0x403d5e
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0041c78a
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
mov dword [esi + 0x18], eax
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0041c0fd
jmp 0x403d92
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0x14
Function at 0x406600
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push 8
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 5
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406706
push 0x400
call fcn.00417705
mov esi, eax
add esp, 4
test esi, esi
je 0x406717
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x400
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40670a
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40670a
push edi
xor ebx, ebx
xor edi, edi
cmp dword [esi], ebx
jbe 0x4066f8
push ebp
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4066f2
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x4066c6
mov edx, dword [esp + 0x10]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x40670a
mov ebx, 1
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x40670a
mov esi, dword [esp + 0x10]
test esi, esi
je 0x406717
push esi
call fcn.00417700
add esp, 4
mov ecx, dword [esp + 0x1c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004327b6
add esp, 0x18
ret
Function at 0x406730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push edi
call fcn.0041bd68
mov edi, dword [eax + 0xc]
push 0x46ba18
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40676a
mov ecx, dword [esp + 0x10]
push eax
push eax
push 0x46bdec
call fcn.0041e8b1
pop edi
xor eax, eax
pop ebx
pop ecx
ret 4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40678a
pop esi
pop edi
pop ebx
pop ecx
ret 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.0043ab10
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4067eb
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x4067ed
xor esi, esi
push edi
mov dword [0x481be0], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x406820
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
sub esp, 8
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
call fcn.0041bd68
mov eax, dword [eax + 0xc]
push 0x46bd38
push 0x85
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x406876
push eax
push eax
push 0x46bdec
mov ecx, ebx
call fcn.0041e8b1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004327b6
add esp, 8
ret
push ebp
call fcn.0041bd68
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
call fcn.0041bd68
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push esi
push 0
push 4
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov ebx, eax
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov eax, dword [esp + 0x10]
push esi
push eax
push ebp
call fcn.0043ab10
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004327b6
add esp, 8
ret
Function at 0x406970
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x461bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x228], 3
mov ebx, dword [esp + 0x238]
mov ecx, dword [esp + 0x23c]
mov ebp, dword [esp + 0x234]
mov esi, dword [esp + 0x230]
push ebx
push 0x104
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00408820
lea eax, [esi - 0x10]
mov byte [esp + 0x228], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x228], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x228], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004327b6
add esp, 0x21c
ret 0x10

Function at 0x408020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408070
lea ebx, [ebx]
cmp esi, eax
jae 0x408074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408060
cmp esi, eax
jb 0x40807a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40cf70
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x461a93
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x24]
push ebx
mov dword [esp + 0x25c], ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x22c
call fcn.00436c10
add esp, 0xc
call fcn.004227d9
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40cfed
push 0x80004005
call fcn.00408910
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push ebx
push 2
mov byte [esp + 0x25c], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d06b
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d064
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40d196
push 0x46e174
push str..exe
lea ecx, [esp + 0x264]
push ecx
call fcn.0040f6d0
push 0x46e174
push str..EXE
lea edx, [esp + 0x264]
push edx
call fcn.0040f6d0
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov ebp, dword [esp + 0x25c]
je 0x40d141
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40d141
lea eax, [esp + 0x40]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d0d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
call fcn.00408310
push 0x46e174
push str..exe
lea eax, [esp + 0x1c]
push eax
call fcn.0040f6d0
push 0x46e174
push str..EXE
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040f6d0
mov esi, dword [esp + 0x14]
push ebp
push esi
call fcn.0043553e
add esp, 8
test eax, eax
je 0x40d139
lea edx, [esp + 0x1c]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d0c2
jmp 0x40d141
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d16b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d192
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.004327b6
add esp, 0x244
ret 4
Function at 0x40e610
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x4626b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esi + 0xe0c]
xor ebx, ebx
push ebx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x1c
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str._____75__33_D2_8B__6A
xor edi, edi
mov byte [ecx + 4], bl
call fcn.00401a00
mov ecx, edi
mov edx, esi
call fcn.0040dc20
cmp eax, dword [esi + 0xe0c]
mov dword [esp + 0x10], eax
jae 0x40e694
mov dword [0x48507c], 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esi + 0xd8]
push ecx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x40
push 0x1000
push 0x512
push ebx
push eax
mov dword [esi + 0xdc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xe
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.8B_44_24_0C_56
mov dword [esp + 0x34], eax
mov edi, 0x48507c
mov byte [ecx + 4], bl
call fcn.00401a00
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
mov dword [esp + 0x60], ebx
push 0x17
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.90_EB_FD_8B_44_24_0C_56
mov byte [ecx + 4], bl
call fcn.00401a00
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, edi
mov edx, esi
mov dword [esp + 0x68], 0xffffffff
call fcn.0040c8d0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x4134a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46034b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c748]
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], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044e9db
push 4
mov dword [esp + 0x20], 0
call fcn.004176d5
mov edi, eax
add esp, 4
test edi, edi
je 0x413520
call fcn.0044e18b
mov dword [edi], eax
call fcn.0044e061
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0044c7c6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x413515
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0044c7e7
jmp 0x413522
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 0x417440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.0041bd68
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x14]
push 0x46ba20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41747b
mov ecx, dword [esp + 0x10]
push eax
push eax
push 0x46bdec
call fcn.0041e8b1
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41749b
pop ebx
pop edi
pop esi
pop ecx
ret 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0043ab10
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4174fc
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
jmp 0x4174fe
xor esi, esi
mov ecx, dword [esp + 0x1c]
push edi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x4188ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4188f1
call fcn.0041bd68
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4188f1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x418934
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41891d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41891d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x418931
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42253a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42257d
call fcn.0041bd68
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42257d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x422598
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004220f4
test ebx, ebx
mov esi, eax
je 0x422596
test edi, edi
je 0x422596
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x423641
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 0x42366f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42368d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004235ab
jmp 0x42368d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42368d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004235ab
test edi, edi
mov eax, edi
jne 0x423677
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48092c]
test ecx, ecx
je 0x423750
jmp 0x423640
ret 8

Function at 0x4327b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47c748]
jne 0x4327c0
repz ret
jmp fcn.0043a90f
Function at 0x4469f6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043a2f6
xor ebx, ebx
cmp dword [0x48179c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x446acb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x446a36
xor eax, eax
jmp 0x446b8f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x446a2f
push eax
call fcn.0043a293
mov dword [esp], 0x469850
push edi
mov dword [0x48179c], eax
call esi
push eax
call fcn.0043a293
mov dword [esp], 0x46983c
push edi
mov dword [0x4817a0], eax
call esi
push eax
call fcn.0043a293
mov dword [0x4817a4], eax
lea eax, [ebp - 8]
push eax
call fcn.004368d3
test eax, eax
pop ecx
pop ecx
je 0x446a99
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043409b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x446acb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043a293
cmp eax, ebx
pop ecx
mov dword [0x4817ac], eax
je 0x446acb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043a293
pop ecx
mov dword [0x4817a8], eax
mov eax, dword [0x4817a8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x446b44
cmp dword [0x4817ac], esi
je 0x446b44
push eax
call fcn.0043a2ff
pop ecx
call eax
cmp eax, ebx
je 0x446b11
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4817ac]
call fcn.0043a2ff
pop ecx
call eax
test eax, eax
je 0x446b11
test byte [ebp - 0x18], 1
jne 0x446b44
lea eax, [ebp - 0xc]
push eax
call fcn.0043690a
test eax, eax
pop ecx
je 0x446b2c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043409b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x446b3b
or dword [ebp + 0x10], 0x200000
jmp 0x446b75
or dword [ebp + 0x10], 0x40000
jmp 0x446b75
mov eax, dword [0x4817a0]
cmp eax, esi
je 0x446b75
push eax
call fcn.0043a2ff
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x446b75
mov eax, dword [0x4817a4]
cmp eax, esi
je 0x446b75
push dword [ebp - 4]
push eax
call fcn.0043a2ff
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x48179c]
call fcn.0043a2ff
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret