joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413320
Capabilities:
Log keystrokes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x10], ebx
jne 0x41334f
mov eax, dword [0x5f8cb4]
cmp eax, ebx
je 0x413343
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x41334f
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, ebx
je 0x413374
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x413374
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x413374
push ebx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x1c]
push ecx
mov eax, esp
push edi
mov dword [esi + 0x378], ebx
push esi
mov dword [eax], ebx
call fcn.00414df0
mov ebp, eax
cmp ebp, ebx
jne 0x4133a5
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [0x5f8cb4]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x4133bc
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [eax + 4], ebp
lea eax, [esi + 4]
push eax
mov eax, edi
call fcn.0044bbb0
cmp dword [esi + 0x36c], ebx
je 0x413434
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x2001
mov esi, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebx, esi
je 0x413419
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebx, esi
je 0x41342e
push 0
push ebx
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, dword [esp + 0x1c]
xor ebx, ebx
call fcn.00515720
mov edx, dword [esi + 4]
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov dword [esi + 0x378], ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x10], ebx
je 0x413478
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x413478
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
jne 0x413478
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x5f8cb4]
cmp eax, ebx
je 0x413488
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x41a290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x587118
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
cmp dword [esi], eax
mov dword [esp + 8], eax
jne 0x41a2e7
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
mov dword [ebx], vtable.CBufferT_int_.0
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x64
ret 4
mov ecx, vtable.CBufferT_int_.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push eax
lea eax, [esp + 0x10]
call fcn.0041e4d0
push ebx
push esi
lea eax, [esp + 0x14]
call fcn.0041e2c0
lea esi, [esp + 0xc]
call fcn.0041d0b0
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x64
ret 4

Function at 0x41a530
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x58c548
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
push 1
push 0x5aeb14
lea esi, [esp + 0x24]
mov dword [esp + 0x4c], 0
call fcn.0043a8d0
mov eax, edi
lea ecx, [eax + 2]
jmp 0x41a5b0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41a5b0
sub eax, ecx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.0043a690
push 1
push 0x5aeb14
lea ecx, [esp + 0x24]
call fcn.0043a690
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a5e0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x24]
call fcn.0043a690
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x41a60d
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0043e000
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x41a63b
mov edx, dword [esp + 0x20]
push edx
call fcn.00563626
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00564207
add esp, 0x3c
ret
Function at 0x41c690
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x591f0f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x34], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
lea edi, [esi + 0x54]
mov byte [esp + 0x34], 2
push edi
mov byte [esi + 0x50], 0xff
call fcn.0043cc80
mov dword [edi], vtable.boost::io::basic_altstringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [edi + 0x3c], ebx
mov byte [edi + 0x40], bl
mov dword [edi + 0x44], 3
mov byte [esi + 0xa0], bl
mov byte [esp + 0x34], 4
mov eax, str.0x_08X
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41c736
sub eax, edx
push eax
push str.0x_08X
lea ecx, [esp + 0x18]
call fcn.004381e0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x38], 5
call fcn.0041e9b0
cmp dword [esp + 0x28], 0x10
jb 0x41c775
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00563626
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4

Function at 0x41cd60
Capabilities:
Create thread

Disassembly:
push 0xc
call fcn.00566e45
add esp, 4
test eax, eax
jne 0x41cd6f
ret
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push 0
push 0
push eax
push 0x41f160
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
mov dword [eax + 8], edx
mov dword [eax + 4], ecx
call fcn.00565c54
add esp, 0x18
ret
Function at 0x4277c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x591eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x90]
lea edi, [esp + 0x18]
mov eax, ebp
call fcn.004275a0
xor ebx, ebx
push eax
mov dword [esp + 0x8c], ebx
call fcn.0043bb10
mov edx, dword [eax]
add esp, 4
mov ecx, eax
mov eax, dword [edx + 0x18]
push 0x20
call eax
or esi, 0xffffffff
mov ecx, edi
mov byte [esp + 0x90], al
mov dword [esp + 0x88], esi
call fcn.0044dcc0
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x427856
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jne 0x4278e2
mov cl, byte [esp + 0x90]
mov eax, 0xf
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x70], bl
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 6
mov byte [esp + 0x60], cl
mov dword [esp + 0x64], 0x201
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x78], SysStringLen
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x90], 1
call fcn.00428f60
mov dword [esp + 0x88], esi
lea esi, [esp + 0x1c]
call fcn.0041f620
jmp 0x4279b0
mov esi, dword [esp + 0x94]
cmp esi, eax
jbe 0x42790c
mov ecx, dword [esp + 0x90]
sub esp, 0x64
mov eax, esp
mov dword [esp + 0x7c], esp
push ecx
call fcn.0041f880
mov ecx, esi
mov edx, ebp
call fcn.0041f700
lea esi, [ebp + 0x10]
call fcn.0041f680
xor edi, edi
cmp dword [esp + 0x94], ebx
jbe 0x4279b0
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x427948
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42794d
call fcn.00565fa7
mov esi, dword [ebp + 4]
add esi, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 4]
mov dword [esi], 0xffffffff
mov dword [esi + 0x5c], SysReAllocStringLen
mov dword [esi + 0x60], ebx
call fcn.0043b7c0
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x20]
call fcn.0043b7c0
mov dl, byte [esp + 0x90]
add dword [esp + 0x18], 0x64
add edi, 1
cmp edi, dword [esp + 0x94]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 6
mov byte [esi + 0x44], dl
mov dword [esi + 0x48], 0x201
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
jb 0x427927
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x34]
call fcn.0043b7c0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 8
Function at 0x434c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x586fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5eb3c0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [section..data]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x434cd9
call fcn.00473d40
mov esi, eax
jmp 0x434dbf
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x434cf5
call fcn.00473d40
jmp 0x434db6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x434d0e
call fcn.00473d40
jmp 0x434db6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x434d44
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x434d32
lea eax, [ebp]
call fcn.00436070
lea esi, [ebp - 0x1c]
call fcn.004414b0
mov eax, 0x8007000e
jmp 0x434dd2
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00434e00
mov dword [ebp - 4], 1
jmp 0x434d6c
mov esi, dword [ebp]
test esi, esi
jne 0x434d7a
mov esi, 0x8007000e
jmp 0x434db8
call dword [section..data]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x434d9b
call fcn.00473d40
jmp 0x434db6
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00434e40
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x434dd0
lea eax, [ebp]
call fcn.00436070
nop
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00564207
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x436013
push 0x80004005
call fcn.00473d10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x436020
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4361c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x43622e
test ecx, ecx
je 0x436220
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x43623c
test ecx, ecx
je 0x4362e1
push ecx
jmp 0x4362db
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x4362ae
jmp 0x436270
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004361c0
mov edi, eax
test edi, edi
jne 0x4362fd
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x436270
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4362c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4362e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00564207
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43630c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4362e3

Function at 0x438840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58c236
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax], cl
mov dword [eax + 4], ecx
mov dword [eax + 0x20], 0xf
mov dword [eax + 0x1c], ecx
mov byte [eax + 0xc], cl
mov dword [eax + 0x24], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x43c410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58c178
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x30], 0
cmp byte [esi], 0
je 0x43c4c7
push 0
push 0x5acd47
lea ecx, [esp + 0x10]
call fcn.004381e0
movzx eax, byte [esi]
cmp al, 0x2f
je 0x43c49a
lea ebx, [ebx]
test al, al
je 0x43c49a
push eax
push 1
lea ecx, [esp + 0x10]
call fcn.00443740
mov al, byte [esi + 1]
add esi, 1
cmp al, 0x2f
jne 0x43c480
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.00444a10
cmp byte [esi], 0x2f
jne 0x43c4ae
add esi, 1
cmp byte [esi], 0
jne 0x43c463
cmp dword [esp + 0x20], 0x10
jb 0x43c4c7
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00563626
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00564207
add esp, 0x2c
ret

Function at 0x43e500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58c088
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
call fcn.0043e5a0
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x43e560
lea eax, [esp + 0xc]
push eax
call fcn.0043ee90
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x43e57c
mov eax, dword [esp + 0xc]
push eax
call fcn.00563626
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00564207
add esp, 0x2c
ret
Function at 0x43eca0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x800], eax
test edi, edi
push esi
mov esi, ecx
jne 0x43ecd6
mov eax, 0x80004005
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00564207
add esp, 0x804
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43ecbb
test al, 0x10
jne 0x43ecbb
push ebx
push 0x7fe
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, 0x80004005
mov word [esp + 0x14], 0
call fcn.005695a0
add esp, 0xc
push edi
push 0x400
lea ecx, [esp + 0x10]
push ecx
push 0
push str.SPRoot
push str.SPRoot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x43ed51
lea eax, [esp + 8]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ed30
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
call fcn.0043a8d0
call fcn.0043ed70
xor ebx, ebx
mov ecx, dword [esp + 0x808]
mov eax, ebx
pop ebx
pop esi
xor ecx, esp
call fcn.00564207
add esp, 0x804
ret

Function at 0x43ede0
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 0x43ee3a
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 + 0x5adbfc]
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 + 0x5adbfc]
sub esi, 1
add edi, 1
test esi, esi
movzx eax, ax
jne 0x43edf0
pop ebx
pop edi
pop esi
ret

Function at 0x43ee90
Capabilities:
Read file via mapping

Disassembly:
cmp dword [esi + 4], 0
jne 0x43eed8
mov eax, dword [esp + 4]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi], eax
je 0x43eed0
push 0x3fe0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x43eed5
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
ret 4
mov dword [esi + 4], eax
mov eax, 1
ret 4

Function at 0x43ef70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
push esi
push edi
jne 0x43ef84
pop edi
pop esi
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [eax + 0x20]
lea edi, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0043eff0
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x43efdd
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x2c]
mov dword [ebx], edx
mov edx, dword [ecx + 0x30]
mov dword [ebx + 4], edx
mov edx, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
xor ecx, ecx
xor byte [ecx + ebx], 0x7a
add ecx, 1
cmp ecx, 0x10
jb 0x43efd1
pop edi
pop esi
add esp, 8
ret 4
Function at 0x43f0b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
test ecx, ecx
je 0x43f1d6
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
push ebp
mov dword [esi + 0x24], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov eax, ecx
push edi
mov dword [esp + 0x24], 0xf
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x43f100
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004381e0
mov edi, dword [esp + 0x24]
cmp edi, 0x10
mov ecx, dword [esp + 0x10]
jae 0x43f127
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x43f14a
cmp byte [ecx], 0
je 0x43f14a
mov al, byte [ecx]
cmp al, 0x41
jl 0x43f13e
cmp al, 0x5a
jg 0x43f13e
add al, 0x20
mov byte [ecx], al
add ecx, 1
cmp byte [ecx], 0
jne 0x43f130
mov edi, dword [esp + 0x24]
cmp edi, 0x10
mov ecx, dword [esp + 0x10]
jae 0x43f157
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov eax, ebp
call fcn.0043ede0
cmp ebp, 0x25
movzx eax, ax
mov dword [esp + 8], eax
jbe 0x43f173
mov ebp, 0x25
cmp edi, 0x10
mov eax, dword [esp + 0x10]
push ebx
lea ebx, [ebp + 2]
jae 0x43f184
lea eax, [esp + 0x14]
push ebp
push eax
lea edi, [esi + 3]
push edi
call fcn.0056a780
mov cx, word [esp + 0x18]
add esp, 0xc
test edi, edi
mov byte [esi], bl
mov word [esi + 1], cx
pop ebx
je 0x43f1bb
test ebp, ebp
je 0x43f1bb
xor eax, eax
test ebp, ebp
jbe 0x43f1bb
lea esp, [esp]
xor byte [eax + edi], 0x5a
add eax, 1
cmp eax, ebp
jb 0x43f1b0
cmp dword [esp + 0x24], 0x10
pop edi
pop ebp
jb 0x43f1d1
mov edx, dword [esp + 8]
push edx
call fcn.00563626
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00564207
add esp, 0x24
ret