joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120f0
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f0db
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x46e320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, 7
xor esi, esi
xor eax, eax
xor edx, edx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], esi
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], esi
mov word [ebp - 0x84], dx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], ax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov word [ebp - 0x44], dx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0xa4]
push ecx
mov dword [ebp - 4], esi
call fcn.004065a0
mov ecx, eax
call fcn.0042d6e0
cmp dword [ebp - 0x58], esi
jne 0x41219c
lea esi, [ebp - 0xa4]
call fcn.00409ae0
mov eax, 0x80004005
jmp 0x4121c9
push edi
call fcn.004065a0
mov ecx, eax
call fcn.0042d5a0
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4121bc
lea esi, [ebp - 0x6c]
call fcn.004121f0
lea esi, [ebp - 0xa4]
call fcn.00409ae0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441b05
mov esp, ebp
pop ebp
ret 4

Function at 0x4121f0
Capabilities:
Write clipboard data

Disassembly:
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x412274
mov eax, dword [esi + 0x14]
lea eax, [eax + eax + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41225b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x18], 8
jb 0x412224
mov ebx, dword [esi + 4]
jmp 0x412227
lea ebx, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, 1
je 0x41223f
cmp ecx, 0x7fffffff
ja 0x41223f
push ebx
mov edx, eax
call fcn.0040a590
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebx
push edi
test eax, eax
jne 0x412268
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 0x80004005
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop edi
ret
Function at 0x412280
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45be65
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46e320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x528], 0
jne 0x412313
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x412313
push 0xd
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x41230d
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
add edi, 0x514
push edi
mov edx, eax
call fcn.00406b20
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416390
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b0fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46e320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004407c6
push 4
mov dword [ebp - 4], 0
call fcn.00441c08
mov edi, eax
add esp, 4
test edi, edi
je 0x41640c
call fcn.00440a78
mov dword [edi], eax
call fcn.004408a6
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00440787
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x416402
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004407af
jmp 0x41640e
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4183c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4183dd
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418414
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x418410
lea ecx, [ecx]
cmp esi, eax
jae 0x418414
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x418400
cmp esi, eax
jb 0x41841b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41d830
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
push eax
push 0x41d800
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp + 0x18]
mov esi, eax
test ecx, ecx
je 0x41d861
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call edx
mov eax, esi
pop esi
pop ebp
ret

Function at 0x41eab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x41eac3
lea eax, [esi + 0xd]
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41ead0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x41f050
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x46e320]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x21c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x214]
mov edi, eax
cmp edi, ebx
jne 0x41f0dc
xor eax, eax
cmp ecx, ebx
je 0x41f0be
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x21c]
and esi, 0x300
mov edi, eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], esi
cmp eax, ebx
je 0x41f0fc
cmp ecx, ebx
je 0x41f0e7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00441b05
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [ebp - 0x22c]
push edx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x20c]
push edx
push ebx
push ecx
mov dword [ebp - 0x218], 0x100
call esi
test eax, eax
jne 0x41f17c
lea esp, [esp]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0041f050
mov edi, eax
cmp edi, ebx
jne 0x41f1d2
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp - 0x214]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
push ecx
mov dword [ebp - 0x218], 0x100
call esi
test eax, eax
je 0x41f130
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0x41f193
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], ebx
mov edi, dword [ebp - 0x224]
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x210], ebx
call fcn.0041f270
mov esi, eax
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0x41f1bd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00441b05
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0x41f1e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b05
mov esp, ebp
pop ebp
ret 4
Function at 0x41fde0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cda6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x46e320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
cmp edi, ebx
jne 0x41fe60
call fcn.0041e3d0
mov esi, eax
jmp 0x41ff6c
mov eax, dword [ebp - 0x41c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x41fe7f
call fcn.0041e3d0
jmp 0x41ff63
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, ebx
jne 0x41fe9b
call fcn.0041e3d0
jmp 0x41ff63
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x41c], eax
cmp ecx, eax
jae 0x41fede
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x41fec9
lea eax, [ebp - 0x418]
call fcn.0041e380
lea esi, [ebp - 0x424]
call fcn.0041eb00
mov eax, 0x8007000e
jmp 0x41ff92
mov eax, ecx
lea esi, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0041e390
mov dword [ebp - 4], 1
jmp 0x41ff0d
mov ecx, dword [ebp - 0x418]
cmp ecx, ebx
jne 0x41ff1e
mov esi, 0x8007000e
jmp 0x41ff65
mov eax, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x428]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x41ff42
call fcn.0041e3d0
jmp 0x41ff63
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x418]
push eax
lea edx, [ebp - 0x430]
call fcn.0041fc90
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x41ff90
lea eax, [ebp - 0x418]
call fcn.0041e380
jmp 0x41ff90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00441b05
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4210e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4210fe
mov eax, 0x80004005
pop esi
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x421117
mov ecx, dword [esi - 0x1c]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
pop ebp
ret 4
mov edx, dword [esi - 0x1c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x421180
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [edi + 0x5c]
mov eax, dword [edi + 4]
mov dword [edi + 0x58], eax
test ecx, ecx
je 0x42119b
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [edi + 0x48]
push eax
call edx
mov eax, dword [edi + 4]
push ebx
push esi
push 0x3ef
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
lea ebx, [edi + 0x7c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4211d7
push esi
mov esi, ebx
call fcn.00416850
test eax, eax
je 0x4211d7
push 0
add ebx, 0xf4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [edi + 4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [edi + 0x80]
push 0
push edx
mov dword [edi + 0x178], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x425040
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0044e510
mov eax, dword [0x46e320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
xor ecx, ecx
push 0xffa
mov edi, edx
push ecx
lea edx, [ebp - 0xffe]
push edx
mov dword [ebp - 0x1004], eax
mov dword [ebp - 0x1008], 0
mov word [ebp - 0x1000], cx
call fcn.004480e0
mov ecx, 8
add esp, 0xc
cmp dword [edi + 0x18], ecx
jb 0x4250a1
mov edi, dword [edi + 4]
jmp 0x4250a4
add edi, 4
cmp dword [ebx + 0x18], ecx
jb 0x4250ae
mov ebx, dword [ebx + 4]
jmp 0x4250b1
add ebx, 4
mov eax, dword [ebp - 0x1004]
cmp dword [eax + 0x18], ecx
jb 0x4250c1
mov eax, dword [eax + 4]
jmp 0x4250c4
add eax, 4
push edi
push 0x7fe
lea ecx, [ebp - 0x1000]
push ecx
push 0x462cac
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
lea eax, [ebp - 0x1000]
mov word [esi + 4], dx
lea edx, [eax + 2]
jmp 0x425100
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425100
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407860
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b05
mov esp, ebp
pop ebp
ret
Function at 0x429570
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e5e7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46e320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x463968
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.0042a430
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0042b080
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x473c40]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42b080
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b0fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46e320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004407c6
push 4
mov dword [ebp - 4], 0
call fcn.00441c08
mov edi, eax
add esp, 4
test edi, edi
je 0x42b0fc
call fcn.00440a78
mov dword [edi], eax
call fcn.004408a6
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00440787
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x42b0f2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004407af
jmp 0x42b0fe
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4306d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bb98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46e320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x430727
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x430742
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push eax
call fcn.00430530
add esp, 8
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431180
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46e320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x471ee4]
cmp eax, 0xffffffff
jne 0x4311ea
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004480e0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jb 0x4311e3
cmp dword [ebp - 0x114], 6
jb 0x4311e3
mov eax, 1
jmp 0x4311e5
xor eax, eax
mov dword [0x471ee4], eax
mov ecx, dword [ebp - 4]
cmp eax, 1
sete al
xor ecx, ebp
call fcn.00441b05
mov esp, ebp
pop ebp
ret
Function at 0x4417b1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x472580], 0
push esi
jne 0x441724
call fcn.0044164a
test eax, eax
je 0x441767
mov eax, dword [0x472580]
cmp eax, 1
jne 0x441745
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x441767
pop esi
ret
push eax
call dword [0x472588]
test eax, eax
jne 0x4417af
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44176b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x472580]
call dword [0x472588]
mov edi, eax
test edi, edi
je 0x441790
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4417ac
mov edi, esi
add esi, 0xff0
push edi
push dword [0x472580]
call dword [0x472584]
add edi, 0x10
cmp edi, esi
jb 0x441798
mov eax, edi
pop edi
pop esi
ret
jmp 0x441711

Function at 0x441b05
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e320]
jne 0x441b0f
repz ret
jmp fcn.0044834c

Function at 0x45353d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00448671
and dword [ebp - 4], 0
cmp dword [0x4730e0], 0
mov ebx, eax
jne 0x4535ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45369f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45369f
push eax
call fcn.004485ff
mov dword [esp], 0x462a00
push edi
mov dword [0x4730e0], eax
call esi
push eax
call fcn.004485ff
mov dword [esp], 0x4629ec
push edi
mov dword [0x4730e4], eax
call esi
push eax
call fcn.004485ff
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4730e8], eax
call esi
push eax
call fcn.004485ff
pop ecx
mov dword [0x4730f0], eax
test eax, eax
je 0x4535ee
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004485ff
pop ecx
mov dword [0x4730ec], eax
mov eax, dword [0x4730ec]
cmp eax, ebx
je 0x453646
cmp dword [0x4730f0], ebx
je 0x453646
push eax
call fcn.0044867a
push dword [0x4730f0]
mov esi, eax
call fcn.0044867a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x453646
test edi, edi
je 0x453646
call esi
test eax, eax
je 0x45363d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45363d
test byte [ebp - 0xc], 1
jne 0x453646
or dword [ebp + 0x10], 0x200000
jmp 0x45367f
mov eax, dword [0x4730e4]
cmp eax, ebx
je 0x45367f
push eax
call fcn.0044867a
pop ecx
test eax, eax
je 0x45367f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45367f
mov eax, dword [0x4730e8]
cmp eax, ebx
je 0x45367f
push eax
call fcn.0044867a
pop ecx
test eax, eax
je 0x45367f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4730e0]
call fcn.0044867a
pop ecx
test eax, eax
je 0x45369f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4536a1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret