joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c858
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 0x45ca03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45c9e4
mov dl, 1
mov eax, dword [0x419914]
call fcn.00403d58
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404d68
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45c9d3
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.0044eb78
test al, al
je 0x45c9c6
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, 0x45ca14
lea eax, [ebp - 0x254]
call fcn.0040a574
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45c9c6
xor eax, eax
push ebp
push 0x45c9bf
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 0x45ca4c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45c9a8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404fd8
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 0x45c9a8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404fd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c9c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45c8c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041dd78
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 0x45ca0a
lea eax, [ebp - 0x260]
call fcn.00404d68
ret

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

Disassembly:
push ecx
mov eax, dword [0x4a2c98]
cmp byte [eax + 0xad], 0
jne 0x45d3ed
cmp dword [0x4a2cb4], 0
jne 0x45d3ae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45d338
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a2cb4], eax
cmp dword [0x4a2cb0], 0
jne 0x45d3c9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a2cb0], eax
cmp dword [0x4a2cb8], 0
jne 0x45d3ed
push esp
push 0
push 0
push 0x45d2dc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4a2cb8], eax
pop edx
ret
Function at 0x45d5c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45d5d7
add esp, 0xfffffff0
call fcn.004040ac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004226a0
mov eax, dword [0x49db80]
cmp word [eax + 2], 0
jne 0x45d5ff
mov eax, dword [0x49db80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f218
mov eax, dword [0x49dc40]
cmp word [eax + 2], 0
jne 0x45d619
mov eax, dword [0x49dc40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f424
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419344]
call fcn.00403d58
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419344]
call fcn.00403d58
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x419344]
call fcn.00403d58
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 [0x4271a8]
call fcn.0042e58c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45d7d0
mov eax, dword [0x49da84]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e960
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45faf8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49da84]
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.0040ddb0
test eax, eax
je 0x45d720
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409f2c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dde4
test eax, eax
je 0x45d734
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.00404fd8
mov byte [ebx + 0xd4], 0
push ebx
push 0x45ed40
call fcn.0042381c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x49d93c]
cmp byte [eax], 0
jne 0x45d785
mov eax, ebx
call fcn.0045d914
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.0045fcd0
mov eax, ebx
call fcn.00460834
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d7c5
call fcn.00404104
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45db94
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45dc33
cmp dword [ebx + 0x94], 0
jne 0x45dc2d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45db1c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45dc2d
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 0x45dbf3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45dc2d
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.0041b9ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45dc02
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45de4c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4a2c98]
cmp dword [eax + 0x30], 0
je 0x45dfa9
test bl, bl
jne 0x45defa
cmp dword [esi + 0x9c], 0
jne 0x45deef
mov eax, esi
call fcn.004606b0
push eax
push 0x45dd78
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45dec0
mov eax, dword [0x4a2c98]
call fcn.00460d90
test al, al
je 0x45dec0
mov eax, dword [0x4a2cbc]
call fcn.0040610c
mov edi, eax
cmp edi, 0
jl 0x45dec0
push 0
mov eax, dword [0x4a2cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45deaa
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45deef
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b9ec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45decf
inc dword [esi + 0x9c]
jmp 0x45dfa9
cmp dword [esi + 0x9c], 0
jle 0x45dfa9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45dfa9
cmp dword [esi + 0x44], 0
je 0x45df55
mov eax, dword [0x4a2c98]
call fcn.00460d90
test al, al
je 0x45df55
mov eax, dword [0x4a2cbc]
call fcn.0040610c
mov edi, eax
cmp edi, 0
jl 0x45df55
push 5
mov eax, dword [0x4a2cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45df3f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45df84
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b9ec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45df64
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4a2cbc
mov ecx, 1
mov edx, dword [0x45dd58]
call fcn.004062c0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45ea3c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45eaa6
mov eax, ebx
call fcn.00460d90
test al, al
jne 0x45eaa6
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.00404e58
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45ea93
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45eab3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404dbc
jmp 0x45eab3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404dbc
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45feb4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ff22
mov eax, esi
call fcn.00449984
test al, al
je 0x45ff22
mov eax, dword [ebx + 0x84]
call fcn.004495d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ff22
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45ff16
push 0
mov eax, dword [ebx + 0x84]
call fcn.004495d4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00441570
jmp 0x45ff22
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045fcf0
pop esi
pop ebx
ret

Function at 0x466688
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051e8
xor eax, eax
push ebp
push 0x46671f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404d68
mov eax, dword [ebp - 4]
call fcn.00405028
test eax, eax
jle 0x466701
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
xor dl, 0x10
and edx, 0xff
sub edx, 0xf
call fcn.00404f50
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00405034
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4666cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466726
lea eax, [ebp - 0x14]
call fcn.00404d68
lea eax, [ebp - 4]
call fcn.00404d68
ret
Function at 0x46e8f8
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0x46ea60
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46ea57
mov dword [ebp - 0x18], 0x104
push 4
push 0x1000
mov eax, dword [ebp - 0x18]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00407dbc
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x46ea9c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46e9fb
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x46e9fb
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46e9eb
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x46eaa0
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46e9eb
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
push 0x8000
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebp - 0x30]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov ax, word [ebp - 0x30]
and ax, 0xffff
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x2c]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ax, word [ebp - 0x2c]
and ax, 0xffff
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x46f474
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x46f54c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x46f54c
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x20]
mov edx, dword [ebp - 0x20]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x46f544
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x20]
add edx, edx
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
movzx edx, word [ebp - 0x2e]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
jmp 0x46f54c
inc dword [ebp - 0x20]
dec dword [ebp - 0x38]
jne 0x46f4db
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x470c4c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [0x4a2d0c]
call fcn.004710d8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x470cb4
xor eax, eax
push ebp
push 0x470ca3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x470c99
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov eax, edx
xor edx, edx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470cc4
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4722f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
test dl, dl
je 0x47230a
add esp, 0xfffffff0
call fcn.004040ac
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [0x4a2d04], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x472404
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4723e2
mov dword [ebp - 0x1c], 0x105
mov eax, dword [ebp - 0x1c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00407dbc
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x472440
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4723d9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4723d0
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x419ac0]
call fcn.0041e28c
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00472444
mov eax, dword [ebp - 0x10]
call fcn.00403d88
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4723fa
call fcn.00404104
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x474574
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
push 0x474644
push 0x47465c
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47460f
mov eax, 2
call fcn.00402f5c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 1
call dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4745fd
mov eax, dword [ebp - 0xc]
call fcn.00402f78
mov eax, dword [ebp - 0x10]
add eax, 2
add eax, eax
call fcn.00402f5c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
add eax, 2
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00407dbc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00405668
jmp 0x474605
mov eax, dword [ebp - 4]
call fcn.0040551c
mov eax, dword [ebp - 0xc]
call fcn.00402f78
jmp 0x47463d
mov eax, 0x106
call fcn.00402f5c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00405638
mov eax, dword [ebp - 0xc]
call fcn.00402f78
mov esp, ebp
pop ebp
ret
Function at 0x4757f4
Capabilities:
Clear file content
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475a5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
je 0x47582c
mov dword [ebp - 8], 4
mov esi, 2
jmp 0x475838
mov dword [ebp - 8], 0xf001f
mov esi, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004051f8
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_OpenFileMappingA
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edi
test edi, edi
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], al
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x475929
test ebx, ebx
setne cl
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00475718
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
test ebx, ebx
jne 0x4758b0
test eax, eax
jne 0x4758a5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
jmp 0x475957
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
jmp 0x475957
mov edx, dword [ebp - 4]
cmp byte [edx + 0x30], 0
je 0x475903
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
je 0x4758f9
push 0x30
push 0x475a6c
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
lea edx, [ebp - 0x58]
xor ecx, ecx
mov eax, 0x475aa0
call fcn.0040a5f4
mov eax, dword [ebp - 0x50]
call fcn.004051f8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
jmp 0x475957
cmp eax, ebx
jbe 0x475921
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00409cb8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetEndOfFile
call fcn.0040e658
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
jmp 0x475957
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x475957
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetSystemInfo
test ebx, ebx
jne 0x475951
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x2c], edx
jmp 0x475957
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
xor eax, eax
push ebp
push 0x4759d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x4759b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004051f8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
push 0
push esi
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], ebx
test ebx, ebx
jne 0x4759b9
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov ecx, 0x475ae4
mov dl, 1
mov eax, dword [0x475408]
call fcn.0040cf58
call fcn.004046c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4759d7
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x497dc4
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x497e08
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x497e06
dec ecx
jne 0x497e08
cmp eax, 5
jne 0x497dfd
test edx, edx
jne 0x497dfd
xor ebx, ebx
jmp 0x497e08
cmp eax, 5
jl 0x497e08
mov bl, 1
jmp 0x497e08
xor ebx, ebx
mov eax, ebx
add esp, 0x94
pop ebx
ret