joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408580
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
lea esi, [esp + 4]
call fcn.00408cc0
mov eax, dword [eax]
push eax
push 0
push 0x4c20e0
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4087e0
Capabilities:
Read .ini file

Disassembly:
push ecx
cmp dword [edi + 0x18], 0
jne 0x40882a
push esi
lea esi, [esp + 4]
call fcn.00408cc0
mov eax, dword [eax]
push eax
push 2
push str.mode
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x40882a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x18]
pop ecx
ret

Function at 0x408bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b5359
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x18]
mov dword [esp + 0x10], 1
call fcn.004089b0
mov dword [esp + 0x24], 1
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00408ab0
mov byte [esp + 0x24], 2
mov edx, dword [eax]
push str.hiddenDpiAwarenessWindow
push edx
push str._s__s
call fcn.00401250
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ca6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x408d90
Capabilities:
Read .ini file

Disassembly:
push ecx
mov ecx, edi
call fcn.004086d0
test eax, eax
jne 0x408da3
mov eax, 0x60
pop ecx
ret
cmp dword [edi + 8], 0xffffffff
jne 0x408dec
push esi
lea esi, [esp + 4]
call fcn.00408cc0
mov eax, dword [eax]
push eax
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 8], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x408dec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 8]
pop ecx
ret

Function at 0x408e00
Capabilities:
Read .ini file

Disassembly:
push ecx
cmp dword [edi + 4], 0xffffffff
jne 0x408e4a
push esi
lea esi, [esp + 4]
call fcn.00408cc0
mov eax, dword [eax]
push eax
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 4], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x408e4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 4]
pop ecx
ret

Function at 0x408e50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b6468
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
mov edi, ecx
add edi, 0x14
mov dword [esp + 0x20], 0
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x408f41
lea esi, [esp + 0x20]
call fcn.00408cc0
mov dword [esp + 0x18], 0
mov esi, dword [eax]
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x408ec9
mov ecx, 0x104
mov eax, edi
call fcn.004012e0
mov eax, dword [edi]
push esi
push 0x104
push eax
push 0x4c1efc
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
test edx, edx
jne 0x408f19
xor eax, eax
jmp 0x408f31
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408f20
sub eax, esi
sar eax, 1
js 0x408f68
cmp eax, dword [edx - 8]
jg 0x408f68
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
mov word [ecx + eax*2], 0
mov eax, dword [edi]
sub eax, 0x10
call fcn.00401270
add eax, 0x10
mov dword [ebp], eax
mov eax, ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
push 0x80070057
call fcn.004013e0
int3
Function at 0x409150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, eax
movzx eax, word [esp + 0x10]
push 0x4c21d4
mov ebx, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x409173
pop edi
pop esi
pop ebx
ret
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x40919f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40919f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4091a6
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea edi, [ebp + 1]
mov ecx, edi
call fcn.00407540
test eax, eax
je 0x4091c3
mov ecx, dword [esp + 0x14]
push ebp
push ecx
push eax
call fcn.0049a4c0
add esp, 0xc
mov eax, edi
call fcn.00407560
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4091e0
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b4170
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x4e3844
mov dword [esp + 0x18], ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x30], ebx
lea eax, [edi + 0xc]
jne 0x409236
mov eax, edi
lea edi, [esp + 0x14]
call fcn.0040a8e0
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
cmp eax, ebx
je 0x40935c
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
push 0x4c21d4
push eax
push edi
push str._s_d._s
lea edi, [esp + 0x40]
call fcn.00401250
mov ecx, dword [esp + 0x40]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x409338
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x409331
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x2c], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 0xa]
sub eax, ecx
or eax, edx
jge 0x4092dd
mov eax, esi
call fcn.00407740
mov eax, dword [esi]
push ebx
lea edx, [esp + 0x30]
push edx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x409323
cmp dword [esp + 0x2c], edi
jne 0x409323
mov eax, edi
call fcn.00407560
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.00401850
lea ecx, [esp + 0x14]
call fcn.00401850
mov eax, 1
jmp 0x409388
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jl 0x40939e
mov dword [eax - 0xc], ebx
mov eax, dword [esi]
mov byte [eax], bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40935c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x80070057
call fcn.004013e0
int3
Function at 0x4093b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b4138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
push 0x4c1f6d
xor edi, edi
mov eax, esi
mov dword [esp + 0x20], ebx
call fcn.00407860
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
push 0x4c21d4
push eax
push str._d._s
lea edi, [esp + 0x24]
mov dword [esp + 0x34], ebx
call fcn.00401250
add esp, 0xc
test byte [0x4e476c], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jne 0x409450
or dword [0x4e476c], 1
push 0x4babd0
mov dword [0x4e4770], ebx
mov dword [0x4e4774], ebx
call fcn.00495e4f
add esp, 4
mov ecx, dword [0x4e4774]
cmp ecx, ebx
mov ebp, dword [esp + 0x18]
je 0x409506
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call edx
cmp eax, ebx
je 0x409506
cmp dword [esp + 0x14], ebx
je 0x409506
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x409506
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or eax, edx
jge 0x4094b2
mov eax, esi
call fcn.00407740
mov edi, dword [esp + 0x10]
mov eax, dword [esi]
cmp eax, ebx
je 0x409506
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call fcn.0049a4c0
mov eax, dword [esp + 0x1c]
add eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4094eb
mov eax, dword [esi]
cmp eax, ebx
jne 0x4094dd
xor eax, eax
jmp 0x4094ef
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4094e0
sub eax, edx
cmp eax, ebx
jl 0x409543
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x409543
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov byte [eax + edx], bl
mov dword [esp + 0x1c], 1
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40952a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 4
push 0x80070057
call fcn.004013e0
int3
Function at 0x409690
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0049a440
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x4096eb
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
je 0x40979c
mov eax, dword [esp + 0x18]
mov ecx, 1
sub eax, ecx
je 0x409789
sub eax, ecx
je 0x409707
xor esi, esi
jmp 0x40979c
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x409743
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x40972b
xor eax, eax
cmp byte [esp + 0x122], cl
setne al
add eax, 8
mov esi, eax
jmp 0x40979c
test eax, eax
jne 0x409776
xor edx, edx
cmp byte [esp + 0x122], cl
setne dl
lea edx, [edx + edx + 7]
mov esi, edx
jmp 0x40979c
cmp eax, 5
jne 0x40976a
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x409756
lea esi, [eax + 3]
jmp 0x40979c
cmp eax, ecx
jne 0x409761
mov esi, 6
jmp 0x40979c
test eax, eax
jne 0x40979c
lea esi, [eax + 3]
jmp 0x40979c
cmp eax, 4
ja 0x40979c
mov esi, 4
jmp 0x40979c
cmp eax, 2
jne 0x40979c
cmp byte [esp + 0x122], cl
jne 0x40979c
lea esi, [eax + 8]
jmp 0x40979c
mov eax, dword [esp + 0x14]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb esi, esi
add esi, 2
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004935b6
add esp, 0x120
ret
Function at 0x40a1d0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
call fcn.004743c0
push eax
mov ecx, 0x4c7500
call fcn.00473be0
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a215
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40a223
pop esi
add esp, 4
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a23c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
mov dword [0x4e4b70], esi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40a670
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4e4ce4]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x14], esi
je 0x40a68f
mov ebp, dword [eax + 4]
cmp ebp, esi
jne 0x40a69b
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40a6c0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40a6c0
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a6c0
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x14], 1
push ebp
mov ecx, ebx
mov dword [ebx + 0x42c], esi
call fcn.0040a9f0
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x40a6e9
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x4e4ce4]
cmp ecx, esi
mov dword [esp + 0x18], esi
je 0x40a701
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov dword [ecx + 4], eax
mov eax, ebp
call fcn.0040abe0
cmp dword [ebx + 0x41c], esi
je 0x40a7a0
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x2001
mov edi, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x10]
push 0x43
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, edi
je 0x40a762
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp esi, edi
je 0x40a77b
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edx, dword [ebx + 4]
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x40a79e
mov eax, dword [ebx + 4]
push 0
push 0
push 0xf
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor esi, esi
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
mov ecx, dword [ebx + 4]
push 0x97
push esi
push esi
push esi
push esi
push esi
push ecx
mov dword [ebx + 0x42c], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x14], esi
je 0x40a7f1
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40a7f1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40a7f1
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4e4ce4]
cmp eax, esi
je 0x40a801
mov edx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x430]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40c840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor ecx, ecx
mov esi, eax
mov eax, dword [ebp]
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
je 0x40c90e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push str.update_time
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x40c90e
call fcn.004017f0
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x40c8b2
mov eax, esi
call fcn.004012e0
mov edi, dword [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.update_time
push eax
call ebx
test eax, eax
jne 0x40c90e
mov ecx, dword [esp + 0x1c]
shr ecx, 1
mov word [edi + ecx*2], ax
mov edx, dword [esi]
test edx, edx
je 0x40c8f6
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c8e5
sub eax, edi
sar eax, 1
js 0x40c91c
cmp eax, dword [edx - 8]
jg 0x40c91c
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov word [edx + eax*2], 0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push 0x80070057
call fcn.004013e0
int3

Function at 0x40f4c0
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x18e
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.0049a440
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40f526
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push str.localhost
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, esi
call fcn.004935b6
mov esp, ebp
pop ebp
ret
Function at 0x40f540
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b51bb
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0xa8], eax
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
push 0x17
push str.SOFTWAREClassesCLSID_
lea ecx, [esp + 0x20]
mov dword [esp + 0xc8], edi
call fcn.00401b00
push 0x26
push str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
lea esi, [esp + 0x20]
call fcn.00401910
push 0x18
push str.Implemented_Categories_
call fcn.00401910
push 0x26
push str.A5F7140E_4311_4ef9_AABC_F55941B5EBE5
call fcn.00401910
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], edi
jae 0x40f5de
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 0x201
push edi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f614
cmp dword [esp + 0x30], 8
jb 0x40f60d
mov edx, dword [esp + 0x1c]
push edx
call fcn.004935b1
add esp, 4
xor eax, eax
jmp 0x40f6a4
push 0x7e
lea eax, [esp + 0x3a]
push edi
push eax
xor esi, esi
mov word [esp + 0x40], di
call fcn.0049a440
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
push edi
push str.idex
push ecx
mov dword [esp + 0x2c], 0x80
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f683
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40f662
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, ebx
call fcn.00401b00
mov esi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], 8
jb 0x40f6a2
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004935b1
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004935b6
add esp, 0xb8
ret

Function at 0x40f790
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov ecx, str.lmvhs_cke
lea edi, [esp + 0xc]
or ebx, 0xffffffff
call fcn.0040c930
mov ecx, 8
cmp dword [eax + 0x18], ecx
jb 0x40f7b6
mov esi, dword [eax + 4]
jmp 0x40f7b9
lea esi, [eax + 4]
cmp dword [esp + 0x24], ecx
jb 0x40f7cc
mov eax, dword [esp + 0x10]
push eax
call fcn.004935b1
add esp, 4
xor edi, edi
push esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x40f82a
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40f82a
push edi
push edi
push eax
push 0x40f6d0
push edi
push edi
call fcn.004962a1
add esp, 0x18
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, edi
je 0x40f82a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret
Function at 0x40fe30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x40fe7f
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push ecx
push esi
push str.cs3failtimes
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fe7f
cmp dword [esp + 8], 4
jne 0x40fe7f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov dword [eax], edx
lea eax, [esi + 1]
pop esi
add esp, 0xc
ret 4
mov eax, esi
pop esi
add esp, 0xc
ret 4

Function at 0x410080
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x800], eax
test esi, esi
jne 0x4100b2
mov eax, 0x80004005
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004935b6
add esp, 0x804
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410098
test al, 0x10
jne 0x410098
push edi
push 0x7fe
lea eax, [esp + 0xa]
push 0
push eax
mov edi, 0x80004005
mov word [esp + 0x10], 0
call fcn.0049a440
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0xc]
push ecx
push 0
push str.SPRoot
push str.SPRoot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x410135
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x410110
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410110
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
mov ecx, ebx
call fcn.00401b00
mov eax, ebx
call fcn.00410040
xor edi, edi
mov ecx, dword [esp + 0x804]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004935b6
add esp, 0x804
ret