joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x58a87c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.004f1ee0
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4ee65e
xor al, al
jmp 0x4ee6b7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4ee690
cmp dword [ebp - 0x418], 0
je 0x4ee68c
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x4ee6b7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00406d80
cmp dword [ebp - 0x418], 0
je 0x4ee6b5
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef136
mov esp, ebp
pop ebp
ret

Function at 0x4ee900
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x3c
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004f1ee0
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp + 0x20], 0
je 0x4ee931
mov edx, dword [ebp + 0x20]
mov dword [ebp - 4], edx
jmp 0x4ee93a
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4ee990
cmp dword [ebp - 0x24], 0x20
jbe 0x4ee982
mov dword [ebp - 8], 1
jmp 0x4ee989
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
jmp 0x4ee9a3
cmp dword [ebp + 0x18], 0
je 0x4ee9a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4eeb30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4eeb97
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4eeb80
jne 0x4eeb97
cmp dword [esp + 8], 0
jbe 0x4eeb97
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004ef136
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004ef136
add esp, 0x118
ret
Function at 0x4eebb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4eec05
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004ef136
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004ef136
add esp, 0x118
ret

Function at 0x4eec30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4eec85
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004ef136
add esp, 0x118
ret
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004ef136
add esp, 0x118
ret

Function at 0x4eecb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
mov dword [esp + 4], 0x11c
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4eed26
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x4eed0f
jne 0x4eed26
mov eax, dword [esp + 8]
cmp eax, 1
ja 0x4eed0f
jne 0x4eed26
cmp word [esp + 0x114], 1
jb 0x4eed26
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004ef136
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.004ef136
add esp, 0x120
ret

Function at 0x4eed40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4eeda7
mov eax, dword [esp + 4]
cmp eax, 6
jbe 0x4eed9e
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004ef136
add esp, 0x118
ret
jb 0x4eeda7
cmp dword [esp + 8], 2
jae 0x4eed87
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004ef136
add esp, 0x118
ret
Function at 0x4eedc0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x58a854], 0
jne 0x4eee42
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eee23
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x58a844
call fcn.00407120
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004ef136
add esp, 0x214
ret

Function at 0x4eefd0
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x540b38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x58a87c]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x58edb4]
test eax, eax
jle 0x4ef021
inc eax
mov dword [0x58edb4], eax
mov al, 1
jmp 0x4ef113
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0042a070
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042ac90
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042a0f0
test bl, bl
je 0x4ef103
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4ef103
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x4ef0fc
inc dword [0x58edb4]
mov eax, dword [edi]
test eax, eax
je 0x4ef0a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x58a86c], 0
mov dword [ebp - 0x10], 0
jne 0x4ef0fc
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x58a85c
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.00406d80
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4ef111
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004ef136
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x50849e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050815e
Function at 0x51ce00
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x41c
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x42c]
push edi
mov edi, ecx
test ebx, ebx
jne 0x51ce2f
xor al, al
jmp 0x51ce67
mov eax, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
or eax, 0x20019
mov dword [esp + 0x10], 0
push eax
push esi
push ebx
mov ecx, edi
call fcn.0051d3a0
test al, al
je 0x51ce65
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
je 0x51ce81
mov byte [edi + 1], 1
mov al, 1
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ef136
add esp, 0x41c
ret 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51ce8b
mov eax, dword [esi]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x51ce65
cmp dword [esi + 0x14], 8
jb 0x51ce9f
mov esi, dword [esi]
push 0x412
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004f1ee0
lea ecx, [esp + 0x1c]
add esp, 0xc
mov eax, ecx
mov edx, 0x208
sub esi, eax
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x51cede
movzx eax, word [esi + ecx]
test ax, ax
je 0x51cede
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x51cec0
push dword [edi + 4]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0051d6b0
add esp, 0xc
test eax, eax
setne al
jmp 0x51ce67
Function at 0x51d1e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542690
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x58a87c]
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]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ebx
test ebx, ebx
jne 0x51d221
xor al, al
jmp 0x51d2dc
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x51d250
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x44], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d280
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407120
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push ebx
call fcn.0051d4a0
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406de0
test bl, bl
je 0x51d2c9
cmp byte [edi], 0
je 0x51d2fa
mov byte [edi + 1], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00406de0
mov al, bl
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.004ef136
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x14], 8
jb 0x51d302
mov esi, dword [esi]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x51d2c9
xor bl, bl
jmp 0x51d2cb
Function at 0x51d6b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x58a87c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x228]
push 0x208
push 0
push eax
call fcn.004f1ee0
add esp, 0xc
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x51d71d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x234]
or eax, 0x20019
push eax
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x51d739
cmp eax, 2
jne 0x51d83f
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004ef136
add esp, 0x21c
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x51d75c
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x51d81e
push esi
lea esi, [esp + 0x20]
sub esi, edi
nop dword [eax]
nop dword [eax + eax]
mov edx, 0x208
mov eax, edi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x51d7ce
movzx ecx, word [esi + eax]
test cx, cx
je 0x51d7ce
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x51d7b0
push dword [esp + 0x238]
lea ecx, [eax - 2]
test edx, edx
push ebx
cmovne ecx, eax
xor eax, eax
push ebp
mov word [ecx], ax
call fcn.0051d6b0
add esp, 0xc
test eax, eax
je 0x51d81d
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x51d7a0
pop esi
xor eax, eax
mov word [edi - 2], ax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
je 0x51d71d
mov ecx, dword [esp + 0x220]
xor eax, eax
pop ebp
pop ebx
xor ecx, esp
call fcn.004ef136
add esp, 0x21c
ret
Function at 0x51d880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5426f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x58a87c]
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 eax, ecx
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x51d8c7
xor al, al
jmp 0x51d9a7
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push edi
mov ecx, eax
call fcn.0051d4a0
test al, al
je 0x51d958
cmp byte [ebp + 0x14], 0
je 0x51d91b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00411a80
add esp, 8
test al, al
je 0x51d958
mov bl, 1
jmp 0x51d996
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x51d925
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
cmp edx, dword [esi + 0x10]
jne 0x51d955
test edx, edx
je 0x51d951
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x51d955
add ecx, 2
sub edx, 1
jne 0x51d940
mov bl, 1
jmp 0x51d996
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
je 0x51d968
mov byte [eax + 1], 1
mov bl, 1
jmp 0x51d996
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x51d973
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x51d97b
mov ebx, dword [ebx]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x51d951
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406de0
mov al, bl
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.004ef136
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51d9f0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
lea ebx, [edi - 2]
test ebx, ebx
jle 0x51da7d
mov edi, dword [esp + 0x18]
nop dword [eax + eax]
movzx ecx, byte [edi + esi]
shr ecx, 2
movzx ecx, byte [ecx + 0x54e3f8]
mov byte [eax], cl
movzx edx, byte [edi + esi]
movzx ecx, byte [edi + esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x54e3f8]
mov byte [eax + 1], cl
movzx edx, byte [edi + esi + 1]
movzx ecx, byte [edi + esi + 2]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + 0x54e3f8]
mov byte [eax + 2], cl
movzx ecx, byte [edi + esi + 2]
add esi, 3
and ecx, 0x3f
movzx ecx, byte [ecx + 0x54e3f8]
mov byte [eax + 3], cl
add eax, 4
cmp esi, ebx
jl 0x51da10
mov edi, dword [esp + 0x1c]
cmp esi, edi
jge 0x51dade
mov ebx, dword [esp + 0x18]
movzx ecx, byte [esi + ebx]
shr ecx, 2
mov cl, byte [ecx + 0x54e3f8]
mov byte [eax], cl
lea ecx, [edi - 1]
movzx edx, byte [esi + ebx]
and edx, 3
shl edx, 4
cmp esi, ecx
jne 0x51dab2
mov cl, byte [edx + 0x54e3f8]
mov dl, 0x3d
mov byte [eax + 1], cl
jmp 0x51dad4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
or ecx, edx
mov cl, byte [ecx + 0x54e3f8]
mov byte [eax + 1], cl
movzx ecx, byte [esi + ebx + 1]
and ecx, 0xf
mov dl, byte [ecx*4 + 0x54e3f8]
mov byte [eax + 2], dl
mov byte [eax + 3], 0x3d
add eax, 4
pop edi
mov byte [eax], 0
sub eax, ebp
pop esi
pop ebp
inc eax
pop ebx
ret

Function at 0x51de50
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x5427a9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x58a87c]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x218]
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov word [ebp], ax
mov word [ebp + 0x208], ax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x21c]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x51df0a
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x51def9
push 0x104
lea eax, [ebp]
push eax
push 0x8000
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0051dd10
add esp, 0x14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x51df0a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51df23
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407120
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x51df57
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004ef136
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rdata
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4d7220bc
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1d8712e2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10002d20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10003bdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 3
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x12c]
add esi, 0xec
push eax
push esi
lea ecx, [esp + 0x10]
push str._s_s
push ecx
mov byte [esp + 0x12c], 4
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x138]
add esp, 0x10
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x134]
push 0x104
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10002ded
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xc], 1
jmp 0x10002e04
lea ecx, [esp + 0x128]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 3
call fcn.1000327e
lea ecx, [esp + 0x128]
mov byte [esp + 0x11c], 2
call fcn.1000327e
lea ecx, [esp + 0x12c]
mov byte [esp + 0x11c], 1
call fcn.1000327e
lea ecx, [esp + 0x130]
mov byte [esp + 0x11c], 0
call fcn.1000327e
mov ecx, dword [esp + 0x114]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 0x10
Function at 0x402fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x462020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40307c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40305c
xor eax, eax
push ebp
push 0x403055
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403098
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40305c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x462020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x462020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46404c], 0
je 0x403da9
cmp word [0x464220], 0xd7b2
jne 0x403d71
cmp dword [0x464228], 0
jbe 0x403d71
mov eax, 0x46421c
call dword [0x464238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46206c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dd0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462030], 0
jne 0x403dc5
push 0
push 0x462064
push 0x46206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret