joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429540
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c850a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
lea ecx, [edi + 4]
call fcn.00420b80
mov dword [edi], 0x4dcc78
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
push 0x4da2c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00401ff0
push 0x4dcc7c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00401ff0
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 7
call fcn.00450200
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 8
call fcn.0043f420
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 9
call fcn.0043f420
add esp, 0x1c
lea ecx, [edi + 8]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402b30
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 9
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x429670
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x429690
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4296b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4296d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4296ee
mov ecx, dword [edx]
push edx
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
mov esp, ebp
pop ebp
ret
Function at 0x429aa0
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x200
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call fcn.00429b90
test al, al
jne 0x429b75
push 0x100
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.00429b90
test al, al
je 0x429b79
mov esi, dword [0x521340]
mov ecx, 0x18
lea eax, [esi + 1]
imul eax, esi
cdq
idiv ecx
cmp edx, 3
jne 0x429b75
xor edx, edx
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 0x429af2
mov dword [0x521340], esi
mov al, 1
pop esi
ret
push 0
push SysReAllocStringLen
mov ecx, esi
call fcn.00429b90
test al, al
setne al
pop esi
ret
Function at 0x431770
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 0x4317e1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4317af
cmp eax, 2
jne 0x4317cb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4317db
test ecx, ecx
je 0x4317d6
test cl, 1
jne 0x4317cb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4317db
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 0x4317f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c95b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x521340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 0x11
jne 0x431845
call fcn.004a8009
mov ecx, dword [0x521340]
cmp ecx, eax
jne 0x431845
dec ecx
mov dword [0x521340], ecx
mov eax, dword [ebp + 8]
push 1
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.00404880
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [ebp + 8], esp
push str.Country
mov dword [ebp - 4], 0
call fcn.00401ff0
push ecx
mov ecx, esp
push 0x4de270
mov byte [ebp - 4], 1
call fcn.00401ff0
mov dword [ebp - 4], 0xffffffff
call fcn.00431fa0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4322e0
Capabilities:
Set registry value

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x521340]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3dc], eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
push ebx
push esi
push edi
cdq
mov edi, 0x15
idiv edi
mov esi, dword [ebp + 0xc]
cmp edx, 0xa
jne 0x432b0e
test ecx, ecx
je 0x432b0e
lea ebx, [ebx]
mov edx, ecx
and edx, 0x80000001
jns 0x432abf
dec edx
or edx, 0xfffffffe
inc edx
jne 0x432acc
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x432ad3
lea ecx, [ecx*2 + 1]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
lea eax, [eax + eax*2]
sub edx, eax
mov dword [0x521340], ecx
sub edx, 0
je 0x432afd
sub edx, 2
je 0x432b00
dec edx
je 0x432b01
jmp 0x432b0a
add ecx, 2
inc ecx
add ecx, 2
mov dword [0x521340], ecx
test ecx, ecx
jne 0x432ab0
push esi
call fcn.00432cd0
mov ebx, dword [ebp + 8]
add esp, 4
mov edi, eax
mov dword [ebp - 0x3d8], edi
test ebx, ebx
je 0x432c73
cmp dword [ebp - 0x3d0], 0
je 0x432c73
cmp edi, dword [ebp + 0x14]
ja 0x432c73
call fcn.00432e20
test al, al
jne 0x432b83
mov edx, dword [0x521340]
xor ecx, ecx
mov eax, dword [ebp + ecx*4 - 0x3c0]
add eax, dword [ebp + ecx*4 - 0x3c4]
add ecx, 4
add eax, dword [ebp + ecx*4 - 0x3d8]
add eax, dword [ebp + ecx*4 - 0x3dc]
imul eax, eax, 0x70
add edx, eax
cmp ecx, 0x3c8
jb 0x432b51
mov dword [0x521340], edx
xor ecx, ecx
test esi, esi
je 0x432c26
mov edi, dword [ebp - 0x3d0]
cmp ecx, esi
jae 0x432b9e
movzx edx, byte [ecx + ebx]
inc ecx
jmp 0x432ba0
xor edx, edx
cmp ecx, esi
jae 0x432bb1
movzx eax, byte [ecx + ebx]
mov dword [ebp - 0x3d4], eax
inc ecx
jmp 0x432bbb
mov dword [ebp - 0x3d4], 0
cmp ecx, esi
jae 0x432bc6
movzx eax, byte [ecx + ebx]
inc ecx
jmp 0x432bc8
xor eax, eax
shl edx, 8
add edx, dword [ebp - 0x3d4]
add edi, 4
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 4], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], al
mov eax, edx
shr eax, 6
and eax, 0x3f
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 1], al
cmp ecx, esi
jb 0x432b97
mov edi, dword [ebp - 0x3d8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
sub esi, eax
cmp dword [esi*4 + 0x4de418], ecx
jle 0x432c58
mov eax, dword [ebp - 0x3d0]
dec eax
add eax, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x4de418]
jl 0x432c48
mov eax, dword [ebp - 0x3dc]
mov dword [eax], edi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004a7434
mov esp, ebp
pop ebp
ret
Function at 0x432e80
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432eda
push 5
push str.tempo
push 1
push str.Tempo
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x432ed1
push str.Tempo
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 8], ax
push edi
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x5f005f
mov dword [ebp - 0x44], 0x520043
mov dword [ebp - 0x40], 0x40005f
mov dword [ebp - 0x3c], 0x410046
mov dword [ebp - 0x38], 0x4c0049
mov dword [ebp - 0x34], 0x440045
mov dword [ebp - 0x30], 0x44005f
mov dword [ebp - 0x2c], 0x57004f
mov dword [ebp - 0x28], 0x4c004e
mov dword [ebp - 0x24], 0x41004f
mov dword [ebp - 0x20], 0x5f0044
mov dword [ebp - 0x1c], 0x450052
mov dword [ebp - 0x18], 0x440041
mov dword [ebp - 0x14], 0x5f0040
mov dword [ebp - 0x10], 0x520043
mov dword [ebp - 0xc], 0x5f005f
call fcn.00401ff0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7434
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43330b
test al, 0x10
je 0x43330b
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4337e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433808
xor eax, eax
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4339e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9852
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x1f2
mov dword [ebp - 0x208], 0
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20c], esi
call fcn.004a8550
add esp, 0xc
lea eax, [ebp - 0x204]
push 0xfa
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x204]
push eax
mov ecx, esi
call fcn.00401ff0
mov ecx, dword [esi]
mov dword [ebp - 4], 0
cmp dword [ecx - 0xc], 0
mov dword [ebp - 0x208], 1
mov ecx, esi
je 0x433a8d
push 0x11
push str.AppDataLocalLow
jmp 0x433a94
push 3
push 0x4de4e4
call fcn.0040b9f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret
Function at 0x433e20
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c98e2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x51fee0]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x220], 0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 1
call fcn.0043eea0
test al, al
je 0x433f8b
push 0
push 0
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x433fee
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a63b0
add esp, 4
mov ebx, eax
push esi
push ebx
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [0x521340]
mov esi, eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov dword [ebp - 0x21c], 0xf
idiv dword [ebp - 0x21c]
cmp edx, 4
jne 0x433f53
movsd xmm3, qword [0x4da448]
movsd xmm6, qword [0x4da450]
movsd xmm5, qword [0x4da440]
movd xmm4, ecx
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x433f3d
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x433f23
test esi, esi
je 0x433f7c
test ebx, ebx
jne 0x433f5f
xor ecx, ecx
jmp 0x433f73
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433f64
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.004097a0
test ebx, ebx
je 0x433fee
push ebx
call fcn.004a8200
add esp, 4
jmp 0x433fee
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004a8550
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x433fee
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x433fd0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433fd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.004097a0
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.004a7434
mov esp, ebp
pop ebp
ret
Function at 0x4346b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9998
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [eax]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x434704
xor bl, bl
jmp 0x434769
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x43473a
push 0
lea ecx, [ebp + 0xc]
call fcn.00408680
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 8]
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 esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43478d
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 0x434900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], edi
call fcn.004347b0
mov ebx, dword [0x521340]
test al, al
jne 0x434956
xor esi, esi
mov edi, ebx
jmp 0x434940
inc esi
dec edi
cmp esi, 0xa8
jb 0x434940
mov esi, dword [ebp - 0x2b0]
mov edi, dword [ebp - 0x2ac]
imul ebx, ebx
mov eax, ebx
cdq
mov ecx, 0x16
idiv ecx
mov byte [ebp - 0x2a5], 0
cmp edx, 0x11
jne 0x434981
push 4
call fcn.004a6c5d
mov ecx, dword [0x521340]
add esp, 4
mov dword [eax], ecx
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x434a59
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x2ac], 0
call fcn.004348d0
test al, al
jne 0x434a2d
mov ecx, dword [0x521340]
test ecx, ecx
je 0x434a2d
mov eax, ecx
and eax, 0x80000001
jns 0x4349de
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4349eb
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x4349f2
lea ecx, [ecx*2 + 1]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
lea eax, [eax + eax*2]
sub edx, eax
mov dword [0x521340], ecx
sub edx, 0
je 0x434a1c
sub edx, 2
je 0x434a1f
dec edx
je 0x434a20
jmp 0x434a29
add ecx, 2
inc ecx
add ecx, 2
mov dword [0x521340], ecx
test ecx, ecx
jne 0x4349d0
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x2ac]
push ecx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434a59
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
jmp 0x434a5f
mov bl, byte [ebp - 0x2a5]
mov ecx, dword [0x521340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x11
idiv ecx
cmp edx, 7
jne 0x434a83
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x521340], eax
cmp esi, 0xffffffff
je 0x434a8f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a7434
mov esp, ebp
pop ebp
ret
Function at 0x434ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x434f1a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [0x521340]
xor ecx, ecx
push edi
mov dword [ebp - 0x38], ecx
xor edi, edi
lea esp, [esp]
mov eax, dword [esi]
add eax, edi
cmp dword [eax + 8], 0
je 0x434faf
mov edx, dword [ebp + 0x10]
cmp dword [eax + 4], edx
jne 0x434f64
push dword [ebp + 0xc]
push eax
call fcn.0040b510
add esp, 8
test al, al
je 0x434f5b
mov eax, dword [esi]
cmp dword [eax + edi + 8], 0
jne 0x434fc2
mov ebx, dword [0x521340]
mov ecx, dword [ebp - 0x38]
mov eax, ebx
imul eax, ebx
imul eax, ebx
and eax, 0x8000000f
jns 0x434f78
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 4
jne 0x434fa0
xor edx, edx
mov dword [ebp - 0x3c], edx
lea esi, [ebp - 0x30]
xor ecx, ecx
inc ecx
inc esi
cmp ecx, 4
jl 0x434f87
mov edx, dword [ebp - 0x3c]
inc edx
mov dword [ebp - 0x3c], edx
cmp edx, 0xb
jl 0x434f85
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
inc ecx
add edi, 0xc
mov dword [ebp - 0x38], ecx
cmp edi, 0x3000
jl 0x434f30
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret
mov esi, dword [0x521340]
mov eax, esi
imul eax, esi
imul eax, esi
cdq
mov ecx, 0xd
idiv ecx
cmp edx, 0xb
jne 0x435066
xor edx, edx
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 0x434fe3
mov dword [0x521340], esi
mov eax, dword [ebp - 0x38]
pop edi
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 8]
pop ebx
mov eax, dword [eax]
pop esi
mov eax, dword [eax + ecx*4 + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret
Function at 0x43e040
Capabilities:
Check os version
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca758
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x521340]
mov dword [ebp - 0x14], 0
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 0xe
jne 0x43e099
push 0x74
push 0x73
push str._d__d_n
call fcn.004a90ce
add esp, 0xc
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr ecx, 8
movzx edi, al
movzx ebx, cl
cmp eax, 0x80000000
jae 0x43e0b8
mov esi, eax
shr esi, 0x10
cmp edi, 6
jb 0x43e0e2
cmp ebx, 2
jb 0x43e0e2
mov esi, dword [ebp + 8]
push esi
call fcn.0043e180
add esp, 4
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, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
push ebx
push edi
lea eax, [ebp - 0x10]
push 0x4df28c
push eax
mov dword [ebp - 4], 0
call fcn.004060e0
add esp, 0x14
call fcn.0043f300
test al, al
jne 0x43e129
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00404880
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43e15e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 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