joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407088
xor eax, eax
push ebp
push 0x409895
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4096f0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40970a
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040712c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40987f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409799
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409799
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409799
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40990c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40987f
xor eax, eax
push ebp
push 0x409878
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004094b4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409808
mov eax, dword [ebp - 0x10]
call fcn.004041b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040725c
jmp 0x409853
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40994c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409853
mov eax, dword [ebp - 0x10]
call fcn.004041b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40994c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040725c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40987f
cmp dword [ebp - 8], 0
je 0x40986e
mov eax, dword [ebp - 8]
call fcn.004041d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40989c
lea eax, [ebp - 4]
call fcn.00407090
ret
Function at 0x409b60
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407088
mov eax, dword [ebp - 0x21c]
call fcn.00407088
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409cff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004070a0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0040712c
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409c00
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409c12
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409bfd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409ccb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409c3b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004096b0
cmp dword [ebp - 0x220], 0
je 0x409c73
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409a54
pop ecx
mov ebx, eax
jmp 0x409ccb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040936c
mov eax, dword [ebp - 0x224]
call fcn.00409a54
pop ecx
mov ebx, eax
test bl, bl
jne 0x409cbe
cmp byte [0x4bfb50], 0
jne 0x409cbe
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040936c
mov eax, dword [ebp - 0x228]
call fcn.00409a54
pop ecx
mov ebx, eax
test bl, bl
jne 0x409ccb
push ebp
call fcn.00409b04
pop ecx
mov ebx, eax
test bl, bl
je 0x409ce1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d06
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407098
ret

Function at 0x40c8ec
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x4bc688]
mov byte [eax], 1
mov edx, dword [0x40b794]
xor eax, eax
call fcn.0040ba70
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x40c8dc
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x40ca2c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x40ca47
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x40ca56
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret
Function at 0x40e648
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
and dword [ebx + 0x24], 0xefffffff
test dl, dl
je 0x40e65d
or dword [ebx + 0x24], 0x10000000
cmp dword [ebx + 0x1c], 0
je 0x40e693
test dl, dl
je 0x40e67c
mov eax, ebx
call dword [0x49bab8]
push 5
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
jmp 0x40e693
and byte [ebx + 0x37], 0xfe
push 0
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call dword [0x49bab8]
pop ebx
ret

Function at 0x4119a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4bfed8
push 0xa
push 0x411a34
mov eax, dword [0x4bfc38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x4119c4
call fcn.0041cd40
push ebx
mov eax, dword [0x4bfc38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x4119db
call fcn.0041cd40
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4119ed
call fcn.0041cd40
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4bfedc], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4bfee0], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4bfee4], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4bfee8], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4bfeec], ecx
add edx, dword [eax + 0x14]
mov dword [0x4bfef0], edx
pop esi
pop ebx
ret

Function at 0x415448
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4154f1
test eax, edx
je 0x4154f4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x415471
push edx
mov edx, eax
mov eax, esp
call fcn.004072b4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x415487
push eax
lea eax, [esp + 8]
call fcn.004072b4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x415496
movzx eax, word [eax]
sub eax, ecx
jmp 0x4154bd
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4154d7
add ecx, 4
js 0x4154ae
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4154d4
push eax
mov eax, ecx
mov edx, 2
call fcn.004062c4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4154bb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4154bd
xor eax, eax
ret
test eax, eax
je 0x415504
test edx, edx
jne 0x415458
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x416530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040712c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41654e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41656f
cmp ebx, 3
je 0x41656f
cmp ebx, 0x7b
je 0x41656f
mov eax, esi
call fcn.004164f0
test al, al
jne 0x416573
xor eax, eax
jmp 0x416575
mov al, 1
pop esi
pop ebx
ret
Function at 0x416578
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040712c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x416591
test al, 0x10
jne 0x416595
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x419cdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x419d15
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004071dc
jmp 0x419d1e
mov eax, ebx
mov edx, esi
call fcn.004070a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419d28
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x419d4a
movzx eax, word [esp]
jmp 0x419d4c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41a62c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41a751
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041a43c
mov esi, eax
mov eax, dword [0x4bc910]
cmp byte [eax], 0
je 0x41a6f9
mov eax, dword [0x4bc6d8]
call fcn.004046d8
call fcn.00404300
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41a604]
call fcn.00408a78
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41a76c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41a735
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4bc690]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bfc38]
call fcn.00408b3c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a758
lea eax, [ebp - 4]
mov edx, dword [0x41a604]
call fcn.00408a84
ret
Function at 0x41cb6f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406650
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41cb92
mov eax, edi
add eax, eax
call fcn.004041b8
mov esi, eax
jmp 0x41cb94
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41cbcd
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41cbb7
mov eax, esp
cmp esi, eax
je 0x41cbda
mov eax, esi
call fcn.004041d4
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41cc14
cmp bl, 0
je 0x41cc10
cmp bl, 0x41
jl 0x41cc0b
cmp bl, 0x5a
jg 0x41cc0b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41cbef
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41cb54

Function at 0x41d39c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.004070a0
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040712c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x41d3e3
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004071dc
jmp 0x41d3fc
mov edx, ebx
dec edx
mov eax, esi
call fcn.00407414
push ebx
mov eax, dword [esi]
call fcn.0040712c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b150
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43b1ee
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43b1b2
cmp byte [ebx + 0x10], 0
jne 0x43b1b2
cmp byte [ebx + 0x3c], 0
jne 0x43b1b2
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x43b1d3
lea edx, [ebp - 4]
mov eax, dword [0x4bc8c8]
call fcn.0040a474
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42eebc]
call fcn.0041a798
call fcn.00405ad8
jmp 0x43b1d3
lea edx, [ebp - 8]
mov eax, dword [0x4bc8c8]
call fcn.0040a474
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42eebc]
call fcn.0041a798
call fcn.00405ad8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b1f5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407098
ret
Function at 0x43b4e4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x43b532
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043b0d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43b54b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43b554
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043b0d4
dec esi
jne 0x43b576
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x43d078
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x43d0aa
inc ecx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, 0xff
mov esi, dword [0x4bc7ec]
mov ebx, dword [esi + ebx*4]
shr eax, 8
and eax, 0xffffff
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
jne 0x43d086
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43d3b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
movzx edx, dl
mov ecx, dword [eax + 4]
xor edx, ecx
and edx, 0xff
mov ebx, dword [0x4bc7ec]
mov ebx, dword [ebx + edx*4]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ecx
mov dword [eax + 4], ebx
and ebx, 0xff
add dword [eax + 8], ebx
imul edx, dword [eax + 8], 0x8088405
inc edx
mov dword [eax + 8], edx
shr edx, 0x18
mov ecx, dword [eax + 0xc]
xor edx, ecx
and edx, 0xff
mov ebx, dword [0x4bc7ec]
mov edx, dword [ebx + edx*4]
shr ecx, 8
and ecx, 0xffffff
xor edx, ecx
mov dword [eax + 0xc], edx
pop ebx
ret

Function at 0x43d49c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x11]
mov ecx, 0xc
xchg edx, eax
call fcn.00434ea8
mov edi, 0xc
lea esi, [ebp - 0x11]
mov eax, dword [ebp - 4]
call fcn.0043d394
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0043d3b0
mov byte [esi], bl
inc esi
dec edi
jne 0x43d4c1
cmp byte [ebp - 5], 0
je 0x43d4f2
movzx eax, word [ebp + 8]
shr eax, 8
cmp al, byte [ebp - 6]
sete al
jmp 0x43d504
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movzx eax, ax
shr eax, 8
cmp al, byte [ebp - 6]
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44ae1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407088
mov eax, dword [ebp - 0xc]
call fcn.004069e0
xor eax, eax
push ebp
push 0x44aefc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00407090
mov edx, eax
lea eax, [ebp - 4]
call fcn.0044c3f0
mov eax, dword [ebp - 4]
call fcn.0044e614
mov ebx, eax
test ebx, ebx
je 0x44aed9
cmp dword [ebp - 0xc], 0
jne 0x44ae8c
push 0
push 0
push 3
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegSetValueExW
jmp 0x44aed9
lea eax, [ebp - 0xc]
call fcn.00406a68
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x44aeb6
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x44aeb6
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004064bc
mov esi, eax
test esi, esi
je 0x44aec1
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x10]
push eax
push 3
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegSetValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44af03
lea eax, [ebp - 0xc]
call fcn.004062a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407098
ret

Function at 0x44af0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407088
xor eax, eax
push ebp
push 0x44afee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004062a0
lea eax, [ebp - 8]
call fcn.00407090
mov edx, eax
lea eax, [ebp - 4]
call fcn.0044c3f0
mov eax, dword [ebp - 4]
call fcn.0044e614
mov ebx, eax
test ebx, ebx
je 0x44afd3
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [ebp - 0xc], 3
jne 0x44afcd
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00406c64
cmp dword [ebp - 0x10], 0
je 0x44afcd
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00406a68
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44aff5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407098
ret
Function at 0x44b1c4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf8
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004070a0
mov eax, esp
xor ecx, ecx
mov edx, 0x208
call fcn.004047e8
push esp
push 0
push 0
push esi
push 0
call sub.shell32.dll_SHGetFolderPathW
test eax, eax
jne 0x44b21d
push esp
call sub.kernel32.dll_lstrlenW_1
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00407414
mov eax, ebx
call fcn.00407a18
mov edx, eax
mov ecx, esi
add ecx, ecx
mov eax, esp
call fcn.00404350
add esp, 0x208
pop esi
pop ebx
ret

Function at 0x44b2c8
Capabilities:
Get process image filename

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov edi, eax
mov eax, ebx
mov edx, 0x104
call fcn.00407414
mov eax, dword [ebx]
mov dword [esp], eax
mov esi, dword [esp]
test esi, esi
je 0x44b2ed
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebx]
call fcn.0040712c
push eax
push edi
call sub.psapi.dll_GetProcessImageFileNameW
mov edx, ebx
xchg edx, eax
call fcn.00407414
mov edx, dword [ebx]
mov ax, 0x5c
call fcn.0044e6c0
mov edx, ebx
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.00407948
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44b478
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407088
xor eax, eax
push ebp
push 0x44b5c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
je 0x44b5a9
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x44b4cc
mov eax, ebx
sub eax, 0xa
cmp word [eax], 2
je 0x44b4cc
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040648c
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x44b4e9
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x44b4e9
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040648c
test eax, eax
je 0x44b4f2
sub eax, 4
mov eax, dword [eax]
cmp word [ebx + eax*2 - 2], 0x5c
je 0x44b507
lea eax, [ebp - 4]
mov edx, 0x44b5e4
call fcn.004074ac
mov eax, dword [ebp - 4]
test eax, eax
je 0x44b524
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x44b524
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040648c
test eax, eax
je 0x44b52d
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x44b5a5
mov ebx, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x44b555
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x44b555
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040648c
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x44b5a1
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00407878
mov eax, dword [ebp - 8]
call fcn.0040712c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x44b594
push 0
push edi
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x44b5a1
jmp 0x44b5a9
test al, 0x10
jne 0x44b5a1
push 0x50
call sub.kernel32.dll_SetLastError
jmp 0x44b5a9
inc ebx
dec esi
jne 0x44b538
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b5cb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407098
ret