joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412cc0
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x49d878
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x4c45ac
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
push str.GetPacketData__d
mov ecx, 0x4c5908
mov dword [esp + 0x30], ebp
call fcn.00472890
mov edi, dword [esp + 0x38]
add esp, 8
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00412e50
mov ebx, dword [esp + 0x14]
push ebx
push str.GetPacketData_return:_d
mov ecx, 0x4c5908
mov edi, eax
call fcn.00472890
add esp, 8
test edi, edi
je 0x412de7
push 0x40
call fcn.0047d26c
add esp, 4
test eax, eax
je 0x412d69
push eax
call fcn.00469030
mov esi, eax
jmp 0x412d6b
xor esi, esi
mov ebp, esi
test esi, esi
je 0x412de7
push str.Extract...
mov ecx, 0x4c5908
call fcn.00472890
mov edx, dword [esp + 0x38]
mov ecx, dword [esi]
mov eax, dword [ecx]
add esp, 4
push 1
push edx
push ebx
push edi
push esi
call eax
xor ecx, ecx
mov esi, eax
test esi, esi
sete cl
push ecx
push str.Extract_return:_d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
test esi, esi
je 0x412ddf
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412ddb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x412e2d
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
je 0x412df8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebp, ebp
je 0x412e05
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
push ebp
call edx
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x412ef0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [ebx - 0x100000]
cmp edi, eax
jb 0x412f10
mov esi, ebx
sub esi, edi
jmp 0x412f15
mov esi, 0x100000
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push esi
lea edx, [edi + ecx]
push edx
push eax
call ebp
test eax, eax
je 0x412f4a
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x412f4a
add edi, eax
cmp edi, ebx
jb 0x412f00
mov eax, 1
pop edi
pop esi
pop ebp
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_new_error:_d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
Function at 0x412f70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
cmp dword [esi + 0x20], 0xffffffff
push edi
mov dword [esp + 0x10], ebp
jne 0x412f99
push str.LoadImageToMem_m_hFile_is_NUll
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
jmp 0x41303b
mov eax, dword [esi + 8]
push 0x4c4660
push eax
call fcn.0047e338
add esp, 8
mov dword [esi + 4], eax
cmp eax, ebp
jne 0x412fcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.m_pFileBuffer_new_error:_d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
jmp 0x41303b
mov edx, dword [esi + 8]
push ebp
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413036
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.ReadFile_new_error:_d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 8]
push ecx
push edx
call fcn.00412ef0
test eax, eax
jne 0x413036
call edi
push eax
push str.ReadMem_error:_d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
jmp 0x41303b
mov ebp, 1
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x413051
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0xffffffff
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret

Function at 0x413dd0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a08b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esi + 0x5b4]
test eax, eax
jne 0x413eb6
push 2
mov ecx, esi
call fcn.004158b0
push 0
push 0x4a5052
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.004017c0
push 0
push 0
push 0xa
push 0x4c57c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], 0
call fcn.00422020
cmp dword [esp + 0x34], 0x10
jb 0x413e60
mov eax, dword [esp + 0x20]
push eax
call fcn.0047ceda
add esp, 4
mov eax, dword [0x4c5864]
test eax, eax
je 0x413efc
lea edx, [esp + 0x10]
push edx
push 0
push 0x4a
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], 0x2711
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x3c
ret
cmp eax, 2
jne 0x413efc
push eax
mov ecx, esi
call fcn.004158b0
lea eax, [esi + 0x50]
mov edi, 0x519
mov dword [0x4c2214], 1
call fcn.00416690
push 0
push 0
push 0x4c57c0
push 0x425710
push 0
push 0
mov dword [0x4c56a8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c5844], eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x3c
ret
Function at 0x413f70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a088b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov ecx, edi
call fcn.004158b0
cmp esi, 1
jne 0x414005
push 4
call fcn.0047d26c
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
test esi, esi
je 0x413fd4
mov eax, dword [edi + 0x5bc]
sub eax, 0x10
call fcn.00404f50
add eax, 0x10
mov dword [esi], eax
jmp 0x413fd6
xor esi, esi
push 0
push 0
push esi
push 0x415d50
push 0
push 0
mov dword [0x4c2214], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov dword [0x4c2214], 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x414df0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49f9d6
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x42]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x48], ax
call fcn.004820f0
mov eax, dword [esi + 0x5bc]
add esp, 0xc
lea edi, [esi + 0x5bc]
push 0x103
push eax
lea edx, [esp + 0x44]
push edx
call fcn.0047e343
mov ecx, dword [esi + 4]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x11
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x4a8db8
mov dword [esp + 0x30], 0x8041
mov dword [esp + 0x34], 0x414dc0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
je 0x414f82
lea ecx, [esp + 0x244]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x414f82
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x248]
call fcn.00406d60
lea eax, [esp + 0x10]
mov dword [esp + 0x458], ebx
call fcn.00410c00
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.Shuame_
call fcn.00412200
add esp, 8
mov byte [esp + 0x458], 1
call fcn.00404fc0
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414f47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
push edi
lea eax, [esi + 0x50]
mov ecx, 0x4b7
call fcn.00416610
mov dword [esp + 0x458], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414f82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0047cee5
add esp, 0x450
ret
Function at 0x415710
Capabilities:
Create thread

Disassembly:
push edi
mov edi, eax
mov ecx, 1
call fcn.00413f70
lea eax, [edi + 0x50]
mov edi, 0x519
call fcn.00416690
push 0
push 0
push 0x4c57c0
push 0x425710
push 0
push 0
mov dword [0x4c56a8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c5844], eax
pop edi
ret

Function at 0x416ed0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x416f24
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x416f1a
cmp ebx, 0x1b
jne 0x416f06
mov ecx, dword [esi + 4]
push 0
push 2
push 0x111
push ecx
jmp 0x416f18
cmp ebx, 0xd
jne 0x416f1a
mov edx, dword [esi + 4]
push 0
push 1
push 0x111
push edx
call edi
mov dword [esi + 0x584], 0
cmp dword [esi + 4], 0
je 0x416f46
movzx eax, word [esp + 0xc]
movzx ecx, word [esp + 8]
mov edx, dword [esi + 0x30]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push pe_nt_image_headers32
push edx
call edi
pop edi
ret 8
Function at 0x418cc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
cmp dword [ebx + 0x4d0], ebp
je 0x418ce4
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [ebx + 0x4d0], ebp
mov edi, dword [ebx + 0x4c0]
cmp edi, ebp
je 0x418df5
call fcn.00402730
mov esi, eax
mov edi, 1
cmp esi, ebp
je 0x418da1
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 2
push ebp
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
test eax, eax
je 0x418d28
push edi
push ebx
mov eax, esi
call fcn.00401ff0
mov eax, dword [ebx + 0x4c0]
cmp eax, dword [ebx + 0x4bc]
je 0x418d3e
cmp dword [esi + 0xac], ebp
je 0x418da1
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
mov dword [esi + 0xfc], ebp
movzx ecx, word [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x3c]
shl ecx, 0x10
or ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push 0x202
push ebp
mov ecx, esi
mov dword [esp + 0x28], ebp
call edx
mov eax, dword [esi + 0xa0]
cmp eax, ebp
je 0x418d92
cmp word [eax], bp
je 0x418d92
push edi
push ebp
push ebp
push eax
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x418da1
mov eax, dword [esi + 0x14]
cmp eax, ebp
je 0x418da1
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [ebx + 0x4c0], ebp
cmp dword [esp + 0xc], ebp
je 0x418df5
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x38]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push 0x202
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc

Function at 0x418e30
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
xor edi, edi
call esi
test al, al
js 0x418e4e
push 0xa1
call esi
test al, al
jns 0x418e53
mov edi, 4
push 0x11
call esi
test al, al
js 0x418e63
push 0x11
call esi
test al, al
jns 0x418e66
or edi, 8
push 1
call esi
test al, al
js 0x418e76
push 1
call esi
test al, al
jns 0x418e79
or edi, 1
push 2
call esi
test al, al
js 0x418e89
push 2
call esi
test al, al
jns 0x418e8c
or edi, 2
push 4
call esi
test al, al
js 0x418e9c
push 0x10
call esi
test al, al
jns 0x418e9f
or edi, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
call fcn.00418cc0
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
Function at 0x419ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebx
push 0x400000
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x419acf
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x419ac9
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x419af4
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or edx, eax
jge 0x419b14
mov eax, esi
call fcn.00402250
mov ecx, dword [esi]
push edi
push ebp
push ecx
call fcn.00483eb0
add esp, 0xc
mov eax, edi
call fcn.00412790
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x419b40
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x49d1c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00419a00
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x419ca6
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c45ac
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
call fcn.00419a00
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
push ecx
push edx
push eax
push str._s_d._s
lea edi, [esp + 0x20]
call fcn.004128d0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x419c7e
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x419c77
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x14], 0
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 0xa]
sub eax, ecx
or eax, edx
jge 0x419c1f
mov eax, esi
call fcn.00402250
mov eax, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419c63
cmp dword [esp + 0x14], edi
jne 0x419c63
mov eax, edi
call fcn.00412790
lea ecx, [esp + 0x10]
call fcn.00406e10
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x419cd3
mov dword [eax - 0xc], 0
mov eax, dword [esi]
mov byte [eax], 0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419ca6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
movzx edx, word [esp + 0x28]
push ecx
push edx
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x419cdd
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x80070057
call fcn.00402890
mov ecx, esi
call fcn.00419ab0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x419ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push edi
xor edi, edi
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x41a08e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x41a097
call fcn.00407520
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
inc ecx
sub eax, ecx
or edx, eax
jge 0x41a055
mov eax, esi
call fcn.00407630
mov edi, dword [esi]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x41a0a1
mov edx, dword [esp + 0x1c]
shr edx, 1
mov word [edi + edx*2], ax
call fcn.00412810
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8

Function at 0x41a1a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a1c0
sub eax, edx
mov edi, eax
mov ecx, edi
xor eax, eax
and ecx, 0x800000ff
mov dword [esp + 0xc], edi
jns 0x41a1e3
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [eax + 0x4c2218]
xor dl, cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x40
jl 0x41a1e3
xor esi, esi
test edi, edi
jle 0x41a246
jmp 0x41a200
mov al, byte [esi + ebp]
mov ecx, esi
and ecx, 0x3f
movzx edi, byte [esp + ecx + 0x14]
and edi, 0x80000007
not al
jns 0x41a21c
dec edi
or edi, 0xfffffff8
inc edi
mov ecx, edi
mov dl, 1
shl dl, cl
mov ecx, 8
sub ecx, edi
mov dword [esp + 0x10], edi
dec dl
and dl, al
shl dl, cl
mov cl, byte [esp + 0x10]
shr al, cl
inc esi
or dl, al
cmp esi, dword [esp + 0xc]
mov byte [esi + ebp - 1], dl
jl 0x41a200
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0047cee5
add esp, 0x4c
ret
Function at 0x41a260
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x44
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a273
sub eax, edx
push ebp
mov ebp, eax
mov ecx, ebp
xor eax, eax
and ecx, 0x800000ff
push esi
jns 0x41a294
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [eax + 0x4c2218]
xor dl, cl
mov byte [esp + eax + 8], dl
inc eax
cmp eax, 0x40
jl 0x41a294
xor esi, esi
test ebp, ebp
jle 0x41a2f6
push ebx
lea ecx, [ecx]
mov eax, esi
and eax, 0x3f
movzx ecx, byte [esp + eax + 0xc]
and ecx, 0x80000007
jns 0x41a2c7
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dl, byte [edi + esi]
mov eax, 8
sub eax, ecx
mov ecx, eax
mov bl, 1
shl bl, cl
mov ecx, 8
sub ecx, eax
inc esi
dec bl
and bl, dl
shl bl, cl
mov cl, al
shr dl, cl
or bl, dl
cmp esi, ebp
not bl
mov byte [edi + esi - 1], bl
jl 0x41a2b0
pop ebx
mov ecx, dword [esp + 0x48]
pop esi
pop ebp
xor ecx, esp
call fcn.0047cee5
add esp, 0x44
ret

Function at 0x41d1d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, eax
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x574], ebx
je 0x41d1f7
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0x574], ebx
mov eax, dword [esi + 0x57c]
cmp eax, ebx
je 0x41d2a5
mov edi, eax
call fcn.00402730
mov edi, eax
cmp edi, ebx
je 0x41d29f
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push 2
push ebx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
test eax, eax
je 0x41d239
lea ebx, [esi + 0x18]
call fcn.00403760
xor ebx, ebx
mov eax, dword [esi + 0x57c]
cmp eax, dword [esi + 0x578]
jne 0x41d29f
cmp edi, esi
je 0x41d26c
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x38]
mov eax, dword [esp + 0x34]
shl ecx, 0x10
or ecx, edx
push ecx
push eax
push 0x202
mov ecx, edi
call fcn.00404e20
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x41d28e
cmp word [eax], bx
je 0x41d28e
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41d29f
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x41d29f
mov dword [esp + 0x14], 1
mov ebp, eax
mov dword [esi + 0x57c], ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esi + 0x128]
call fcn.004380e0
cmp dword [esp + 0x14], ebx
je 0x41d301
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
mov dword [esp + 0x24], ebp
call edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x41e630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49bc79
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], esi
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
mov dword [edi], eax
cmp ebp, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], 1
mov edx, ebp
jge 0x41e68e
neg edx
cmp ebx, esi
mov esi, ebx
jge 0x41e696
neg esi
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jge 0x41e6a0
neg ecx
mov eax, dword [esp + 0x28]
test eax, eax
jge 0x41e6aa
neg eax
push edx
xor edx, edx
test ebp, ebp
setl dl
dec edx
and edx, 0xffffffd1
add edx, 0x5f
push edx
xor edx, edx
test ebx, ebx
setl dl
push esi
dec edx
and edx, 0xffffffd1
add edx, 0x5f
push edx
push ecx
xor ecx, ecx
cmp dword [esp + 0x40], ecx
setl cl
xor edx, edx
dec ecx
and ecx, 0xffffffd1
add ecx, 0x5f
cmp dword [esp + 0x3c], edx
push ecx
setl dl
push eax
dec edx
and edx, 0xffffffd1
add edx, 0x5f
push edx
push str._c_d__c_d__c_d__c_d
call fcn.00401ee0
add esp, 0x24
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret