joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ac60
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [eax + 0x8c]
push edi
add ecx, 8
mov edi, 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4c3830]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4c3a30]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4c3c30]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x4c3e30]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4c3930]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4c3b30]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4c3d30]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x4c3f30]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4c3830]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4c3a30]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4c3c30]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x4c3e30]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4c3930]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4c3b30]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x4c3d30]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x4c3f30]
xor esi, ebx
dec edi
jne 0x46ac82
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x46fb10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b67e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4eb690]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x4eb690]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx]
push 1
push 0x4f1840
mov dword [esp + 0x28], edx
xor edx, edx
push edx
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
push eax
mov eax, dword [esi + 0x80]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.1.0
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048a346
mov esp, ebp
pop ebp
ret 8
Function at 0x4725f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6e80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4eb690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4d55d8
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00470320
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [ebp + 8]
call fcn.00470230
add esp, 8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00404120
lea ecx, [ebp - 0x10]
call fcn.0041abb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4726b3
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], esp
mov esi, esp
call fcn.004040a0
call fcn.00461100
push eax
mov ecx, esi
call fcn.00403bd0
mov edx, dword [edi + 8]
lea esi, [edi + 4]
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 8], edx
call fcn.00403300
mov eax, dword [esi]
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00403300
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push ecx
push edx
lea esi, [ebp - 0x1c]
call fcn.00473020
add esp, 0xc
mov ecx, esi
call fcn.00404120
lea ecx, [ebp - 0x10]
call fcn.00404120
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4752a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b163b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4eb690]
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
xor ebx, ebx
push ebx
push 2
mov edi, ecx
mov dword [ebp - 0x244], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x248], esi
mov dword [ebp - method.CGuardHandle.virtual_0], vtable.CGuardHandle.0
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004040a0
call fcn.00461100
push eax
lea ecx, [ebp - 0x240]
call fcn.00403bd0
lea eax, [ebp - 0x23c]
push eax
mov ebx, 0x22c
push esi
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x47534a
lea ecx, [ebp - 0x240]
call fcn.00404120
test esi, esi
je 0x475346
cmp esi, 0xffffffff
je 0x475346
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4753c6
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], ebx
call edi
test eax, eax
je 0x4753a5
lea ecx, [ebp - 0x240]
call fcn.0041abb0
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.0048aca6
add esp, 8
test eax, eax
je 0x475399
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], ebx
call edi
test eax, eax
jne 0x475364
jmp 0x4753a5
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x244], ecx
lea ecx, [ebp - 0x240]
call fcn.00404120
test esi, esi
je 0x4753c0
cmp esi, 0xffffffff
je 0x4753c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
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.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x4755c0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b67b1
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0041abb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x475799
push str..
lea eax, [ebp - 0x26c]
push edi
push eax
call fcn.00470320
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x47578e
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x238]
push 0x4d784c
push edx
call fcn.0048aca6
add esp, 8
test eax, eax
je 0x475705
lea eax, [ebp - 0x238]
push 0x4d7850
push eax
call fcn.0048aca6
add esp, 8
test eax, eax
je 0x475705
push 0x4d55d8
lea ecx, [ebp - 0x274]
push edi
push ecx
call fcn.00470320
add esp, 0xc
lea edx, [ebp - 0x238]
push edx
push eax
lea eax, [ebp - 0x268]
push eax
mov byte [ebp - 4], 1
call fcn.00470320
add esp, 0xc
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call fcn.00404120
push 0x20
lea ecx, [ebp - 0x268]
call fcn.0041abb0
push eax
call esi
test byte [ebp - 0x264], 0x10
lea ecx, [ebp - 0x268]
je 0x4756f1
push ecx
call fcn.004755c0
add esp, 4
jmp 0x4756f6
call fcn.004759e0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call fcn.00404120
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x475650
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
mov ecx, edi
call fcn.0041abb0
push eax
call esi
mov ecx, edi
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x475777
mov edx, dword [edi]
push edx
push str.REBOOT_DEL_DIR__s
call fcn.0040c130
mov esi, eax
call fcn.00471350
add esp, 8
push 4
push 0
mov ecx, edi
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x47578e
mov eax, dword [edi]
push eax
push str.DEL_DIR__s
call fcn.0040c130
mov esi, eax
call fcn.00471350
add esp, 8
lea ecx, [ebp - 0x26c]
call fcn.00404120
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x4757c0
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6d41
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4eb690]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push esi
mov eax, dword [0x4eb690]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.0041abb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4759ba
push str..
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00470320
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28c], 0
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x4759b1
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [esp + 0xf], 0
lea esp, [esp]
lea eax, [esp + 0x50]
push 0x4d784c
push eax
call fcn.0048aca6
add esp, 8
test eax, eax
je 0x475960
lea ecx, [esp + 0x50]
push 0x4d7850
push ecx
call fcn.0048aca6
add esp, 8
test eax, eax
je 0x475960
push 0x4d55d8
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.00470320
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x294], 1
call fcn.00470320
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 3
call fcn.00404120
push 0x20
lea ecx, [esp + 0x14]
call fcn.0041abb0
push eax
call ebx
test byte [esp + 0x24], 0x10
je 0x475907
lea eax, [esp + 0x10]
push eax
call fcn.004755c0
add esp, 4
jmp 0x47594f
mov ecx, dword [esp + 0x20]
call fcn.0041abb0
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.0048aca6
add esp, 8
test eax, eax
jne 0x475929
mov byte [esp + 0xf], 1
jmp 0x47594f
mov edx, dword [esp + 0x10]
push edx
push str.DEL__s
call fcn.0040c130
mov esi, eax
call fcn.00471350
add esp, 8
lea ecx, [esp + 0x10]
call fcn.004759e0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], 0
call fcn.00404120
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x475870
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
mov ecx, edi
call fcn.0041abb0
push eax
call ebx
cmp byte [esp + 0xf], 0
jne 0x4759b1
mov ecx, edi
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4759b1
push 4
push eax
mov ecx, edi
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x14]
call fcn.00404120
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x4759e0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6768
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4eb690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0041abb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x475a41
mov eax, dword [edi]
push eax
push 0x4d7d40
call fcn.0040c130
mov esi, eax
call fcn.00471350
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x475a7b
mov ecx, dword [edi]
push ecx
push str.DEL__s_SUC
call fcn.0040c130
mov esi, eax
call fcn.00471350
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x10]
call fcn.00470020
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0041abb0
push eax
mov ecx, edi
call fcn.0041abb0
push eax
call fcn.0048bf5d
mov edx, dword [ebp - 0x10]
add esp, 8
push edx
push str.REBOOT_DEL__s_SUC
call fcn.0040c130
mov esi, eax
call fcn.00471350
add esp, 8
push 4
push 0
lea ecx, [ebp - 0x10]
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x10]
call fcn.00404120
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x475ca0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b505b
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x130], esi
call fcn.00476590
test al, al
je 0x475d1f
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x154]
cmp ax, 9
je 0x475cfd
cmp ax, 6
jne 0x475d0e
push str.win10_64
mov ecx, edi
call fcn.00404020
jmp 0x475e32
push str.win10_32
mov ecx, edi
call fcn.00404020
jmp 0x475e32
push 0x11c
lea ecx, [ebp - 0x12c]
push esi
push ecx
call fcn.0048e940
add esp, 0xc
push str.error
lea ecx, [ebp - 0x130]
call fcn.00404020
lea edx, [ebp - 0x12c]
mov dword [ebp - 4], esi
push edx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x475e0f
mov eax, dword [ebp - 0x128]
sub eax, 5
je 0x475def
dec eax
jne case.default.0x475d83
mov eax, dword [ebp - 0x124]
cmp eax, 3
ja case.default.0x475d83
jmp dword [eax*4 + 0x475e5c]
cmp byte [ebp - 0x12], 1
lea ecx, [ebp - 0x130]
jne 0x475e05
push str.Vista
jmp 0x475e0a
cmp byte [ebp - 0x12], 1
jne case.default.0x475d83
call fcn.004760f0
lea ecx, [ebp - 0x130]
test eax, eax
je 0x475dca
push str.win7_64
call fcn.00404000
push eax
lea esi, [ebp - 0x130]
call fcn.00470ce0
jmp 0x475e0f
push str.win7_32
call fcn.00404000
push eax
lea esi, [ebp - 0x130]
call fcn.00470ce0
jmp 0x475e0f
push str.Win8
lea ecx, [ebp - 0x130]
jmp 0x475e0a
mov eax, dword [ebp - 0x124]
sub eax, esi
je case.default.0x475d83
dec eax
je 0x475e4e
dec eax
jne 0x475e0f
lea ecx, [ebp - 0x130]
push str.other
call fcn.00404000
lea ecx, [ebp - 0x130]
call fcn.004040a0
call fcn.00461100
push eax
mov ecx, edi
call fcn.00403bd0
lea ecx, [ebp - 0x130]
call fcn.00404120
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret
push 0x4d7e24
lea ecx, [ebp - 0x130]
jmp 0x475e0a

Function at 0x4760f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x476116
cmp ax, 6
je 0x476116
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x476120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0048e940
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x476189
cmp dword [ebp - 0x11c], 6
jb 0x476189
cmp dword [ebp - 0x118], 2
jb 0x476189
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x4763c0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
mov esi, 0x100
push ecx
mov dword [ebp - 0x60c], esi
mov word [ebp - 0x204], ax
call fcn.0048e940
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x402]
push eax
mov word [ebp - 0x404], dx
call fcn.0048e940
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x602]
push edx
mov word [ebp - 0x604], cx
call fcn.0048e940
add esp, 0x24
lea eax, [ebp - 0x608]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x608], esi
mov dword [ebp - 0x614], esi
mov dword [ebp - 0x610], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
pop esi
test eax, eax
jne 0x47647b
push str.Fail_To_Get_UserName_n
call fcn.0048d15b
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x476484
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x608], eax
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x604]
push ecx
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x47646b
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47646b
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0x404]
push edi
push ecx
call fcn.00476290
add esp, 0xc
test eax, eax
je 0x47646b
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0048a346
mov esp, ebp
pop ebp
ret

Function at 0x476630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.0048e940
add esp, 0xc
push 0
push 0x25
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, esi
test eax, eax
je 0x47668d
lea eax, [ebp - 0x20c]
push eax
jmp 0x476692
push 0x4d1550
call fcn.00404020
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x476d00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4f82
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
push 0x258
mov dword [ebp - 0x270], eax
push eax
mov edi, edx
lea eax, [ebp - 0x26a]
xor edx, edx
push eax
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x274], ecx
mov word [ebp - 0x26c], dx
call fcn.0048e940
add esp, 0xc
mov ecx, edi
call fcn.0041abb0
push eax
push 0x12c
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, dword [ebp - 0x274]
push 0x4d1550
call fcn.0041abb0
push eax
mov ecx, ebx
call fcn.0041abb0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x26c]
push edx
mov ecx, esi
call fcn.00404020
push 0x4d7ef0
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x270], 1
call fcn.00476760
mov edi, eax
call fcn.004766b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret 4
Function at 0x4770a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4ebb
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.004a8620
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2020]
push eax
push 0x20019
mov dword [ebp - 0x201c], 0
push 0
mov dword [ebp - 0x2024], 0x20019
call fcn.0041abb0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4771c0
xor ecx, ecx
push 0x2000
push ecx
lea edx, [ebp - 0x2012]
push edx
mov word [ebp - 0x2014], cx
call fcn.0048e940
add esp, 0xc
lea eax, [ebp - 0x201c]
push eax
lea ecx, [ebp - 0x2014]
push ecx
lea edx, [ebp - 0x2024]
push edx
push 0
mov ecx, edi
mov dword [ebp - 0x201c], 0x1000
call fcn.0041abb0
push eax
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4771c0
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2018]
call fcn.00403540
lea edx, [ebp - 0x2014]
push edx
push 0x4d8148
lea edx, [ebp - 0x2018]
mov dword [ebp - 4], 0
call fcn.004767f0
add esp, 8
lea ecx, [ebp - 0x2018]
call fcn.004040a0
call fcn.00461100
push eax
mov ecx, esi
call fcn.00403bd0
lea ecx, [ebp - 0x2018]
call fcn.00404120
jmp 0x4771cc
push 0x4d1550
mov ecx, esi
call fcn.00404020
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret
Function at 0x4774e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4e0b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x4eb690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xffffff00
lea eax, [ebp - 0x81c]
add edx, 0x200
push eax
or edx, 0x20019
push edx
push 0
mov dword [ebp - 0x820], 0
call fcn.0041abb0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47755e
push 0x4d1550
mov ecx, esi
call fcn.00404020
jmp 0x47760d
xor eax, eax
push 0x800
push eax
lea ecx, [ebp - 0x812]
push ecx
mov word [ebp - 0x814], ax
call fcn.0048e940
add esp, 0xc
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x820], 0x400
call fcn.00403540
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0x814]
push eax
push 0
push 0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0041abb0
mov ecx, dword [ebp - 0x81c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4775dd
lea edx, [ebp - 0x814]
push edx
push 0x4d8148
lea edx, [ebp - 0x818]
call fcn.004767f0
add esp, 8
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x818]
call fcn.004040a0
call fcn.00461100
push eax
mov ecx, esi
call fcn.00403bd0
lea ecx, [ebp - 0x818]
call fcn.00404120
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a346
mov esp, ebp
pop ebp
ret

Function at 0x477630
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x477658
cmp ax, 6
jne 0x477699
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4776ca
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4776c3
mov ecx, dword [ebp + 8]
push 0
push 0x100
push ebx
push ecx
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4776ca
push str.RegDeleteKeyW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4776c3
mov edx, dword [ebp + 8]
push ebx
push edx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret