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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b39
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 0x401b74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401b70
lea ebx, [ebx]
cmp esi, edx
jae 0x401b74
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401b60
cmp esi, edx
jb 0x401b7b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4102d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cda56
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x539c80]
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 dword [ebp - 0x21c], ecx
mov esi, dword [0x53dc44]
push 0xf0
push 0x81
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41048c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41048c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41048c
mov edx, 0x1234
mov edi, edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x41048c
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x4103e9
push 3
lea eax, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.004106b0
mov dword [ebp - 4], 0
push dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
cmp eax, ecx
je 0x410479
push eax
call fcn.004ad114
add esp, 4
jmp 0x410479
cmp dx, ax
jne 0x41047e
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x240], 0xffffffff
mov dword [ebp - 0x114], eax
call fcn.004106b0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
cmp eax, ecx
je 0x410453
push eax
call fcn.004ad114
add esp, 4
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x410350
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.004ac57a
mov esp, ebp
pop ebp
ret 4
Function at 0x418b20
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 [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418b91
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x418b5f
cmp eax, 2
jne 0x418b7b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x418b8b
test ecx, ecx
je 0x418b86
test cl, 1
jne 0x418b7b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x418b8b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x418ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x418bb5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x418bc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418bc0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
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 0x41e870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1f59
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x539c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov esi, dword [0x53ed90]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x17
idiv ecx
mov dword [ebp - 0x14], 1
cmp edx, 0x14
jne 0x41e973
xor edx, edx
lea esp, [esp]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x41e8f0
mov dword [0x53ed90], esi
call fcn.004209b0
mov edx, dword [0x5396d8]
mov ecx, 0x5396d8
mov dword [ebp - 0x18], eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
mov eax, str.installtime
test eax, 0xffff0000
jne 0x41e9bc
movzx ebx, ax
mov ecx, ebx
call fcn.00401b90
test eax, eax
je 0x41e9ce
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402860
jmp 0x41e9cb
push 0xc
push str.installtime
lea ecx, [ebp - 0x10]
call fcn.004025f0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 3
push dword [ebp - 0x18]
push esi
push str._s_d
push edi
call fcn.004114f0
add esp, 0x10
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ea08
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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 0x41f290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2061
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x539c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0x53ed90]
lea eax, [edx + 1]
imul eax, edx
and eax, 0x8000000f
jns 0x41f2e2
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 1
jne 0x41f373
xor edi, edi
lea ecx, [ecx]
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, edi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
inc edi
add edx, eax
cmp edi, 0x100
jl 0x41f2f0
mov dword [0x53ed90], edx
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 1
call fcn.00420dd0
mov dword [ebp - 4], 2
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.00421cb0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41f3cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
push str.srcid_s
push esi
call fcn.004114f0
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41f401
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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
Function at 0x422b40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3509
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x539c80]
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 esi, ecx
mov dword [ebp - 0x58], 0
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], 0x5f005f
mov dword [ebp - 0x50], 0x520043
mov dword [ebp - 0x4c], 0x40005f
mov dword [ebp - 0x48], 0x410046
mov dword [ebp - 0x44], 0x4c0049
mov dword [ebp - 0x40], 0x440045
mov dword [ebp - 0x3c], 0x44005f
mov dword [ebp - 0x38], 0x57004f
mov dword [ebp - 0x34], 0x4c004e
mov dword [ebp - 0x30], 0x41004f
mov dword [ebp - 0x2c], 0x5f0044
mov dword [ebp - 0x28], 0x450052
mov dword [ebp - 0x24], 0x440041
mov dword [ebp - 0x20], 0x5f0040
mov dword [ebp - 0x1c], 0x520043
mov dword [ebp - 0x18], 0x5f005f
call fcn.00402400
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 1
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.004ac57a
mov esp, ebp
pop ebp
ret

Function at 0x423aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d39c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x539c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x423af2
xor bl, bl
jmp 0x423b57
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x423b28
push 0
lea ecx, [ebp + 8]
call fcn.004026b0
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x423b7b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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 0x423b90
Capabilities:
Get file size

Disassembly:
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423bb6
pop edi
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
Function at 0x424120
Capabilities:
Get disk size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [0x53ed90]
mov dword [ebp - 8], edx
lea eax, [edi + 2]
lea esi, [edi + 1]
imul eax, esi
imul eax, edi
mov dword [ebp - 4], ecx
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 0x11
jne 0x42415e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp - 4]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [eax]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4241c9
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
push 0
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4241c2
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d6b30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x539c80]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
cmp eax, 6
ja case.default.0x438a29
jmp dword [eax*4 + 0x438c20]
lea ecx, [esp + 0xc]
call fcn.0041b5a0
mov dword [esp + 0x30], 0
push eax
push 1
mov ecx, esi
call fcn.00438c40
mov bl, al
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004024b0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x10]
call fcn.0041b6c0
mov dword [esp + 0x30], 1
push eax
push 0
mov ecx, esi
call fcn.00438c40
mov bl, al
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004024b0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x14]
call fcn.0041b8a0
mov dword [esp + 0x30], 2
push eax
push 2
mov ecx, esi
call fcn.00438c40
mov bl, al
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004024b0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x18]
call fcn.0041b990
mov dword [esp + 0x30], 3
push eax
push 3
mov ecx, esi
call fcn.00438c40
mov bl, al
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004024b0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x1c]
call fcn.0041ba80
mov dword [esp + 0x30], 4
push eax
push 4
mov ecx, esi
call fcn.00438c40
mov bl, al
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004024b0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x20]
call fcn.0041b7b0
mov dword [esp + 0x30], 5
push eax
push 5
mov ecx, esi
call fcn.00438c40
mov bl, al
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004024b0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x53ed90]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0xa
jne 0x438c07
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43a740
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x53ed90]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 0x80000003
jns 0x43a758
dec ecx
or ecx, 0xfffffffc
inc ecx
cmp ecx, 1
jne 0x43a779
push esi
xor esi, esi
test eax, eax
je 0x43a772
mov ecx, eax
cdq
and ecx, 1
sub eax, edx
add esi, ecx
sar eax, 1
jne 0x43a764
mov dword [0x53ed90], esi
pop esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
sbb eax, eax
neg eax
ret
Function at 0x43b6b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x539c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx edi, al
mov eax, dword [0x53ed90]
imul eax, eax
cdq
mov dword [ebp - 0x18], 5
idiv dword [ebp - 0x18]
cmp edx, 2
jne 0x43b726
inc dword [0x53f634]
cmp ecx, 6
ja 0x43b732
jne 0x43b775
cmp edi, 1
jbe 0x43b775
cmp dword [0x53b31c], reloc.OLEAUT32.dll_SysReAllocString
je 0x43b775
push 1
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0043b260
add esp, 4
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.00402510
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x43b7f4
push 0
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.0043b260
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov edi, dword [ebp - 0x10]
lea ecx, [edx - 0x10]
add edi, 0xfffffff0
or esi, 0xffffffff
cmp ecx, edi
je 0x43b7de
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x43b7cf
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x43b7cf
call fcn.00402720
mov dword [ebp - 0x18], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x43b7c7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x43b7db
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.004025f0
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b7fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [0x53b31c]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43b83e
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43b847
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
mov edx, ebx
lea ecx, [ebp - 0x10]
call fcn.0043b890
mov bl, al
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x43b87a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
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 0x43b890
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push eax
push 0xf003f
push 0
push dword [ecx]
mov esi, edx
push dword [0x53b31c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43b8bd
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x43b8d8
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x43b90a
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x43b90a
push dword [edi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43c190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d75f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x539c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
sub esp, 8
push 0x2001f
push 0x100
push ecx
push dword [esi]
lea ecx, [ebp - 0x1c]
push edi
call fcn.004189f0
test eax, eax
je 0x43c21d
sub esp, 8
push 0x2001f
push 0
push ecx
push dword [esi]
lea ecx, [ebp - 0x1c]
push edi
call fcn.004189f0
test eax, eax
je 0x43c21d
mov esi, dword [ebp - 0x1c]
xor bl, bl
jmp 0x43c282
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx]
mov ebx, dword [eax]
mov esi, dword [ebp - 0x1c]
xor eax, eax
test edx, edx
setne al
test eax, eax
jne 0x43c239
mov edi, 0xd
jmp 0x43c266
mov ecx, edx
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43c240
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x43c276
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x1c], esi
test edi, edi
mov dword [ebp - 0x18], 0
sete bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x43c29b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov al, bl
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret