joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x49e05d
movzx eax, word [esi + 0x55c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x49e0ac
mov eax, dword [esi]
call dword [eax + 0x34]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49e10d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x568], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x560], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x564], eax
mov byte [esi + 0x578], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x49e0cd
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x49e10d
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x49e107
cmp dword [esi + 0x558], 0
je 0x49e10d
cmp byte [esi + 0x578], 0
je 0x49e10d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x49e10d
mov ecx, dword [esi + 0x558]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.0043da60
pop edi
pop esi
pop ebp
ret 4

Function at 0x49e120
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x49e16f
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49e168
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x49e190
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x49e169
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x49e1c2
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x49e1c2
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x49e169
cmp byte [esi + 0x564], 0
je 0x49e169
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.0043da60
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a5540
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534298
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x57a438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4a5587
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
cmp dword [esi + 0x18], 1
jbe 0x4a55c3
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4a5c90
push 0
push 0
call fcn.00512763
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.0043e5b0
mov ecx, esi
call fcn.004a5950
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
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 0x4a91f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x5831e0], 0
jne 0x4a932b
cmp dword [ecx + 0x2c], 8
lea eax, [ecx + 0x18]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
jb 0x4a923a
mov eax, dword [eax]
push edi
push 0x20219
push eax
push dword [ecx + 0x30]
lea ecx, [ebp - 0x818]
call fcn.0041cbd0
mov edi, dword [ebp - 0x818]
test eax, eax
jne 0x4a930c
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0x800
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push str.FROM
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a930c
mov eax, dword [ebp - 0x80c]
cmp eax, 1
je 0x4a929e
cmp eax, 2
jne 0x4a930c
mov eax, dword [ebp - 0x808]
test eax, eax
je 0x4a92bb
test al, 1
jne 0x4a930c
shr eax, 1
cmp word [ebp + eax*2 - 0x806], 0
je 0x4a92c4
jmp 0x4a930c
xor eax, eax
mov word [ebp - 0x804], ax
push esi
mov ecx, 0x5831e0
lea esi, [ebp - 0x804]
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4a92fe
movzx eax, word [esi + ecx]
test ax, ax
je 0x4a92fe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4a92e0
test edx, edx
lea eax, [ecx - 2]
pop esi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4a9317
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x5831e0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x5831e0
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret
Function at 0x4a9b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x5829e0], 0
push esi
jne 0x4a9c47
cmp dword [ecx + 0x2c], 8
lea eax, [ecx + 0x18]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
jb 0x4a9b6b
mov eax, dword [eax]
push edi
push 0x20219
push eax
push dword [ecx + 0x30]
lea ecx, [ebp - 0x818]
call fcn.0041cbd0
mov edi, dword [ebp - 0x818]
test eax, eax
jne 0x4a9c3b
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0x800
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push 0x54da3c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9c3b
mov eax, dword [ebp - 0x80c]
cmp eax, 1
je 0x4a9bcf
cmp eax, 2
jne 0x4a9c3b
mov eax, dword [ebp - 0x808]
test eax, eax
je 0x4a9bec
test al, 1
jne 0x4a9c3b
shr eax, 1
cmp word [ebp + eax*2 - 0x806], 0
je 0x4a9bf5
jmp 0x4a9c3b
xor eax, eax
mov word [ebp - 0x804], ax
mov ecx, 0x5829e0
lea esi, [ebp - 0x804]
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4a9c2e
movzx eax, word [esi + ecx]
test ax, ax
je 0x4a9c2e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4a9c10
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4a9c46
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x5829e0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4a9c9b
mov ecx, 0x5829e0
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4a9c8e
movzx eax, word [esi + ecx]
test ax, ax
je 0x4a9c8e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4a9c70
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 0x5829e0
xor ecx, ebp
pop esi
call fcn.004ac694
mov esp, ebp
pop ebp
ret
Function at 0x4aa910
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x2c], 0
jne 0x4aa994
cmp word [0x586220], 0
jne 0x4aa934
push 0
push 0x1a
push 0x586220
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.common_pp
push 0x586220
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x586220
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4aa95f
push eax
push 0x586220
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.common_stat_config.ini
push 0x586220
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, 0x586220
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa977
sub ecx, edx
sar ecx, 1
push ecx
push 0x586220
lea ecx, [edi + 0x1c]
call fcn.0040b2e0
pop edi
ret

Function at 0x4aaae0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5346bb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x34]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], ebx
push eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x21c], 1
call fcn.0052c94f
add esp, 4
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004aa910
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004fecc0
add esp, 0xc
lea eax, [edi + 0x1c]
cmp dword [esi + 0x10], 0
jne 0x4aab8f
cmp dword [eax + 0x14], 8
jb 0x4aab6a
mov eax, dword [eax]
cmp dword [edi + 0x18], 8
lea ecx, [edi + 4]
jb 0x4aab75
mov ecx, dword [ecx]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5602b4
push str.session_id
push ecx
jmp 0x4aabb7
cmp dword [eax + 0x14], 8
jb 0x4aab97
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x4aab9f
mov esi, dword [esi]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5602b4
push str.session_id
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebx + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aabe0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040b2e0
push dword [ebp - 0x220]
call fcn.0052c95d
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret 8
Function at 0x4ab720
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534853
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x4ab7c5
cmp word [esi], di
je 0x4ab7c5
test eax, eax
je 0x4ab781
cmp word [eax], di
je 0x4ab781
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x4ab7c5
jmp 0x4ab7c0
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004fecc0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x4ab7c5
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
cmp dword [ebp + 0x34], 0
je 0x4ab840
lea esi, [ebx + 0x38]
push esi
mov dword [ebp - 0x42c], esi
call fcn.0042e39c
add esp, 4
test eax, eax
je 0x4ab7ea
push eax
call fcn.0042e454
add esp, 4
mov byte [ebp - 0x428], 1
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x4ab860
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
push esi
mov byte [ebp - 4], 2
call fcn.0042e3c1
add esp, 4
test eax, eax
je 0x4ab828
push eax
call fcn.0042e454
add esp, 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4ab840
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret 0x30
call fcn.0042cbeb
int3
Function at 0x4c1e68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4f8a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f8630
Function at 0x4f9c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538eb3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004aa5c0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x4f9e43
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x4f9e43
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4f9e43
push eax
call esi
test eax, eax
je 0x4f9e43
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004f9b80
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x4f9e34
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004fecc0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f9e34
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x4f9d5b
cmp eax, 2
jne 0x4f9e34
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4f9d7c
test cl, 1
jne 0x4f9e34
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4f9d82
jmp 0x4f9e34
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4f9e34
lea ecx, [ebp - 0x78]
call fcn.00406d60
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004f8170
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x551fec
push eax
call fcn.004fa240
push 0x2a
push dword [ebp - 0x78]
call fcn.004f8630
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x4f9e2c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4f9de2
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004f7f30
push dword [0x57b66c]
lea eax, [ebp - 0x74]
push dword [0x57b668]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4f9e1d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.00406ca0
mov edi, 1
jmp 0x4f9e36
lea ecx, [ebp - 0x78]
call fcn.00406ca0
xor edi, edi
test esi, esi
je 0x4f9e45
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f9e45
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret
Function at 0x4f9e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4f9e95
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f9ea0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4fd050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4fd0c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4fd08f
cmp eax, 2
jne 0x4fd0ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4fd0bb
test ecx, ecx
je 0x4fd0b6
test cl, 1
jne 0x4fd0ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4fd0bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x518aa2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x518ae1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x518ae1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x518ae1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x518ae1
cmp dword [ecx + 0x74], 0xe
jbe 0x518ae1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x51e8c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004ad380
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0051da27
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x51e904
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x51ea60
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0052ca70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x587178]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00518242
mov ecx, dword [esi*4 + 0x587178]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x51ea59
cmp eax, dword [ecx + edi + 0x24]
jne 0x51ea59
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51ea59
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00518242
add esp, 0x14
test edx, edx
jl 0x51ea59
jg 0x51e9cf
test eax, eax
jb 0x51ea59
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x51ea59
jl 0x51e9e9
cmp dword [ebp - 0x1008], eax
ja 0x51ea59
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x51ea07
test ebx, ebx
je 0x51ea40
cmp ecx, edi
jae 0x51ea40
mov al, byte [ecx]
cmp al, 0xd
jne 0x51ea21
lea eax, [edi - 1]
cmp ecx, eax
jae 0x51ea2d
cmp byte [ecx + 1], 0xa
jne 0x51ea2d
inc ecx
jmp 0x51ea2d
movzx eax, al
movsx eax, byte [eax + 0x57b8c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x51ea07
cmp edx, ebx
jne 0x51ea07
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x51ea5e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004ac694
leave
ret
Function at 0x51eaff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x587178]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x51eb3f
cmp byte [ebx], 0xa
jne 0x51eb3f
or byte [edi + eax + 0x28], 4
jmp 0x51eb44
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x51ec43
mov dl, byte [eax]
cmp dl, 0x1a
je 0x51ec26
inc eax
cmp dl, 0xd
je 0x51eb70
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x51eb96
cmp eax, ecx
jae 0x51eba4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x51eb58
jmp 0x51ec43
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51ec21
cmp dword [ebp - 0x10], 0
je 0x51ec21
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x587178]
test byte [eax + edi + 0x28], 0x48
je 0x51ebfb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x51ebe6
mov byte [esi], dl
jmp 0x51ebf7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x587178]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x51ec43
cmp byte [ebp - 1], 0xa
jne 0x51ec0a
cmp esi, ebx
jne 0x51ec0a
mov byte [esi], 0xa
jmp 0x51ec42
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00518260
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x51ec43
mov byte [esi], 0xd
jmp 0x51ec42
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x587178]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x51ec40
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x51ec43
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret