joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10121820
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
lea ecx, [eax + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ecx + ebx]
mov ecx, 3
mov dword [ebp + 8], eax
div ecx
mov eax, dword [ebp + 0x14]
mov esi, edx
sub ecx, esi
neg esi
sbb esi, esi
and esi, ecx
mov ecx, dword [ebp - 4]
mov dword [eax], esi
mov eax, 0xaaaaaaab
lea ecx, [ecx*4 + 3]
mul ecx
lea eax, [ebx + 9]
shr edx, 1
add edx, esi
add eax, edx
push eax
call fcn.100eeb60
mov esi, eax
add esp, 4
mov dword [ebp + 0x14], esi
test esi, esi
je 0x101218a4
push dword [ebp + 8]
call fcn.100eeb60
mov ebx, eax
add esp, 4
mov dword [ebp + 0xc], ebx
test ebx, ebx
jne 0x101218ad
push esi
call fcn.100eeaf0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], 0
test eax, eax
jle 0x101218ca
push eax
push 0x41
push ebx
mov dword [ebp + 8], eax
call fcn.1024a480
add esp, 0xc
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push dword [ebp - 8]
add eax, ebx
push eax
call fcn.1024a850
mov edx, ebx
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, edx
add ebx, dword [ebp - 4]
add esi, 8
add eax, ebx
mov dword [ebp + 0x10], eax
cmp ebx, 3
jl 0x10121957
movzx eax, byte [edx]
sub ebx, 3
shr eax, 2
movzx eax, byte [eax + edi + 8]
mov byte [esi], al
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + edi + 8]
mov byte [esi + 1], al
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + edi + 8]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
add edx, 3
and eax, 0x3f
movzx eax, byte [eax + edi + 8]
mov byte [esi + 3], al
add esi, 4
cmp ebx, 3
jge 0x101218f5
mov eax, dword [ebp + 0x10]
sub eax, edx
mov dword [ebp + 0x10], eax
je 0x101219ab
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + edi + 8]
mov byte [esi], al
movzx ecx, byte [edx]
and ecx, 3
cmp dword [ebp + 0x10], 1
jne 0x10121983
add ecx, ecx
mov al, byte [edi + ecx*8 + 8]
mov cl, 0x3d
mov byte [esi + 1], al
jmp 0x101219a1
movzx eax, byte [edx + 1]
shr eax, 4
shl ecx, 4
or eax, ecx
mov al, byte [eax + edi + 8]
mov byte [esi + 1], al
movzx eax, byte [edx + 1]
and eax, 0xf
mov cl, byte [edi + eax*4 + 8]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
push dword [ebp + 0xc]
call fcn.100eeaf0
mov eax, dword [ebp + 0x14]
add esp, 4
sub esi, eax
sub esi, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10148dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x104ee79c], 0
push esi
mov esi, dword [ebp + 8]
jne 0x10148edd
mov eax, 1
lock xadd dword [0x104ee7a0], eax
inc eax
cmp eax, 1
jne 0x10148ecc
test esi, esi
jne 0x10148ec1
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x10148ea1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029a1e4
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x10148ea1
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x10148ea1
push 0x1029a20c
push esi
call edi
mov edi, eax
test edi, edi
je 0x10148ea1
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x10148ea1
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x10148ea1
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x10148eb5
push 0
call fcn.10259bd5
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x104ee79c], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
call esi
cmp dword [0x104ee79c], 0
je 0x10148ed2
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1016a4f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.10249640
mov eax, dword [0x10390724]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x104eeab0], 0
mov dword [esp], 0x10292ca8
mov dword [esp + 4], 0x10169ee0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x1016a2a0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x10169e90
jne 0x1016a64b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1016a641
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1025a2cb
push 0x1029e9f8
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.1025b572
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x1016a5bf
push 0x10292ca8
push edi
call ebx
test eax, eax
jne 0x1016a606
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1025a2cb
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.1025b572
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x1016a63d
push 0x10292ca8
push edi
call ebx
test eax, eax
je 0x1016a63a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x1016a63a
inc esi
cmp esi, 3
jl 0x1016a608
mov eax, dword [esp + 0x14]
mov dword [0x1038f994], eax
mov eax, dword [esp + 0x1c]
mov dword [0x1038f99c], eax
mov eax, dword [esp + 0x24]
mov dword [0x1038f9a4], eax
jmp 0x1016a63d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x104eeab0], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x1038f994]
call fcn.10249257
add esp, 0x230
ret 4
Function at 0x10174c3f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10174c7a
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10174c61
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10174c72
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10174c7c
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10174c57
xor eax, eax
pop edi
pop esi
ret

Function at 0x10174eb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10174bc4
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10174eed
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10174bff
jp 0x10174f93
out dx, eax
or al, 0x8d
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10174c0f
push eax
push esi
push dword [ebp + 8]
call fcn.10174bc4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10174c0f
push eax
push esi
push dword [ebp + 8]
call fcn.10174bc4
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10174c0f
push eax
push esi
push dword [ebp + 8]
call fcn.10174bc4
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10174bff
ror ah, 1
add dword [ebx], 0xffffff88
popfd
jl 0x10175084
invalid
invalid
Function at 0x10174f70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
Function at 0x10176280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebx - 0x41f0f33c]
inc ebp
clc
mov ecx, dword [ebp - 0x684]
sub ecx, eax
mov dword [ebp - 0x684], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 4]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.10174b70
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x678]
sub ecx, eax
mov dword [ebp - 0x678], ecx
push 4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x678]
push eax
lea eax, [ebp - 0x38c]
push eax
call fcn.10174b70
add esp, 0xc
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x678]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x3ac], eax
push 4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.10174b70
add esp, 0xc
mov eax, dword [ebp - 0x678]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x748], eax
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x6f8], eax
and dword [ebp - 0x700], 0
jmp 0x1017634f
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x38c]
jae 0x101763a1
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
invalid
Function at 0x424480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531c8a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5939f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00508bae
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x424540
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0050cc5f
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x589d60
push eax
call fcn.0050dd06
push edi
push esi
call fcn.00508ef6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050a094
mov esp, ebp
pop ebp
ret 4
Function at 0x426ca0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5320d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5939f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x426ce6
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x426d12
lea ecx, [ebp - 0x24]
call fcn.00426bf0
cmp dword [eax + 0x14], 0x10
jb 0x426cf6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x426d12
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00423390
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x426d27
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00423390
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x426d40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x5939f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x124
lea eax, [ebp - 0x144]
mov dword [ebp - 0x150], ecx
push 0
push eax
mov esi, edx
call fcn.0050d200
mov ecx, esi
mov dword [ebp - 0x148], pe_nt_image_headers32
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426d83
sub ecx, edx
push 0
push 2
setne byte [ebp - 0x149]
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x426e82
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop dword [eax]
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x150]
call ebx
test eax, eax
jne 0x426e28
mov edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x1c]
call fcn.00427b60
cmp byte [ebp - 0x149], 0
je 0x426e65
cmp byte [esi], 0
jne 0x426df3
xor eax, eax
jmp 0x426e01
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426df8
sub eax, edx
push eax
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00422ef0
cmp eax, 0xffffffff
jne 0x426e65
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x426e32
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00423390
jmp 0x426e32
mov dword [ebp - 0x148], pe_nt_image_headers32
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x426dc0
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050a094
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x140]
cmp ecx, 0x10
jb 0x426e4b
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00423390
jmp 0x426e4b
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050a094
mov esp, ebp
pop ebp
ret
Function at 0x426ea0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5939f0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], 0
push eax
push str.SeDebugPrivilege
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x426ede
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050a094
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x426efd
lea eax, [ebp - 0x24]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [ebp - 0x24]
jmp 0x426f02
mov ecx, esi
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 0
push ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test esi, esi
jne 0x426f3c
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0050a094
mov esp, ebp
pop ebp
ret

Function at 0x426f60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x587800
push 0x50dba0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5939f0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x427002
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00426ea0
add esp, 4
push ebx
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x427002
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x427002
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00427032
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0050a094
mov esp, ebp
pop ebp
ret
Function at 0x4271e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532150
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x5939f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], 0
lea eax, [ecx + 4]
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x42722c
mov eax, dword [eax]
cmp dword [ebp + 0x38], 0x10
lea edx, [ebp + 0x24]
lea edi, [ebp + 0xc]
cmovae edx, dword [ebp + 0x24]
cmp dword [ebp + 0x20], 0x10
cmovae edi, dword [ebp + 0xc]
add ecx, 0x1c
cmp dword [ecx + 0x14], 0x10
jb 0x42724d
mov ecx, dword [ecx]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x410], 0
jne 0x427281
xor ecx, ecx
jmp 0x427299
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427290
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.00422fe0
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x4272bd
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00423390
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp ecx, 0x10
jb 0x4272e4
inc ecx
push ecx
push dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
call fcn.00423390
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050a094
mov esp, ebp
pop ebp
ret 0x34
Function at 0x427780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5321e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5939f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004278f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4277f5
test al, 0x10
jne 0x4277f5
mov esi, 1
jmp 0x4277f7
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42780c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ae00
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 0x10
jb 0x427835
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00423390
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050a094
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x427886
test al, 0x10
je 0x427886
mov esi, 1
jmp 0x427888
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x42789d
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00423390
mov eax, esi
pop esi
pop ebp
ret