joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434480
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5268b8
push 0x46a3b0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a14
call fcn.004447f0
mov eax, dword [0x535224]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
test esi, esi
je 0x434654
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4344d6
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x434654
mov dword [ebp - 4], 0
call fcn.00433ba0
mov dword [ebp - 4], 0xfffffffe
jmp 0x43451c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.004691d0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.004691d0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x434654
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.00492d9d
lea eax, [ebp - 0x224]
push eax
call fcn.00491e70
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x434654
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
call fcn.00433cd0
add esp, 0xc
test eax, eax
je 0x434647
lea eax, [ebp - 0xa24]
push eax
call fcn.00491e70
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x434608
test dx, dx
je 0x434604
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x434608
add eax, 4
add ecx, 4
test dx, dx
jne 0x4345e2
xor eax, eax
jmp 0x43460d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x434647
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x434633
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa24]
push eax
push str.Kill_process:__s
call fcn.004213e0
add esp, 8
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x4345a4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004447da
mov esp, ebp
pop ebp
ret 4

Function at 0x434890
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4348ac
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x435dc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x535224]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004691d0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push 0x400
push eax
call fcn.00403100
push dword [eax + 4]
push dword [eax]
call fcn.00484417
add esp, 0x20
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004447da
mov esp, ebp
pop ebp
ret
Function at 0x443910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x443939
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 4], 0
movzx eax, word [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x44395a
xor esi, esi
jmp 0x443a4d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x443a4d
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x44398b
xor esi, esi
jmp 0x443a4d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4439a8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x443a4d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4439c8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x443a4d
push esi
push dword [ebp + 8]
push eax
call fcn.00468c50
add esp, 0xc
mov dword [ebp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x4439f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x443a39
mov edi, dword [ebp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x443a35
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
jmp 0x443a40
xor esi, esi
jmp 0x443a40
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x443a4d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 4], esi
pop edi
test esi, esi
jne 0x443a5d
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x443a77
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx + 4]
mov dword [ebx + 8], eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x443a9a
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.00443790
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x447df0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x535224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], ebx
test edi, edi
je 0x447fb8
test eax, eax
je 0x447fb8
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jl 0x447fb8
push ecx
push ebx
push eax
call fcn.004691d0
add esp, 0xc
push ebx
push 1
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x84], edi
test edi, edi
je 0x447fb8
cmp edi, 0xffffffff
je 0x447fb1
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00405180
add esp, 8
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
movq qword [ebp - 0x78], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x447fb1
mov eax, dword [ebp - 0x78]
or eax, dword [ebp - 0x74]
je 0x447f47
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [ebp - 0x70], edx
test edx, edx
je 0x447fb1
mov ecx, dword [ebp - 0x74]
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jg 0x447f47
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x8c]
jl 0x447ee0
cmp edi, esi
jae 0x447f47
nop
sub esi, edi
sbb ecx, eax
js 0x447ef5
jg 0x447ef0
cmp esi, 0x400000
jb 0x447ef5
mov esi, 0x400000
push esi
push edi
push eax
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x447f47
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004051d0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
add edi, 0x400000
adc eax, ebx
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jge 0x447f3b
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
jmp 0x447ee0
jg 0x447f47
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
cmp edi, esi
jb 0x447ee0
lea eax, [ebp - 0x6c]
push eax
call fcn.00404eb0
mov edi, dword [ebp - 0x80]
add esp, 4
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
push str._02x
push 3
push edi
call fcn.004483e0
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x447f60
push dword [ebp + 0x10]
push dword [ebp - 0x80]
call fcn.0049c9aa
add esp, 8
mov esi, 1
test ebx, ebx
je 0x447f9d
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x447fab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004447da
mov esp, ebp
pop ebp
ret

Function at 0x44964d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4a1aca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a16ca

Function at 0x4a1ad5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a184d

Function at 0x4a7876
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a6ffa

Function at 0x4a7881
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a7239

Function at 0x4a83e1
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a82ae

Function at 0x4b0c9b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x542750]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b0cdc
cmp byte [edx], 0xa
jne 0x4b0cdc
or byte [eax + edi + 0x28], 4
jmp 0x4b0ce1
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4b0dd2
mov al, byte [ebx]
cmp al, 0x1a
je 0x4b0db3
cmp al, 0xd
je 0x4b0d0a
mov byte [esi], al
inc esi
inc ebx
jmp 0x4b0da8
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4b0d2a
cmp byte [eax], 0xa
jne 0x4b0d1f
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4b0d25
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4b0da8
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0da1
cmp dword [ebp - 0x14], 0
je 0x4b0da1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x542750]
test byte [eax + edi + 0x28], 0x48
je 0x4b0d78
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4b0d68
mov byte [esi], dl
jmp 0x4b0da4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x542750]
mov byte [eax + edi + 0x2a], dl
jmp 0x4b0da4
cmp byte [ebp - 1], 0xa
jne 0x4b0d8a
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4b0d8a
mov byte [esi], 0xa
jmp 0x4b0d27
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b2939
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b0da5
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4b0cf3
jmp 0x4b0dd2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x542750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b0dcd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b0dd2
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0ddd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x542750]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4b0e21
cmp word [edx], bx
jne 0x4b0e21
or byte [edi + eax + 0x28], 4
jmp 0x4b0e26
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4b0f7a
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4b0f5a
cmp ax, word [ebp - 0x10]
je 0x4b0e5f
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4b0f4f
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4b0e85
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4b0e75
push ecx
pop eax
push 4
jmp 0x4b0e7a
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4b0f49
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0f40
cmp dword [ebp - 0x18], 0
je 0x4b0f40
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x542750]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4b0f0c
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4b0ed0
mov word [esi], ax
jmp 0x4b0f04
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x542750]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x542750]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x542750]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4b0f4f
cmp word [ebp - 4], ax
jne 0x4b0f21
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4b0f21
mov word [esi], ax
add esi, 2
jmp 0x4b0f4f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b2939
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b0f4c
jmp 0x4b0f43
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4b0e3f
jmp 0x4b0f7a
mov ecx, dword [ecx*4 + 0x542750]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4b0f71
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4b0f7a
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b71d0
Function at 0x4b8890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6e03
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x535224]
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 edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00447b40
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x4b8aa3
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x4b8aa3
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4b8aa3
push eax
call esi
test eax, eax
je 0x4b8aa3
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004b87e0
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x4b8a94
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004691d0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b8a94
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x4b89bb
cmp eax, 2
jne 0x4b8a94
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4b89dc
test cl, 1
jne 0x4b8a94
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4b89e2
jmp 0x4b8a94
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4b8a94
lea ecx, [ebp - 0x78]
call fcn.004b6c40
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004b6d10
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x4fd868
push eax
call fcn.00403150
push 0x2a
push dword [ebp - 0x78]
call fcn.004b71d0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x4b8a8c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b8a42
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004b69c0
push dword [0x535c34]
lea eax, [ebp - 0x74]
push dword [0x535c30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4b8a7d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.004218f0
mov edi, 1
jmp 0x4b8a96
lea ecx, [ebp - 0x78]
call fcn.004218f0
xor edi, edi
test esi, esi
je 0x4b8aa5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b8aa5
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
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.004447da
mov esp, ebp
pop ebp
ret
Function at 0x4b8ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4b8af5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b8b00
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4bbdd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bbe41
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4bbe0f
cmp eax, 2
jne 0x4bbe2b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4bbe3b
test ecx, ecx
je 0x4bbe36
test cl, 1
jne 0x4bbe2b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4bbe3b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4bf4a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004bfab0
add esp, 8
test al, al
je 0x4bf4c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4bf4c5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4bfab0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4c0f60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c0f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c0f8b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4c6ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x535224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004c5a20
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x4c6d73
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4c6d33
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c6d51
call fcn.00416e00
mov esi, eax
test esi, esi
js 0x4c6d6c
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4c6d6a
call fcn.00416e00
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x4c6d75
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x4c6d75
xor esi, esi
test edi, edi
je 0x4c6d80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004447da
mov esp, ebp
pop ebp
ret