joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41db45
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13684
call fcn.004ad610
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x52ab74]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x208
mov dword [ebp - 0x13624], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x13628], edx
call fcn.00489f20
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x620]
add esp, 0xc
push 0x4bc498
push eax
call esi
lea ecx, [ebp - 0x13620]
call fcn.00421c83
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test ebx, ebx
jne 0x41dc64
push 0x52a900
call edi
test eax, eax
je 0x41dbe1
push 0x52a900
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x41dc64
push 0x526d00
call edi
test eax, eax
lea eax, [ebp - 0x210]
je 0x41dc5c
mov esi, 0x104
push esi
push eax
push 0x526d00
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41dc64
push esi
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
jmp 0x41dc64
push 0x523808
push eax
call esi
push 0x58
pop esi
push esi
lea eax, [ebp - 0x13680]
push 0
push eax
call fcn.00489f20
mov eax, dword [ebp - 0x13624]
add esp, 0xc
mov dword [ebp - 0x1367c], eax
test ebx, ebx
lea eax, [ebp - 0x13620]
mov dword [ebp - 0x13680], esi
mov dword [ebp - 0x13674], eax
mov esi, 0x527560
lea eax, [ebp - 0x620]
mov dword [ebp - 0x1364c], 0x2005804
mov dword [ebp - 0x13664], eax
lea eax, [ebp - 0x210]
cmovne eax, ebx
mov ebx, 0x104
push esi
mov dword [ebp - 0x13654], eax
mov dword [ebp - 0x13660], ebx
call edi
neg eax
sbb eax, eax
and eax, esi
mov dword [ebp - 0x13644], eax
lea eax, [ebp - 0x13680]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x41dd07
push ebx
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x13628]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
inc eax
jmp 0x41dd09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret
Function at 0x41dd18
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13684
call fcn.004ad610
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x52ab74]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x208
mov dword [ebp - 0x13624], eax
mov esi, edx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x13628], esi
push 0
push eax
call fcn.00489f20
add esp, 0xc
lea eax, [ebp - 0x620]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
call esi
lea ecx, [ebp - 0x13620]
call fcn.00421c83
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
test eax, eax
je 0x41dd8c
push ebx
jmp 0x41de34
mov ebx, 0x52a900
push ebx
call edi
test eax, eax
je 0x41ddb4
push ebx
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x41de3d
mov ebx, 0x526d00
push ebx
call edi
test eax, eax
je 0x41de2f
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41de3d
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
jmp 0x41de3d
push 0x523808
lea eax, [ebp - 0x210]
push eax
call esi
push 0x58
pop esi
push esi
lea eax, [ebp - 0x13680]
push 0
push eax
call fcn.00489f20
mov eax, dword [ebp - 0x13624]
add esp, 0xc
mov dword [ebp - 0x1367c], eax
lea eax, [ebp - 0x13620]
mov dword [ebp - 0x13674], eax
lea eax, [ebp - 0x620]
mov dword [ebp - 0x13680], esi
mov esi, 0x527560
mov dword [ebp - 0x13664], eax
lea eax, [ebp - 0x210]
push esi
mov dword [ebp - 0x13654], eax
mov dword [ebp - 0x13660], 0x104
mov dword [ebp - 0x1364c], 0x2000806
call edi
neg eax
sbb eax, eax
and eax, esi
mov dword [ebp - 0x13644], eax
lea eax, [ebp - 0x13680]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x41dede
push 0x104
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x13628]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
inc eax
jmp 0x41dee0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret
Function at 0x41e625
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x523b6c]
sub esp, 0x6c
cmp dword [0x5235ec], 2
push ebx
push esi
push edi
jne 0x41e788
cmp eax, 1
jle 0x41e788
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
push ebx
mov dword [ebp - 8], eax
call edi
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x523a10]
push 0x4bc498
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_CharPrevW]
lea eax, [ebx + eax*2]
push eax
push ebx
call esi
push 0x20
mov edx, eax
pop edi
movzx ecx, word [edx]
cmp cx, di
je 0x41e6c7
cmp ecx, 0x2d
je 0x41e6c7
cmp ecx, 0x2b
jne 0x41e6e6
push edx
push ebx
mov word [edx], di
call esi
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, ecx
inc ecx
mov dword [ebp - 4], ecx
cmp eax, 1
jle 0x41e6b5
dec dword [0x523a10]
jmp 0x41e6b5
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
cmp dword [0x523b6c], edi
jle 0x41e76a
mov eax, dword [0x523a10]
push str.__n__
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [edi*4 + 0x527600]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [edi*4 + 0x527600]
call esi
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00489f20
push 0x10
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x68], 0x44
push 0
push eax
call fcn.00489f20
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x523808
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
inc edi
cmp edi, dword [0x523b6c]
jl 0x41e6f6
push ebx
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
push dword [0x5235d8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
jmp 0x41e7a6
xor esi, esi
test eax, eax
jle 0x41e7a4
push dword [esi*4 + 0x527600]
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, dword [0x523b6c]
jl 0x41e78e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e7ab
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x600
sub esp, 0x88
cmp word [0x52a5ec], ax
jb 0x41e8ba
cmp dword [0x524fd4], 0
jne 0x41e8ba
cmp dword [0x523b68], 0
je 0x41e8ba
cmp dword [0x523800], 0
jne 0x41e8ba
push ebx
push esi
push edi
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
push edi
mov dword [ebp - 8], eax
call ebx
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
mov esi, dword [ebp - 8]
mov ecx, edi
push eax
mov edx, esi
mov dword [ebp - 4], eax
call fcn.00411058
pop ecx
push esi
call ebx
test eax, eax
je 0x41e8a3
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00489f20
add esp, 0xc
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x800500
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x58]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x38], str.runas
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x523808
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x41e8a6
mov edi, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
xor eax, eax
leave
ret
Function at 0x4202c3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x410
lea eax, [ebp - 0x618]
mov esi, ecx
push 0
push eax
call fcn.00489f20
push 0x58
pop edi
push edi
lea eax, [ebp - 0x678]
push 0
push eax
call fcn.00489f20
add esp, 0x18
lea eax, [ebp - 0x208]
push 0x100
push eax
push 0x2720
push dword [0x52a6a0]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x208]
mov dword [ebp - 0x678], edi
mov dword [ebp - 0x66c], eax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x678]
push eax
mov dword [ebp - 0x674], esi
mov dword [ebp - 0x63c], 0x4ebcf8
mov dword [ebp - 0x658], 0x208
mov dword [ebp - 0x644], 0x200580c
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x420461
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ebx, eax
mov esi, 0x4bcda0
shr ebx, 1
mov dword [ebp - 0x620], ebx
lea eax, [ebp - 0x618]
push eax
mov eax, dword [esi]
push ebx
push edi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x420446
mov ecx, dword [esi]
mov edx, str.FileNameExtensions
push 0x80
lea eax, [ecx + 0x10]
push eax
push dword [ecx + 0xc]
mov ecx, edi
call fcn.0040f575
add esp, 0xc
test eax, eax
jne 0x4203ed
mov eax, dword [esi]
push 0x80
push dword [eax + 0xc]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [esi]
and dword [ebp - 0x61c], 0
cmp dword [ecx + 0x114], 0xffffffff
je 0x420446
mov ebx, dword [ebp - 0x61c]
xor edx, edx
lea eax, [ecx + 0x124]
add eax, edx
push 0x80
push eax
push dword [edx + ecx + 0x120]
mov edx, dword [edx + ecx + 0x11c]
mov ecx, edi
call fcn.0040f575
mov ecx, dword [esi]
add esp, 0xc
inc ebx
imul edx, ebx, 0x110
cmp dword [edx + ecx + 0x114], 0xffffffff
jne 0x420407
mov ebx, dword [ebp - 0x620]
add esi, 4
cmp esi, 0x4bce38
jl 0x42039c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
jmp 0x420463
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret
Function at 0x422920
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
push edi
call ebx
test eax, eax
jne 0x42294b
mov edi, dword [esi + 0xc]
push edi
call ebx
lea eax, [eax*2 + 0x2a]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push 0x4ec180
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call edi
push 0x3b
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x422988
xor ecx, ecx
mov word [eax], cx
push esi
call ebx
cmp eax, 3
jge 0x422998
push 0x4c3b24
push esi
call edi
push 0x4011
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2b4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00486c63
leave
ret
Function at 0x44a8b2
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 8]
jae 0x44a8f8
mov ecx, dword [edi + 0x38]
cmp ecx, 0x20
je 0x44a8e6
cmp ecx, 9
je 0x44a8e6
cmp ecx, 0xa
je 0x44a8e6
cmp ecx, 0xd
jne 0x44a8f5
mov ecx, edi
call fcn.0042b8bb
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 8]
jb 0x44a8cf
mov edx, dword [ebp - 8]
push dword [edi + 0x30]
dec eax
mov ecx, edx
push eax
call fcn.0042b64c
mov esi, dword [edi + 0x38]
cmp esi, 0x80
jge 0x44aa8f
push esi
call fcn.00497940
pop ecx
test eax, eax
jne 0x44a931
cmp esi, 0x2e
je 0x44a931
cmp esi, 0x5f
je 0x44a931
cmp esi, 0x5c
jne 0x44aa8f
push ebx
mov ebx, dword [ebp + 0xc]
jmp 0x44a9d0
mov esi, dword [edi + 0x38]
cmp esi, 0x20
je 0x44a9dc
cmp esi, 9
je 0x44a9dc
cmp esi, 0xa
je 0x44a9dc
cmp esi, 0xd
je 0x44a9dc
cmp dword [ebp - 4], 0x1f3
jge 0x44a9dc
push esi
call fcn.00497940
pop ecx
test eax, eax
jne 0x44a9bc
cmp esi, 0x2a
je 0x44a9dc
cmp esi, 0x2f
je 0x44a9dc
cmp esi, 0x2d
je 0x44a9dc
cmp esi, 0x2b
je 0x44a9dc
cmp esi, 0x28
je 0x44a9dc
cmp esi, 0x29
je 0x44a9dc
cmp esi, 0x3d
je 0x44a9dc
cmp esi, 0x25
je 0x44a9dc
cmp esi, 0x5b
je 0x44a9dc
cmp esi, 0x5d
je 0x44a9dc
cmp esi, 0x3c
je 0x44a9dc
cmp esi, 0x3e
je 0x44a9dc
cmp esi, 0x2c
je 0x44a9dc
cmp esi, 0x3b
je 0x44a9dc
cmp esi, 0x3a
je 0x44a9dc
mov ecx, dword [ebp - 4]
mov al, byte [edi + 0x38]
mov byte [ecx + ebx], al
inc ecx
mov dword [ebp - 4], ecx
mov ecx, edi
call fcn.0042b8bb
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 8]
jb 0x44a93a
mov eax, dword [ebp - 4]
mov esi, ebx
mov byte [eax + ebx], 0
mov al, byte [ebx]
jmp 0x44aa06
movsx eax, al
push eax
call fcn.00497b80
pop ecx
test eax, eax
je 0x44aa03
movsx eax, byte [esi]
push eax
call fcn.004970f0
pop ecx
mov byte [esi], al
inc esi
mov al, byte [esi]
test al, al
jne 0x44a9e9
mov esi, dword [ebp - 0xc]
push ebx
mov ecx, dword [esi]
call fcn.00479026
test al, al
je 0x44aa1d
push 3
jmp 0x44aa4e
mov ecx, dword [esi + 8]
push ebx
call fcn.00479026
test al, al
je 0x44aa2e
push 5
jmp 0x44aa4e
mov ecx, dword [esi + 0xc]
push ebx
call fcn.00479026
test al, al
je 0x44aa3f
push 6
jmp 0x44aa4e
mov ecx, dword [esi + 0x10]
push ebx
call fcn.00479026
test al, al
je 0x44aa51
push 7
pop ecx
jmp 0x44aa64
mov ecx, dword [esi + 4]
push ebx
call fcn.00479026
xor ecx, ecx
test al, al
push 4
pop edx
cmovne ecx, edx
mov eax, dword [edi + 0x1c]
dec eax
pop ebx
test ecx, ecx
je 0x44aa80
push ecx
mov dword [edi + 0x30], ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.0042b64c
and dword [edi + 0x30], 0
jmp 0x44aa8f
mov ecx, dword [ebp - 8]
and dword [edi + 0x30], 0
push 0
push eax
call fcn.0042b64c
pop edi
pop esi
leave
ret
Function at 0x4869cb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movsd xmm0, qword [0x525478]
ucomisd xmm0, qword [0x4f2700]
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
lahf
test ah, 0x44
jp 0x486bd5
movsd xmm1, qword [0x4f2690]
xor esi, esi
push ecx
push ecx
movsd qword [esp], xmm1
push esi
push 0x2914c74e
call fcn.004ad090
sub esp, 0x18
mov ecx, esp
push edx
push eax
push ecx
call fcn.0042a034
add esp, 0xc
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movsd xmm0, qword [0x525478]
add esp, 0x28
mov dword [ebp - 4], eax
mov ebx, edx
call fcn.004ad090
sub esp, 0x18
mov ecx, esp
push edx
push eax
push ecx
call fcn.0042a0a0
add esp, 0xc
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
movsd xmm0, qword [0x525478]
push esi
push 0x5833a5
push esi
push 0xf834d99
mov dword [ebp - 8], eax
call fcn.004ad090
sub esp, 0x18
mov ecx, esp
push edx
push eax
push ecx
call fcn.0042a034
sub esp, 0xc
mov ecx, esp
push str.raazaebutorwuw
call fcn.00429edc
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0
push 0x129a18f8
mov edi, eax
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, eax
call fcn.004ad140
push 0x3e9d7f69
movsd qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_GetServiceKeyNameW]
mov edx, esi
mov ecx, edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
call fcn.004ad140
movsd xmm1, qword [0x4f2618]
divsd xmm1, xmm0
push ecx
push ecx
movsd xmm0, qword [ebp - 0x18]
mulsd xmm0, xmm1
mulsd xmm0, qword [ebp - 0x20]
movsd qword [ebp - 0x18], xmm0
movsd xmm0, qword [0x525478]
movsd qword [esp], xmm0
push 0x3ba4d5a6
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ecx, eax
call fcn.004ad140
movsd qword [ebp - 0x38], xmm0
call dword [sym.imp.ADVAPI32.dll_GetServiceKeyNameA]
movsd qword [ebp - 0x28], xmm0
sub esp, 0x20
movsd xmm1, qword [0x4f2638]
mov ecx, esp
movsd qword [esp + 0x18], xmm1
push str.jerymherpyj
call fcn.00429edc
mov ecx, 0x3930f1d6
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
movsd xmm0, qword [0x4f2620]
mov edx, ebx
fstp qword [ebp - 0x20]
divsd xmm0, qword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mulsd xmm0, qword [ebp - 0x28]
divsd xmm0, qword [ebp - 0x38]
movsd qword [ebp - 0x20], xmm0
call fcn.004ad140
movsd xmm1, qword [0x4f26a0]
divsd xmm1, xmm0
push 0x168eed45
push 0
push 0x7885885
movsd qword [ebp - 0x38], xmm1
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusA]
movsd xmm0, qword [ebp - 0x38]
add esp, 0xc
fstp qword [ebp - 0x28]
divsd xmm0, qword [ebp - 0x28]
movsd xmm2, qword [0x4f2650]
movsd xmm1, qword [0x4f25e0]
subsd xmm2, xmm0
movd xmm0, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
addsd xmm2, xmm1
subsd xmm2, qword [ebp - 0x20]
addsd xmm2, qword [ebp - 0x18]
movsd qword [0x525478], xmm2
mov edx, 0x92c
lea ecx, [ebp - 0x38]
call fcn.0047e738
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00478314
lea ecx, [ebp - 0x38]
call fcn.00429f86
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4876e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x487722
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x487722
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x487722
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x487722
cmp dword [ecx + 0x74], 0xe
jbe 0x487722
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4a1ee2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b5d28
push 0x4b5d20
push str.FlsAlloc
push 0x1e
call fcn.004a1d23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a1f16
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b16f0]
call esi
jmp 0x4a1f1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a1f60
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b5d38
push 0x4b5d30
push str.FlsGetValue
push 0x20
call fcn.004a1d23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a1f97
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b16f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4a2968
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a28ea
Function at 0x4a544c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4a54e9
push ebx
push esi
call fcn.004a5415
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004a535e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a5496
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a54e8
push edi
push eax
call fcn.004a1959
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4a54b6
call fcn.004a019f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a54e7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004a535e
add esp, 0x20
test eax, eax
jne 0x4a54d5
push edi
call fcn.004a019f
jmp 0x4a54dd
push ebx
call fcn.004a019f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4a54ec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a54fd
pop esi
ret
push ebx
push edi
push esi
call fcn.004a5415
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a1959
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a5525
push ebx
push esi
push edi
call fcn.0048a080
add esp, 0xc
push 0
call fcn.004a019f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4a58e9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a553a
Function at 0x4ad2a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ad2cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ad2cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4027e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440e8f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x456040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x218]
call fcn.00408ba0
lea ecx, [esi + 0x7cc]
call fcn.0041dbd0
mov dword [ebp - 4], 0
mov dword [esi + 0x7e8], 0
mov dword [esi + 0x7e0], 0
mov dword [esi + 0x7e4], 0
mov byte [esi + 0x7ec], 0
mov dword [esi + 0x7fc], 0
mov dword [esi + 0x7f4], 0
mov dword [esi + 0x7f8], 0
mov byte [esi + 0x800], 0
push esi
push 0x208
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4434f8
push 0x214
push esi
call fcn.00425440
push str.MERVBot.INI
push 0x214
push esi
call fcn.00425440
add esp, 0x18
call fcn.00401230
mov dword [esi + 0x214], eax
mov eax, esi
mov dword [esi + 0x8d4], 0x7530
mov byte [esi + 0x804], 0
mov byte [esi + 0x7f0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret