joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001cd47
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push 0x3000b1c4
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x3001cd70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x3001cd70
xor edi, edi
jmp 0x3001cd7e
xor edi, edi
inc edi
test esi, esi
je 0x3001cd7e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x3001cd83
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x30034b3c]
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0xc8
push edi
lea eax, [ebp - 0x194]
push eax
call fcn.300158a9
push eax
push 0x3000b42c
call fcn.300106d0
pop ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3000b1c4
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x3001cdf3
push 0x3000b3e0
call fcn.300105be
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3001cdb5
test esi, esi
je 0x3001ce0a
push 0x3000b3ac
call fcn.300105be
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
lea eax, [ebp - 0x194]
push eax
call fcn.300158a9
push eax
push 0x3000b374
call fcn.300106d0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.3001fd67
leave
ret
Function at 0x3001d37d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x30034b3c]
push esi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x61c]
push eax
push 0x3000bbb8
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.3000def7
add esp, 0x10
push 0x3000bb70
mov dword [0x30076d5c], eax
call fcn.300105be
lea eax, [ebp - 0x210]
push eax
call fcn.300105be
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x3001d405
push 0x3000bb54
call fcn.300105be
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
jmp 0x3001d45c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x485
je 0x3001d433
cmp eax, 0x7e
je 0x3001d433
push eax
push 0x3000bb24
lea eax, [ebp - 0x410]
push 0xff
push eax
call fcn.3000def7
add esp, 0x10
jmp 0x3001d449
push 0x3000bad0
push 0xff
lea eax, [ebp - 0x410]
push eax
call fcn.3000d4b9
mov dword [0x30076d5c], eax
lea eax, [ebp - 0x410]
push eax
call fcn.300105be
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.3001fd67
leave
ret

Function at 0x3001db19
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov eax, 0x1000c
lea ebp, [esp - 0xff8c]
call fcn.3001fd80
mov eax, dword [0x30034b3c]
push esi
push edi
xor edi, edi
mov dword [ebp + 0xff88], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], edi
call fcn.3001da59
mov esi, eax
cmp esi, edi
jl 0x3001dc08
push ebx
lea eax, [ebp - 0x7c]
push eax
push edi
push edi
push dword [ebp + 0xff98]
push dword [0x3007bf88]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
jmp 0x3001dbc0
push 0
lea eax, [ebp - 0x80]
push eax
push 0x10000
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0xff94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x3001dba8
call edi
mov esi, eax
test esi, esi
jle 0x3001dba6
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x3001dc07
xor esi, esi
cmp dword [ebp - 0x80], esi
jbe 0x3001dbda
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x3001db75
call edi
mov esi, eax
test esi, esi
jle 0x3001dbd6
and esi, 0xffff
or esi, ebx
test esi, esi
jge 0x3001db75
jmp 0x3001dc07
push 0
push dword [ebp + 0xffa0]
push dword [ebp + 0xff9c]
push 2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x3001dc07
call edi
mov esi, eax
test esi, esi
jle 0x3001dc07
and esi, 0xffff
or esi, ebx
pop ebx
cmp dword [ebp - 0x7c], 0
je 0x3001dc17
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp + 0xff88]
pop edi
mov eax, esi
pop esi
call fcn.3001fd67
add ebp, 0xff8c
leave
ret 0x10
Function at 0x3001e41f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ebx, 0x80070000
jne 0x3001e469
call edi
mov esi, eax
test esi, esi
jle 0x3001e463
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x3001e4f8
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x3001e482
mov esi, 0x8007000e
jmp 0x3001e4e9
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x3001e4a9
call edi
mov esi, eax
test esi, esi
jle 0x3001e4a7
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x3001e4e9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x30001940
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x3001e4d6
call edi
mov esi, eax
test esi, esi
jle 0x3001e4d4
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x3001e4e9
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp - 4], 0
je 0x3001e4f8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x3001e5b1
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x44
pop edi
push 1
push edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0xff
call fcn.3001f9d5
test eax, eax
mov dword [ebp - 4], eax
mov ebx, 0x80070000
jne 0x3001e5fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x3001e5f5
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x3001e6e8
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.3001dc98
mov esi, eax
test esi, esi
jl 0x3001e6e8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x3001e6db
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x3001e6ca
cmp dword [ebp - 0x10], edi
jbe 0x3001e677
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3001f9f5
mov edi, eax
test edi, edi
jne 0x3001e674
call esi
mov esi, eax
test esi, esi
jle 0x3001e672
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x3001e6e8
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], 0xff
jbe 0x3001e692
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.3001dc98
mov esi, eax
test esi, esi
jl 0x3001e6e8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x3001e6db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x3001e6d9
and esi, 0xffff
or esi, ebx
jmp 0x3001e6d7
test eax, eax
jle 0x3001e6d5
and eax, 0xffff
or eax, ebx
mov esi, eax
test esi, esi
jl 0x3001e6e8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [eax], ecx
mov dword [ebp - 4], esi
cmp dword [ebp - 8], 0
je 0x3001e6f6
push dword [ebp - 8]
call fcn.3002244a
cmp dword [ebp - 4], 0
je 0x3001e704
push dword [ebp - 4]
call fcn.3001fa19
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x3001ea91
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x30034b3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
imul ecx, ecx, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, ecx
push edi
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0xd8]
push eax
xor ebx, ebx
push 0x69
mov dword [ebp - 0x2e4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x3001eaf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x3001eaf3
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x3001ebdc
lea edi, [ebp - 0xd8]
add esi, 0x14
cmp word [edi], 0
je 0x3001ebc7
mov eax, dword [ebp + 0xc]
cmp ebx, dword [eax]
je 0x3001ebeb
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x3001ebbe
lea eax, [ebp - 0x2e4]
push eax
push edi
call fcn.3001e9cc
test eax, eax
jl 0x3001ebdc
cmp dword [ebp - 0x2e4], 0
jne 0x3001ebbe
lea eax, [esi - 0xc]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x2fc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x3001ebbe
mov ax, word [edi]
cmp ax, 0x61
jb 0x3001eb79
cmp ax, 0x7a
ja 0x3001eb79
movzx eax, ax
sub eax, 0x60
jmp 0x3001eb8b
cmp ax, 0x41
jb 0x3001ebbe
cmp ax, 0x5a
ja 0x3001ebbe
movzx eax, ax
sub eax, 0x40
push 0xa
push esi
mov dword [esi - 0x14], eax
lea eax, [esi - 4]
push eax
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0x104
lea eax, [ebp - 0x2e0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x3001ebbe
inc ebx
add esi, 0x28
add edi, 8
jne 0x3001eb02
mov eax, dword [ebp + 0xc]
push 0x3001ea5a
push 0x28
push ebx
push dword [ebp + 8]
mov dword [eax], ebx
call fcn.3001dda9
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.3001fd67
leave
ret 8
mov eax, 0x8007007a
jmp 0x3001ebdc
Function at 0x3001ebf2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi], 0x5c
mov esi, dword [ebp + 0x10]
mov ebx, eax
jne 0x3001ec9b
cmp word [edi + 2], 0x5c
jne 0x3001ec39
push ebx
push edi
push esi
call fcn.3001e1f7
test eax, eax
jl 0x3001eddb
mov dword [ebp - 4], 1
jmp 0x3001ed55
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add ebx, 3
cmp ebx, eax
mov dword [ebp + 0xc], eax
jbe 0x3001ec50
mov dword [ebp + 0xc], ebx
push dword [ebp + 0xc]
push esi
call fcn.3001dc98
test eax, eax
jl 0x3001eddb
push dword [esi]
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x3001ec8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x3001ec87
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x3001eddb
mov eax, dword [esi]
add ebx, 0xfffffffe
push edi
add eax, 4
jmp 0x3001ed30
cmp word [edi + 2], 0x3a
je 0x3001ed41
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x3001ecba
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
jmp 0x3001ecc5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
lea eax, [edi + ebx + 2]
push eax
push esi
call fcn.3001dc98
test eax, eax
jl 0x3001eddb
cmp dword [ebp + 0xc], 0
je 0x3001ecef
push dword [ebp + 0xc]
lea eax, [edi + ebx + 2]
push eax
push dword [esi]
call fcn.3000d5d9
jmp 0x3001ed13
push dword [esi]
lea eax, [edi + 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x3001ed1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x3001ed15
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x3001eddb
mov ecx, dword [esi]
push dword [ebp + 8]
lea eax, [edi + edi]
mov word [eax + ecx], 0x5c
mov ecx, dword [esi]
inc ebx
lea eax, [eax + ecx + 2]
push ebx
push eax
call fcn.3000d5d9
test eax, eax
jl 0x3001eddb
jmp 0x3001ed55
cmp word [edi + 4], 0x5c
jne 0x3001ed52
push ebx
push edi
push esi
call fcn.3001e1f7
jmp 0x3001ed37
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi]
inc ecx
inc ecx
cmp word [ecx], 0
mov edx, ecx
je 0x3001edd7
cmp word [edx], 0x5c
jne 0x3001edc7
lea edi, [edx + 2]
mov bx, word [edi]
cmp bx, 0x5c
mov dword [ebp + 0xc], ebx
je 0x3001edcf
cmp bx, 0x2e
jne 0x3001ed8b
mov bx, word [edx + 4]
cmp bx, 0x5c
je 0x3001edc3
test bx, bx
je 0x3001edc3
cmp word [ebp + 0xc], 0x2e
jne 0x3001edc7
lea edi, [edx + 4]
cmp word [edi], 0x2e
jne 0x3001edc7
cmp word [edx + 6], 0x5c
jne 0x3001edc7
mov edx, dword [ebp - 4]
mov ebx, dword [esi]
neg edx
sbb edx, edx
add edx, 3
lea edx, [ebx + edx*2]
cmp ecx, edx
jbe 0x3001edc3
jmp 0x3001edbd
cmp word [ecx], 0x5c
je 0x3001edc3
dec ecx
dec ecx
cmp ecx, edx
ja 0x3001edb7
mov edx, edi
jmp 0x3001edcf
mov di, word [edx]
mov word [ecx], di
inc ecx
inc ecx
inc edx
inc edx
cmp word [edx], 0
jne 0x3001ed61
and word [ecx], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x3001f099
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
or eax, 0xffffffff
cmp dword [0x3007c3b8], ecx
push edi
mov esi, 0xff
jne 0x3001f0dc
mov dword [0x3007c3b8], 1
push 8
mov edx, ecx
pop edi
test dl, 1
je 0x3001f0cb
shr edx, 1
xor edx, 0xedb88320
jmp 0x3001f0cd
shr edx, 1
dec edi
jne 0x3001f0bc
mov dword [ecx*4 + 0x3007bfb8], edx
inc ecx
cmp ecx, esi
jle 0x3001f0b7
mov ecx, dword [esp + 0x10]
test ecx, ecx
jbe 0x3001f0fc
mov edi, dword [esp + 0xc]
mov dl, byte [edi]
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x3007bfb8]
inc edi
dec ecx
jne 0x3001f0e8
pop edi
not eax
pop esi
ret 8
Function at 0x3001fa53
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x3000c3c8
call fcn.3001fe88
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x3001fa93
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x3001fa93
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x3001faab
cmp eax, 0x20b
je 0x3001fa98
mov dword [ebp - 0x1c], ebx
jmp 0x3001fabf
cmp dword [ecx + 0x84], 0xe
jbe 0x3001fa93
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x3001fab9
cmp dword [ecx + 0x74], 0xe
jbe 0x3001fa93
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x3007c430], 0xffffffff
or dword [0x3007c434], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x3007c3f0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x3007c3ec]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x3007c42c], eax
call fcn.3001fe00
call fcn.3001f9d4
cmp dword [0x30034b44], ebx
jne 0x3001fb1f
push fcn.3001f9d1
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.3001fee6
push 0x30024014
push 0x30024010
call sub.MSVCRT.dll__initterm
push 0x3001fe44
call fcn.3001fde3
mov eax, dword [0x3007c3e8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x3007c3e4]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x3001fb73
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x3002400c
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3001fbf1
cmp al, bl
je 0x3001fb9d
cmp dword [ebp - 0x20], ebx
jne 0x3001fbf1
mov al, byte [esi]
cmp al, bl
je 0x3001fbad
cmp al, 0x20
ja 0x3001fbad
inc esi
mov dword [ebp - 0x24], esi
jmp 0x3001fb9d
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x3001fbc9
movzx eax, word [ebp - 0x54]
jmp 0x3001fbcc
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.30015b3d
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x3001fbe9
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x3001fc46
cmp al, 0x22
jne 0x3001fc00
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x3001fc13
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x3001fb8b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.3001fec3
ret
Function at 0x3001fd67
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x30034b3c]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.3001fd67
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x30034b3c]
jne 0x3001fd70
ret
jmp 0x3001fc52

Function at 0x30021053
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ebx, [esi + 4]
push ebx
push 0x3000c67c
call edi
test eax, eax
jne 0x30021171
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [esi + 0x20c]
push ebx
call edi
mov esi, eax
add esi, 3
cmp dword [ebp + 0xc], 0
je 0x3002109f
push dword [ebp + 0xc]
call edi
lea esi, [esi + eax + 1]
push esi
lea eax, [ebp - 4]
push eax
call fcn.3001dc98
mov edi, eax
test edi, edi
jl 0x30021195
push ebx
push 0x300016c0
push esi
push dword [ebp - 4]
call fcn.3000def7
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x30021195
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x30021115
cmp esi, 0x7fffffff
jbe 0x300210e5
mov eax, 0x80070057
jmp 0x300210f3
push 0x30003be8
push esi
push dword [ebp - 4]
call fcn.3000d5f0
cmp eax, ebx
mov edi, eax
jl 0x30021195
push dword [ebp + 0xc]
push esi
push dword [ebp - 4]
call fcn.3000d6ea
mov edi, eax
test edi, edi
jl 0x30021195
xor ebx, ebx
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x58], 0x44
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x30021157
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
xor edi, edi
jmp 0x30021195
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jle 0x30021195
and edi, 0xffff
or edi, 0x80070000
jmp 0x30021195
push ebx
push 0x3000c674
call edi
test eax, eax
jne 0x30021190
push dword [ebp + 0xc]
add esi, 0x20c
push esi
call fcn.300223ad
mov edi, eax
jmp 0x30021195
mov edi, 0x81000004
cmp dword [ebp - 4], 0
je 0x300211a3
push dword [ebp - 4]
call fcn.3002244a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30022217
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x30022263
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x3002225c
jbe 0x30022285
cmp eax, 3
jbe 0x3002224c
cmp eax, 4
je 0x3002225c
jbe 0x30022285
cmp eax, 6
ja 0x30022257
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30022220
cmp eax, 7
jne 0x30022285
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x30022285
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x30022275
call esi
mov esi, eax
jmp 0x30022285
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
leave
ret 8

Function at 0x3002228c
Capabilities:
Start service

Disassembly:
push ecx
push ecx
xor eax, eax
cmp dword [esp + 0x10], eax
push ebx
setne al
push ebp
push esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
call fcn.30022217
mov esi, eax
test esi, esi
mov ebp, 0xffff
mov ebx, 0x80070000
jle 0x300222c2
and esi, ebp
or esi, ebx
test esi, esi
jl 0x30022303
cmp dword [esp + 0xc], 1
je 0x300222d2
cmp dword [esp + 0xc], 7
jne 0x30022303
push edi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
xor edi, edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x30022302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub eax, 0x3e5
je 0x3002230d
sub eax, 0x3b
jne 0x30022310
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 8
xor edi, edi
inc edi
test esi, esi
jle 0x30022318
and esi, ebp
or esi, ebx
test edi, edi
jne 0x300222d3
jmp 0x30022302