joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026110
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x10038aa0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x10026158
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10026138
mov eax, 1
jmp 0x10026153
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10026229
mov eax, 2
mov dword [0x10038aa0], eax
cmp eax, 1
jne 0x10026178
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x1002623b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10026193
mov ecx, dword [0x100387e0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x100261b2
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1001c6e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100261c6
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10026220
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10026204
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x10026220
push edi
call fcn.1001c670
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x10026230
push edi
call fcn.1001c670
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.1001c670
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10026240
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x10038aa4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x10026288
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002626c
mov eax, 1
jmp 0x10026283
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10026368
mov eax, 2
mov dword [0x10038aa4], eax
cmp eax, 2
jne 0x100262a8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x1002637a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x100262c3
mov ecx, dword [0x100387e0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x100262e2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.1001c6e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100262f9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002635f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x10026340
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1002635f
push esi
call fcn.1001c670
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x1002636f
push esi
call fcn.1001c670
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1001c670
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10026650
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1002680e
push 0x3d
push edi
call fcn.1001d0e0
mov esi, eax
add esp, 8
test esi, esi
je 0x1002680e
cmp edi, esi
je 0x1002680e
mov dl, byte [esi + 1]
mov ecx, dword [0x100384d4]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x100384d0]
cmp eax, ecx
jne 0x100266a7
push eax
call fcn.100268e0
add esp, 4
mov dword [0x100384d0], eax
test eax, eax
jne 0x10026722
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100266ce
mov eax, dword [0x100384d8]
test eax, eax
je 0x100266ce
call fcn.10025e40
test eax, eax
je 0x1002671d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x100266da
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.1001c6e0
add esp, 4
mov dword [0x100384d0], eax
test eax, eax
je 0x1002680e
mov dword [eax], 0
mov eax, dword [0x100384d8]
test eax, eax
jne 0x1002671d
push 4
call fcn.1001c6e0
add esp, 4
mov dword [0x100384d8], eax
test eax, eax
je 0x1002680e
mov dword [eax], 0
mov eax, dword [0x100384d0]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.10026860
mov esi, eax
add esp, 8
test esi, esi
jl 0x1002681f
cmp dword [ebx], 0
je 0x1002681f
test ebp, ebp
je 0x10026817
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.1001c670
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x10026779
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x10026768
lea eax, [esi*4]
push eax
push ebx
call fcn.1001efa0
add esp, 8
test eax, eax
je 0x10026793
mov dword [0x100384d0], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10026806
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.1001c6e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10026806
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.1001c670
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x10026797
test ebp, ebp
jne 0x10026806
test esi, esi
jge 0x10026829
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.1001efa0
add esp, 8
test eax, eax
je 0x1002680e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x100384d0], eax
jmp 0x10026797
Function at 0x10027847
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
push esi
push edi
lea eax, [ebp - 0x230]
push str.RxFileMap
push eax
call fcn.10028700
push dword [0x10038d68]
lea eax, [ebp - 0x230]
push eax
call fcn.10028710
add esp, 0x10
lea eax, [ebp - 0x230]
xor edi, edi
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, edi
je 0x10027895
push eax
jmp 0x10027a2b
lea eax, [ebp - 0x11c]
push str.EntryEvent
push eax
call fcn.10028700
push dword [0x10038d68]
lea eax, [ebp - 0x11c]
push eax
call fcn.10028710
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0x10
lea eax, [ebp - 0x11c]
mov esi, 0x10037258
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x10038d70], eax
je 0x10027a18
lea eax, [ebp - 0x11c]
push str.ExitEvent
push eax
call fcn.10028700
push dword [0x10038d68]
lea eax, [ebp - 0x11c]
push eax
call fcn.10028710
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x10038d74], eax
je 0x10027a18
lea eax, [ebp - 0x230]
push eax
push 0x10000
push edi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [0x10038d78], eax
je 0x10027a18
push edi
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [0x10038d88], eax
je 0x10027a18
cmp word [ebp + 8], di
je 0x10027a31
push edi
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [ebp + 8], eax
je 0x10027a18
lea eax, [ebp - 0x344]
push str.ASCMutex
push eax
call fcn.10028700
push dword [0x10038d68]
lea eax, [ebp - 0x344]
push eax
call fcn.10028710
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [0x10038d84], eax
je 0x10027a18
lea eax, [ebp - 0x11c]
push str.ExitThreadEvent
push eax
call fcn.10028700
push dword [0x10038d68]
lea eax, [ebp - 0x11c]
push eax
call fcn.10028710
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x10038d7c], eax
je 0x10027a18
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push edi
push eax
push 0x10027eb2
push edi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x10038d6c], eax
jne 0x10027a1d
xor ax, ax
jmp 0x10027a35
push dword [0x10037254]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10027c5f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push 1
pop esi
lea eax, [ebp - 0x114]
push str.ASCMutex
push eax
call fcn.10028700
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.10028710
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x10038d80], eax
je 0x10027cb8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10027cba
xor esi, esi
mov ax, si
pop esi
leave
ret

Function at 0x10029060
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, eax
dec eax
test edx, edx
jbe 0x100290cd
push edi
mov edi, dword [esp + 0x14]
sub edi, ecx
push esi
mov esi, dword [esp + 0xc]
inc eax
push ebp
push ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
xor edx, edx
mov ebx, 0x7b
mov ebp, 0x7f
div ebx
xor eax, eax
mov al, byte [edx + esi]
xor edx, edx
mov ebx, eax
mov eax, ecx
div ebp
xor eax, eax
mov al, byte [edx + esi]
mov edx, ecx
xor ebx, eax
and edx, ebp
mov al, byte [ebx + 0x10030028]
mov bl, byte [edx + esi]
xor al, bl
mov bl, byte [ecx + edi]
xor bl, al
mov eax, dword [esp + 0x1c]
mov byte [ecx + edi], bl
inc ecx
dec eax
mov dword [esp + 0x1c], eax
jne 0x10029082
pop ebx
pop ebp
pop esi
pop edi
mov eax, 0x3e9
ret

Function at 0x1002a420
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0x1002a45a
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0x1002a43b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret

Function at 0x1002a5a9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x40
push 0
push dword [ebp + 8]
call fcn.1001c313
add esp, 0x10
test ax, ax
jne 0x1002a5e8
mov edi, 0xff
push 0x40
push edi
push esi
call fcn.1001ef40
push 0xf8
push edi
push dword [ebp + 0x10]
call fcn.1001ef40
add esp, 0x18
jmp 0x1002a628
cmp word [esi], 0x5a4d
mov ebx, dword [ebp + 0x10]
mov edi, 0xf8
jne 0x1002a619
push ebx
push edi
push dword [esi + 0x3c]
push dword [ebp + 8]
call fcn.1001c313
add esp, 0x10
test ax, ax
je 0x1002a619
xor eax, eax
cmp dword [ebx], 0x4550
sete al
jmp 0x1002a62b
push edi
push 0xff
push ebx
call fcn.1001ef40
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4125ff
Capabilities:
Check os version

Disassembly:
push 0x138
mov eax, 0x46e8c3
call fcn.0045f3fe
mov ecx, dword [0x481200]
push 0x408bd8
call fcn.0042d4e5
mov esi, 0x114
push esi
lea eax, [ebp - 0x124]
push 0
push eax
mov byte [ebp - 0x125], 0
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x41267e
cmp dword [ebp - 0x114], 2
jne 0x41267e
cmp dword [ebp - 0x120], 5
jne 0x412675
cmp dword [ebp - 0x11c], 1
jae 0x412677
cmp dword [ebp - 0x120], 5
jbe 0x41267e
mov byte [ebp - 0x125], 1
call fcn.004610c9
mov ecx, dword [0x481200]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x41279c
push 0x408c24
call fcn.0042d4e5
push 0x409388
push dword [ebp - 0x12c]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x41278b
xor eax, eax
lea edi, [ebp - 0x140]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], 0x14
call ecx
mov edi, dword [ebp + 8]
mov esi, dword [0x481200]
push ebx
push dword [ebp + 0xc]
push edi
push 0x408c48
call fcn.004610c9
push dword [ebp - 0x134]
mov esi, dword [0x481200]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push 0x408c74
call fcn.004610c9
mov eax, dword [ebp - 0x138]
add esp, 0x20
cmp dword [ebp - 0x13c], edi
setb dl
cmp dword [ebp - 0x13c], edi
jne 0x412739
cmp eax, dword [ebp + 0xc]
jae 0x412739
mov cl, 1
jmp 0x41273b
xor cl, cl
cmp dword [ebp - 0x13c], edi
jne 0x412754
cmp eax, dword [ebp + 0xc]
jne 0x412754
cmp dword [ebp - 0x134], ebx
jae 0x412754
mov al, 1
jmp 0x412756
xor al, al
test dl, dl
jne 0x412776
test cl, cl
jne 0x412776
test al, al
jne 0x412776
mov ecx, dword [0x481200]
push 0x408cd4
call fcn.0042d4e5
xor edi, edi
jmp 0x41278e
mov ecx, dword [0x481200]
push 0x408c94
call fcn.0042d4e5
xor edi, edi
inc edi
jmp 0x41278e
push 2
pop edi
push dword [ebp - 0x12c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x4127a9
push 0x408d10
call fcn.0042d4e5
push 2
pop edi
cmp byte [ebp - 0x125], 0
je 0x41280e
test edi, edi
je 0x41280e
cmp dword [ebp + 8], 2
jne 0x41280e
push 0x828
call fcn.004610c9
pop ecx
mov dword [ebp - 0x12c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4127f1
push 0x408d50
mov eax, 0x1003
push eax
push eax
push dword [ebp - 0x12c]
call fcn.00411c0e
add esp, 0x10
jmp 0x4127f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x144], eax
push 0x4737e4
lea eax, [ebp - 0x144]
push eax
call fcn.004610c9
mov esi, dword [0x481200]
push edi
push 0x408e68
call fcn.004610c9
pop ecx
pop ecx
mov eax, edi
call fcn.0045f490
ret 8
Function at 0x412a23
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x46b8aa
call fcn.0045f38b
push 0x44
xor esi, esi
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004433d0
add esp, 0xc
push 0xc
pop eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push 8
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x84], 0x44
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
cmp eax, esi
je 0x412abf
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [ebp - 0x40]
call esi
mov eax, dword [ebp - 0x10]
call fcn.0045f477
ret 4
push 0x828
call fcn.004610c9
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x412af0
push dword [ebp + 8]
mov eax, 0x1fff
push 0x408f60
push eax
push eax
push dword [ebp - 0x14]
call fcn.00411c0e
add esp, 0x14
jmp 0x412af2
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
push 0x4737e4
lea eax, [ebp - 0x18]
push eax
call fcn.004610c9
int3
Function at 0x41553d
Capabilities:
Query service status
Stop service

Disassembly:
push 0x15c
mov eax, 0x46c465
call fcn.0045f3fe
mov edi, dword [0x481200]
xor ebx, ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a278
call fcn.004610c9
mov dword [ebp - 4], ebx
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
mov esi, 0x114
push esi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x4155dc
cmp dword [ebp - 0x114], 2
je 0x4155dc
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a2d0
call fcn.004610c9
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
mov eax, esi
jmp 0x415770
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x128], esi
cmp esi, ebx
jne 0x415621
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a368
call fcn.004610c9
mov dword [ebp - 4], 2
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
xor eax, eax
jmp 0x415770
push 0x24
push 0x40a3e0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x130], eax
cmp eax, ebx
jne 0x41565f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a3f8
call fcn.004610c9
mov dword [ebp - 4], 3
jmp 0x41560f
lea ecx, [ebp - 0x168]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
jne 0x41569e
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a478
call fcn.004610c9
mov dword [ebp - 4], 4
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
jmp 0x415758
cmp dword [ebp - 0x164], 1
je 0x41572d
lea eax, [ebp - 0x14c]
push eax
push 1
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
jne 0x4156e3
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a4f8
call fcn.004610c9
mov dword [ebp - 4], 5
jmp 0x41568e
push dword [ebp - 0x130]
lea esi, [ebp - 0x14c]
call fcn.004610c9
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
test eax, eax
jne 0x41571a
push 0x40a570
call fcn.004610c9
mov dword [ebp - 4], 6
jmp 0x41568e
push 0x40a5f0
call fcn.004610c9
mov dword [ebp - 4], 7
jmp 0x41574a
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a660
call fcn.004610c9
mov dword [ebp - 4], 8
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
xor ebx, ebx
inc ebx
push dword [ebp - 0x130]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x128]
call esi
mov eax, ebx
call fcn.0045f490
ret
Function at 0x41753c
Capabilities:
Reference sql statements

Disassembly:
push 0x4c
mov eax, 0x46cf9a
call fcn.0045f439
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
xor ebx, ebx
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
lea esi, [eax + 0xcc]
push dword [eax + 0xbc]
mov eax, esi
call fcn.004610c9
mov dword [ebp - 0x3c], eax
push 0x40b618
lea ecx, [ebp - 0x30]
call fcn.004610c9
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x417595
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x3c]
mov eax, esi
call fcn.004610c9
mov edi, eax
cmp edi, ebx
je 0x417608
push 0x828
call fcn.004610c9
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4175f1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4175cc
lea eax, [ebp - 0x2c]
push edi
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x3c]
push 0x40aa48
push 0x654
push 0x19dc
push dword [ebp - 0x40]
call fcn.00411c0e
add esp, 0x20
jmp 0x4175f3
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], eax
push 0x4737e4
lea eax, [ebp - 0x50]
push eax
call fcn.004610c9
push ebx
push dword [ebp - 0x38]
mov eax, esi
call fcn.004610c9
mov edi, eax
cmp edi, ebx
je 0x417661
push 0x828
call fcn.004610c9
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41764e
push edi
push ebx
push dword [ebp - 0x38]
push 0x40aaf8
push 0x654
push 0x19dc
push eax
call fcn.00411c0e
add esp, 0x1c
jmp 0x417650
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], eax
push 0x4737e4
lea eax, [ebp - 0x54]
jmp 0x417602
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
mov eax, esi
call fcn.004610c9
test eax, eax
jne 0x4176a9
push 1
push dword [ebp - 0x44]
mov eax, esi
call fcn.004610c9
cmp eax, ebx
je 0x41769d
mov byte [ebp - 0x31], 1
push eax
mov ecx, dword [ebp - 0x40]
call fcn.004610c9
push 0x409d00
mov ecx, dword [ebp - 0x40]
call fcn.004610c9
push dword [ebp - 0x44]
mov eax, esi
call fcn.004610c9
jmp 0x417661
cmp dword [ebp - 0x38], ebx
je 0x4176b8
push dword [ebp - 0x38]
mov eax, esi
call fcn.004610c9
cmp dword [ebp - 0x3c], ebx
je 0x4176c7
push dword [ebp - 0x3c]
mov eax, esi
call fcn.004610c9
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004610c9
mov al, byte [ebp - 0x31]
call fcn.0045f4a4
ret 4
Function at 0x418db9
Capabilities:
Get common file path

Disassembly:
push 0x294
mov eax, 0x46e7ac
call fcn.0045f3fe
mov ecx, dword [0x481200]
push 0x40c168
call fcn.0042d4e5
xor eax, eax
push 0x62
mov word [ebp - 0x74], ax
xor edi, edi
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.004433d0
xor eax, eax
push 0x208
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x27e]
push edi
push eax
call fcn.004433d0
add esp, 0x18
mov esi, 0x105
push esi
lea eax, [ebp - 0x280]
push eax
mov dword [ebp - 0x2a0], 0x32
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x418ec2
cmp eax, esi
ja 0x418ec2
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x29c]
call fcn.004610c9
mov dword [ebp - 4], edi
push 0x40c1d0
lea ecx, [ebp - 0x29c]
call fcn.004610c9
cmp dword [ebp - 0x284], 8
mov eax, dword [ebp - 0x298]
jae 0x418e71
lea eax, [ebp - 0x298]
push edi
push edi
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
call sub.msi.dll_MsiMessageBoxW
test eax, eax
mov eax, dword [ebp - 0x298]
je 0x418eca
cmp dword [ebp - 0x284], 8
jae 0x418e9d
lea eax, [ebp - 0x298]
mov esi, dword [0x481200]
push eax
push 0x40c1f0
call fcn.004610c9
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x29c]
call fcn.004610c9
xor al, al
call fcn.0045f490
ret
cmp dword [ebp - 0x284], 8
jae 0x418ed9
lea eax, [ebp - 0x298]
mov esi, dword [0x481200]
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0x40c260
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.004610c9
mov ecx, dword [0x481200]
push 0x40c288
call fcn.0042d4e5
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x29c]
call fcn.004610c9
mov al, 1
jmp 0x418ec4