joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439cc0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x439cdc
cmp dword [esi + 4], 0
je 0x439d09
test byte [ebx + 0x55], 1
jne 0x439cfb
mov eax, ebx
call fcn.00438114
test eax, eax
jne 0x439cfb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x439e19
mov edx, esi
mov eax, ebx
call fcn.004396c8
jmp 0x439e19
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x439e12
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043bd18
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004355bc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00439cc0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043bd18
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439e19
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440dfc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4dea80]
cmp byte [eax + 0xc], 0
je 0x440f69
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440f62
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e2544], 0
jne 0x440e50
push 0x440f70
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x440f78
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2544], eax
cmp dword [0x458574], 0
jne 0x440f4b
push 0x440f88
call sub.kernel32.dll_LoadLibraryA
mov dword [0x458574], eax
cmp dword [0x458574], 0
je 0x440f4b
push 0x440f94
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2548], eax
push 0x440fa4
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e254c], eax
push 0x440fb8
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2550], eax
push 0x440fd0
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2554], eax
push 0x440fe8
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2558], eax
push 0x440ffc
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e255c], eax
push 0x441014
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2560], eax
push 0x44102c
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2564], eax
push 0x441048
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e2568], eax
push 0x441054
mov eax, dword [0x458574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e256c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440f69
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4465b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x446604]
test si, 4
je 0x4465c5
or bl, 1
test si, 8
je 0x4465cf
or bl, 4
test si, 1
je 0x4465d9
or bl, 8
test si, 2
je 0x4465e3
or bl, 0x10
test si, 0x10
je 0x4465ed
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4465fc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x446608
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x446644]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446622
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446631
or bl, 4
test esi, 0x20000000
je 0x44663c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44dcf8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44dd0a
add esp, 0xfffffff0
call fcn.00403b94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ea4
mov eax, dword [0x4de730]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e09c
mov eax, dword [0x4de73c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e0a8
mov eax, ebx
call fcn.0044e0b4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411ca0]
call fcn.00403858
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411ca0]
call fcn.00403858
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411ca0]
call fcn.00403858
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411ca0]
call fcn.00403858
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411ca0]
call fcn.00403858
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x449b4c
push eax
push 0
push 0
mov eax, dword [0x4de898]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41da18]
call fcn.0041ef38
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41da18]
call fcn.0041ef38
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41da18]
call fcn.0041ef38
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e4e4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e3b4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e3b4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e3b4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44de47
call fcn.00403bec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e198
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e343
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e324
mov dl, 1
mov eax, dword [0x4120c4]
call fcn.00403858
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046b8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e313
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00441158
test al, al
je 0x44e306
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44e354
lea eax, [ebp - 0x254]
call fcn.0040914c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e306
xor eax, eax
push ebp
push 0x44e2ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e38c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e2e8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404928
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e2e8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e306
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e209
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415da4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e34a
lea eax, [ebp - 0x260]
call fcn.004046b8
ret

Function at 0x44ecbc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4e257c]
cmp byte [eax + 0xad], 0
jne 0x44ed2d
cmp dword [0x4e2594], 0
jne 0x44ecee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ec78
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e2594], eax
cmp dword [0x4e2590], 0
jne 0x44ed09
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e2590], eax
cmp dword [0x4e2598], 0
jne 0x44ed2d
push esp
push 0
push 0
push 0x44ec1c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4e2598], eax
pop edx
ret
Function at 0x44ef00
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ef17
add esp, 0xfffffff0
call fcn.00403b94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ea4
mov eax, dword [0x4de880]
cmp word [eax + 2], 0
jne 0x44ef3f
mov eax, dword [0x4de880]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004509b0
mov eax, dword [0x4de92c]
cmp word [eax + 2], 0
jne 0x44ef59
mov eax, dword [0x4de92c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450bbc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411ca0]
call fcn.00403858
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411ca0]
call fcn.00403858
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411ca0]
call fcn.00403858
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e1f4]
call fcn.0042403c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x44f110
mov eax, dword [0x4de798]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424410
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45127c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4de798]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c85c
test eax, eax
je 0x44f060
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b04
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c890
test eax, eax
je 0x44f074
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404928
mov byte [ebx + 0xd4], 0
push ebx
push 0x450510
call fcn.0041b020
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4de690]
cmp byte [eax], 0
jne 0x44f0c5
mov eax, ebx
call fcn.0044f254
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00451458
mov eax, ebx
call fcn.00451fb8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f105
call fcn.00403bec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f4d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e257c]
cmp dword [eax + 0x30], 0
je 0x44f57e
cmp dword [ebx + 0x94], 0
jne 0x44f578
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f464
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f578
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f53e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f578
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041404c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f54d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450298
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4502cd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047a8
jmp 0x4502da
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040470c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45163c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4516aa
mov eax, esi
call fcn.0043c014
test al, al
je 0x4516aa
mov eax, dword [ebx + 0x84]
call fcn.0043bd18
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4516aa
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45169e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043bd18
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043425c
jmp 0x4516aa
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00451478
pop esi
pop ebx
ret
Function at 0x401d2d
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d4e
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d68
inc edi
cmp edi, 0x3330601
jl 0x401d39
cmp dword [0x245a474], 0x400
jne 0x401daa
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004045e1
push esi
call fcn.00404c5d
push esi
push esi
call fcn.00404aa8
push esi
call fcn.00404d13
add esp, 0x14
xor edi, edi
cmp edi, 0x16c76
jge 0x401dbc
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401de2
inc edi
cmp edi, 0x3003f
jl 0x401dac
mov eax, dword [0x43cb84]
mov dword [0x245a474], eax
call fcn.00401a58
mov edi, 0x3078f
cmp dword [0x245a474], 0x51f
jne 0x401e0e
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401df6
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

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

Disassembly:
mov eax, 0x434efd
call fcn.00434d78
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00403739
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404d22
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4029c4
call fcn.004034ed
mov dword [ebx], eax
call fcn.004032ac
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029c6
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40586d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b354]
jne 0x405877
repz ret
jmp fcn.0040bf1c
Function at 0x41022e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004079f7
and dword [ebp - 0x14], 0
cmp dword [0x447d6c], 0
mov dword [ebp - 0x18], eax
jne 0x4102e1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410389
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x410389
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x447d6c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x447d70], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x447d74], eax
call edi
push eax
call esi
mov dword [0x447d7c], eax
test eax, eax
je 0x4102e1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x447d78], eax
mov eax, dword [0x447d78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41033a
cmp dword [0x447d7c], ecx
je 0x41033a
push eax
call esi
push dword [0x447d7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41033a
test ebx, ebx
je 0x41033a
call edi
test eax, eax
je 0x410331
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410331
test byte [ebp - 8], 1
jne 0x41033a
or dword [ebp + 0x10], 0x200000
jmp 0x41036d
mov eax, dword [0x447d70]
cmp eax, dword [ebp - 0x18]
je 0x41036d
push eax
call esi
test eax, eax
je 0x41036d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41036d
mov eax, dword [0x447d74]
cmp eax, dword [ebp - 0x18]
je 0x41036d
push eax
call esi
test eax, eax
je 0x41036d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x447d6c]
call esi
test eax, eax
je 0x410389
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41038b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040586d
leave
ret
Function at 0x40b2c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40b2d7
pop dword [ebp - 0x44]
mov eax, 0xe5980578
add eax, 0x1aa8ad5f
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x52e6e
push 0
mov eax, 0x6418d3c1
sub eax, 0x63d42111
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x680e465e
add ecx, 0x97f20cca
xor edx, edx
add edx, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x44]
mov edi, 0xe3b0a927
add edi, 0x33a8a8b
xor dword [ebp - 0x24], 0x4539e26d
mov esi, dword [ebx]
add dword [ebp - 0x1c], 0xa96d0be9
xor esi, edi
mov dword [edx], esi
sub dword [ebp - 0x20], 0x8efe6b35
add edx, 4
add ebx, 0xcee19e48
sub ebx, 0xcee19e44
loop 0x40b332
add eax, 0x92fd8cc1
add eax, 0x6d03b2b2
xor ebx, ebx
add ebx, eax
add eax, 0x50174367
add eax, 0xafe8bc9e
mov ecx, 0xff19d86b
add ecx, 0x1262795
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret