joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bfd0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3c98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x2c]
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x4e3844
mov dword [esp + 0x18], esi
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
push esi
push 0x80
push 2
push esi
push 1
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0x14]
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c09d
cmp dword [ebp + 0x18], 0
jne 0x41c065
mov ebx, dword [ebx]
lea eax, [esp + 0x2c]
call fcn.0041a4d0
mov edi, dword [esp + 0x2c]
mov eax, dword [edi - 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
jmp 0x41c080
mov edx, esi
call fcn.0041c0e0
test eax, eax
je 0x41c090
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x18]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov ebx, 1
jne 0x41c094
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c0a1
mov ebx, dword [esp + 0x18]
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c0c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x41c0e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
xor esi, esi
push esi
lea eax, [esp + 0xc]
push eax
push 2
lea ecx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], 0xfe
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
lea eax, [esi + 1]
jne 0x41c111
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x41c120
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push connect
push eax
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c192
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 2
jb 0x41c18b
push edi
lea ecx, [esp + 0x10]
push ecx
push 2
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c18b
cmp byte [esp + 8], 0xff
jne 0x41c18b
cmp byte [esp + 9], 0xfe
jne 0x41c18b
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x41c490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
je 0x41c567
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x41c4dd
cmp eax, 2
jne 0x41c567
call fcn.004017f0
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x41c508
mov eax, esi
call fcn.004012e0
mov edi, dword [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x41c537
mov edx, dword [esp + 0x20]
shr edx, 1
mov word [edi + edx*2], ax
mov dword [esp + 0x14], 1
mov edx, dword [esi]
test edx, edx
jne 0x41c541
xor eax, eax
jmp 0x41c557
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c546
sub eax, edi
sar eax, 1
js 0x41c575
cmp eax, dword [edx - 8]
jg 0x41c575
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x80070057
call fcn.004013e0
int3

Function at 0x41c990
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b61e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00401400
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x41ca4a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x41ca4a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x41ca4a
lea ecx, [esp + 0x14]
call fcn.0041c8e0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x41ca2b
lea ecx, [esp + 0x14]
call fcn.00401850
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.0041c990
add esp, 4
test eax, eax
je 0x41ca0c
push 0
push esi
call edi
test eax, eax
jne 0x41ca4a
call ebx
cmp eax, 0xb7
jne 0x41ca0c
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x41ca6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41ce20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ce8e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x41ce5f
cmp eax, 2
jne 0x41ce7a
test esi, esi
mov eax, dword [esp]
je 0x41ce88
test eax, eax
je 0x41ce83
test al, 1
jne 0x41ce7a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41ce88
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x41cf00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b3c19
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [edi], eax
xor ecx, ecx
mov eax, 0x104
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 1
neg ecx
or ecx, eax
push ecx
call fcn.004929e2
mov esi, eax
add esp, 4
test esi, esi
je 0x41cfdb
push 0x208
push 0
push esi
call fcn.0049a440
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x104
push esi
push 0x4c1efc
push str.Version
push 0x4c9d4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cfb7
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
mov eax, edi
call fcn.00401750
push esi
call fcn.004935c5
add esp, 4
jmp 0x41d000
mov eax, 0x4c1efc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cfe3
sub eax, edx
sar eax, 1
mov ebx, eax
push 0x4c1efc
mov eax, edi
call fcn.00401750
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x41dfd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b3089
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], 0
mov ecx, 1
mov dword [esp + 0xc], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x41e047
mov ecx, 0x104
mov eax, esi
call fcn.004012e0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, dword [esp + 0x28]
push ecx
push 0x104
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push str.product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esi]
test ecx, ecx
jne 0x41e073
xor eax, eax
jmp 0x41e091
mov eax, ecx
lea ebx, [eax + 2]
jmp 0x41e080
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41e080
sub eax, ebx
sar eax, 1
js 0x41e0b7
cmp eax, dword [ecx - 8]
jg 0x41e0b7
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 0x10
push 0x80070057
call fcn.004013e0
int3

Function at 0x41e8d0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x41e95f
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x41e95f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x18]
push str.EnumProcesses
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.GetModuleBaseNameW
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0x18]
push str.GetModuleFileNameExW
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push str.GetProcessImageFileNameW
push eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x10], eax
pop edi
je 0x41e95a
cmp dword [esi + 4], 0
je 0x41e95a
cmp dword [esi + 8], 0
je 0x41e95a
cmp dword [esi + 0xc], 0
je 0x41e95a
test eax, eax
je 0x41e95a
mov eax, 1
mov dword [esi + 0x14], eax
ret
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
ret
Function at 0x41ed20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4d5380
push 0x49bb30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x41edce
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x41edce
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x41edce
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0041edf1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eeb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x41eeff
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41eeff
cmp dword [esp + 0x10], 4
jne 0x41eeff
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
lea eax, [esi + 1]
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x41ef10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x41ef2c
mov eax, dword [ebp - 4]
jmp 0x41f007
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x41efe2
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov edi, edi
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c6f98]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c6f98]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c6f98]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c6f98]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c6f98]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c6f98]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c6f98]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4c6f98]
dec ebp
jne 0x41ef4c
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x41effe
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4c6f98]
dec ecx
jne 0x41efec
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f010
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x5c], eax
push 0x58
lea eax, [esp + 4]
push 0
push eax
call fcn.0049a440
mov eax, dword [ebp + 8]
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.0041f090
add esp, 0x10
mov edx, esi
lea ecx, [esp]
call fcn.0041f130
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004935b6
mov esp, ebp
pop ebp
ret
Function at 0x424b40
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.0049a440
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea edx, [esp + 4]
push 0x104
push edx
call fcn.00493df5
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x4e4a70], eax
je 0x424d32
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
mov ecx, dword [0x4e4a70]
push str.WinHttpConnect
push ecx
mov dword [0x4e4a14], eax
call esi
mov edx, dword [0x4e4a70]
push str.WinHttpOpenRequest
push edx
mov dword [0x4e4a18], eax
call esi
mov dword [0x4e4a1c], eax
mov eax, dword [0x4e4a70]
push str.WinHttpAddRequestHeaders
push eax
call esi
mov ecx, dword [0x4e4a70]
push str.WinHttpSendRequest
push ecx
mov dword [0x4e4a20], eax
call esi
mov edx, dword [0x4e4a70]
push str.WinHttpReceiveResponse
push edx
mov dword [0x4e4a24], eax
call esi
mov dword [0x4e4a28], eax
mov eax, dword [0x4e4a70]
push str.WinHttpQueryHeaders
push eax
call esi
mov ecx, dword [0x4e4a70]
push str.WinHttpReadData
push ecx
mov dword [0x4e4a2c], eax
call esi
mov edx, dword [0x4e4a70]
push str.WinHttpCloseHandle
push edx
mov dword [0x4e4a30], eax
call esi
mov dword [0x4e4a34], eax
mov eax, dword [0x4e4a70]
push str.WinHttpCrackUrl
push eax
call esi
mov ecx, dword [0x4e4a70]
push str.WinHttpSetOption
push ecx
mov dword [0x4e4a38], eax
call esi
mov edx, dword [0x4e4a70]
push str.WinHttpSetTimeouts
push edx
mov dword [0x4e4a3c], eax
call esi
cmp dword [0x4e4a14], 0
mov dword [0x4e4a40], eax
pop esi
je 0x424d16
cmp dword [0x4e4a20], 0
je 0x424d16
cmp dword [0x4e4a34], 0
je 0x424d16
cmp dword [0x4e4a18], 0
je 0x424d16
cmp dword [0x4e4a1c], 0
je 0x424d16
cmp dword [0x4e4a2c], 0
je 0x424d16
cmp dword [0x4e4a30], 0
je 0x424d16
cmp dword [0x4e4a28], 0
je 0x424d16
cmp dword [0x4e4a24], 0
je 0x424d16
cmp dword [0x4e4a38], 0
je 0x424d16
cmp dword [0x4e4a3c], 0
je 0x424d16
test eax, eax
je 0x424d16
mov eax, 1
mov dword [0x4e4a10], eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004935b6
add esp, 0x20c
ret
xor eax, eax
mov dword [0x4e4a10], eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004935b6
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
mov eax, dword [0x4e4a10]
xor ecx, esp
call fcn.004935b6
add esp, 0x20c
ret

Function at 0x425990
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
test esi, esi
push edi
mov edi, ecx
je 0x4259ea
push ebx
lea ecx, [ecx]
movzx ecx, byte [edi]
mov dx, ax
shr dx, 0xc
movzx edx, dl
mov ebx, ecx
shl eax, 4
shr ebx, 4
xor edx, ebx
xor ax, word [edx*2 + 0x4c51f0]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x4c51f0]
sub esi, 1
add edi, 1
test esi, esi
movzx eax, ax
jne 0x4259a0
pop ebx
pop edi
pop esi
ret
Function at 0x4262c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b3ba2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x22c], edi
mov dword [esp + 0x10], edi
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x4e3844
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
push 0x206
lea eax, [esp + 0x1e]
mov dword [esp + 0x230], edi
push edi
push eax
mov dword [esp + 0x1c], 1
mov word [esp + 0x24], di
call fcn.0049a440
add esp, 0xc
push 0x104
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x426360
sub eax, edx
sar eax, 1
lea edx, [esp + 0x18]
mov ebx, eax
push edx
mov eax, esi
call fcn.00401750
call fcn.004261a0
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004935b6
add esp, 0x220
ret

Function at 0x426530
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0049a440
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x42658b
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
je 0x42664a
mov eax, dword [esp + 0x18]
mov edx, 1
sub eax, edx
je 0x426635
sub eax, edx
je 0x4265a7
xor esi, esi
jmp 0x42664a
mov eax, dword [esp + 0xc]
cmp eax, 6
mov ecx, dword [esp + 0x10]
jne 0x4265e1
cmp ecx, edx
jne 0x4265cb
xor eax, eax
cmp byte [esp + 0x122], dl
setne al
add eax, 8
mov esi, eax
jmp 0x42664a
test ecx, ecx
jne 0x426619
cmp byte [esp + 0x122], dl
setne cl
lea ecx, [ecx + ecx + 7]
mov esi, ecx
jmp 0x42664a
cmp eax, 5
jne 0x426608
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x4265f4
lea esi, [eax + 3]
jmp 0x42664a
cmp eax, edx
jne 0x4265ff
mov esi, 6
jmp 0x42664a
test eax, eax
jne 0x42664a
lea esi, [eax + 3]
jmp 0x42664a
cmp eax, 4
ja 0x426614
mov esi, 4
jmp 0x42664a
cmp eax, 6
jb 0x42664a
cmp ecx, 2
jae 0x426623
cmp eax, 6
jbe 0x42664a
cmp byte [esp + 0x122], dl
jne 0x42664a
call fcn.004263b0
mov esi, eax
jmp 0x42664a
mov edx, dword [esp + 0x14]
and edx, 0xffff0000
cmp edx, 0x45a0000
sbb esi, esi
add esi, 2
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004935b6
add esp, 0x120
ret
Function at 0x427490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
push esi
push edi
mov ecx, str.TFEQTGUBU_cbuswme
lea edi, [esp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0
call fcn.0040c930
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x4274ca
mov eax, dword [eax + 4]
jmp 0x4274cd
add eax, 4
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esp + 0x2c], edi
mov esi, eax
jb 0x4274fa
mov edx, dword [esp + 0x18]
push edx
call fcn.004935b1
add esp, 4
pop edi
test esi, esi
pop esi
jne 0x42755a
mov edx, dword [esp]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.LogLevel
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42754c
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x427542
cmp eax, 3
jle 0x42753b
mov dword [0x4e1dac], 3
jmp 0x42754c
mov dword [0x4e1dac], eax
jmp 0x42754c
mov dword [0x4e1dac], 1
mov eax, dword [esp]
test eax, eax
je 0x42755a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0x28
ret