joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e74b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 0x4e74f4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp + 0xc], 1
mov dword [ebp - 0x1c], 0
mov ebx, dword [eax]
push 2
push esi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0045b220
mov edi, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4e7577
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 8], eax
test edi, edi
je 0x4e7582
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
sete bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e75ab
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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
Function at 0x4e8e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570796
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5d6b80]
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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4e8eec
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4e8eec
call fcn.00462ff0
mov esi, eax
jmp 0x4e8fdc
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4e8f0f
call fcn.00462ff0
jmp 0x4e8fcf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x4e8f2d
call fcn.00462ff0
jmp 0x4e8fcf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4e8f4e
mov esi, 0x8007000e
jmp 0x4e8fd1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004e8010
jmp 0x4e8f78
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4e8f8f
mov esi, 0x8007000e
jmp 0x4e8fd1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4e8faf
call fcn.00462ff0
jmp 0x4e8fcf
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004e8ce0
mov esi, eax
test edi, edi
je 0x4e8fdc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4e9000
lea ecx, [ebp - 0x418]
call fcn.004e8570
jmp 0x4e9000
mov eax, esi
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.00525878
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ee0a0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00525ee0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4ee0fe
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ee107
sub ecx, edx
sar ecx, 1
je 0x4ee0eb
push ecx
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.0045b6e0
push 1
push 0x58c1f0
mov ecx, esi
call fcn.00472540
push 3
push 0x58c1e8
mov ecx, esi
call fcn.00472540
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ee15c
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4ee0eb
push 1
push 0x58c1f0
mov ecx, esi
call fcn.00472540
push 0x11
push 0x58c1f4
mov ecx, esi
call fcn.00472540
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00525878
mov esp, ebp
pop ebp
ret 4
Function at 0x4eeab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x4eeac6
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4eeae8
push dword [esi + 0x20]
push eax
call fcn.0045a910
push dword [esi + 0x1c]
call fcn.0052616f
add esp, 0xc
mov dword [esi + 0x1c], 0
push 0
push 0
push 0
push 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, esi
mov dword [esi + 0x40], eax
call fcn.004ee790
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push esi
push 0x4ee580
push 0
push 0
call fcn.0052762d
add esp, 0x18
mov dword [esi + 0x3c], edi
xor ecx, ecx
mov dword [esi + 0x2c], eax
test eax, eax
setne cl
pop edi
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x4ef050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571068
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d6b80]
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 ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4ef175
cmp byte [ebx + 0x45], 0
je 0x4ef175
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4ef0a4
xor al, al
jmp 0x4ef177
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4ef10e
dec eax
je 0x4ef112
sub eax, 2
je 0x4ef15e
xor bl, bl
jmp 0x4ef160
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4ef144
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0052c0ff
add esp, 0x10
cmp esi, eax
jne 0x4ef10a
cmp byte [ebx + 0x45], 0
je 0x4ef15e
test esi, esi
jne 0x4ef0d4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040de00
jmp 0x4ef0d4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x4ef171
push dword [ebp - 0x28]
call fcn.0052586e
add esp, 4
mov al, bl
jmp 0x4ef177
mov al, 1
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.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4ef9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5710f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5d6b80]
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 ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x4ef9fc
xor eax, eax
jmp 0x4efb8c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x4efa2a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x4efa2a
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x4efb8c
cmp dword [ebx + 0x50], 0
jne 0x4efa38
or eax, 0xffffffff
jmp 0x4efb8c
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x4efa59
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x40], 0
jne 0x4efa7e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0052b4ae
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x4efb8c
mov byte [ebp - 0x2c], cl
lea eax, [ebp - 0x28]
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x30]
mov esi, dword [ebx + 0x40]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edi, dword [esi]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x4efb76
cmp eax, 1
jg 0x4efb56
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub esi, eax
je 0x4efb27
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0052c0ff
add esp, 0x10
cmp esi, eax
jne 0x4efb76
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x4efb51
test esi, esi
jne 0x4efab1
cmp dword [ebp - 0x18], 0x20
jae 0x4efb76
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040de00
jmp 0x4efab1
mov ebx, dword [ebp + 8]
jmp 0x4efb79
cmp eax, 3
jne 0x4efb76
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.004ed390
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x4efb79
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x4efb8a
push dword [ebp - 0x28]
call fcn.0052586e
add esp, 4
mov eax, ebx
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.00525878
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2030
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.00500980
mov ecx, esi
pop esi
jmp fcn.00500f10

Function at 0x4f2700
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x20], ax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x140]
push eax
movdqu xmmword [ebp - 0x1e], xmm0
movq qword [ebp - 0xe], xmm0
movdqu xmmword [ebp - 0x160], xmm0
movdqu xmmword [ebp - 0x150], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x140], 0
mov ecx, esi
push 2
je 0x4f2784
push 0x58ce0c
call fcn.0045b6e0
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
jmp 0x4f279b
push 0x58ce14
call fcn.0045b6e0
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x164]
cmp eax, 0xa
ja case.default.0x4f27a7
jmp dword [eax*4 + 0x4f28ac]
push 0x58ce1c
jmp 0x4f2800
push str.mips
jmp 0x4f2800
push str.alpha32
jmp 0x4f2800
push 0x58ce40
jmp 0x4f2800
push 0x58ce48
jmp 0x4f2800
push 0x58ce50
jmp 0x4f2800
push str.ia64
jmp 0x4f2800
push str.alpha64
jmp 0x4f2800
push str.msil
jmp 0x4f2800
push 0x58ce80
jmp 0x4f2800
push str.ia32onWin64
jmp 0x4f2800
push 0x58cea0
lea eax, [ebp - 0x20]
push 0xd
push eax
call fcn.00527a27
add esp, 0xc
lea eax, [ebp - 0x138]
push pe_nt_image_headers32
push 0
push eax
call fcn.00525ee0
add esp, 0xc
mov dword [ebp - 0x13c], 0x11c
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4f2877
lea eax, [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x28]
push eax
movzx eax, byte [ebp - 0x22]
push eax
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push str._d._d._d.sp_d._s
push edi
call fcn.0045acb0
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
lea esi, [edx + 2]
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4f2880
sub edx, esi
lea eax, [ebp - 0x20]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0045b6e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4f3730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571740
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 - 0x18], ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4f3777
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [0x5d644c]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push dword [0x5d6828]
push dword [0x5d6814]
push 0x57a90c
push eax
call fcn.0045acb0
add esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
push 1
push esi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 1
call fcn.0045b220
or ebx, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x30]
jne 0x4f38a7
mov esi, dword [ebp - 0x18]
mov edi, 0x5d5058
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 4
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f3892
cmp dword [ebp - 0x20], 4
jne 0x4f3892
push dword [edi]
lea ecx, [ebp - 0x18]
call fcn.0045a3a0
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
call fcn.004ffac0
add esp, 8
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x78]
call fcn.004ed030
mov edx, dword [ebp - 0x24]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f3872
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4f3892
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
add edi, 4
cmp edi, 0x5d50b4
jl 0x4f37f5
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x4f38b2
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], ebx
dec ebx
test ebx, ebx
jg 0x4f38d0
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 0x4f6600
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push 4
lea ecx, [esi + 0xbc]
call fcn.004ecb20
mov ecx, esi
call fcn.004f3470
mov ecx, esi
call fcn.004fb730
mov ecx, esi
call fcn.004f97f0
mov ecx, esi
call fcn.004f6870
mov ecx, esi
call fcn.004feab0
mov ecx, esi
pop esi
jmp fcn.004ffc00
Function at 0x4ff980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 2
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0045b220
mov esi, dword [ebp - 0xc]
mov edi, eax
test edi, edi
jne 0x4ff9cc
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x4ff9d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5011b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572f00
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 0x5011f4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov ecx, 0xffffffff
mov dword [ebp - 4], 0
sub eax, 0
je 0x501234
dec eax
je 0x50122b
dec eax
je 0x501222
xor ebx, ebx
jmp 0x501396
push 5
push str.cr_tb
jmp 0x50123b
push 5
push str.ff_tb
jmp 0x50123b
push 5
push str.ie_tb
lea ecx, [ebp - 0x10]
call fcn.0045b6e0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50125f
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax + 4], 0
je 0x501370
mov ecx, dword [eax + 8]
xor ebx, ebx
test ecx, ecx
je 0x5012a1
mov edx, dword [eax]
mov eax, edx
lea ecx, [ecx]
cmp dword [eax], 0
jne 0x5013ca
inc ebx
add eax, 4
cmp ebx, ecx
jb 0x501290
xor ebx, ebx
test ebx, ebx
je 0x501370
jmp 0x5012b0
test ebx, ebx
je 0x501370
push dword [ebx]
lea eax, [ebp + 8]
push dword [0x5d6828]
push dword [0x5d6814]
push 0x57a90c
push eax
call fcn.0045acb0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov eax, dword [ebx + 4]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 2
push edi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x18], 0
call fcn.0045b220
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x501321
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x501333
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x1c], 0
test ecx, ecx
jne 0x501366
mov esi, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebx + 0xc]
mov ebx, dword [esi + 8]
div ebx
inc edx
nop
cmp edx, ebx
jae 0x501363
mov eax, dword [esi]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x501350
mov esi, dword [ebp - 0x10]
mov ebx, ecx
test ecx, ecx
jne 0x5012b0
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ebx, 1
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x501393
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5013b4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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
mov ebx, dword [edx + ebx*4]
jmp 0x5012a3
Function at 0x503490
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5731b0
mov eax, dword fs:[0]
push eax
sub esp, 8
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 - 0x10], ebx
mov edi, dword [ebp + 8]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x5035a5
jle 0x5035a5
push 0x3b
push edx
call fcn.00526356
mov esi, eax
add esp, 8
test esi, esi
je 0x5035a5
sub esi, dword [edi]
sar esi, 1
test esi, esi
jle 0x5035a5
push esi
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0045b030
push eax
lea ecx, [ebx + 8]
mov dword [ebp - 4], 0
call fcn.0045a580
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x503534
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045b170
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
mov dword [ebp - 4], 1
push eax
call fcn.0045a580
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x503583
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x506670
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x84]
push 0xfde9
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.00491750
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
cmp eax, ecx
je 0x5066c8
push eax
call fcn.0052616f
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 8