joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406afb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406b32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x406b2e
jmp 0x406b20
cmp esi, eax
jae 0x406b32
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406b20
cmp esi, eax
jb 0x406b39
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4071f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d192
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x48e200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x458], ebx
mov eax, dword [0x48e180]
mov edx, dword [eax + 0xc]
mov ecx, 0x48e180
mov dword [ebp - 4], ebx
mov dword [ebp - 0x45c], esi
call edx
add eax, 0x10
mov dword [esi], eax
push 0x400
lea ecx, [ebp - 0x44a]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x458], 1
mov word [ebp - 0x44c], ax
call fcn.00450610
xor eax, eax
xor edx, edx
add esp, 0xc
mov word [ebp - 0x48], dx
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov dword [ebp - 0x3a], eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
cmp dword [ebp + 0xc], ebx
jne 0x40736c
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x44c]
push ecx
mov dword [ebp - 0x454], 0x201
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40736c
mov eax, dword [0x401620]
mov edx, dword [0x40161c]
mov ecx, dword [0x401624]
mov dword [ebp - 0x20], eax
mov al, byte [0x40162c]
mov dword [ebp - 0x24], edx
mov edx, dword [0x401628]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x450], 0x11
mov dword [ebp - 0x1c], ecx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407300
sub eax, edx
lea ecx, [ebp - 0x24]
lea eax, [ebp + eax - 0x24]
mov edx, ecx
cmp edx, eax
je 0x407328
dec eax
cmp ecx, eax
je 0x407328
mov dl, byte [ecx]
mov bl, byte [eax]
mov byte [ecx], bl
inc ecx
mov byte [eax], dl
cmp ecx, eax
jne 0x407316
lea eax, [ebp - 0x24]
push eax
push 0x40160c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40736c
lea ecx, [ebp - 0x450]
push ecx
lea edx, [ebp - 0x48]
push edx
call eax
test eax, eax
je 0x40736c
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x401600
push esi
call fcn.004071d0
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450601
mov esp, ebp
pop ebp
ret 8
Function at 0x40a7f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x43da70
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d330
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x48e200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x20]
xor ebx, ebx
push 0x460818
xor esi, esi
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], ebx
call fcn.0043dc70
add esp, 8
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 0xc], ebx
je 0x43db9b
push 5
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x43db9b
mov edx, dword [ebp - 0x20]
push 0x17
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], eax
cmp esi, ebx
je 0x43db91
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push esi
call ebx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x43db7d
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x11], cl
lea ecx, [ebp - 0x11]
push ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00408100
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
sub eax, edi
cmp eax, dword [ebp - 0x18]
jne 0x43db70
test edi, edi
je 0x43db70
lea edx, [ebp - 0x18]
push edx
push eax
push edi
push esi
call ebx
test eax, eax
je 0x43db70
cmp dword [edi + 4], 2
je 0x43db70
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 2
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [ebp - 0x34]
call fcn.00407f40
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
xor ebx, ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43dbcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x43dbcb
cmp esi, ebx
je 0x43dbd6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x43dbe4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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 0x43e900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d390
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x48e200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x48d880
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.0043dc70
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x43e9d6
mov edi, dword [ebp + 8]
cmp ebx, 2
jge 0x43e9d6
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test ebx, ebx
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43e9cd
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test edi, edi
jne 0x43e999
lea eax, [edi + 0xd]
jmp 0x43e9b9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x401934
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x43e9cd
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc ebx
jmp 0x43e952
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ea16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
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 0x43eb90
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x48e200]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.00408480
add esp, 0xc
cmp eax, edi
je 0x43ed38
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x43ed38
lea ecx, [ebp - 0x230]
push 0x401968
push ecx
call fcn.00408690
add esp, 8
push 0x401958
push 0x401940
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x43ed38
push esi
call eax
cmp eax, edi
je 0x43ecbd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43ecbd
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.00450610
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x43ed38
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x43ed38
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x43ed38
push 0x401938
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.00452206
add esp, 0xc
test eax, eax
jne 0x43ed38
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x43ed38
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.004520ce
mov edx, dword [ebp - 0x220]
push edx
call fcn.00451f1b
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.00451d2c
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.00451b24
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x43ed63
push eax
call fcn.004500fb
add esp, 4
jmp 0x43ed63
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 - 0x14]
xor ecx, ebp
call fcn.00450601
mov esp, ebp
pop ebp
ret
Function at 0x43f2f0
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d468
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x48e200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x43f4d4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43f333
sub eax, edx
sar eax, 1
je 0x43f4d4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43f4d4
push 0x14
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x43f4c6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x43f4d4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x43f4d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x43f4d4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00408480
add esp, 0xc
cmp eax, ebx
je 0x43f4ad
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x43f4ad
mov edi, dword [ebp + 8]
push 0x401938
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.00452206
add esp, 0xc
test eax, eax
jne 0x43f4ad
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x43f4ad
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.004520ce
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00451b24
add esp, 0x14
cmp esi, ebx
je 0x43f4ad
mov eax, dword [0x48e180]
mov edx, dword [eax + 0xc]
mov ecx, 0x48e180
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00407390
cmp eax, ebx
je 0x43f4a5
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x43f4a5
push edi
lea ecx, [ebp + 8]
call fcn.00407470
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0043ef30
push esi
lea ecx, [ebp + 8]
call fcn.0043edf0
cmp eax, ebx
je 0x43f49d
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x43f49d
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.00406ca0
lea ecx, [ebp - 0x1c]
call fcn.00406ca0
lea ecx, [ebp - 0x2c]
call fcn.00407f40
jmp 0x43f4d4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
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 0x43fbb0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48e200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x43fd75
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43fbf3
sub eax, edx
sar eax, 1
je 0x43fd75
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407470
mov eax, dword [0x48e180]
mov edx, dword [eax + 0xc]
mov ecx, 0x48e180
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x48e180]
mov edx, dword [eax + 0xc]
mov ecx, 0x48e180
mov byte [ebp - 4], 2
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0x4019d0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043fa80
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0043efa0
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x24]
setne bl
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43fc99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x43fd12
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.00406f40
push 1
push 0x4019d0
lea ecx, [ebp + 8]
call fcn.00406f40
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x43fc4a
push 0x4019bc
push 0x401648
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43fcfa
push 0
push esi
call eax
test eax, eax
jne 0x43fd8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43fd8a
mov dword [ebp - 0x14], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43fd32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43fd52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43fd75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x43fc4a
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x43fc4a
Function at 0x440b80
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
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x440bf2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x440bc1
cmp eax, 2
jne 0x440bdc
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x440bec
test eax, eax
je 0x440be7
test al, 1
jne 0x440bdc
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x440bec
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x440ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d658
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x48e200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x48e000
push eax
mov dword [ebp - 4], 0
call fcn.0043dc70
add esp, 8
lea ecx, [ebp - 0x14]
push 0x48e078
push ecx
mov byte [ebp - 4], 1
call fcn.0043dc70
add esp, 8
mov edx, dword [0x48e180]
mov eax, dword [edx + 0xc]
mov ecx, 0x48e180
mov byte [ebp - 4], 2
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push 0
push 0x6a
mov byte [ebp - 4], 3
call fcn.00406b50
add esp, 8
test eax, eax
je 0x440f74
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407130
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 0
je 0x44100e
mov edx, dword [ebp - 0x14]
cmp dword [edx - 0xc], 0
je 0x44100e
cmp dword [esi - 0xc], 0
je 0x44100e
xor eax, eax
mov dword [ebp - 0x20], eax
cmp eax, 2
jge 0x44100e
xor ecx, ecx
test eax, eax
setne cl
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
lea eax, [ecx - 0x7fffffff]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 2
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x441008
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov eax, edi
mov dword [ebp - 0x30], eax
test esi, esi
je 0x440ffd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, edi
test eax, eax
je 0x441008
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
inc eax
jmp 0x440f96
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44102e
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 byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441051
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441074
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
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450601
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e200]
jne 0x45060b
repz ret
jmp fcn.00453ccf

Function at 0x45942b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48e200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00453377
and dword [ebp - 0x14], 0
cmp dword [0x48ff4c], 0
mov dword [ebp - 0x18], eax
jne 0x4594de
push 0x402b78
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x459586
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402b6c
push ebx
call edi
test eax, eax
je 0x459586
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402b5c
push ebx
mov dword [0x48ff4c], eax
call edi
push eax
call esi
push 0x402b48
push ebx
mov dword [0x48ff50], eax
call edi
push eax
call esi
push 0x402b2c
push ebx
mov dword [0x48ff54], eax
call edi
push eax
call esi
mov dword [0x48ff5c], eax
test eax, eax
je 0x4594de
push 0x402b14
push ebx
call edi
push eax
call esi
mov dword [0x48ff58], eax
mov eax, dword [0x48ff58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x459537
cmp dword [0x48ff5c], ecx
je 0x459537
push eax
call esi
push dword [0x48ff5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x459537
test ebx, ebx
je 0x459537
call edi
test eax, eax
je 0x45952e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45952e
test byte [ebp - 8], 1
jne 0x459537
or dword [ebp + 0x10], 0x200000
jmp 0x45956a
mov eax, dword [0x48ff50]
cmp eax, dword [ebp - 0x18]
je 0x45956a
push eax
call esi
test eax, eax
je 0x45956a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45956a
mov eax, dword [0x48ff54]
cmp eax, dword [ebp - 0x18]
je 0x45956a
push eax
call esi
test eax, eax
je 0x45956a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48ff4c]
call esi
test eax, eax
je 0x459586
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x459588
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450601
leave
ret