joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411596
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41a42c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41a988]
je 0x4115cb
inc eax
cmp eax, 0x13
jb 0x4115bc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41a988]
jne 0x4116f1
mov eax, dword [0x41b840]
cmp eax, 1
je 0x4116c9
cmp eax, edx
jne 0x4115fb
cmp dword [0x41a424], 1
je 0x4116c9
cmp ecx, 0xfc
je 0x4116f1
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411631
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040d2e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040ceb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411665
mov eax, edi
push eax
call fcn.0040ceb0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x417228
push edi
call fcn.0040d800
add esp, 0x10
push edi
call fcn.0040ceb0
push dword [esi + 0x41a98c]
mov ebx, eax
call fcn.0040ceb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040cd30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040d2e0
push edi
push ebx
call fcn.0040d2f0
push 0x417208
push ebx
call fcn.0040d2f0
push dword [esi + 0x41a98c]
push ebx
call fcn.0040d2f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00413e55
add esp, 0x2c
jmp 0x4116f1
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41a98c]
push dword [esi]
call fcn.0040ceb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00412b0a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4144ee
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040cd30
mov eax, dword [0x41a42c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00413730
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x414621
push 2
push esi
push dword [ebp + 8]
call fcn.00413730
add esp, 0xc
cmp eax, ebx
je 0x414621
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4145c1
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040d280
push 0x8000
push dword [ebp + 8]
call fcn.00414761
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x414577
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00412e8e
add esp, 0xc
cmp eax, 0xffffffff
je 0x414597
sub edi, eax
test edi, edi
jg 0x41456f
jmp 0x4145af
call fcn.0040fdca
cmp dword [eax], 5
jne 0x4145ac
call fcn.0040fdc1
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00414761
pop ecx
pop ecx
jmp 0x414609
jge 0x414609
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413730
push dword [ebp + 8]
call fcn.0040c82f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x414609
call fcn.0040fdc1
mov dword [eax], 0xd
call fcn.0040fdca
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00413730
add esp, 0xc
mov eax, esi
pop edi
jmp 0x414623
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00412b0a
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x14ed7288
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x16f84ee4
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401c6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x425124]
push edi
mov edi, ecx
push str.Py_Initialize
push edi
call esi
push str.PySys_SetArgv
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 0x10], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov ebx, eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x1c], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x18], eax
call esi
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
je 0x401dea
cmp dword [ebp - 8], ecx
je 0x401dea
cmp dword [ebp - 0x10], ecx
je 0x401dea
cmp dword [ebp - 0xc], ecx
je 0x401dea
cmp ebx, ecx
je 0x401dea
cmp dword [ebp - 0x18], ecx
je 0x401dea
cmp eax, ecx
je 0x401dea
cmp dword [ebp - 0x1c], ecx
je 0x401dea
mov esi, dword [ebp + 8]
cmp esi, ecx
je 0x401de3
cmp byte [esi], cl
je 0x401de3
push ecx
push esi
call fcn.004211ff
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x401d66
push esi
push str.Could_not_open_postinstall_script__s_n
call fcn.0040884e
add eax, 0x40
push eax
call fcn.004086a8
add esp, 0xc
push 3
pop eax
jmp 0x401ded
push str.Running_Script...
push 0x3ec
push dword [0x432218]
call dword [0x425290]
call dword [ebp - 0x14]
mov eax, edi
call fcn.00401b5e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [ebp - 8]
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 8], 3
call fcn.00408351
add esp, 0x10
test eax, eax
jne 0x401dd4
mov edi, dword [ebp - 0x38]
lea eax, [edi + 5]
call fcn.00408a10
mov esi, esp
push edi
push esi
push ebx
call fcn.00421e95
add esp, 0xc
test eax, eax
jle 0x401dd4
add eax, esi
push esi
mov byte [eax], 0xa
mov byte [eax + 1], 0
call dword [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
call dword [ebp - 0xc]
push ebx
call fcn.0041517b
mov eax, dword [ebp - 8]
pop ecx
jmp 0x401ded
push 2
jmp 0x401d60
xor eax, eax
inc eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077a5
leave
ret
Function at 0x436000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x436175
cmp dword [esp + 0x54], 0x40
jne 0x436175
cmp word [esp + 0x10], 0x5a4d
jne 0x436175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x436175
lea eax, [esp + 0x54]
push 0
push eax
push pe_nt_image_headers32
push 0x43c960
push esi
call ebx
test eax, eax
je 0x436175
cmp dword [esp + 0x54], 0xf8
jne 0x436175
cmp dword [0x43c960], 0x4550
jne 0x436175
mov eax, dword [0x43c976]
test ah, 0x20
jne 0x436175
mov edx, dword [0x43ca80]
xor eax, eax
mov ax, word [0x43c966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x43ca58], eax
je 0x436175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x43ca6c], eax
xor eax, eax
mov ax, word [0x43c966]
mov edx, dword [0x43ca58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x436175
cmp dword [esp + 0x54], edi
jne 0x436175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x43ca80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x43c9b4]
cmp edx, eax
ja 0x436175
mov edi, dword [0x43ca58]
mov ecx, dword [0x43c988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x436175
xor eax, eax
push 2
mov ax, word [0x43c966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x436175
cmp dword [edi - 0x20], ebx
ja 0x436175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x438769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43c190
cmp edx, dword [eax]
je 0x43878b
add eax, 8
inc ecx
cmp eax, 0x43c220
jl 0x43877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43c190]
jne 0x4388b9
mov eax, dword [0x43cbb0]
cmp eax, 1
je 0x438893
test eax, eax
jne 0x4387bc
cmp dword [0x43c0e4], 1
je 0x438893
cmp edx, 0xfc
je 0x4388b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4387f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00439670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00439490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x438836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00439490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43b45c
push edi
call fcn.00439f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00439670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00439680
lea eax, [ebp - 0xa0]
push 0x43b43c
push eax
call fcn.00439680
push dword [esi + 0x43c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00439680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00439e75
add esp, 0x2c
pop edi
jmp 0x4388b9
lea eax, [ebp + 8]
lea esi, [esi + 0x43c194]
push 0
push eax
push dword [esi]
call fcn.00439490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x46376d41
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x77c56ac3
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x57f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x57f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5a8074
push ecx
mov edi, eax
call fcn.00593198
mov esi, eax
add esp, 8
test esi, esi
jne 0x57f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0059302e
push esi
call fcn.00592fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x582850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5828ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5ad720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5828ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005931e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5828ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5ad720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x58292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00594082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x582957
mov word [eax], si
add eax, 2
push eax
call fcn.00594030
add esp, 4
jmp 0x582959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5828ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5828b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x582ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x583080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5830c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5a8458
push ecx
call fcn.005931e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005931e1
add esp, 0x10
jmp 0x5830d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0059320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00592dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00583050
mov eax, dword [0x5ad728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x58313b
push esi
call fcn.00582fb0
add esp, 4
mov dword [0x5ad728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x58314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00582ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x586440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5864b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x58648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x586471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x58647e
add edx, ecx
cmp ebx, edx
jb 0x58648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x586467
xor ecx, ecx
jmp 0x5864a2
test eax, eax
jne 0x586492
xor ecx, ecx
jmp 0x5864a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005863c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5868f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x586921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x586946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x58696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x586993
push ecx
push esi
call fcn.005864c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x587c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x587c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x587c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x587c38
add edx, eax
cmp ebx, edx
jb 0x587c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x587c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x587c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x587c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x587cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x587c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x587ca8
add edx, ecx
cmp ebx, edx
jb 0x587cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x587c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x587f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00594145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x587ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x587fdd
lea eax, [esp + 0x18]
push eax
jmp 0x587fe2
push 0x5ad720
call fcn.00593fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x587fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x587f40
push 4
push ecx
push eax
call fcn.0059443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x588310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00594145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5883ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x58838d
lea eax, [esp + 0x18]
push eax
jmp 0x588392
push 0x5ad720
call fcn.00593fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x588360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x587f40
push 4
push ecx
push eax
call fcn.0059443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x589f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x589fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x589fcf
push ebx
push edi
push 0x5ad770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x589fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x5ad770
push esi
call ebx
test eax, eax
je 0x589fae
mov ebp, 3
cmp dword [0x5ad774], ebp
jne 0x589faa
push 0x3e8
call edi
push 0x5ad770
push esi
call ebx
test eax, eax
jne 0x589f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x589fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x589fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret