joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429ac9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCP60.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_void_]
mov ebx, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
lea ecx, [esp + 0x10]
mov dword [esi + 0x34], eax
call ebx
mov eax, dword [sym.imp.MSVCP60.dll_class_std::locale::_Locimp__std::locale::_Locimp::_Global]
lea ecx, [esp + 0xc]
mov edi, dword [eax]
call ebx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x425f2f
inc eax
mov dword [edi + 4], eax
mov edi, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [esp + 0xc]
call edi
lea ecx, [esp + 0x10]
call edi
lea ecx, [esi + 4]
lea edx, [esi + 0x14]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
lea edx, [esi + 0x24]
lea ecx, [esi + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [eax], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0
mov edx, dword [esi + 0x1c]
mov dword [edx], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
mov dword [esi], 0x42a374
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::strstreambuf::_Init_int__char___char___int_]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000f197
pop dword [ebp - 0x40]
mov eax, 0x1000f197
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x39aa1
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xac722973
sub ecx, 0xac71df1d
xor edi, edi
add edi, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x40]
mov esi, 0x630973d
sub esi, 0x7d362222
mov edx, dword [ebx]
add edx, esi
xor dword [ebp - 4], edx
mov dword [edi], edx
add edi, 4
add ebx, 4
loop 0x1000f1e8
add eax, 0xf9a5a435
add eax, 0x65b77f6
mov ebx, eax
add eax, 0x73509dea
sub eax, 0x73509de5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401229
Capabilities:
Delete file

Disassembly:
push esi
push edi
push str.MoveFileExW
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401271
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401271
test edi, edi
je 0x401271
push 4
push eax
push esi
call edi
pop edi
pop esi
ret

Function at 0x401274
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.00413fd0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, edx
mov ebx, ecx
call fcn.00404640
add esp, 0xc
mov dword [ebp - 0x8a18], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a14], esi
mov dword [ebp - 0x8a10], esi
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a14]
push eax
push esi
lea eax, [ebp - 0x8a18]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x4013d5
xor eax, eax
mov dword [ebp - 0x8a1c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4013c8
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.00403f71
pop ecx
pop ecx
test eax, eax
jne 0x4013e6
push 0x800
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0x8a24], 1
push eax
call fcn.00404640
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4013c8
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.00403f71
pop ecx
pop ecx
test eax, eax
jne 0x4013e6
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x40131b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret
xor eax, eax
inc eax
jmp 0x4013d7
Function at 0x4013eb
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 0x884], ecx
lea edi, [ebp - 0x6c]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
and dword [ebp - 0x874], 0
rep movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
push str.IsWow64Process
movsb byte es:[edi], byte [esi]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push str.kernel32
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401458
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edi, dword [ebp - 0x874]
lea eax, [ebp - 0x87c]
neg edi
push eax
sbb edi, edi
lea eax, [ebp - 0x6c]
and edi, 0x100
or edi, 0x20019
push edi
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40155b
mov esi, 0x800
mov dword [ebp - 0x878], 7
push esi
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.00404640
add esp, 0xc
mov dword [ebp - 0x870], esi
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x878]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x87c]
mov esi, eax
call ebx
test esi, esi
jne 0x40155b
mov eax, dword [ebp - 0x870]
lea esi, [ebp - 0x86c]
shr eax, 1
mov dword [ebp - 0x888], eax
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x880], 0
je 0x40155b
push dword [ebp - 0x884]
push esi
call fcn.00403f71
pop ecx
pop ecx
test eax, eax
jne 0x401597
push esi
call fcn.00405349
mov ecx, dword [ebp - 0x880]
inc ecx
add ecx, eax
push esi
mov dword [ebp - 0x880], ecx
call fcn.00405349
pop ecx
pop ecx
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x880]
add esi, 2
cmp eax, dword [ebp - 0x888]
jb 0x401518
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x40159e
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.00401274
push dword [ebp - 0x870]
test eax, eax
je 0x40159c
call ebx
xor eax, eax
inc eax
jmp 0x4015d6
call ebx
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x4015d4
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.00401274
push dword [ebp - 0x870]
test eax, eax
jne 0x401595
call ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret
Function at 0x402f0d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00413fd0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.00405270
lea eax, [ebp - 0x2004]
push eax
call fcn.00405349
push 0x5c
lea edi, [ebp - 0x2004]
pop ebx
lea edi, [edi + eax*2]
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.004042a3
add esp, 0x18
test eax, eax
je 0x402fb0
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.004042a3
pop ecx
pop ecx
test eax, eax
jne 0x402f64
push esi
jmp 0x402f95
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x402faf
mov word [esi], bx
lea eax, [ebp - 0x2004]
push eax
call fcn.00405349
lea esi, [ebp - 0x2004]
pop ecx
lea esi, [esi + eax*2]
cmp esi, edi
jne 0x402f7f
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret

Function at 0x402fbe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x402fe6
xor eax, eax
jmp 0x40303a
push edi
xor edi, edi
push edi
push 0x8000080
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40300a
push 0x52
jmp 0x403038
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40302f
cmp dword [ebp - 8], edi
jne 0x40302f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403039
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1d
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331d
leave
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40633c
pop dword [ebp - 0x3c]
mov eax, 0x9dc67164
sub eax, 0x9d860e28
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xadd0e2ae
sub dword [ebp - 0x4c], 0x5f7e9d63
mov dword [ebp - 0x48], 0x4375410d
sub dword [ebp - 0x48], 0x1141f4c8
mov dword [ebp - 0x44], 0xf74b43bc
add dword [ebp - 0x44], 0x55010072
mov dword [ebp - 0x40], 0x22554667
sub dword [ebp - 0x40], 0x22554667
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xd2fcdf1d
sub eax, 0xd2bc6ebd
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x2c13f498
sub dword [ebp - 0x4c], 0xb7a18b42
mov dword [ebp - 0x48], 0x56ad419b
sub dword [ebp - 0x48], 0x1540e026
mov dword [ebp - 0x44], 0x80727dc7
sub dword [ebp - 0x44], 0x1d03115b
mov dword [ebp - 0x40], 0x7ecbc179
add dword [ebp - 0x40], 0x81343e87
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xac65cee0
add eax, 0x53daa220
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x37b49
push 0
call eax
mov ecx, 0xa4bc39eb
add ecx, 0x5b44126e
xor edi, edi
add edi, eax
mov ebx, 0xa0fdb7d4
add ebx, 0x5f43482c
add ebx, dword [ebp - 0x3c]
mov esi, 0x1e027f3e
add esi, 0x3d2302ac
mov edx, dword [ebx]
sub dword [ebp - 0x2c], 0xd8f9545
xor edx, esi
add dword [ebp - 0x34], 0x2571e45c
mov dword [edi], edx
sub dword [ebp - 4], 0x9a8eda8
add edi, 0x55a146b2
sub edi, 0x55a146ae
add ebx, 0x3824900c
sub ebx, 0x38249008
loop 0x406460
add eax, 0x2807dc26
add eax, 0xd7f94811
xor ebx, ebx
add ebx, eax
add eax, 0xe3819ec2
add eax, 0x1c7e6143
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x1000fd06
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x100613f7
call fcn.10060ef0
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 0x14], 0x1c6
cmp dword [ebp - 0x14], 0x50f
push edi
mov dword [ebp - 0x10], esp
jle 0x1000fd56
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
xor edi, edi
lea eax, [edi + esi]
mov ecx, 0x10609cb8
cdq
push edx
push eax
call fcn.1000fe1e
inc edi
cmp edi, 0x369c
jl 0x1000fd34
inc esi
cmp esi, 0x1d6c
jl 0x1000fd32
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0xfffffeda
jge 0x1000fd72
mov edx, 0x10007a30
mov ecx, 0x10609cb8
call fcn.100118c8
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001840b
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100615ff
call fcn.10060ef0
sub esp, 0xc
push ebx
push esi
mov dword [ebp - 0x18], 0x1e50
mov eax, edx
cmp dword [ebp - 0x18], 0x2211
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
jle 0x1001845f
xor edi, edi
xor ebx, ebx
mov eax, ebx
mov ecx, 0x10609cb8
xor eax, edi
cdq
push edx
push eax
call fcn.1000fe1e
inc ebx
cmp ebx, 0x52e9
jl 0x10018439
inc edi
cmp edi, 0x699f
jl 0x10018437
mov eax, dword [ebp - 0x14]
mov dword [esi], 0
jmp 0x10018477
mov ecx, dword [esi]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xfd03b15a
inc dword [esi]
mov eax, dword [ebp - 0x14]
cmp dword [esi], 2
jl 0x10018467
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x1b3f
jge 0x10018498
mov edx, 0x10008694
mov ecx, 0x10609cb8
call fcn.100118c8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002adbb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002adf7
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1002ade8
push 0x1ef0
push 0
call dword [sym.imp.USER32.dll_CharUpperBuffW]
jmp 0x1002adf5
push 0x2112
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1002ae26
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x562a
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push 0xa53
call fcn.1003597d
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x1002c0fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061b44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002c2c1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0x5614
mov dword [ebp - 0x30], 0x10009e34
cmp dword [ebp - 0x24], 0x58d2
jle 0x1002c1e1
and dword [ebp - 0x1c], 0
jmp 0x1002c164
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7cca
jge 0x1002c1db
and dword [ebp - 0x14], 0
jmp 0x1002c17a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x35d2
jge 0x1002c1d9
and dword [ebp - 0x18], 0
jmp 0x1002c190
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6215
jge 0x1002c1d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
shl eax, cl
and eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
call fcn.1000d1e0
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.1000fdfe
push eax
call fcn.1004bc16
pop ecx
lea ecx, [ebp - 0x80]
call fcn.1000fdf4
jmp 0x1002c189
jmp 0x1002c173
jmp 0x1002c15d
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x5299
jge 0x1002c1fd
push dword [ebp - 0x30]
call fcn.1004bc16
pop ecx
jmp 0x1002c219
or dword [ebp - 4], 0xffffffff
jmp 0x1002c223
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1002c2b7
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x1002c277
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x1002c288
mov eax, dword [ebp - 0x58]
cmp dword [eax], 0
je 0x1002c288
mov dword [ebp - 0x28], 1
jmp 0x1002c28c
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x5c]
mov dword [eax], 0xd7006986
mov esi, 0xd7006986
add esi, 0xfffffff8
mov eax, dword [ebp - 0x28]
neg eax
add esi, eax
mov eax, dword [ebp - 0x20]
add esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x60]
call fcn.1000ffd1
mov dword [eax], esi
jmp 0x1002c2bf
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x1002c2cf
push 0
push 0x34f5
call fcn.10033820
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002eea2
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061bea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002f041
lea eax, [ebp + 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0x12f9
mov dword [ebp - 0x48], 0x1000a0b0
cmp dword [ebp - 0x34], 0x1366
jle 0x1002ef87
and dword [ebp - 0x14], 0
jmp 0x1002ef0a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x36a5
jge 0x1002ef87
and dword [ebp - 0x18], 0
jmp 0x1002ef20
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4d30
jge 0x1002ef82
and dword [ebp - 0x1c], 0
jmp 0x1002ef36
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xd0f
jge 0x1002ef80
and dword [ebp - 0x20], 0
jmp 0x1002ef4c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x625e
jge 0x1002ef7e
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
shl eax, cl
mov ecx, dword [ebp - 0x20]
shl eax, cl
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
mov ecx, 0x10609cb8
call fcn.1000fe1e
jmp 0x1002ef45
jmp 0x1002ef2f
jmp 0x1002ef19
jmp 0x1002ef03
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1002eff7
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
push 8
pop eax
imul eax, eax, 5
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
lea eax, [ecx + eax + 0x78]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
jbe 0x1002eff5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jbe 0x1002eff5
push 0
push dword [ebp - 0x44]
push 0x25c7
push 0x45c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10030596
add esp, 0x18
jmp 0x1002efcc
jmp 0x1002efff
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x1190
jge 0x1002f019
mov edx, dword [ebp - 0x48]
mov ecx, 0x10609cb8
call fcn.100118c8
jmp 0x1002f035
or dword [ebp - 4], 0xffffffff
jmp 0x1002f03f
jmp 0x1002f06f
lea eax, [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x1002f060
push 0x1ef0
push 0
call dword [sym.imp.USER32.dll_CharUpperBuffW]
jmp 0x1002f06f
push 0
push 0x8ed
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100300b4
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061c1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x100301e0
lea eax, [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100301c9
mov dword [ebp - 0x20], 0x754c
mov dword [ebp - 0x2c], 0x1000a238
cmp dword [ebp - 0x20], 0x76d0
jle 0x10030178
and dword [ebp - 0x14], 0
jmp 0x1003011a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x5f89
jge 0x10030178
and dword [ebp - 0x18], 0
jmp 0x10030130
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x775f
jge 0x10030176
and dword [ebp - 0x1c], 0
jmp 0x10030146
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2fa
jge 0x10030174
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
cdq
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
mov ecx, 0x10609cb8
call fcn.1000fe1e
jmp 0x1003013f
jmp 0x10030129
jmp 0x10030113
push 0
push 0x8ed
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x71b3
jge 0x100301a1
mov edx, dword [ebp - 0x2c]
mov ecx, 0x10609cb8
call fcn.100118c8
jmp 0x100301bd
or dword [ebp - 4], 0xffffffff
jmp 0x100301c7
jmp 0x100301db
push 0x12c0
push 0x6a7
push 0
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
jmp 0x10030286
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x10030227
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
imul eax, dword [eax], 6
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x10030286
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
push 0
push dword [ebp - 0x5c]
push 1
push 1
mov eax, dword [ebp - 0x60]
push dword [eax]
mov eax, dword [ebp - 0x64]
push dword [eax]
mov eax, dword [ebp - 0x68]
push dword [eax]
push 0x33c7
push 0x4c9b
push 0x706e
call fcn.1003846e
add esp, 0x28
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret