joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbcb0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e0c9
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xec], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xa
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x10], 0x3f400000
mov dword [esi + 0x14], 0x3e800000
mov dword [esi + 0x18], 0x40100000
mov dword [esi + 0x1c], 0x26
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
lea edi, [esi + 0x44]
mov dword [esi], vtable.APNU::CEventContext.0
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4cbd65
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x64
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 1
push 0
push eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
call fcn.00525ee0
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x64
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x4cbdf2
lea edx, [ebp - 0xd8]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4cbdd2
sub edx, ecx
lea eax, [ebp - 0xd8]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0045b6e0
jmp 0x4cbe06
call fcn.00528368
push eax
push 0x57be54
push edi
call fcn.0045acb0
add esp, 0xc
mov dword [esi + 0x48], 0
mov eax, esi
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.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4cdd90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0
push 0x80
push 3
push 0
mov edi, ecx
push 1
push SysReAllocStringLen
push dword [edi + 0x34]
mov dword [edi + 0x78], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4cddd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4cdec8
cmp esi, dword [ebp + 8]
ja 0x4cdeaf
lea ecx, [esi + 1]
push ecx
call fcn.005243ff
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x4cdec8
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
test esi, esi
jne 0x4cde4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
xor bl, bl
push esi
mov dword [edi + 0x78], eax
call fcn.00525873
add esp, 4
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp eax, dword [ebp - 8]
je 0x4cde76
push esi
mov dword [edi + 0x78], 0xffffffff
xor bl, bl
call fcn.00525873
add esp, 4
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [eax + esi], 0
lea ecx, [edi + 4]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], esi
call fcn.00408cd0
cmp dword [eax + 0x28], 0
je 0x4cde9b
mov dword [edi + 0x78], 0xfffffffe
xor bl, bl
push esi
call fcn.00525873
add esp, 4
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
mov dword [edi + 0x78], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [edi + 0x78], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cf6b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e4ee
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.004217c0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.004217c0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x4cf7d8
test dl, 0x10
jne 0x4cf7d8
mov eax, 1
jmp 0x4cf7da
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.004d66d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4d15b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e7a0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
push 0x594518
push 0x2722
push ecx
mov byte [ebp - 4], 1
call dword [eax + 0x38]
test eax, eax
js 0x4d170d
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4d170d
cmp dword [ebp + 0xc], 0
je 0x4d1644
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x4d1718
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 0xc]
jne 0x4d1718
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx - 0xc], 0
je 0x4d1706
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x1c]
test eax, eax
js 0x4d16da
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.004cf9f0
lea ecx, [ebp - 0x7c]
call fcn.004cfab0
push 1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004cf940
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 5
cmovae esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
push eax
call fcn.004d5d30
push 0
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push dword [eax]
push esi
call fcn.004ceff0
add esp, 0x14
lea ecx, [ebp - 0x44]
test al, al
jne 0x4d16e5
call fcn.004cfe90
lea ecx, [ebp - 0x7c]
call fcn.004cff00
lea ecx, [ebp - 0x28]
call fcn.004cfed0
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4d1718
call fcn.004cfe90
lea ecx, [ebp - 0x7c]
call fcn.004cff00
lea ecx, [ebp - 0x28]
call fcn.004cfed0
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x30]
mov esi, 1
jmp 0x4d171d
push str._nCant_get_legacy_pattern
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x30]
xor esi, esi
mov byte [ebp - 4], 0
test eax, eax
je 0x4d172b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4d174f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.00525878
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d5e30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4d5e61
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4d5e50
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x4d7f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0051b3a0
test eax, eax
jne 0x4d7f67
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc0], eax
test eax, eax
je 0x4d7f60
cmp dword [esi + 0x9c], 0
jne 0x4d7fa6
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x487ae0
push 0
push 0
call fcn.0052762d
add esp, 0x18
mov dword [esi + 0x9c], eax
xor eax, eax
cmp dword [esi + 0x9c], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x4d86d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0046d760
mov esi, dword [ebp + 0xc]
or edi, 0xffffffff
mov ebx, dword [ebp + 8]
push 5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4d87a8
push 0xf0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
test ecx, ecx
je 0x4d872e
push ecx
push ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 8]
xor esi, esi
push ebx
call eax
test eax, eax
je 0x4d8795
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4d8795
push dword [ebp - 4]
push eax
call fcn.0046c520
add esp, 8
mov ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov edi, eax
test edi, edi
je 0x4d8774
cmp edi, 0xffffffff
jne 0x4d877c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, dword [ebp - 8]
je 0x4d879d
test ebx, ebx
je 0x4d879d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4d879d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4d87a8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x4dc3b0
push 0
push 0
call fcn.0052762d
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x4dcaa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4dcae4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push str.PlatformVersion
push dword [0x5d6814]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00511e70
add esp, 0x10
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4dcb30
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [0x5d67d4]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str._sOffers
push eax
call fcn.0045acb0
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push reloc.WS2_32.dll_accept
call fcn.0045aa10
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
test eax, eax
jne 0x4dcbce
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x4dcbce
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dcba5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [0x5d4510]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x4dcbd9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4dcbf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4dcc17
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dcc30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f768
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], vtable.APNU::CRuntimeConstant_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CAtlMap_int___int__class_ATL::CElementTraits_int____class_ATL::CElementTraits_int____.0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0x11
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0xa
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x20], 0x3f400000
mov dword [ecx + 0x24], 0x3e800000
mov dword [ecx + 0x28], 0x40100000
mov dword [ecx + 0x2c], 0x26
mov dword [ecx + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e0210
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0xf003f
push dword [ebx + 0x40]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push dword [ebx + 0x38]
call fcn.0045b220
mov edi, dword [ebp - 0x28]
test eax, eax
jne 0x4e034d
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
lea ecx, [ebx + 4]
call fcn.004dfee0
cmp dword [eax], 0
je 0x4e0332
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.004dfee0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [eax]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e031f
cmp dword [ebp - 0x18], 4
jne 0x4e031f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebx + 4]
cmp eax, 0xffffffff
jne 0x4e02f8
lea eax, [ebp - 0x10]
push eax
call fcn.004dfee0
lea ecx, [ebx + 4]
mov dword [eax + 0xc], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004dfee0
push dword [eax]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4e0332
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004dfee0
push eax
mov ecx, ebx
call fcn.004e19c0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.004dfee0
mov dword [eax + 0xc], 1
jmp 0x4e0332
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.004dfee0
mov dword [eax + 0xc], 0
inc edi
cmp edi, 0x44
jl 0x4e0276
mov edi, dword [ebp - 0x28]
mov esi, 1
mov dword [ebx + 0x34], 1
jmp 0x4e0356
mov ecx, ebx
call fcn.004e04d0
mov esi, eax
test edi, edi
je 0x4e0361
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fb98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 2
push 0
push 0
push dword [edi + 0x40]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push dword [edi + 0x38]
call fcn.0045aa10
mov ebx, dword [ebp - 0x20]
test eax, eax
jne 0x4e1b09
xor esi, esi
add edi, 4
lea ebx, [ebx]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov ecx, edi
call fcn.004dfee0
cmp dword [eax], 0
je 0x4e1b03
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004dfee0
cmp dword [eax + 0xc], 0
je 0x4e1b03
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004dfee0
mov ecx, edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004dfee0
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push dword [eax]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
cmp esi, 0x44
jl 0x4e1ab0
test ebx, ebx
je 0x4e1b14
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e2a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fd18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e2a91
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [0x5d64bc]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push dword [0x5d64b8]
push 0x57e340
push eax
call fcn.0045acb0
mov edi, dword [ebp + 8]
push edi
push 0x2a
call fcn.004e32f0
add esp, 0x18
test eax, eax
jns 0x4e2ae2
push edi
push 0x26
call fcn.004e32f0
mov esi, eax
add esp, 8
test esi, esi
js 0x4e2b14
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.0050a690
add esp, 8
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e2aff
xor esi, esi
jmp 0x4e2b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4e2b14
movzx esi, si
or esi, 0x80070000
mov edi, dword [ebp - 0x10]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e2b38
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e32f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00527d30
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push 0x1ffe
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2002]
push eax
call fcn.00525ee0
add esp, 0xc
lea eax, [ebp - 0x2004]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x4e3377
lea edx, [ebp - 0x2004]
push edi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4e3356
sub edx, edi
lea eax, [ebp - 0x2004]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.0045b6e0
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4e5810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570290
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e5857
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x4e588f
push dword [0x5d67d4]
lea eax, [ebp - 0x14]
push str._sOffers
push eax
call fcn.0045acb0
add esp, 0xc
jmp 0x4e58a7
push eax
push dword [0x5d67d4]
lea eax, [ebp - 0x14]
push str._s_sOffers
push eax
call fcn.0045acb0
add esp, 0x10
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push 0
push 0
push 0x2001f
push 0
push 0
push esi
push reloc.WS2_32.dll_accept
call fcn.0045aa10
test eax, eax
jne 0x4e5970
push eax
mov byte [ebp - 4], 2
call fcn.00529c60
add esp, 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x1c]
push str._Y__m__d__H:_M:_S
push eax
call fcn.004e29b0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
test eax, eax
setne cl
test ecx, ecx
je 0x4e5949
mov edx, eax
lea ebx, [edx + 2]
mov edi, edi
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4e5920
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 0xc]
lea edx, [eax - 0x10]
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4e5973
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4e5973
or edi, 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4e5981
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4e599f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8