joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d220
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [0x4b03a4]
call fcn.0040d190
test eax, eax
je 0x40d2f1
push 0
push edi
push 0
push 0
push 0x28
push 0x3c
push 0xa
push 0xa
push 0xcf0000
push 0x497a38
push 0x497a38
push 0x8000080
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x40d2f1
push 0x14
push 1
push 1
push 0xfffffc00
push 0xfffffc00
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0xc]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0xc]
push esi
push 0xffffffffffffffeb
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call edi
test eax, eax
je 0x40d2ea
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0xffffffff
je 0x40d2d9
lea eax, [ebp - 0x1c]
push eax
call ebx
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call edi
test eax, eax
jne 0x40d2c4
pop ebx
mov dword [esi + 0xc], 0
cmp byte [esi + 0x10], 0
je 0x40d331
mov eax, dword [esi + 4]
test eax, eax
je 0x40d30c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov edi, dword [esi]
test edi, edi
je 0x40d328
mov ecx, edi
call fcn.0040d460
push edi
call fcn.00460f43
add esp, 4
mov dword [esi], 0
push esi
call fcn.00460f43
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d360
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, ecx
lea eax, [ebx + 8]
push eax
push 0
push ebx
push 0x40d340
push 0
push 0
call fcn.004634af
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x40d386
xor al, al
pop ebx
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebx + 0xc], 0
jne 0x40d3a0
push 0x19
call edi
inc esi
cmp esi, 0x64
jl 0x40d390
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x40f3b0
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492598
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x6c]
cmp byte [eax + 3], 0
je 0x40f434
mov byte [eax + 3], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push str..kx_
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0042a8e0
add esp, 0x10
push eax
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call fcn.00401890
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x6c]
cmp byte [eax + 0x18], 0
push esi
je 0x40f449
mov byte [eax + 0x18], 0
push 0x38008
jmp 0x40f44e
push 0x48008
push 0x111
call fcn.00415210
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx + 0x14]
mov edi, dword [edx]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00408310
push str..kx_
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 4], 1
call fcn.004019e0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push ecx
push edi
mov byte [ebp - 4], 2
call fcn.0040d9b0
add esp, 0x30
test al, al
je 0x40f4c7
mov edx, dword [esi + 8]
cmp edx, dword [ebp - 0x20]
jne 0x40f4bd
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x40f4c7
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push eax
push 0x29
call edx
mov ecx, dword [edi + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push edx
push 0x2a
call eax
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x40f4f5
mov dword [eax + 0x1c], 3
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x6c]
mov dword [ecx + 0x58], eax
call edi
mov edx, dword [esi + 0x6c]
mov dword [edx + 0x50], eax
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + 0x14]
call fcn.0040cec0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f539
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f55f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4127e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_getaddrinfo]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 6
call ebx
mov esi, eax
cmp esi, 0x2af9
je 0x41289a
test esi, esi
je 0x412857
sub esi, 8
neg esi
sbb esi, esi
and esi, 0x2edf
pop edi
lea eax, [esi + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0x10]
cmp dword [edx], eax
jb 0x412889
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x412889
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
inc eax
pop esi
mov dword [edx], eax
mov eax, 0x7a
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push edi
mov dword [ebp - 0x20], 0
call ebx
test eax, eax
je 0x4128ca
sub eax, 8
neg eax
sbb eax, eax
pop edi
and eax, 0x2edf
pop esi
add eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov ecx, 2
cmp dword [eax + 4], ecx
je 0x4128e3
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x412904
cmp dword [eax + 4], ecx
jne 0x4128d7
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
push 0
push 0
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x412909
mov eax, 0x2ee7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412b40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x412b74
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
mov ecx, 2
mov word [ebp - 0x14], cx
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push esi
push edx
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00461930
mov eax, dword [ebp + 0xc]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412bc8
pop esi
or eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
push 0x30
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x412be9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.004615db
mov esp, ebp
pop ebp
ret
Function at 0x417350
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00416760
mov ebx, eax
cmp ebx, esi
je 0x4173ca
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x4173b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41744c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00417350
mov ebx, eax
cmp ebx, esi
jne 0x4173a4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x417400
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x417465
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.004165f0
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x417488
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004615db
mov esp, ebp
pop ebp
ret 4
Function at 0x4197f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493046
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4ae23c]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x41986d
call fcn.004162b0
mov edi, eax
jmp 0x419952
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x419886
call fcn.004162b0
jmp 0x419949
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x4198a4
call fcn.004162b0
jmp 0x419949
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x4198c5
mov edi, 0x8007000e
jmp 0x41994b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00417ef0
mov dword [ebp - 4], 1
jmp 0x4198fd
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x41990e
mov edi, 0x8007000e
jmp 0x41994b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x419927
call fcn.004162b0
jmp 0x419949
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00419480
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x419970
lea ecx, [ebp - 0x418]
call fcn.00417220
jmp 0x419970
mov eax, edi
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.004615db
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41a0c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493146
mov eax, dword fs:[0]
push eax
sub esp, 0x710
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - method.WTL::CMessageLoop.virtual_0], vtable.WTL::CMessageLoop.0
mov dword [ebp - 0x6c4], ebx
mov dword [ebp - 0x6c0], ebx
mov dword [ebp - 0x6bc], ebx
mov dword [ebp - 0x6b8], ebx
mov dword [ebp - 0x6b4], ebx
mov dword [ebp - 0x6b0], ebx
mov esi, dword [0x4afc38]
lea eax, [ebp - 0x6c8]
add esi, 0x10
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x690], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [ebp - 0x690]
push ecx
mov ecx, dword [0x4afc2c]
lea edx, [ebp - 0x68c]
push edx
mov dword [ebp - 0x68c], eax
call fcn.00417fd0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x208
push ebx
push 0x4af9e8
call fcn.00462010
add esp, 0xc
lea ecx, [ebp - 0x688]
call fcn.00421d70
push ebx
push ebx
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 1
call fcn.00419720
test eax, eax
jne 0x41a1e9
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], bl
call fcn.00419110
mov eax, dword [ebp - 0x6b8]
cmp eax, ebx
je 0x41a1c3
push eax
call fcn.0046247d
add esp, 4
mov dword [ebp - 0x6b8], ebx
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x6b4], ebx
mov dword [ebp - 0x6b0], ebx
cmp eax, ebx
je 0x41a1e2
push eax
call fcn.0046247d
add esp, 4
xor eax, eax
jmp 0x41a2f0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x684]
push ecx
lea eax, [ebp - 0x688]
push edx
mov dword [0x4afbf0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x6c8]
call fcn.00415b40
mov ecx, 0x4afbf8
mov edi, eax
call fcn.00419680
mov dword [0x4afbf0], ebx
cmp word [0x4af9e8], bx
je 0x41a2a8
push 0x40
lea eax, [ebp - 0x718]
push ebx
push eax
call fcn.00462010
add esp, 0xc
lea edx, [ebp - 0x6d8]
push edx
lea eax, [ebp - 0x71c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x4af9e8
mov ecx, 0xa
push ebx
mov dword [ebp - 0x71c], 0x44
mov dword [ebp - 0x6f0], 0x81
mov word [ebp - 0x6ec], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41a2a8
mov ecx, dword [ebp - 0x6d4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x6d8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x6d8]
push eax
call esi
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], bl
call fcn.00419110
mov eax, dword [ebp - 0x6b8]
cmp eax, ebx
je 0x41a2cf
push eax
call fcn.0046247d
add esp, 4
mov dword [ebp - 0x6b8], ebx
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x6b4], ebx
mov dword [ebp - 0x6b0], ebx
cmp eax, ebx
je 0x41a2ee
push eax
call fcn.0046247d
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
Function at 0x41b3c0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd1c
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x1a
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.KlLauncherTERA
lea ecx, [ebp - 0x11c]
push 0x104
push ecx
call fcn.0046438a
push str.conf.ini
lea edx, [ebp - 0x11c]
push 0x104
push edx
call fcn.0046438a
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x18
lea eax, [ebp - 0x11c]
push eax
push 0x400
lea ecx, [ebp - 0xd1c]
push ecx
push 0
push str.guid
push str.GENERAL
call esi
lea edx, [ebp - 0x11c]
push edx
push 0x400
lea eax, [ebp - 0x91c]
push eax
push 0
push str.flashcookie
push str.GENERAL
call esi
lea ecx, [ebp - 0x11c]
push ecx
push 0x14
lea edx, [ebp - 0x18]
push edx
push 0
push 0x498364
push str.GENERAL
call esi
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x49836c
push str.GENERAL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp - 0x91c]
push edx
lea eax, [ebp - 0xd1c]
push eax
lea ecx, [ebp - 0x51c]
push str.http:__i.360.cn_reg
push ecx
call fcn.0041acb0
push 0x800
call fcn.00463d76
push 0x800
mov esi, eax
push 0
push esi
call fcn.00462010
lea eax, [ebp - 0x51c]
add esp, 0x28
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41b4e0
push 0
push 0
sub eax, ecx
mov ebx, eax
push ebx
lea edx, [ebp - 0x51c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, 0x400
jb 0x41b510
mov edi, 0x3ff
push edi
push esi
push ebx
lea eax, [ebp - 0x51c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [esi + edi*2], cx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004615db
mov esp, ebp
pop ebp
ret
Function at 0x41bce0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493298
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
mov dword [ebp - 4], 0
call edx
add eax, 0x10
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
mov bl, 1
mov byte [ebp - 4], bl
test eax, eax
jns 0x41bd3b
or eax, 0xffffffff
jmp 0x41bd57
push 0x497afc
push ecx
call fcn.0046241d
add esp, 8
test eax, eax
jne 0x41bd52
or eax, 0xffffffff
jmp 0x41bd57
sub eax, dword [ebp + 8]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0040ee90
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401890
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bd94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x28]
xor eax, eax
push esi
lea edx, [ebp - 0x24]
xor ecx, ecx
push edx
mov word [ebp - 0x24], cx
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x30]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bdf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41be1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
Function at 0x41c030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49332b
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [ebp - 0x814]
call fcn.0040fb30
xor esi, esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x41c0b9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x41c0b1
lea eax, [edi + edi]
call fcn.00463310
mov esi, esp
test esi, esi
je 0x41c0b1
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41c0b3
xor eax, eax
mov esi, eax
test eax, eax
jne 0x41c0bd
xor eax, eax
jmp 0x41c0cf
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c0c0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x814]
call fcn.004016f0
push 0xb
push str.Connection
lea ecx, [ebp - 0x814]
call fcn.004016f0
mov edx, dword [ebp - 0x814]
lea ecx, [ebp - 0x818]
push ecx
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41c142
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c13b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41c1ce
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x81c]
push ecx
lea edx, [ebp - 0x810]
push edx
xor esi, esi
push esi
push esi
push str.PnpInstanceID
push eax
mov dword [ebp - 0x81c], 0x7fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c196
push 0x498544
lea edx, [ebp - 0x810]
xor ecx, ecx
push edx
mov word [ebp - 0x80a], cx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41c196
lea esi, [eax + 1]
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c1cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x828]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret