joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6860
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b6939
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b6954
push ebx
push 0x4b6964
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a284
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004072d4
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00409fac
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4b68e2
mov ax, 0x83
call fcn.004b6484
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004b6834
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4b68eb
call fcn.004b6834
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6940
lea eax, [ebp - 4]
call fcn.00409564
pop eax
jmp eax

Function at 0x4b6a54
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4b6b1d
jmp 0x4b6b11
cmp dword [esi + 0x10], 0x1000
jne 0x4b6aff
test byte [esi + 0x15], 1
jne 0x4b6aff
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4b6ab0
cmp ebp, 2
je 0x4b6ab0
cmp ebp, 0x10
je 0x4b6ab0
cmp ebp, 0x20
jne 0x4b6acc
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4b6acc
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4b6add
mov eax, dword [esi]
add eax, ebx
call fcn.004b6a4c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4b6ad0
cmp byte [esp + 4], 0
je 0x4b6aff
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4b6b1d
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4b6a85
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xde11b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00de1140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00de1140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00de1140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00de1140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xde1bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xde1c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xdf387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xde1c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xde1c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x2b195f56
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x4bca31e0
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x403e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x587978]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
xor ebp, ebp
push ecx
lea esi, [esp + 0x28]
mov edi, edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
call fcn.00406090
add esp, 8
cmp eax, ebp
jne 0x403f73
mov edx, dword [esp + 0xac]
mov eax, 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x70], eax
lea ebx, [ebx]
mov eax, 0x40000
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], eax
cmp dword [esp + 0xa8], ebp
ja 0x403eac
jb 0x403ea1
cmp dword [esp + 0xa4], eax
jae 0x403eac
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x403f5f
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x30]
call fcn.00405d90
mov esi, eax
mov eax, dword [esp + 0x20]
sub dword [esp + 0x1c], eax
add esp, 0x10
sub dword [esp + 0xa4], eax
sbb dword [esp + 0xa8], ebp
cmp esi, ebp
jne 0x403f5f
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x44], ecx
je 0x403f3d
cmp eax, ebp
jne 0x403f27
cmp edi, dword [esp + 0x44]
je 0x403f3d
push eax
mov eax, dword [ebx + 4]
push ebx
call eax
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x403e80
jmp 0x403f5f
cmp ecx, dword [esp + 0xac]
jne 0x403f5a
cmp dword [esp + 0xc], ebp
jne 0x403f5a
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x403f5f
cmp eax, 4
je 0x403f5f
mov esi, 1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004eaf3b
add esp, 0x90
ret
Function at 0x40b960
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ecx]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40b987
call fcn.0040b2f0
test eax, eax
js 0x40b994
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40cbf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b618
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x10]
mov dword [ebp - 0x14], edi
push edi
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call ebx
mov ecx, dword [esi + 4]
push ecx
call ebx
push 0
push 0
push esi
push 0x40ba70
push 0
push 0
call fcn.004ec6b8
add esp, 0x18
cmp byte [ebp + 8], 0
mov dword [esi + 8], eax
je 0x40cc73
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d3e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b618
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x718]
call fcn.0040b440
test al, al
jne 0x40d485
add esi, 0x5c0
push 0
mov ecx, esi
call fcn.0040cca0
test al, al
je 0x40d485
lea edi, [esi + 0x10]
mov dword [ebp - 0x14], edi
push edi
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call ebx
mov ecx, dword [esi + 4]
push ecx
call ebx
push 0
push 0
push esi
push 0x40ba70
push 0
push 0
call fcn.004ec6b8
add esp, 0x18
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e770
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516de8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x18]
push edi
mov dword [ebp - 0x1c], vtable.winhttp::locker_dm_cs.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
lea ecx, [esi + 0x30]
call fcn.0046b280
mov esi, eax
test esi, esi
je 0x40e7ed
mov eax, dword [esi + 4]
test eax, eax
je 0x40e7ed
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 4]
mov dword [edx + 0x58], 1
mov dword [ebp - 4], 0xffffffff
push edi
mov dword [ebp - 0x1c], vtable.winhttp::locker_dm_cs.0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411a10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517a38
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x587978]
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
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x40
lea eax, [ebp - 0x60]
push ebx
mov dword [ebp - 0xc0], ebx
push eax
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xbc], vtable.md5.0
call fcn.004eafd0
mov byte [ebp - 0x60], 0x80
mov dword [ebp - 4], 1
push 0x40
lea ecx, [ebp - 0xb8]
push ebx
push ecx
call fcn.004eafd0
mov edx, dword [ebp + 0x10]
add esp, 0x18
push edx
push esi
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
call fcn.0040bc10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040bd40
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xc0], 1
xor esi, esi
mov edi, edi
movzx ecx, byte [ebp + esi - 0x20]
push ecx
push str._.2x
push edi
call fcn.00411990
inc esi
add esp, 0xc
cmp esi, 0x10
jl 0x411af0
mov byte [ebp - 4], bl
mov dword [ebp - 0xbc], vtable.md5.0
mov eax, edi
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.004eaf3b
mov esp, ebp
pop ebp
ret
Function at 0x411c50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517a70
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x411cb4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
or esi, 0xffffffff
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x411ccd
call fcn.0040b2f0
cmp eax, ebx
jge 0x411cca
mov dword [ebp - 4], esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.0040d960
mov eax, dword [edi + 4]
push ebx
lea edx, [ebp - 0x10]
push edx
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x411d23
call fcn.0040b2f0
cmp eax, ebx
jge 0x411d23
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x411d0d
push eax
call fcn.004eaf4a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push ecx
push esi
lea ecx, [edi + 4]
call fcn.0040b890
cmp eax, ebx
jge 0x411d61
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x411d0d
push esi
call fcn.004eaf4a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00411a10
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411d8d
push 0x80004005
call fcn.00406170
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.004ebb0d
add esp, 8
cmp eax, ebx
sete byte [ebp + 0xb]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.004064c0
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x411dc1
push esi
call fcn.004eaf4a
add esp, 4
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x417180
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518958
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004eafd0
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
sub eax, 0x10
push eax
mov dword [ebp - 0x64], 0x44
call fcn.00406e60
lea esi, [eax + 0x10]
add esp, 0x10
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 1
mov ecx, dword [0x589078]
lea edx, [ebp - 0x10]
push edx
call fcn.004119b0
mov byte [ebp - 4], 2
cmp dword [esi - 4], 1
mov edi, dword [eax]
jle 0x417211
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp + 0xc]
call fcn.004069d0
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x64]
push ecx
push edi
push 0
push 0
push 1
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004eb8eb
add esp, 8
test eax, eax
js 0x4172b8
cmp eax, dword [esi - 8]
jg 0x4172b8
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4172a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00406170
int3
Function at 0x41af10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519699
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], 1
test edi, edi
jne 0x41af6f
mov edi, 0x104
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
mov eax, dword [ebx + 0x34]
mov dword [ebp + 0x14], eax
test edi, edi
jns 0x41af9f
push 0x80070057
call fcn.00406170
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x41afba
push edi
mov ecx, esi
call fcn.00406e00
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
push edi
mov edi, dword [ebp - 0x14]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebx + 0x30], eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x41aff1
push ecx
push eax
call fcn.004eb8eb
add esp, 8
test eax, eax
js 0x41af95
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x41af95
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [ebp - 4], edx
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b022
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41b100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525271
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0x1d
sub eax, edi
or eax, ecx
jge 0x41b16b
push edi
mov ecx, esi
call fcn.00406e00
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x41b17c
push 0x80070057
call fcn.00406170
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + 0x3a], dx
mov ecx, 0x532538
sub ecx, eax
mov edx, edi
mov ebx, 0xe620
xor bx, word [ecx + eax]
add eax, 2
dec edx
mov word [eax - 2], bx
jne 0x41b190
mov eax, dword [esi]
cmp dword [eax - 8], edi
jl 0x41b172
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x3a], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525271
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov edi, 0x10
sub eax, edi
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x41b3dd
push edi
mov ecx, esi
call fcn.00406e00
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x41b3ee
push 0x80070057
call fcn.00406170
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + 0x20], dx
mov ecx, 0x532598
sub ecx, eax
mov edx, edi
mov ebx, 0xe620
xor bx, word [ecx + eax]
add eax, 2
dec edx
mov word [eax - 2], bx
jne 0x41b402
mov eax, dword [esi]
cmp dword [eax - 8], edi
jl 0x41b3e4
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x20], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d9d2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41d9a1
cmp eax, 2
jne 0x41d9bc
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x41d9cc
test eax, eax
je 0x41d9c7
test al, 1
jne 0x41d9bc
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41d9cc
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41dbda
xor al, al
pop ebp
ret 8
cmp byte [ebp + 0xc], 0
jne 0x41dbe6
mov al, 1
pop ebp
ret 8
shr al, 4
and al, 1
pop ebp
ret 8

Function at 0x41ec10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525271
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0x20
sub eax, edi
or eax, ecx
jge 0x41ec7b
push edi
mov ecx, esi
call fcn.00406e00
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x41ec8c
push 0x80070057
call fcn.00406170
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + 0x40], dx
mov ecx, 0x532ee8
sub ecx, eax
mov edx, edi
mov ebx, 0xe620
xor bx, word [ecx + eax]
add eax, 2
dec edx
mov word [eax - 2], bx
jne 0x41eca0
mov eax, dword [esi]
cmp dword [eax - 8], edi
jl 0x41ec82
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x40], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret