joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477210
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8a1e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x513108]
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
lea eax, [ebp - 0x5c]
push eax
call fcn.004776e0
mov dword [ebp - 4], 0
push dword [ebp - 0x5c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47728a
and dword [ebp - 0x70], 0xfffffe00
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x78]
mov ecx, dword [ebp - 0x5c]
call fcn.00467df0
mov eax, dword [ebp - 0x70]
test al, al
je 0x4772cc
cmp al, 7
je 0x4772cc
lea ecx, [ebp - 0x78]
call fcn.00465410
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4772ae
mov ecx, dword [eax]
push eax
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cd41
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
push ecx
push str.send_date
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00465c10
lea edx, [ebp - 0x68]
mov ecx, eax
call fcn.00478510
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
sub eax, edi
sar eax, 2
cmp eax, 3
jb 0x47734f
mov ecx, dword [edi]
cmp ecx, 0x7d0
jb 0x47734f
mov eax, dword [edi + 4]
cmp eax, 1
jb 0x47734f
cmp eax, 0xc
ja 0x47734f
mov eax, dword [edi + 8]
cmp eax, 1
jb 0x47734f
cmp eax, 0x1f
ja 0x47734f
sub esp, 0x10
push eax
push dword [edi + 4]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00463460
mov ecx, dword [eax]
mov dword [ebx + 0x3c], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x40], eax
lea ecx, [ebp - 0x80]
call fcn.004391a0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
call fcn.004796d0
test eax, eax
je 0x47736c
mov esi, dword [eax + 0xc]
jmp 0x47736e
xor esi, esi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebx + 0x3c]
call fcn.004796d0
test eax, eax
je 0x477383
mov eax, dword [eax + 0xc]
jmp 0x477385
xor eax, eax
cmp esi, eax
je 0x4773c1
mov eax, dword [ebp - 0x80]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x40], eax
mov byte [ebp - 4], 4
lea ecx, [ebx + 0x34]
mov eax, dword [ebx + 0x34]
push dword [eax + 4]
call fcn.00413f60
mov eax, dword [ebx + 0x34]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [eax], eax
mov eax, dword [ebx + 0x34]
mov dword [eax + 8], eax
mov dword [ebx + 0x38], 0
jmp 0x4773d9
push ecx
push str.reports
lea ecx, [ebp - 0x78]
call fcn.00465c10
lea edx, [ebx + 0x34]
mov ecx, eax
call fcn.00478690
test edi, edi
je 0x4773ec
mov eax, dword [ebp - 0x60]
sub eax, edi
sar eax, 2
push eax
push edi
call fcn.00402810
lea ecx, [ebp - 0x78]
call fcn.00465410
mov esi, 1
jmp 0x47728c
Function at 0x477eb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x513108]
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 edi, dword [ebp + 0xc]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004a5890
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x44]
push 0x104
push eax
push 0x4f54d8
push dword [ebp + 8]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x477f65
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x477f40
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00404320
mov esi, 1
jmp 0x477f67
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x477f89
mov ecx, dword [eax]
push eax
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.0048cd41
mov esp, ebp
pop ebp
ret 8

Function at 0x478f20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x478fbf
push 0x2c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004a5890
add esp, 0xc
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0x400000
mov dword [esp + 0x30], str.Q360SoftMgrTimerWnd
mov dword [esp + 0x10], 0x479010
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478fc9
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x47c9b5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47c9b5
xor edx, edx
div dword [esi + 0x3cc]
test edx, edx
jne 0x47c9b5
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x47c9b4
push edi
lea edi, [esi + 0x3f4]
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0047c290
cmp byte [esi + 4], 0
mov edx, ebx
je 0x47c987
xor eax, eax
cmp dword [esi + 0x3cc], eax
jle 0x47c987
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, dword [esi + 0x3cc]
jl 0x47c975
push dword [esi + 0x3cc]
push dword [ebp + 8]
push edi
call fcn.004a5310
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
add esp, 0xc
div ecx
inc dword [ebp - 4]
add ebx, ecx
add dword [ebp + 8], ecx
cmp dword [ebp - 4], eax
jb 0x47c958
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47eb40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x513108]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x47eb77
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048cd41
mov esp, ebp
pop ebp
ret 0x14
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.004a5890
add esp, 0xc
lea eax, [ebp - 0x80c]
test edi, edi
je 0x47ebaa
push edi
push esi
push 0x4f4fb8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x47ebba
push esi
push 0x4f4ed4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.004a5890
mov ax, word [ebp + 0x18]
add esp, 0xc
mov word [ebp - 0x834], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x864], 0x44
movups xmmword [ebp - 0x81c], xmm0
push eax
lea eax, [ebp - 0x864]
mov dword [ebp - 0x838], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47eb62
cmp dword [ebp + 0x10], 0
je 0x47ec49
push dword [ebp + 0x14]
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x81c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x818]
call esi
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048cd41
mov esp, ebp
pop ebp
ret 0x14

Function at 0x47ec80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x513108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x47ed4d
mov eax, dword [0x4f4758]
xorps xmm0, xmm0
movups xmmword [ebp - 0x22], xmm0
push 0x38
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
movq qword [ebp - 0x12], xmm0
movq xmm0, qword [str.runas]
push 0
push eax
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movq qword [ebp - 0x24], xmm0
call fcn.004a5890
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], ebx
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x47ed4d
cmp dword [ebp + 0x10], 0
je 0x47ed2c
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cd41
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048cd41
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47fe10
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x50ce10
push 0x4a7820
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x513108]
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
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x47fe7d
push 1
push str.ExtensionProtect
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x47fe78
mov ebx, 1
push eax
call edi
push esi
call edi
jmp 0x47fe83
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x47fe8c
lea eax, [ebx + 1]
jmp 0x47fef1
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], ebx
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x47fee3
push 0x10020
push str.ExtensionProtect
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x47fee3
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0047ff19
mov eax, ebx
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.0048cd41
mov esp, ebp
pop ebp
ret
Function at 0x482790
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da0b4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x513108]
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, dword [0x5175f0]
test esi, esi
jne 0x4827f5
push 0x140
call fcn.0048c852
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4827e6
mov ecx, eax
call fcn.004821d0
mov esi, eax
jmp 0x4827e8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x5175f0], esi
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4828b2
push 1
mov ecx, esi
call fcn.0041c5e0
push 0xe8
call fcn.0048c852
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x482835
mov ecx, eax
call fcn.0040fba0
mov edi, eax
jmp 0x482837
xor edi, edi
push 3
push 0x83
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040f870
push 2
mov ecx, edi
call fcn.00410700
movaps xmm0, xmmword [0x4dce10]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call fcn.00410850
push edi
mov ecx, esi
call fcn.0041c600
push 0
mov ecx, esi
call fcn.0041b010
movaps xmm0, xmmword [0x4dce20]
push 0
push ecx
mov eax, esp
push 0x40000
push SysReAllocString
push 0x4f4f28
push ecx
mov dword [eax], 0
lea ecx, [ebp - 0x20]
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], ecx
mov ecx, esi
call fcn.00419cd0
push 1
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0041c6c0
push eax
call fcn.0045b600
add esp, 4
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.0048cd41
mov esp, ebp
pop ebp
ret
Function at 0x486c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da676
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x513108]
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 - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], 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 0x486cbc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x486cbc
call fcn.00444a30
mov esi, eax
jmp 0x486dac
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x486cdf
call fcn.00444a30
jmp 0x486d9f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x486cfd
call fcn.00444a30
jmp 0x486d9f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x486d1e
mov esi, 0x8007000e
jmp 0x486da1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00485ae0
jmp 0x486d48
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x486d5f
mov esi, 0x8007000e
jmp 0x486da1
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 0x486d7f
call fcn.00444a30
jmp 0x486d9f
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.00486ab0
mov esi, eax
test edi, edi
je 0x486dac
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x486dd0
lea ecx, [ebp - 0x418]
call fcn.00485fc0
nop word [eax + eax]
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.0048cd41
mov esp, ebp
pop ebp
ret 0x10
Function at 0x488400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x488419
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x488425
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x488420
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48f888
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 0x4c2922
Capabilities:
Read file on windows

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

Function at 0x4c9154
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c8e14
Function at 0x40ba1f8f
Capabilities:
Delete registry key
Read .ini file

Disassembly:
push 0
push ebx
call fcn.40ba20d7
test eax, eax
je 0x40ba1fc6
cmp dword [edi + 0x3c], ebx
je 0x40ba1fc6
jmp 0x40ba201d
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x40bb1020]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 0xc], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 4]
mov dword [ebp - 0x360], edi
jne 0x40ba4f32
test dword [ebx + 0x24], 1
jne 0x40ba1f74
mov eax, dword [edi + 0x38]
cmp ebx, eax
jne 0x40ba501b
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x30]
and dword [ebx + 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x40ba1feb
push eax
call esi
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x40ba503f
mov eax, dword [ebx + 0x16c]
test eax, eax
jne 0x40ba5047
push ebx
mov dword [ebx], 0x29a
call fcn.40ba1f35
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x40ba504f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40ba1e8c
leave
ret 8
push 5
pop ecx
mov esi, 0x40ba5058
lea edi, [ebp - 0x18]
lea eax, [ebx + 0x4c]
push eax
rep movsd dword es:[edi], dword [esi]
mov esi, 0x90
push esi
lea eax, [ebp - 0x138]
push eax
call fcn.40ba2f04
test dword [ebx + 0x20], 0x40000000
je 0x40ba4f68
mov eax, 0x200
jmp 0x40ba201d
push dword [ebx + 0x48]
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.40ba2f04
mov esi, 0x40ba2cd4
push esi
push 0x80
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40ba4fbf
push 6
pop eax
jmp 0x40ba201d
push esi
push 0
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x35c]
push eax
push 0x40ba2bc0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40ba5010
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x35c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x35c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x360]
jmp 0x40ba1fbd
test eax, eax
je 0x40ba5030
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
je 0x40ba502c
mov eax, ecx
test eax, eax
jne 0x40ba501f
test eax, eax
jne 0x40ba5034
push 5
jmp 0x40ba4fb9
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
jmp 0x40ba1fd7
push eax
call esi
jmp 0x40ba1ff6
push eax
call esi
jmp 0x40ba2004
inc dword [eax]
jmp 0x40ba201b
Function at 0x40ba317d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xfffffffe
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ba31b5
xor eax, eax
leave
ret 0x10
inc eax
cmp dword [ebp - 4], eax
jne 0x40ba31af
jmp 0x40ba31b1

Function at 0x40ba3509
Capabilities:
Read .ini file

Disassembly:
push 0xd
pop eax
jmp 0x40ba348c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
cmp eax, 0xd
ja 0x40ba3476
push ebx
call esi
push 1
push 0xffffffffffffffff
push 0x40ba34e8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
je 0x40ba3585
push 0x40ba2cd4
push 2
lea eax, [ebp - 8]
push eax
push 0x40ba2c98
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x2a
pop eax
cmp ax, word [ebp - 8]
je 0x40ba3585
push 9
push 0
push ebx
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.40ba363b
jmp 0x40ba3585
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, 0x200
push eax
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x40ba5b4e
push 0x40ba2cd4
mov esi, edi
shr esi, 1
push esi
push ebx
xor eax, eax
push 0x40ba2c98
push eax
push dword [ebp + 0xc]
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esi, 0xfffffffb
cmp eax, esi
jae 0x40ba5b2a
xor ecx, ecx
cmp cx, word [ebx]
je 0x40ba35a4
push eax
push ebx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
xor eax, eax
cmp ax, word [ebx]
je 0x40ba35a4
push 3
pop ecx
mov edi, 0x40ba3594
mov esi, ebx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x40ba347b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
jmp 0x40ba356a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp edi, 0x8000
jae 0x40ba5b4e
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 4], eax
jmp 0x40ba3529
push 7
pop eax
jmp 0x40ba35af
Function at 0x40ba37f3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x40bb1020]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x12c], 0
and dword [ebp - 0x128], 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
and eax, 7
push edi
cmp al, 1
jne 0x40ba3970
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x138], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x130], eax
shl eax, 3
mov dword [ebp - 0x144], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x134], eax
shl eax, 3
push ebx
mov ebx, dword [esi + 0x30]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x12c]
push eax
push 0x40ba2c28
push 0x80000002
mov dword [ebp - 0x13c], ecx
call edi
test eax, eax
jne 0x40ba4dc0
add esi, 0x4c
push esi
push 0x90
lea eax, [ebp - 0x124]
push eax
call fcn.40ba2f04
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x12c]
call edi
test eax, eax
jne 0x40ba3975
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x138]
push eax
push 4
xor edi, edi
push edi
push 0x40bb1344
push dword [ebp - 0x128]
call esi
push 4
lea eax, [ebp - 0x130]
push eax
push 4
push edi
push 0x40bb135c
push dword [ebp - 0x128]
call esi
cmp dword [ebp - 0x130], edi
je 0x40ba3910
push dword [ebp - 0x144]
push ebx
push 3
push edi
push 0x40bb138c
push dword [ebp - 0x128]
call esi
push 4
lea eax, [ebp - 0x134]
push eax
push 4
push edi
push 0x40bb1374
push dword [ebp - 0x128]
call esi
cmp dword [ebp - 0x134], edi
jne 0x40ba4dcc
cmp dword [ebp - 0x128], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
je 0x40ba394d
push dword [ebp - 0x128]
call esi
cmp dword [ebp - 0x12c], 0
je 0x40ba395e
push dword [ebp - 0x12c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.40ba1e8c
leave
ret 4
push 8
pop edi
jmp 0x40ba395e
push 7
pop edi
jmp 0x40ba3935
and dword [ebp - 0x12c], 0
jmp 0x40ba3975
push dword [ebp - 0x140]
push dword [ebp - 0x13c]
push 3
push edi
push 0x40bb13b4
push dword [ebp - 0x128]
call esi
jmp 0x40ba3935