joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fe95
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418fea
xor ebx, ebx
cmp dword [0x458af0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41ff6b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42004b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44a280
push edi
call esi
cmp eax, ebx
je 0x42004b
push eax
call fcn.00418f7c
mov dword [esp], 0x44a270
push edi
mov dword [0x458af0], eax
call esi
push eax
call fcn.00418f7c
mov dword [esp], 0x44a25c
push edi
mov dword [0x458af4], eax
call esi
push eax
call fcn.00418f7c
mov dword [0x458af8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418131
test eax, eax
pop ecx
pop ecx
je 0x41ff39
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415f79
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41ff6b
push 0x44a240
push edi
call esi
push eax
call fcn.00418f7c
cmp eax, ebx
pop ecx
mov dword [0x458b00], eax
je 0x41ff6b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418f7c
pop ecx
mov dword [0x458afc], eax
mov eax, dword [0x458afc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41fff0
cmp dword [0x458b00], ecx
je 0x41fff0
push eax
call fcn.00418ff3
push dword [0x458b00]
mov esi, eax
call fcn.00418ff3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41fff0
cmp edi, ebx
je 0x41fff0
call esi
cmp eax, ebx
je 0x41ffbd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ffbd
test byte [ebp - 0x18], 1
jne 0x41fff0
lea eax, [ebp - 0x10]
push eax
call fcn.00418168
test eax, eax
pop ecx
je 0x41ffd8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415f79
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41ffe7
or dword [ebp + 0x10], 0x200000
jmp 0x42002b
or dword [ebp + 0x10], 0x40000
jmp 0x42002b
mov eax, dword [0x458af4]
cmp eax, dword [ebp - 8]
je 0x42002b
push eax
call fcn.00418ff3
cmp eax, ebx
pop ecx
je 0x42002b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42002b
mov eax, dword [0x458af8]
cmp eax, dword [ebp - 8]
je 0x42002b
push eax
call fcn.00418ff3
cmp eax, ebx
pop ecx
je 0x42002b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x458af0]
call fcn.00418ff3
cmp eax, ebx
pop ecx
je 0x42004b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42004d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427282
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00427217
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00416500
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4272d1
cmp dword [ebp - 0x1c], 5
jb 0x4272e9
jmp 0x4272e5
cmp dword [ebp - 0x10], 1
jne 0x4272e9
cmp dword [ebp - 0x1c], 4
ja 0x4272e5
jne 0x4272e9
cmp dword [ebp - 0x18], 0
jbe 0x4272e9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44b42c
call fcn.00408ad3
test eax, eax
jge 0x42730a
mov byte [0x4598e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041618f
add ebp, 0x78
leave
ret

Function at 0x42b820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42b8b8
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x42b898
xor eax, eax
push ebp
push 0x42b891
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 0x42b8d4
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 0x42b898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x45b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x42c38c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d03c], 0
je 0x42c3ed
cmp word [0x45d210], 0xd7b2
jne 0x42c3b5
cmp dword [0x45d218], 0
jbe 0x42c3b5
mov eax, 0x45d20c
call dword [0x45d228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b05c
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 0x42c414
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x45b020], 0
jne 0x42c409
push 0
push 0x45b054
push 0x45b05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x42d5d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x42d63a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0042c76c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0042b714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x42d624
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d641
lea eax, [ebp - 0x10]
call fcn.0042c508
ret

Function at 0x42e7a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x42e83e
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0042ca80
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.0042c9f0
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x42e7c8
cmp byte [esp], 0
je 0x42e80f
mov eax, edi
call fcn.0042c9f0
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x42e84a
mov eax, edi
call fcn.0042c9f0
push eax
mov eax, edi
call fcn.0042c9f0
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.0042b5ec
mov edx, ebx
mov eax, edi
call fcn.0042ca80
jmp 0x42e84a
mov eax, edi
mov edx, 0x42e858
call fcn.0042c55c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42ee90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0042c55c
mov eax, ebx
call fcn.0042c9e8
mov eax, dword [ebx]
call fcn.0042c798
test eax, eax
jle 0x42eec1
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x42eeb6
pop esi
pop ebx
ret

Function at 0x42f690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x42f6d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.KERNEL32.dll_IsBadReadPtr
test eax, eax
jne 0x42f6ce
cmp word [edi], 0x5a4d
jne 0x42f6ce
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x42f6ce
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42f6e4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42f874
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x42f8ba
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x42f8eb
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x42f948
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x42f916
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x42f928
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x42f942
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x432c2c
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x432ca8
cmp dword [esp + 0x10], 0x1000
jne 0x432ca8
cmp dword [esp + 4], 0
je 0x432ca8
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x432ca8
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x432ca8
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x432ca8
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x436a38
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x45be9c], 0xffffffff
jne 0x436a87
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x436a80
mov eax, esp
mov edx, 0x114
call fcn.0042ddd4
mov dword [esp], 0x114
mov eax, esp
push eax
call sub.KERNEL32.dll_GetVersionExW
cmp dword [esp + 4], 6
setae al
and eax, 0x7f
mov dword [0x45be9c], eax
jmp 0x436a87
xor eax, eax
mov dword [0x45be9c], eax
cmp dword [0x45be9c], 1
sete al
add esp, 0x114
ret

Function at 0x437448
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4374ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x45bd98]
call fcn.0042ee90
push dword [ebp - 0xc]
push 0x437518
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x45bd9c]
call fcn.00437338
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0042c858
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0042c998
push eax
call fcn.0043714c
mov esi, eax
test esi, esi
je 0x4374e4
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x4374de
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437506
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0042c52c
ret

Function at 0x437750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4377b1
mov ebx, 0x71af0000
jmp 0x43779f
cmp dword [esp + 0x10], 0x10000
jne 0x43778d
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
jmp 0x4377b1
mov eax, dword [esp + 4]
cmp ebx, eax
jne 0x43779d
sub ebx, 0x10000
jmp 0x43779f
mov ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
je 0x43776d
push 0x40
push 0x1000
push edi
push esi
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x437a7c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x45be88]
cmp eax, 0x1c
jne 0x437af7
cmp dword [ebp - 0xc], 0x1000
jne 0x437af2
cmp dword [ebp - 0x18], 0
je 0x437af2
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x437af2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x437ad1
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x437af7
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x45be58]
cmp eax, 0
je 0x437af2
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x45beb4]
add ebx, dword [ebp - 0x10]
jmp 0x437a93
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x43b50c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x43b6f3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x45bd08]
call fcn.00432a7c
mov dword [0x45d8e8], eax
xor edx, edx
mov eax, dword [0x45bd0c]
call fcn.00432a7c
mov dword [0x45d8ec], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.0042ca80
lea eax, [ebp - 8]
call fcn.0042c9f0
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.0042c9f0
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.0042c9f0
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.0042c9f0
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.0042c9f0
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x45bd80]
call fcn.0042ee90
push dword [ebp - 0xc]
push 0x43b70c
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0042eb38
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0042c858
mov eax, dword [ebp - 8]
call fcn.0042c998
push eax
push 0
push 0
call fcn.0042da8c
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x43b6d8
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x45d8dc], esi
mov dword [0x45d8e0], edi
cmp dword [0x45d8e8], 0
je 0x43b628
cmp dword [0x45d8ec], 0
jne 0x43b6aa
mov dl, 1
mov eax, dword [0x45bc84]
call fcn.00432b90
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x43b6bc
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x43b6bc
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x43b6bc
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x43b6bc
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x43b6bc
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x43b6bc
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x45d8e4], edx
mov edx, 0x43b4bc
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x43b6bc
push 0x43b468
push 1
call dword [0x45d8e8]
test eax, eax
setne bl
test bl, bl
jne 0x43b6d8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b6fa
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0042c52c
ret
Function at 0x43b710
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x45d8e8], 0
je 0x43b728
cmp dword [0x45d8ec], 0
jne 0x43b781
mov dl, 1
mov eax, dword [0x45bc84]
call fcn.00432b90
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x43b767
mov eax, dword [0x45d8e4]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x43b78c
push 0x43b468
call dword [0x45d8ec]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43e1e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0042c988
xor eax, eax
push ebp
push 0x43e2a0
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x43e28a
cmp dword [ebp - 4], 0
jne 0x43e22d
lea edx, [ebp - 8]
mov eax, esi
call fcn.00436a98
test al, al
je 0x43e28a
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.00436a98
test al, al
je 0x43e27b
cmp dword [ebp - 4], 0
je 0x43e25b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x43e272
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.ADVAPI32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_LocalFree
cmp dword [ebp - 8], 0
je 0x43e28a
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e2a7
lea eax, [ebp - 4]
call fcn.0042c508
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x43eb95
push 0
push esi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
push ebx
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edi, eax
test edi, edi
je 0x43eb8f
push 0
lea eax, [esp + 4]
push eax
push ebx
push edi
push esi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x43eb89
cmp ebx, dword [esp]
jne 0x43eb89
xor ebx, ebx
mov eax, dword [esp]
dec eax
shr eax, 1
test eax, eax
jl 0x43eb73
inc eax
xor edx, edx
movzx ecx, word [edi + edx*2]
add ebx, ecx
test ebx, 0xffff0000
je 0x43eb6f
mov ecx, ebx
and ecx, 0xffff
shr ebx, 0x10
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x43eb52
mov eax, ebx
and ax, 0xffff
shr ebx, 0x10
add ax, bx
movzx eax, ax
mov ebx, eax
mov ebp, dword [esp]
add ebp, ebx
push edi
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43eba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43ecaf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x45d6b8], 0
jne 0x43ec81
cmp byte [0x45bfb4], 0
je 0x43ebe9
push ebx
push 0x104
call sub.KERNEL32.dll_GetTempPathW
jmp 0x43ebf4
push 0x104
push ebx
call sub.KERNEL32.dll_GetSystemDirectoryW
test eax, eax
jne 0x43ec03
mov word [ebx], 0x2e
mov word [ebx + 2], 0
push ebx
call sub.KERNEL32.dll_lstrlenW
cmp word [ebx + eax*2 - 2], 0x5c
je 0x43ec1c
push 0x43ecbc
push ebx
call sub.KERNEL32.dll_lstrcatW
lea edx, [ebp - 0x44]
mov eax, dword [0x45bdd8]
call fcn.0042ee90
push dword [ebp - 0x44]
push 0x43ecc8
lea edx, [ebp - 0x48]
mov eax, dword [0x45bdd0]
call fcn.0042ee90
push dword [ebp - 0x48]
push 0x43ecd4
lea edx, [ebp - 0x4c]
mov eax, dword [0x45bddc]
call fcn.0042ee90
push dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.0042c858
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
call fcn.0042c998
push eax
call fcn.00436648
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.KERNEL32.dll_lstrcatW
jmp 0x43ec8c
push 0x45d6b8
push ebx
call sub.KERNEL32.dll_lstrcpyW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ecb6
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0042c52c
lea eax, [ebp - 4]
call fcn.0042c508
ret

Function at 0x43ecd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c988
xor eax, eax
push ebp
push 0x43ed5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.0042ca80
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x43ed35
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x43ed30
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x43ed25
add ebx, 2
jmp 0x43ed3b
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.0042c798
add eax, dword [edi]
cmp eax, esi
ja 0x43ed13
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ed65
lea eax, [ebp - 4]
call fcn.0042c508
ret