joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x408d68]
push eax
mov ecx, dword [str.Usage:__s___gd_____o_file_____graphs___n__g________:_convert_to_GXL_n__d________:_convert_to_GV_n__o_file___:_output_to__file___stdout__n___________:_usage_n]
push ecx
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret

Function at 0x403790
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e38
call fcn.004054a0
mov eax, dword [0x408c28]
xor eax, ebp
mov dword [ebp - 0xc], eax
call fcn.00403900
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.libexpat.dll_XML_ParserCreate]
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.libexpat.dll_XML_SetUserData]
add esp, 8
push 0x404ab0
push 0x403a40
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.libexpat.dll_XML_SetElementHandler]
add esp, 0xc
push 0x405430
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.libexpat.dll_XML_SetCharacterDataHandler]
add esp, 8
mov dword [0x408e28], 0
mov dword [0x408da4], 0
mov ecx, dword [ebp + 8]
push ecx
push 0x4e20
push 1
lea edx, [ebp - 0x4e30]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov dword [ebp - 0x4e38], eax
cmp dword [ebp - 0x4e38], 0
jne 0x40383a
jmp 0x4038c7
cmp dword [ebp - 0x4e38], 0x4e20
sbb eax, eax
neg eax
mov dword [ebp - 0x4e34], eax
mov ecx, dword [ebp - 0x4e34]
push ecx
mov edx, dword [ebp - 0x4e38]
push edx
lea eax, [ebp - 0x4e30]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.libexpat.dll_XML_Parse]
add esp, 0x10
test eax, eax
jne 0x4038ba
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.libexpat.dll_XML_GetCurrentLineNumber]
add esp, 4
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.libexpat.dll_XML_GetErrorCode]
add esp, 4
push eax
call dword [sym.imp.libexpat.dll_XML_ErrorString]
add esp, 4
push eax
push str._s_at_line__lu_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR90.dll_exit]
cmp dword [ebp - 0x4e34], 0
je 0x40380b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.libexpat.dll_XML_ParserFree]
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.004039b0
add esp, 4
mov eax, dword [0x408da4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040548e
mov esp, ebp
pop ebp
ret
Function at 0x4044f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x408da0], 0x20
jne 0x404520
push 0x20
push str.gxl2gv:_Too_many_____d__nestings_of_subgraphs_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR90.dll_exit]
jmp 0x404531
cmp dword [0x408da0], 0
jne 0x404531
mov eax, dword [ebp + 8]
mov dword [0x408da4], eax
mov ecx, dword [0x408da0]
mov edx, dword [ebp + 8]
mov dword [ecx*4 + 0x408da8], edx
mov eax, dword [ebp + 8]
mov dword [0x408e2c], eax
mov ecx, dword [0x408da0]
add ecx, 1
mov dword [0x408da0], ecx
pop ebp
ret

Function at 0x4051d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x405202
push 0x408750
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x405220
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x405249
push str.PANIC:_gxl2gv:_empty_element_stack_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [ebp + 8]
add eax, 4
pop ebp
ret

Function at 0x405260
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x408da0], 0
jne 0x40528d
push str.gxl2gv:_Gstack_underflow_in_graph_parser_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [0x408da0]
sub eax, 1
mov dword [0x408da0], eax
mov ecx, dword [0x408da0]
mov edx, dword [ecx*4 + 0x408da8]
mov dword [ebp - 4], edx
cmp dword [0x408da0], 0
jle 0x4052c5
mov eax, dword [0x408da0]
mov ecx, dword [eax*4 + 0x408da4]
mov dword [0x408e2c], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40548e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408c28]
jne 0x405498
repz ret
jmp fcn.00405784
Function at 0x401290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4012e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012e9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4012d8
cmp esi, edx
jae 0x4012e9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4012c6
cmp esi, edx
jae 0x4012e9
cmp word [esi], 0
je 0x4012e9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x401730
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41be7e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x427014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], 0
push 0x423d88
push str.Load_and_start_the_.NET_runtime__s__n
mov byte [ebp - 4], 2
call fcn.00401080
add esp, 8
lea eax, [ebp - 0x1c]
push eax
push 0x423dc8
push 0x423ea0
call dword [sym.imp.mscoree.dll_CLRCreateInstance]
test eax, eax
jns 0x4017d3
push eax
push str.CLRCreateInstance_failed_w_hr_0x_08lx_n
jmp 0x4018dc
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push 0x423ed0
push 0x423d88
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x4017f9
push eax
push str.ICLRMetaHost::GetRuntime_failed_w_hr_0x_08lx_n
jmp 0x4018dc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x401815
push eax
push str.ICLRRuntimeInfo::IsLoadable_failed_w_hr_0x_08lx_n
jmp 0x4018dc
cmp dword [ebp - 0x24], 0
jne 0x40182a
push 0x423d88
push str..NET_runtime__s_cannot_be_loaded_n
jmp 0x4018dc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x423dd8
push 0x423e80
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x401850
push eax
push str.ICLRRuntimeInfo::GetInterface_failed_w_hr_0x_08lx_n
jmp 0x4018dc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x401865
push eax
push str.CLR_failed_to_start_w_hr_0x_08lx_n
jmp 0x4018dc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401876
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
jns 0x40189a
push eax
push str.ICorRuntimeHost::GetDefaultDomain_failed_w_hr_0x_08lx_n
jmp 0x4018dc
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x40190b
mov byte [ebp - 4], 4
mov ecx, dword [edi]
test ecx, ecx
je 0x4018b1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 2
push edi
mov dword [edi], 0
mov eax, dword [esi]
push 0x423e70
push esi
call dword [eax]
test eax, eax
jns 0x4018d2
push eax
push str.Failed_to_get_default_AppDomain_w_hr_0x_08lx_n
jmp 0x4018dc
push str.MainTest.exe
push str.Load_the_assembly__s_n
call fcn.00401080
add esp, 8
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4018f8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004003
call fcn.004062c0
int3
Function at 0x4063c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4063e7
xor eax, eax
test eax, eax
je 0x4063f9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4063f9
xor ecx, ecx
jmp 0x4063fc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4064e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40651f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064f9
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4064f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406550
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x406532
pop edi
not eax
pop esi
ret 0xc

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x76b370
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 0x76b38e
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 0x794074
push ecx
mov edi, eax
call fcn.0077f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x76b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0077f02e
push esi
call fcn.0077efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x76e850
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 0x76e8ae
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 0x799720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x76e8ba
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.0077f1e1
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 0x76e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x799720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x76e92a
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.00780082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x76e957
mov word [eax], si
add eax, 2
push eax
call fcn.00780030
add esp, 4
jmp 0x76e959
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 0x76e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x76e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x76eff0
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 0x76f080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x76f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x794458
push ecx
call fcn.0077f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0077f1e1
add esp, 0x10
jmp 0x76f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0077f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0077edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0076f050
mov eax, dword [0x799728]
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 0x76f13b
push esi
call fcn.0076efb0
add esp, 4
mov dword [0x799728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x76f14c
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.0076eff0
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 0x772440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7724b7
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 0x77248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x772471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x77247e
add edx, ecx
cmp ebx, edx
jb 0x77248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x772467
xor ecx, ecx
jmp 0x7724a2
test eax, eax
jne 0x772492
xor ecx, ecx
jmp 0x7724a2
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.007723c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7728f0
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 0x772921
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 0x772946
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 0x77296e
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 0x772993
push ecx
push esi
call fcn.007724c0
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 0x773c00
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 0x773c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x773c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x773c38
add edx, eax
cmp ebx, edx
jb 0x773c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x773c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x773c50
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 0x773c70
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 0x773cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x773c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x773ca8
add edx, ecx
cmp ebx, edx
jb 0x773cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x773c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x773f60
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.00780145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x773ffb
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 0x773fdd
lea eax, [esp + 0x18]
push eax
jmp 0x773fe2
push 0x799720
call fcn.0077ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x773fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x773f40
push 4
push ecx
push eax
call fcn.0078043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x774310
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.00780145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7743ab
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 0x77438d
lea eax, [esp + 0x18]
push eax
jmp 0x774392
push 0x799720
call fcn.0077ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x774360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x773f40
push 4
push ecx
push eax
call fcn.0078043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x775f20
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 0x775fd7
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 0x775fcf
push ebx
push edi
push 0x799770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x775fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x799770
push esi
call ebx
test eax, eax
je 0x775fae
mov ebp, 3
cmp dword [0x799774], ebp
jne 0x775faa
push 0x3e8
call edi
push 0x799770
push esi
call ebx
test eax, eax
jne 0x775f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x775fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x775fbb
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