joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a5cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x49a5fd
dec al
je 0x49a63e
dec al
je 0x49a682
dec al
je 0x49a6ed
jmp 0x49a777
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x49a777
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49a60d
jmp 0x49a777
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49a777
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49a64e
jmp 0x49a777
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49a777
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x49a6b0
xor ebp, ebp
jmp 0x49a6c1
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x49a6ca
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49a692
jmp 0x49a777
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49a777
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x49a745
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004981bc
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49a701
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c9320
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4c9326
ret
Function at 0x53ea2c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
lea ebx, [ebp + 8]
mov eax, 0x5a1764
call fcn.00527ca4
mov word [ebp - 0x14], 8
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebx]
push eax
call fcn.00541b28
add dword [ebp - 8], 2
mov eax, dword [ebx]
mov edx, 0x585d80
add eax, 0x18
mov ecx, 0x5a2388
add esp, 0xc
mov dword [eax], edx
mov dword [eax], ecx
mov edx, 0x5a23a4
mov dword [eax], edx
mov ecx, 0x5a2340
mov dword [eax], ecx
mov edx, 0x585d80
mov eax, dword [ebx]
mov ecx, 0x5a2320
add eax, 0x1c
mov dword [eax], edx
mov dword [eax], ecx
mov edx, dword [ebx]
mov eax, 0x5a224c
mov dword [edx], eax
mov eax, 0x5a22bc
mov ecx, dword [ebx]
mov dword [ecx + 0x18], eax
mov eax, 0x5a2300
mov edx, dword [ebx]
mov dword [edx + 0x1c], eax
xor eax, eax
mov ecx, dword [ebx]
mov dword [ecx + 0x20], eax
xor ecx, ecx
mov edx, dword [ebx]
mov dword [edx + 0x24], ecx
mov eax, dword [ebx]
add eax, 0x28
push eax
call fcn.0053e900
pop ecx
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebx]
mov esi, edx
lea edi, [ecx + 0x30]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x40], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x44], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x48], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x4c], edx
mov ecx, dword [ebx]
mov dword [ecx + 0x50], 1
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
mov eax, dword [ebx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x545e7c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x5a3658
call fcn.00527ca4
mov word [ebp - 0x14], 8
push 0x5a363c
mov edx, dword [ebp + 8]
push edx
call fcn.00541a78
add esp, 8
inc dword [ebp - 8]
mov ecx, 0x5a3734
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
push 0
push 0
mov edx, dword [ebp + 8]
add edx, 0x2c
push edx
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
call fcn.00545f40
add esp, 0x10
push dword [0x5a3638]
push dword [0x5a3634]
push 0
mov edx, dword [ebp + 8]
add edx, 0x2c
push edx
call fcn.00545f40
add esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x50], ecx
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.0054124c
pop ecx
inc dword [ebp - 8]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x70], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x74], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x30], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4014d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov eax, dword [ecx + 0x20c]
xor bl, bl
push 0
or eax, 0x20006
push eax
push 0
push 0
push 0
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401537
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push eax
push str.DriverMaster
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x40154e
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ecx + 0x20c]
xor bl, bl
or eax, 1
mov dword [ebp - 8], 0
push eax
push 0
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4015ba
mov eax, dword [ebp + 8]
test eax, eax
je 0x4015b8
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
push dword [ebp + 0xc]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4015ba
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x4015c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bc90
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447806
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x463074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x2a4], xmm0
movlpd qword [ebp - 0x29c], xmm0
movlpd qword [ebp - 0x294], xmm0
movlpd qword [ebp - 0x28c], xmm0
movlpd qword [ebp - 0x284], xmm0
movlpd qword [ebp - 0x27c], xmm0
movlpd qword [ebp - 0x274], xmm0
movlpd qword [ebp - 0x26c], xmm0
mov dword [ebp - 0x2a8], 0x44
movups xmmword [ebp - 0x2b8], xmm0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
mov dword [ebp - 0x22c], eax
push 0x20a
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x228]
push eax
call fcn.004158c0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
push str.RepairTool.exe
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push str._s_s__s
push eax
call fcn.0040caf0
add esp, 0x14
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
cmp ecx, eax
je 0x40bdda
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40bdcd
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.004012b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0
call fcn.0040cdf0
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x2b8]
push ecx
lea ecx, [ebp - 0x2a8]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
mov ecx, edi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::Close_unsigned_int_]
lea ecx, [ebp - 0x244]
call fcn.0040cdf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004133e3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x411110
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x50]
test eax, eax
je 0x411227
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.stat_init
push eax
call esi
push str.stat_proxy
push dword [edi + 0x50]
mov dword [edi], eax
call esi
push str.stat_dispatch_addr
push dword [edi + 0x50]
mov dword [edi + 4], eax
call esi
push str.stat_online_addr
push dword [edi + 0x50]
mov dword [edi + 8], eax
call esi
push str.stat_action_addr
push dword [edi + 0x50]
mov dword [edi + 0xc], eax
call esi
push str.stat_install_addr
push dword [edi + 0x50]
mov dword [edi + 0x10], eax
call esi
push str.stat_loginout_addr
push dword [edi + 0x50]
mov dword [edi + 0x14], eax
call esi
push str.stat_unionid
push dword [edi + 0x50]
mov dword [edi + 0x18], eax
call esi
push str.stat_appid
push dword [edi + 0x50]
mov dword [edi + 0x1c], eax
call esi
push str.stat_level
push dword [edi + 0x50]
mov dword [edi + 0x20], eax
call esi
push str.stat_version
push dword [edi + 0x50]
mov dword [edi + 0x24], eax
call esi
push str.stat_version_ex
push dword [edi + 0x50]
mov dword [edi + 0x28], eax
call esi
push str.stat_online
push dword [edi + 0x50]
mov dword [edi + 0x2c], eax
call esi
push str.stat_offline
push dword [edi + 0x50]
mov dword [edi + 0x30], eax
call esi
push str.stat_action
push dword [edi + 0x50]
mov dword [edi + 0x34], eax
call esi
push str.stat_mutilaction
push dword [edi + 0x50]
mov dword [edi + 0x38], eax
call esi
push str.stat_install
push dword [edi + 0x50]
mov dword [edi + 0x3c], eax
call esi
push str.stat_close
push dword [edi + 0x50]
mov dword [edi + 0x40], eax
call esi
push str.stat_app_install
push dword [edi + 0x50]
mov dword [edi + 0x44], eax
call esi
push str.stat_http_post
push dword [edi + 0x50]
mov dword [edi + 0x48], eax
call esi
mov dword [edi + 0x4c], eax
pop esi
pop edi
ret

Function at 0x42467b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004245fd

Function at 0x43236d
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 0x405ddb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422adc], 0
push esi
jne 0x405e12
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dec
mov dword [ecx*4 + 0x422ad8], eax
inc ecx
cmp ecx, 0x100
jl 0x405de7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e43
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ad8]
xor eax, esi
inc ecx
dec edx
jne 0x405e25
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x19d1163
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x92a66af
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x104a40b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104a4200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104a40d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a40c2
add dl, dl
jne 0x104a40e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a4134
xor eax, eax
add dl, dl
jne 0x104a40ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104a41d5
add dl, dl
jne 0x104a40fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a4108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a4113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a411e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104a412a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104a40cd
mov eax, 1
add dl, dl
jne 0x104a4142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104a414d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a4139
sub eax, ebx
mov ebx, 1
jne 0x104a4180
mov ecx, 1
add dl, dl
jne 0x104a4166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a4171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a415d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a40cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104a4197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104a41a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104a418e
cmp eax, 0x7d00
jae 0x104a41c5
cmp eax, 0x500
jb 0x104a41c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a40cd
cmp eax, 0x7f
ja 0x104a41c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104a40cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104a41f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104a40cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401473
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x114
mov edi, eax
lea eax, [ebp - 0x120]
mov esi, edx
push eax
mov eax, dword [0x42f910]
or eax, 8
push eax
push 0
push edx
push edi
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test eax, eax
jne 0x401531
jmp 0x4014c1
cmp dword [ebp + 8], 0
jne 0x401504
mov eax, dword [ebp - 0x120]
mov edx, ebx
push 0
call fcn.00401473
test eax, eax
jne 0x4014de
lea ebx, [ebp - 0x11c]
push 0x105
push ebx
push 0
push dword [ebp - 0x120]
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x4014a8
push dword [ebp - 0x120]
call sub.ADVAPI32.DLL_RegCloseKey
push 2
call fcn.00406105
test eax, eax
je 0x401516
push 0
push dword [0x42f910]
push esi
push edi
call eax
mov ebx, eax
jmp 0x401531
push dword [ebp - 0x120]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
jmp 0x401533
xor ebx, ebx
cmp dword [0x42f910], 0
jne 0x40152c
push esi
push edi
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
je 0x401531
mov ebx, 1
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x4058d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42cd60], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42cd60
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessA
xor edx, edx
test eax, eax
je 0x405910
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
mov eax, edx
leave
ret 4

Function at 0x405b47
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x405b63
and eax, 0xfffffffe
push eax
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x405b6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
push 0
jne 0x405b80
xor eax, eax
push eax
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.dll_CreateFileA
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x405b98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov esi, 0x63
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x61736e
call sub.KERNEL32.dll_GetTickCount
mov edx, 0x1a
push ebx
mov ecx, edx
xor edx, edx
div ecx
lea eax, [ebp - 0x10]
push 0
add byte [ebp - 0xe], dl
push eax
push edi
call sub.KERNEL32.dll_GetTempFileNameA
test eax, eax
je 0x405bd9
mov eax, ebx
jmp 0x405be4
dec esi
cmp esi, 0xffffffff
jne 0x405baa
mov byte [ebx], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x405bee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 8]
mov byte [ebx], 0
push eax
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x405c5a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x400
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x405c48
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x405c4b
mov byte [ebx], 0
mov byte [ebx + 0x3ff], 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x405dfd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
push 0x42cef0
call fcn.00405d1f
push 0x42cef0
call fcn.00405a18
xor edx, edx
mov ebx, eax
test eax, eax
je 0x405e9c
push eax
call fcn.00405a9c
cmp byte [0x42f9a0], 0
jns 0x405e62
mov al, byte [ebx]
test al, al
sete dl
cmp al, 0x5c
sete al
or eax, edx
xor edx, edx
test al, 1
jne 0x405e9c
jmp 0x405e62
push 0x42cef0
call fcn.004059a1
test eax, eax
je 0x405e58
test byte [eax], 0x10
je 0x405e93
push 0x42cef0
call fcn.00405d99
push 0x42cef0
call fcn.00405d36
mov edx, ebx
sub edx, 0x42cef0
cmp eax, edx
jg 0x405e45
push 0x42cef0
call fcn.00405dcd
push 0x42cef0
call sub.KERNEL32.dll_GetFileAttributesA
xor edx, edx
inc eax
je 0x405e9c
jmp 0x405e97
xor edx, edx
jmp 0x405e9c
mov edx, 1
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x406144
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 1
call fcn.00406105
test eax, eax
je 0x40616c
push 5
push ebx
push esi
call eax
test eax, eax
jne 0x406306
mov dword [0x42daf0], 0x4c554e
test ebx, ebx
je 0x4061b1
push 1
push 0
push ebx
call fcn.00405b6a
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x400
push 0x42daf0
push ebx
call sub.KERNEL32.dll_GetShortPathNameA
test eax, eax
sete dl
cmp eax, 0x400
setg al
or eax, edx
test al, 1
jne 0x40630c
push 0x400
push 0x42d6f0
push esi
call sub.KERNEL32.dll_GetShortPathNameA
test eax, eax
sete dl
cmp eax, 0x400
setg al
or eax, edx
test al, 1
jne 0x40630c
push 0x42d6f0
push 0x42daf0
push str._s_s_r_n
push 0x42d2f0
call sub.USER32.dll_wsprintfA
mov dword [ebp - 0x14], eax
mov eax, dword [0x42f940]
push dword [eax + 0x128]
push 0x42d6f0
call fcn.00405ea5
push 4
push 0xc0000000
push 0x42d6f0
call fcn.00405b6a
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x406306
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov edx, dword [ebp - 0x14]
mov ebx, eax
lea eax, [eax + edx + 0xa]
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
test eax, eax
je 0x4062fe
lea edi, [ebp - 0x10]
push 0
push edi
push ebx
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x4062fe
cmp ebx, dword [ebp - 0x10]
jne 0x4062fe
push str._Rename__r_n
push esi
call fcn.00405d3f
test eax, eax
jne 0x406291
lea eax, [esi + ebx]
push str._Rename__r_n
push eax
call fcn.00405d1f
add ebx, 0xa
mov eax, ebx
jmp 0x4062c6
add eax, 0xa
push 0x40a57b
push eax
call fcn.00405d3f
mov ecx, eax
mov eax, ebx
test ecx, ecx
je 0x4062c6
inc ecx
lea eax, [esi + ebx]
mov edx, ecx
mov dword [ebp - 0x1c], eax
cmp ecx, eax
jae 0x4062c2
mov edi, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [edx + edi], al
inc edx
cmp edx, dword [ebp - 0x1c]
jmp 0x4062b2
mov eax, ecx
sub eax, esi
push dword [ebp - 0x14]
lea eax, [esi + eax]
push 0x42d2f0
push eax
call fcn.00405a7b
add ebx, dword [ebp - 0x14]
push 0
push 0
push 0
push dword [ebp - 0x18]
call sub.KERNEL32.dll_SetFilePointer
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x18]
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_GlobalFree
push dword [ebp - 0x18]
call sub.KERNEL32.dll_CloseHandle
inc dword [0x42f8f0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8