joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b7f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x403cc7
cmp byte [eax], bl
je 0x403cc7
lea ecx, [ebp - 0x110]
push ecx
push eax
call fcn.00403fe1
pop ecx
lea eax, [ebp - 0x110]
pop ecx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x403cba
cmp edi, ebx
je 0x403cba
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
or ecx, eax
je 0x403c1d
mov ecx, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
sar ecx, 0x1f
cmp dword [ebp + 0x1c], ebx
jne 0x403c20
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ebx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x403c38
push edi
jmp 0x403cc1
cmp dword [ebp + 0x14], ebx
je 0x403c42
mov edi, dword [ebp + 0x14]
jmp 0x403c4f
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x403cbe
cmp dword [ebp - 0xc], ebx
jne 0x403cbe
mov esi, dword [ebp + 0x10]
cmp esi, ebx
jne 0x403c75
lea eax, [edi + 0x100]
push 1
push eax
call fcn.00404075
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x403cbe
lea eax, [ebp - 4]
push ebx
push eax
push edi
push esi
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403c97
mov eax, dword [ebp - 4]
cmp edi, eax
jne 0x403c97
mov byte [esi + eax], bl
jmp 0x403ca5
cmp dword [ebp + 0x10], ebx
jne 0x403ca3
push esi
call fcn.004040bd
pop ecx
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x403cba
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, esi
jmp 0x403cc9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403fe1
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40401d
cmp dword [esp + 0xc], 0
je 0x40401d
push 0x25
push esi
call fcn.0040434e
pop ecx
test eax, eax
pop ecx
je 0x404011
push 0x103
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
pop esi
ret
push esi
push dword [esp + 0x10]
call fcn.0040421e
pop ecx
pop ecx
pop esi
ret

Function at 0x4044a9
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4044d2
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4044ca
cmp al, 0x22
jne 0x4044be
cmp byte [esi], 0x22
jne 0x4044dc
inc esi
jmp 0x4044dc
cmp al, 0x20
jle 0x4044dc
inc esi
cmp byte [esi], 0x20
jg 0x4044d6
mov al, byte [esi]
test al, al
je 0x4044e6
cmp al, 0x20
jle 0x4044cf
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00404556
push 0x406004
push section..data
call fcn.0040453c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x404516
movzx eax, word [ebp - 0x14]
jmp 0x404519
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040456e
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x49ad73f9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x5b897a07
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x731674f0
Capabilities:
Print debug messages

Disassembly:
cmp ecx, 0xc00002b6
jg 0x73167567
je 0x73167561
cmp ecx, 0xc0000022
jg 0x7316752d
je 0x73167527
add ecx, 0x3fffffff
cmp ecx, 0x1c
ja case.0x73167586.1071775737
movzx eax, byte [ecx + 0x73167604]
jmp dword [eax*4 + 0x731675ec]
mov eax, 0x88760872
ret
mov eax, 0x8876086a
ret
add ecx, 0x3fffff6a
cmp ecx, 0x97
ja case.0x73167586.1071775737
movzx eax, byte [ecx + 0x73167638]
jmp dword [eax*4 + 0x73167624]
mov eax, 0x80070057
ret
mov eax, 0x8007000e
ret
mov eax, 0x88760871
ret
mov eax, 0x88760879
ret
mov eax, 0x88760870
ret
cmp ecx, 0xc01e0109
jg 0x731675b6
je 0x731675b0
add ecx, 0x3fe1fffa
cmp ecx, 0xfc
ja case.0x73167586.1071775737
movzx eax, byte [ecx + 0x731676e4]
jmp dword [eax*4 + 0x731676d0]
mov eax, 0x8876021c
ret
mov eax, 0x8876017c
ret
push 0x731543c0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, 0x80004005
ret
mov eax, 0xc0262109
ret
test ecx, ecx
jg 0x731675de
je case.0x73167586.1071775738
cmp ecx, 0xc01e0111
je 0x731675d5
lea eax, [ecx + 0x3fe1feee]
cmp eax, 3
ja case.0x73167586.1071775737
mov eax, 0x88760873
ret
mov eax, 0xc0262111
ret
xor eax, eax
ret
cmp ecx, 0x103
jne case.0x73167586.1071775737
mov eax, 0x8000000a
ret
Function at 0x731677f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x731f70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov dword [ebp - 0x20], esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [edi + 4], 0
mov edx, eax
mov dword [ebp - 0x24], edx
mov ebx, edx
je 0x7316795d
test esi, esi
je 0x7316795d
mov esi, dword [edi + 0xcc]
sub eax, esi
mov ecx, dword [edi + 0xd0]
cmp eax, ecx
jae 0x73167850
sub ecx, edx
add ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
mov edi, dword [edi]
mov ecx, dword [ecx + 0x2c]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, ecx
cdq
mov ecx, 0x64
and edx, 7
lea esi, [edx + eax]
sar esi, 3
mov dword [ebp - 0x18], esi
lea ecx, [ecx]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp dword [0x731f8520], eax
je 0x731678a2
mov ecx, edi
call fcn.73166730
mov ecx, 0x64
test byte [edi + 0x8c], 2
jne 0x7316796e
mov eax, dword [edi + 0xb30]
mov esi, dword [0x731f84a8]
mov ecx, esi
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xb3c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call dword [0x731fd4e8]
call esi
mov esi, eax
mov edx, edi
mov ecx, esi
call fcn.7315f270
test eax, eax
jne 0x731678ef
mov ecx, esi
call fcn.731674f0
test eax, eax
jne 0x7316795b
mov ecx, dword [edi + 0x116c]
mov eax, dword [ebp - 8]
cmp ecx, 2
je 0x73167902
cmp ecx, 4
jne 0x7316791d
cmp byte [ebp - 0xc], 0
jne 0x7316791d
mov esi, dword [edi + 0x117c]
test esi, esi
je 0x7316791d
imul eax, dword [edi + 0x1180]
xor edx, edx
div esi
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
cmp ecx, dword [edx + 4]
jl 0x7316795b
mov ecx, dword [edx + 0xc]
cmp eax, ecx
jg 0x7316795b
add eax, esi
cmp eax, ecx
jge 0x73167942
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov ecx, 0x64
sub eax, dword [ebp - 0x24]
cmp eax, 0x1e
jb 0x73167880
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.731efbf0
mov esp, ebp
pop ebp
ret
mov edx, dword [0x731f848c]
mov eax, edx
add edx, 0xa
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edx
mov dword [0x731f848c], ecx
jmp 0x73167920
Function at 0x7316f6d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x731f70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
mov esi, ecx
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x73154f7c
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x73154f88
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test edi, edi
je 0x7316f838
test ebx, ebx
je 0x7316f838
push 0x73154f98
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73154fa8
push edi
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73154fb8
push edi
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73154fd0
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73154ff4
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73155018
push edi
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73155034
push edi
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73155050
push edi
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73155074
push edi
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x73155094
push edi
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x731550b0
push ebx
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi + 0x18], 0
mov dword [esi + 0x38], eax
je 0x7316f838
cmp dword [esi + 0x10], 0
je 0x7316f838
cmp dword [esi + 0x14], 0
je 0x7316f838
cmp dword [esi + 0x20], 0
je 0x7316f838
cmp dword [esi + 0x1c], 0
je 0x7316f838
mov ecx, dword [esi + 0x24]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x7316f838
cmp dword [esi + 0x28], 0
je 0x7316f838
cmp dword [esi + 0x2c], 0
je 0x7316f838
cmp dword [esi + 0x30], 0
je 0x7316f838
cmp dword [esi + 0x34], 0
je 0x7316f838
test eax, eax
je 0x7316f838
push 0
push 0
lea eax, [esi + 0xc]
push eax
call dword [0x731fd4e8]
call dword [ebp - 8]
test eax, eax
je 0x7316f838
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi], 1
jmp 0x7316f84b
cmp dword [esi], 0
jne 0x7316f84b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.731efbf0
mov esp, ebp
pop ebp
ret
Function at 0x73173660
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x731f70b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [edi], 0x73151068
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], 0
test eax, eax
jne 0x731736b1
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x731fd4e8]
call esi
xor eax, eax
lea ecx, [eax + 1]
jmp 0x731736b8
mov eax, 1
xor ecx, ecx
mov dword [edi + 4], ecx
lea esi, [edi + 0x84]
mov dword [edi + 8], eax
push 0xdc
push 0
push esi
mov dword [edi], 0x73151060
mov dword [edi + 0x1c], 0x7315104c
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x1a0], 0xffffffff
mov dword [edi + 0x1b0], 0
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0xc]
add esp, 0xc
mov eax, dword [eax + 0x208]
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0xc0], 0xcc0020
mov dword [edi + 0x15c], 0x80004005
mov dword [edi + 0x1b4], eax
mov dword [edi + 0x1b8], eax
lea eax, [ebp - 8]
push eax
push 0x731540c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7317380a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x73155498
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x731737ce
cmp dword [ebp - 0xc], eax
je 0x731737ce
or dword [edi + 0x194], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x731554a8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x73173801
cmp dword [ebp - 0xc], eax
je 0x73173801
or dword [edi + 0x194], 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
mov dword [edi + 0x198], 0
push eax
push 0x731554b4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x73173865
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x731554d4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7317385c
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x198], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x731554e8
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x1ac], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
call fcn.731efbf0
mov esp, ebp
pop ebp
ret 8
Function at 0x73187bb0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
call fcn.73187920
mov edi, eax
add esp, 4
test edi, edi
jne 0x73187be2
push 0x731556a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x80004005
pop edi
pop ebp
ret 0x10
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x73187c35
mov eax, dword [edi + 0x24]
test eax, eax
je 0x73187bf7
mov eax, dword [eax + 8]
inc eax
jmp 0x73187bf9
xor eax, eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
jne 0x73187c2d
push 0x731556a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [edi + 0x18]
push ecx
mov ecx, edi
call fcn.73187b10
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x10
push eax
mov ecx, edi
call fcn.73187c50
mov esi, dword [edi + 0x18]
push ecx
mov ecx, edi
call fcn.73187b10
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x10

Function at 0x7318aaa0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x731f083b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x731f70b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0x10]
mov esi, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], 0
mov dword [edi], esi
mov dword [ebp - 0x10], eax
mov edx, 0x14
test esi, esi
je 0x7318ab81
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
jbe 0x7318ab2b
add eax, 0x20
je 0x7318ab55
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x7318ab57
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x7318ab6c
push 0x7318a860
push fcn.7318a830
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x14
push edi
call fcn.731efeba
jmp 0x7318ab6e
xor edx, edx
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov dword [edx + ecx - 4], ecx
lea eax, [edx + ecx]
jmp 0x7318ab2d
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], edi
test edi, edi
je 0x7318abcc
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov esi, dword [edi]
xor edx, edx
test esi, esi
je 0x7318aba6
xor eax, eax
jmp 0x7318ab90
mov ecx, dword [ebx]
lea eax, [eax + 0x14]
mov esi, dword [ebp + 0x14]
inc edx
mov dword [ecx + eax - 4], esi
mov esi, dword [edi]
cmp edx, esi
jb 0x7318ab90
mov eax, dword [ebp - 0x10]
inc eax
add ebx, 4
mov dword [ebp - 0x10], eax
cmp eax, 4
jb 0x7318aaef
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x73156a7c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x7318ac00
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x731f086b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x731f70b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x30
push 0x40
mov dword [esi], 0x73151b34
mov dword [esi + 0x28], 0
mov dword [esi + 0x18], 0x80004005
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x7318ac62
and eax, 0x1f
mov ecx, 0x20
sub ecx, eax
add edx, ecx
mov dword [edx - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
test edx, edx
je 0x7318ac8f
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [edx + 8], 0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 0xc], eax
jmp 0x7318ac91
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x24], edx
test edx, edx
jne 0x7318acbe
push 0x73156aa8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x14], eax
test eax, eax
je 0x7318acfb
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x14], eax
jmp 0x7318acfd
xor ecx, ecx
mov dword [esi + 8], ecx
mov eax, esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x731901b0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x424
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x73190260
push esi
mov ecx, eax
mov edx, 0x20
and ecx, 0x1f
sub edx, ecx
push edi
push 0x400
push 0
lea esi, [eax + edx]
mov dword [esi - 4], edx
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 0x10]
mov edx, 0x400
mov ecx, esi
push eax
push dword [ebp + 0xc]
call fcn.7318a3e0
push 0x7315a950
mov edx, 0x400
mov ecx, esi
call fcn.7318a320
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x73190250
cmp dword [ecx], 0
jne 0x73190222
mov dword [ecx], esi
mov eax, dword [ecx + 4]
test eax, eax
je 0x7319022f
mov dword [eax + 0x400], esi
mov dword [ecx + 4], esi
lea edx, [esi + 1]
mov dword [esi + 0x400], 0
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x73190240
sub esi, edx
add dword [ecx + 8], esi
pop edi
pop esi
pop ebp
ret
sub esi, dword [esi - 4]
je 0x7319024c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
ret
push 0x731556a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
ret
Function at 0x73196b10
Capabilities:
Connect pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x731f70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp byte [edi + 0x38], 0
je 0x73196ba0
mov eax, dword [edi]
push esi
push 1
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x731fd4e8]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov eax, dword [edi]
push 0
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x731fd4e8]
mov ecx, edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.731efbf0
mov esp, ebp
pop ebp
ret
Function at 0x73198490
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x731540c0
push 0x80000002
mov esi, edx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x731984f1
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x731984f1
cmp dword [ebp - 8], edi
jne 0x731984f1
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x73198500
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x731f70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x7315aa28
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x73198683
push esi
push edi
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 0x104
jae 0x73198675
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
push 0
push 0
push 2
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x73198643
mov edi, dword [ebp - 0x110]
add edi, 0xd
mov ecx, edi
call fcn.7315f000
mov esi, eax
test esi, esi
je 0x73198675
lea eax, [ebp - 0x110]
push eax
push esi
push 0
push 2
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x73198635
push 0x7315aa6c
mov edx, edi
mov ecx, esi
call fcn.7318a320
push 0x7315aa70
mov edx, edi
mov ecx, esi
call fcn.7318a320
push edi
push esi
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 0
push 0x7315aa80
push 0x7315aa90
call dword [sym.imp.ntdll.dll_EtwEventWriteNoRegistration]
sub esi, dword [esi - 4]
je 0x73198675
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x73198675
push 0xd
push 0x7315aa70
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 0
push 0x7315aa80
push 0x7315aa90
call dword [sym.imp.ntdll.dll_EtwEventWriteNoRegistration]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.731efbf0
mov esp, ebp
pop ebp
ret