joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7bb6b0d
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
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
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x52cc70ef
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402030
add esp, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x78
mov dword [ebp - 0x1c], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4015c0
xor eax, eax
jmp 0x401675
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402030
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], 0
jbe 0x401672
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx*4 - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402030
add esp, 8
mov dword [ebp - 0x24], eax
push 0x37
mov edx, dword [ebp - 0x24]
push edx
push 0x14
call fcn.004014e0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x401661
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
movzx eax, word [edx + ecx*2 - 2]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402030
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x401675
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
je 0x401672
cmp dword [ebp - 0xc], 0
je 0x401606
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x401680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
push edi
push esi
mov eax, dword fs:[0x30]
pop esi
pop edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x4016c6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x4016ed
cmp dword [ebp - 8], 0
jne 0x4016ed
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
call fcn.00401570
add esp, 8
mov dword [ebp - 8], eax
jmp 0x4016be
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x421e23
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.00421b33
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
Function at 0x421e72
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ret

Function at 0x42221d
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x422222
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae fcn.0042221d
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x422207
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x42220f
cmp edx, ebx
jne 0x42235d
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4221de
add eax, dword [eax + 4]
jmp 0x4221cb
mov dword [ebp + 0xc], ebx
jmp 0x42222d
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x422245
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x422263
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4222c1
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4222a8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4222b1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4222bb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42229d
invalid

Function at 0x42282b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x422862
cmp dword [ebp - 0x398], 0
invalid
test ah, dl
add dword [eax], eax

Function at 0x425be4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00425ab8

Function at 0x428a95
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00428453
Function at 0x4010a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fcc1
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x47bb04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], ecx
mov ecx, dword [ebp + 8]
call fcn.00402560
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.00445490
add esp, 0xc
mov ecx, dword [ebp - 0x238]
add ecx, 0x14
call fcn.00402770
push eax
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x120]
call fcn.00402690
mov dword [ebp - 4], 0
mov byte [ebp - 0x22c], 0
push 0x103
push 0
lea edx, [ebp - 0x22b]
push edx
call fcn.00445490
add esp, 0xc
mov dword [ebp - 0x234], 0
jmp 0x40116b
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x104
jge 0x401200
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x234]
mov al, byte [ebp + edx - 0x11c]
mov byte [ebp + ecx - 0x22c], al
mov ecx, dword [ebp - 0x230]
add ecx, 1
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x234]
movsx eax, byte [ebp + edx - 0x11c]
test eax, eax
je 0x4011b8
jmp 0x40115c
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x120]
call fcn.00402710
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402580
mov eax, dword [ebp - 0x234]
movsx ecx, byte [ebp + eax - 0x22c]
mov edx, dword [ebp - 0x234]
movsx eax, byte [ebp + edx - 0x11b]
cmp ecx, eax
jne 0x4011fb
jmp 0x401200
jmp 0x40115c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.004026d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445478
mov esp, ebp
pop ebp
ret 4
Function at 0x401560
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fd5a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x47bb04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
add eax, 0x14
push eax
lea ecx, [ebp - 0x10]
call fcn.004026b0
mov dword [ebp - 4], 0
push str.Tg2011.ini
push 0x4646e8
lea ecx, [ebp - 0x10]
call fcn.00401780
lea ecx, [ebp - 0x28]
call fcn.004016c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
call fcn.00401cb0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 0
jmp 0x4015d9
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x14]
jge 0x401628
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00401d00
push eax
lea ecx, [ebp - 0x28]
call fcn.00401720
cmp dword [ebp - 0x18], 0
jne 0x401626
lea ecx, [ebp - 0x10]
call fcn.00402770
push eax
lea ecx, [ebp - 0x24]
call fcn.00402770
push eax
lea ecx, [ebp - 0x28]
call fcn.00402770
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402770
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4015d0
push 0
mov ecx, dword [ebp - 0x34]
add ecx, 0x14
call fcn.00402770
push eax
lea ecx, [ebp - 0x10]
call fcn.00402770
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
lea edx, [ebp - 0x10]
push edx
call fcn.004026b0
mov dword [ebp - 0x38], eax
call fcn.004037a0
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40167c
mov ecx, dword [ebp - 0x34]
add ecx, 0x14
call fcn.00402770
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40168b
lea ecx, [ebp - 0x10]
call fcn.00402770
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004016f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004026d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x403130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fe51
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x47bb04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
xor eax, eax
cmp dword [ebp + 8], 0
setne al
add eax, 0x80000001
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
call fcn.00403930
add esp, 4
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00402770
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4031cb
mov byte [ebp - 0x25], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x25]
jmp 0x4032dc
lea eax, [ebp - 0x14]
push eax
push 0x20019
call fcn.00403930
add esp, 4
push eax
push 0
lea ecx, [ebp + 0x10]
call fcn.00402770
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403233
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x26]
jmp 0x4032dc
mov dword [ebp - 0x24], 0x104
lea ecx, [ebp - 0x1c]
call fcn.00402690
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00402730
push eax
push 0
push 0
lea ecx, [ebp + 0x14]
call fcn.00402770
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40328e
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00403fd0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.004026f0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x27], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004026d0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x27]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4032f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fe84
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x47bb04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
xor eax, eax
cmp dword [ebp + 8], 0
setne al
add eax, 0x80000001
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
call fcn.00403930
add esp, 4
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00402770
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40338b
mov byte [ebp - 0x25], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x25]
jmp 0x403469
lea eax, [ebp - 0x18]
push eax
push 0x20019
call fcn.00403930
add esp, 4
push eax
push 0
lea ecx, [ebp + 0x10]
call fcn.00402770
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4033f0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x26]
jmp 0x403469
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
lea ecx, [ebp + 0x14]
call fcn.00402770
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x403427
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x27], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x27]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x403480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45febf
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x47bb04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 3
xor eax, eax
cmp dword [ebp + 8], 0
setne al
add eax, 0x80000001
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
call fcn.00403930
add esp, 4
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00402770
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403527
mov byte [ebp - 0x19], 0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004026d0
mov al, byte [ebp - 0x19]
jmp 0x40360f
lea eax, [ebp - 0x14]
push eax
push 0xf003f
call fcn.00403930
add esp, 4
push eax
push 0
lea ecx, [ebp + 0x10]
call fcn.00402770
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403598
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x1a], 0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004026d0
mov al, byte [ebp - 0x1a]
jmp 0x40360f
lea ecx, [ebp + 0x18]
call fcn.00402750
push eax
lea ecx, [ebp + 0x18]
call fcn.00402770
push eax
push 1
push 0
lea ecx, [ebp + 0x14]
call fcn.00402770
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x1b], 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004026d0
mov al, byte [ebp - 0x1b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x403620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fef2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x47bb04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
xor eax, eax
cmp dword [ebp + 8], 0
setne al
add eax, 0x80000001
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
call fcn.00403930
add esp, 4
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00402770
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4036bb
mov byte [ebp - 0x1d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x1d]
jmp 0x403785
lea eax, [ebp - 0x14]
push eax
push 0xf003f
call fcn.00403930
add esp, 4
push eax
push 0
lea ecx, [ebp + 0x10]
call fcn.00402770
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403720
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x1e], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x1e]
jmp 0x403785
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
push 0
lea ecx, [ebp + 0x14]
call fcn.00402770
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x1f], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004026d0
mov al, byte [ebp - 0x1f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x403880
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x47bb04]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa8], 0x9c
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 5
jae 0x4038b9
xor eax, eax
jmp 0x40391b
cmp dword [ebp - 0xa4], 5
jne 0x4038cb
mov eax, 1
jmp 0x40391b
cmp dword [ebp - 0xa4], 6
jne 0x403919
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0
je 0x4038fd
cmp dword [ebp - 0xac], 1
je 0x403904
cmp dword [ebp - 0xac], 2
je 0x40390b
jmp 0x403912
mov eax, 2
jmp 0x40391b
mov eax, 3
jmp 0x40391b
mov eax, 4
jmp 0x40391b
mov eax, 5
jmp 0x40391b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445478
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4604e3
mov eax, dword fs:[0]
push eax
sub esp, 0xa3c
mov eax, dword [0x47bb04]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa48], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402750
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xa28
jle 0x406b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004026d0
jmp 0x406bdd
mov byte [ebp - 0xa3c], 0
push 0xa27
push 0
lea eax, [ebp - 0xa3b]
push eax
call fcn.00445490
add esp, 0xc
mov dword [ebp - 0xa40], 0
jmp 0x406b38
mov ecx, dword [ebp - 0xa40]
add ecx, 1
mov dword [ebp - 0xa40], ecx
mov edx, dword [ebp - 0xa40]
cmp edx, dword [ebp - 0x10]
jge 0x406bce
mov eax, dword [ebp - 0xa40]
push eax
lea ecx, [ebp + 8]
call fcn.00416300
mov ecx, dword [ebp - 0xa40]
mov byte [ebp + ecx - 0xa3c], al
mov edx, dword [ebp - 0xa40]
movsx eax, byte [ebp + edx - 0xa3c]
cmp eax, 0x5c
je 0x406b89
mov ecx, dword [ebp - 0xa40]
movsx edx, byte [ebp + ecx - 0xa3c]
cmp edx, 0x2f
jne 0x406bc9
lea eax, [ebp - 0xa3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x406bc9
push 0
lea ecx, [ebp - 0xa3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0xa44], eax
cmp dword [ebp - 0xa44], 0
jne 0x406bc9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004026d0
jmp 0x406bdd
jmp 0x406b29
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004026d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00445478
mov esp, ebp
pop ebp
ret 4