joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e020
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e1cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45e1ac
mov dl, 1
mov eax, dword [0x4158ec]
call fcn.004032f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404090
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45e19b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044bf60
test al, al
je 0x45e18e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45e1dc
lea eax, [ebp - 0x254]
call fcn.004091e8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45e18e
xor eax, eax
push ebp
push 0x45e187
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45e214
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45e170
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404300
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45e170
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e18e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45e091
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004193fc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e1d2
lea eax, [ebp - 0x260]
call fcn.00404090
ret

Function at 0x45eb00
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x48bbe0]
cmp byte [eax + 0xa5], 0
jne 0x45eb71
cmp dword [0x48bbf8], 0
jne 0x45eb32
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45eabc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48bbf8], eax
cmp dword [0x48bbf4], 0
jne 0x45eb4d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48bbf4], eax
cmp dword [0x48bbfc], 0
jne 0x45eb71
push esp
push 0
push 0
push 0x45ea60
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48bbfc], eax
pop edx
ret
Function at 0x45ec68
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ec7f
add esp, 0xfffffff0
call fcn.00403644
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d20c
mov eax, dword [0x48ac68]
cmp word [eax + 2], 0
jne 0x45eca7
mov eax, dword [0x48ac68]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004603d0
mov eax, dword [0x48ad20]
cmp word [eax + 2], 0
jne 0x45ecc1
mov eax, dword [0x48ad20]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004605c8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4154d0]
call fcn.004032f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4154d0]
call fcn.004032f0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f820]
call fcn.00427578
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45ee48
mov eax, dword [0x48ab84]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427948
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x460b78
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48ab84]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c940
test eax, eax
je 0x45edb6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408bdc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c968
test eax, eax
je 0x45edca
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404300
mov eax, dword [0x48aa40]
cmp byte [eax], 0
jne 0x45edfe
mov eax, ebx
call fcn.0045ef70
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00460d54
mov eax, ebx
call fcn.00461718
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ee3e
call fcn.0040369c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f1f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48bbe0]
cmp dword [eax + 0x30], 0
je 0x45f29a
cmp dword [ebx + 0x94], 0
jne 0x45f294
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45f180
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45f294
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45f25a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45f294
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041786c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45f269
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45fdfc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45fe31
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404180
jmp 0x45fe3e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040e4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x460f30
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460f71
mov eax, esi
call fcn.00447548
test al, al
je 0x460f71
mov eax, dword [ebx + 0x84]
call fcn.00447244
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460f71
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447244
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x461c30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414a68]
call fcn.00404a70
xor eax, eax
push ebp
push 0x461d74
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x489edc], 0
jne 0x461c83
mov ecx, dword [0x48aa50]
mov dl, 1
mov eax, dword [0x407338]
call fcn.0040bbe4
call fcn.00403aac
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d18
mov eax, ebx
call fcn.004048f8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x461d84
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004059fc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404908
test eax, eax
jle 0x461d1b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x461d14
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404318
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404300
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004081cc
test eax, eax
jne 0x461d14
mov ebx, 0x15
jmp 0x461d20
mov ebx, 0x10
jmp 0x461d20
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x489edc]
call fcn.00461b88
mov eax, dword [ebp - 8]
call fcn.00461b88
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461d7b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004040b4
lea eax, [ebp - 0x10]
mov edx, dword [0x414a68]
call fcn.00404b40
ret

Function at 0x46bb04
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46bb32
mov eax, ebx
call fcn.0046c5b8
cmp dword [ebx + 0x40], 0
je 0x46bb2b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46bba3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46bb95
cmp dword [ebx + 8], 0
je 0x46bb54
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46bb66
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46bb95
cmp dword [ebx + 8], 0
je 0x46bb47
cmp eax, 3
je 0x46bb79
dec eax
jne 0x46bb47
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46bb47
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46bb47
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46bbc1
cmp dword [ebx + 0x14], 0xcc
je 0x46bbc1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046bbcc
pop ebx
ret
Function at 0x401040
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495650
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1a4
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 4], 0
cmp dword [0x4d3d3c], 0
jne 0x4010a9
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4010a7
mov dword [0x4d3d3c], 1
jmp 0x4010b3
mov eax, 1
jmp 0x401287
push 0x499388
mov ecx, dword [ebp - 0x1b4]
call fcn.0041b570
mov dword [ebp - 0x1ac], 0
jmp 0x4010de
mov ecx, dword [ebp - 0x1ac]
add ecx, 1
mov dword [ebp - 0x1ac], ecx
cmp dword [ebp - 0x1ac], 0x14
jae 0x401183
mov edx, dword [ebp - 0x1ac]
imul edx, edx, 0x34
mov eax, dword [ebp - 0x1b4]
mov dword [eax + edx + 0x183c], 0xffffffff
mov ecx, dword [ebp - 0x1ac]
imul ecx, ecx, 0x34
mov edx, dword [ebp - 0x1b4]
mov dword [edx + ecx + 0x1840], 0xffffffff
push 0x14
push 0
mov eax, dword [ebp - 0x1ac]
imul eax, eax, 0x34
mov ecx, dword [ebp - 0x1b4]
lea edx, [ecx + eax + 0x1844]
push edx
call fcn.00474130
add esp, 0xc
push 0x14
push 0
mov eax, dword [ebp - 0x1ac]
imul eax, eax, 0x34
mov ecx, dword [ebp - 0x1b4]
lea edx, [ecx + eax + 0x1858]
push edx
call fcn.00474130
add esp, 0xc
mov eax, dword [ebp - 0x1ac]
imul eax, eax, 0x34
xor ecx, ecx
mov edx, dword [ebp - 0x1b4]
mov word [edx + eax + 0x186c], cx
jmp 0x4010cf
mov dword [ebp - 0x1ac], 0
jmp 0x40119e
mov eax, dword [ebp - 0x1ac]
add eax, 1
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0x64
jae 0x4011c0
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b4]
mov dword [edx + ecx*4 + 0x1648], 0
jmp 0x40118f
mov dword [ebp - 0x1ac], 0
jmp 0x4011db
mov eax, dword [ebp - 0x1ac]
add eax, 1
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0xc8
jae 0x40120c
push 0x18
push 0
mov ecx, dword [ebp - 0x1ac]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x1b4]
lea eax, [edx + ecx + 0x1a0]
push eax
call fcn.00474130
add esp, 0xc
jmp 0x4011cc
mov dword [ebp - 0x1ac], 0
jmp 0x401227
mov ecx, dword [ebp - 0x1ac]
add ecx, 1
mov dword [ebp - 0x1ac], ecx
cmp dword [ebp - 0x1ac], 0x14
jae 0x401255
push 0x14
push 0
mov edx, dword [ebp - 0x1ac]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x1b4]
lea ecx, [eax + edx + 0x1460]
push ecx
call fcn.00474130
add esp, 0xc
jmp 0x401218
jmp 0x401274
mov dword [ebp - 4], 0xffffffff
jmp 0x401285
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret
Function at 0x404050
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push str.GETDABASERECORD
mov eax, dword [ebp + 0xc]
push eax
call fcn.004049f0
add esp, 8
test eax, eax
jne 0x404083
xor eax, eax
jmp 0x40411f
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x19
push edx
call fcn.00407710
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4040a6
mov dword [ebp - 8], 0xa
push 0x100
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 3], 0x7c
mov edx, dword [ebp + 0xc]
mov byte [edx + 7], 0x64
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xb], 0
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xf], 0xb4
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x13], 0xc9
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x50
push ecx
mov ecx, 0x4d3be8
call fcn.00423950
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x54
push eax
mov ecx, 0x4d3be8
call fcn.00423950
push 0
push 0x100
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_send
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x407840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x414], ecx
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.00474130
add esp, 0xc
push 0x499b70
push 0x499b94
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00474a28
add esp, 0xc
mov edx, dword [ebp - 0x414]
add edx, 4
push edx
push 0x80
lea eax, [ebp - 0x408]
push eax
call fcn.00476ed7
add esp, 0xc
push str.Parameters
push 0x80
lea ecx, [ebp - 0x408]
push ecx
call fcn.00476ed7
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 1
push 0
lea eax, [ebp - 0x408]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407963
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x410], 4
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x414]
add edx, 0x74
push edx
lea eax, [ebp - 0x40c]
push eax
push 0
push str.Start
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x410], 4
lea edx, [ebp - 0x410]
push edx
mov eax, dword [ebp - 0x414]
add eax, 0x78
push eax
lea ecx, [ebp - 0x40c]
push ecx
push 0
push 0x499bcc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x74]
mov dword [ecx + 0x7c], eax
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret
Function at 0x407b70
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x414], ecx
push str.Saving_current_status
call fcn.004041d0
add esp, 4
mov dword [ebp - 4], 0
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.00474130
add esp, 0xc
push 0x499c80
push 0x499ca4
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.00474a28
add esp, 0xc
mov edx, dword [ebp - 0x414]
add edx, 4
push edx
push 0x80
lea eax, [ebp - 0x410]
push eax
call fcn.00476ed7
add esp, 0xc
push str.Status
push 0x80
lea ecx, [ebp - 0x410]
push ecx
call fcn.00476ed7
add esp, 0xc
lea edx, [ebp - 0x410]
push edx
push str.Creating_key:__s
mov eax, dword [ebp - 0x414]
push eax
call fcn.0042ad40
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x20006
push 0
push 0x499b5b
push 0
lea eax, [ebp - 0x410]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x407c77
mov ecx, dword [ebp - 0xc]
push ecx
push str.Failed_to_create_Status_key___lu_
mov edx, dword [ebp - 0x414]
push edx
call fcn.0042ad40
add esp, 0xc
jmp 0x407cbe
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 0x7c]
push ecx
push str.Saving_Current_as__ld
mov edx, dword [ebp - 0x414]
push edx
call fcn.0042ad40
add esp, 0xc
push 4
mov eax, dword [ebp - 0x414]
add eax, 0x7c
push eax
push 4
push 0
push str.Current
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret
Function at 0x408270
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408298
xor eax, eax
jmp 0x40831a
mov dword [ebp - 0xc], 0
push 0x10000
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40830d
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4082ec
push 0
push 0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0x65
push 4
mov ecx, dword [ebp - 0x10]
call fcn.0042a7b0
mov dword [ebp - 0xc], 1
jmp 0x408303
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0x66
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0042a7b0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4083f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x8c]
mov dword [eax], vtable.SkyvodBaseServer.0
mov ecx, dword [ebp - 0x8c]
add ecx, 0x1cb8
call fcn.0041cce0
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0x17f0], 0
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0x17f4], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x17f8], 0
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0x17dc], 0
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0x17e0], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x17e4], 0
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0x17e8], 0
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0x17ec], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x17d8], 0
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0x1c4c], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x1c50], 0
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 8], 0xf423f
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x1644], 0
mov ecx, dword [ebp - 0x8c]
add ecx, 0x162c
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [ebp - 0x8c]
mov dword [edx + 0x1cd0], 0x1ad
mov dword [ebp - 4], 0
jmp 0x408542
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x40855e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x8c]
mov dword [edx + ecx*4 + 0x17fc], 0
jmp 0x408539
push 0x80
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.00474130
add esp, 0xc
push str.D:cacheAdConfig.ini
push 0x78
lea ecx, [ebp - 0x88]
push ecx
push 0x49a018
push str.Debug
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x88]
push edx
call fcn.00474cdc
add esp, 4
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0x1cd4], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret
Function at 0x40ea50
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4958b4
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x34
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push 0x49b9b4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40eb0f
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x249f0
jbe 0x40eaff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x49b9c4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push str.c:HitSong.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
jmp 0x40eb0f
push 2
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1e
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00474130
add esp, 0xc
push 0xa
push 0xc
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00477239
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
call fcn.00474a90
add esp, 4
add eax, 2
mov dword [ebp - 0x3c], eax
push 0x49b9e4
push 0x49b9e8
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0x38]
push edx
call fcn.00474a28
add esp, 0xc
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0xffffffff
jmp 0x40ebbc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret 4