joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1049c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1049c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1049c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1049c06a
add dl, dl
jne 0x1049c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1049c0dc
xor eax, eax
add dl, dl
jne 0x1049c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1049c17d
add dl, dl
jne 0x1049c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1049c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1049c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1049c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1049c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1049c075
mov eax, 1
add dl, dl
jne 0x1049c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1049c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1049c0e1
sub eax, ebx
mov ebx, 1
jne 0x1049c128
mov ecx, 1
add dl, dl
jne 0x1049c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1049c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1049c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1049c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1049c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1049c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1049c136
cmp eax, 0x7d00
jae 0x1049c16d
cmp eax, 0x500
jb 0x1049c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1049c075
cmp eax, 0x7f
ja 0x1049c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1049c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1049c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1049c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x407a40
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497ea0
push 0x44e1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x38]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x407a90
xor al, al
jmp 0x407b02
mov edx, dword [ebp - 0x48]
mov byte [edx], 0xc3
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push 0x140
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x407abc
xor al, al
jmp 0x407b02
mov byte [ebp - 0x3d], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
push 0x407aee
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x478788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4bc364]
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x2c], eax
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
mov esi, dword [esp + 0x48]
mov edi, esi
mov dword [esp + 0x3c], ebp
and edi, 0xf
call fcn.00472b2e
mov ebx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
push eax
call fcn.00408310
add esp, 4
shr esi, 4
inc esi
push eax
movzx ecx, si
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, ebp
je 0x408eff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x408eff
mov esi, eax
xor ecx, ecx
mov ax, word [esi]
add esi, 2
cmp ax, bp
je 0x408ef9
cmp ecx, edi
movzx ebx, ax
je 0x408f52
lea esi, [esi + ebx*2]
inc ecx
cmp ecx, 0x10
jl 0x408ee4
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push edx
mov ecx, esi
mov word [esi + 4], bp
call fcn.00404b90
cmp dword [esp + 0x2c], 8
jb 0x408f34
mov eax, dword [esp + 0x18]
push eax
call fcn.00469560
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call fcn.0044ead4
add esp, 0x30
ret
lea edx, [ebx + ebx + 2]
push edx
call fcn.00469565
push ebx
mov edi, eax
push esi
push edi
call fcn.0044f5f5
push edi
mov word [edi + ebx*2], bp
call fcn.0044efbd
add esp, 0x14
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00404ca0
push edi
call fcn.00469560
mov esi, dword [esp + 0x48]
add esp, 4
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x1c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push eax
mov ecx, esi
mov word [esi + 4], bp
call fcn.00404b90
cmp dword [esp + 0x2c], 8
jb 0x408f34
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x408f2c
Function at 0x40b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b389
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40b39d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40b3be
cmp esi, eax
jae 0x40b397
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40b3b0
cmp esi, eax
jae 0x40b397
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40e320
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40e340
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x40e370
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40e382
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x40e910
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4bc364]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x40e97a
test ecx, ecx
je 0x40e96c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x40e988
test ecx, ecx
je 0x40ea2b
push ecx
jmp 0x40ea25
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x40e9f2
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040e910
mov edi, eax
test edi, edi
jne 0x40ea44
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x40e9b4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x40ea09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40ea2b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.0044ead4
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40ea53
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.0044ead4
add esp, 0x11c
ret 4
Function at 0x476001
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47602f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47604d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475f6b
jmp 0x47604d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47604d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00475f6b
test edi, edi
mov eax, edi
jne 0x476037
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4c1a7c]
test ecx, ecx
je 0x476100
jmp 0x476000
ret 8
Function at 0x4226b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x4226d5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x4226ed
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x42271c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x42275e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x422832
sub edx, 0x10000
js 0x422832
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x422744
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x422744
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x4227b5
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x4227b2
add edx, 8
jne 0x422799
jmp 0x422823
add edx, 4
test eax, 0xffff
jne 0x4227c2
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x422823
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x4227f6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x422744
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x422832
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x422744
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x422843
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x424450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53248a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5949f0]
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.00509391
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 0x424510
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.0050d45c
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x58ae10
push eax
call fcn.0050e506
push edi
push esi
call fcn.005096d9
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.0050a877
mov esp, ebp
pop ebp
ret 4
Function at 0x426c70
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5328d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5949f0]
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 0x426cb6
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x426ce2
lea ecx, [ebp - 0x24]
call fcn.00426bc0
cmp dword [eax + 0x14], 0x10
jb 0x426cc6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x426ce2
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00423360
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x426cf7
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00423360
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x426d10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x5949f0]
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.0050da00
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 0x426d53
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 0x426e52
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 0x426df8
mov edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x1c]
call fcn.00427ea0
cmp byte [ebp - 0x149], 0
je 0x426e35
cmp byte [esi], 0
jne 0x426dc3
xor eax, eax
jmp 0x426dd1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426dc8
sub eax, edx
push eax
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00422ec0
cmp eax, 0xffffffff
jne 0x426e35
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x426e02
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00423360
jmp 0x426e02
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 0x426d90
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.0050a877
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x140]
cmp ecx, 0x10
jb 0x426e1b
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00423360
jmp 0x426e1b
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050a877
mov esp, ebp
pop ebp
ret
Function at 0x426e70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5949f0]
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 0x426eae
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050a877
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x426ecd
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 0x426ed2
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 0x426f0c
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.0050a877
mov esp, ebp
pop ebp
ret

Function at 0x426f30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x588840
push 0x50e3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5949f0]
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 0x426fd2
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00426e70
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 0x426fd2
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x426fd2
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.00427002
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.0050a877
mov esp, ebp
pop ebp
ret
Function at 0x4271b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532950
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x5949f0]
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 0x4271fc
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 0x42721d
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 0x427251
xor ecx, ecx
jmp 0x427269
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427260
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.00422fb0
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x42728d
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00423360
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp ecx, 0x10
jb 0x4272b4
inc ecx
push ecx
push dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
call fcn.00423360
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.0050a877
mov esp, ebp
pop ebp
ret 0x34
Function at 0x427750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5329e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5949f0]
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.004278c0
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 0x4277c5
test al, 0x10
jne 0x4277c5
mov esi, 1
jmp 0x4277c7
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4277dc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042b140
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 0x427805
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00423360
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.0050a877
mov esp, ebp
pop ebp
ret

Function at 0x427830
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 0x427856
test al, 0x10
je 0x427856
mov esi, 1
jmp 0x427858
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x42786d
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00423360
mov eax, esi
pop esi
pop ebp
ret