joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6f48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51eee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00425a40
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00425a40
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.00425b40
mov eax, dword [edi]
lea ecx, [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
push dword [eax + 4]
call fcn.00425b40
mov eax, dword [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 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
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 0x4280a0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x520340]
mov eax, esi
imul eax, esi
push edi
cdq
mov edi, 0xf
idiv edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ebx
cmp edx, 5
jne 0x428101
xor edi, edi
test esi, esi
je 0x4280fb
mov eax, esi
mov ecx, esi
cdq
sub eax, edx
and ecx, 1
mov esi, eax
add edi, ecx
sar esi, 1
jne 0x4280e3
mov ecx, dword [ebp - 0x164]
mov dword [0x520340], edi
lea eax, [ebp - 0x15c]
push eax
push ebx
mov dword [ebp - 0x15c], 0
call fcn.00428030
mov ebx, eax
test ebx, ebx
jne 0x428133
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x520340]
xor eax, eax
mov dword [ebp - 0x160], eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 8
jne 0x4281bb
xor eax, eax
push 0x150
push eax
mov word [ebp - 0x158], ax
lea eax, [ebp - 0x156]
push eax
call fcn.004a7560
add esp, 0xc
xor edi, edi
xor esi, esi
xor eax, eax
test edi, edi
je 0x4281a0
test eax, eax
je 0x4281a0
lea ecx, [esi + eax]
lea edx, [ebp - 0x158]
lea edx, [edx + ecx*2]
lea ecx, [esi + eax]
mov cx, word [ebp + ecx*2 - 0x172]
inc cx
add cx, word [edx - 2]
mov word [edx], cx
inc eax
cmp eax, 0xd
jl 0x428178
add esi, 0xd
inc edi
cmp esi, 0xa9
jl 0x428176
movsx eax, word [ebp - 8]
mov dword [0x520340], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x15c]
inc dword [ebp - 0x160]
push 0x4283c0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x1f4
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4281f5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
jmp 0x4281fa
mov esi, 1
push ebx
call edi
cmp dword [ebp - 0x160], 5
jge 0x42822f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x168]
call fcn.00428030
mov ebx, eax
test ebx, ebx
jne 0x4281c1
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 1
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004a63c4
mov esp, ebp
pop ebp
ret 4
Function at 0x428250
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x234], eax
call fcn.004284e0
test al, al
jne 0x428289
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0x22c
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.004a7560
mov ecx, dword [0x520340]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 9
idiv ecx
add esp, 0xc
cmp edx, 6
jne 0x4282c0
dec dword [0x520878]
mov eax, dword [edi + 0x14]
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x4282ee
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret 8
push ebx
mov bl, 1
lea eax, [ebp - 0x230]
push eax
push esi
test bl, bl
je 0x428302
mov eax, dword [edi + 0x18]
jmp 0x428305
mov eax, dword [edi + 0x1c]
call eax
test eax, eax
je 0x428392
lea eax, [ebp - 0x20c]
push 0x5c
push eax
xor bl, bl
call fcn.004a7759
add esp, 8
test eax, eax
jne 0x42832e
lea eax, [ebp - 0x20c]
jmp 0x428331
add eax, 2
mov ecx, dword [ebp + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42835a
test dx, dx
je 0x428356
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42835a
add eax, 4
add ecx, 4
test dx, dx
jne 0x428334
xor eax, eax
jmp 0x42835f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4282f1
push dword [ebp - 0x228]
push 1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x428382
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
jmp 0x428394
xor ebx, ebx
test esi, esi
je 0x42839f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004a63c4
mov esp, ebp
pop ebp
ret 8
Function at 0x428920
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c735a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x51eee0]
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.0041f330
mov dword [edi], 0x4dbc54
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 0x4d9460
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00401ff0
push str.CSwDetection_
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.0044f130
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 8
call fcn.0043e000
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 9
call fcn.0043e000
add esp, 0x1c
lea ecx, [edi + 8]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402af0
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 0x428a50
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 0x428a70
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 0x428a90
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 0x428ab0
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 0x428ace
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 0x429ec0
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 0x429f31
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x429eff
cmp eax, 2
jne 0x429f1b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x429f2b
test ecx, ecx
je 0x429f26
test cl, 1
jne 0x429f1b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x429f2b
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 0x430c70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8310
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x51eee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4dd5c4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
call fcn.00401ff0
push str.Country
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00401ff0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
mov byte [ebp - 4], 2
call fcn.00404840
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 3
call fcn.00404840
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 2
call fcn.00431710
add esp, 0x10
test al, al
jne 0x430d51
mov ebx, dword [ebp + 8]
push 0x4d8e30
mov ecx, ebx
call fcn.00401ff0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x430d85
mov ecx, dword [edx]
push edx
jmp 0x430d80
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
push edi
call fcn.00404840
mov ebx, dword [ebp + 8]
add eax, 0x10
or esi, 0xffffffff
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x430d85
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x430da5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x430dc6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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 0x431d20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c84e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x51eee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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.00404840
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 0x4dd5c4
mov byte [ebp - 4], 1
call fcn.00401ff0
mov dword [ebp - 4], 0xffffffff
call fcn.004324d0
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 0x4328c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4328d5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x4328e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4328e0
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 0x432ed0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.00433020
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x432fd5
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x432fd5
cmp eax, dword [ebp + 0x14]
ja 0x432fd5
xor eax, eax
test esi, esi
je 0x432f96
cmp eax, esi
jae 0x432f1a
movzx edx, byte [eax + ebx]
inc eax
jmp 0x432f1c
xor edx, edx
cmp eax, esi
jae 0x432f2a
movzx ecx, byte [eax + ebx]
mov dword [ebp + 8], ecx
inc eax
jmp 0x432f31
mov dword [ebp + 8], 0
cmp eax, esi
jae 0x432f3c
movzx ecx, byte [eax + ebx]
inc eax
jmp 0x432f3e
xor ecx, ecx
shl edx, 8
add edx, dword [ebp + 8]
add edi, 4
shl edx, 8
add edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 1], cl
cmp eax, esi
jb 0x432f13
mov edi, dword [ebp + 0x10]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 4]
sub esi, eax
cmp dword [esi*4 + 0x4dd768], ecx
jle 0x432fc7
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x4dd768]
jl 0x432fb7
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], edx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4331b0
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 0x433242
mov eax, dword [0x520340]
mov ecx, eax
imul ecx, eax
imul eax, ecx
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 0xc
jne 0x43320e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
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 0x433239
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 0x433650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x51eee0]
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.004a63c4
mov esp, ebp
pop ebp
ret

Function at 0x433710
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x520340]
lea ecx, [esi + 2]
lea eax, [esi + 1]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x11
idiv ecx
cmp edx, 0xf
jne 0x43376f
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x141]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
push eax
call fcn.004a7190
add esp, 8
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
call fcn.00434b90
test al, al
jne 0x43379b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x520340], edx
cmp ebx, 0xffffffff
je 0x4337ab
test bl, 0x10
je 0x4337ab
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x433cf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433d1e
pop edi
xor eax, eax
pop esi
pop ebp
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
pop ebp
ret
Function at 0x433ef0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c87c2
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x51eee0]
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.004a7560
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 0x433f9d
push 0x11
push str.AppDataLocalLow
jmp 0x433fa4
push 3
push 0x4dd834
call fcn.0040b980
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.004a63c4
mov esp, ebp
pop ebp
ret
Function at 0x434330
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8812
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x51eee0]
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 - 0x21c], 0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
call fcn.0043dad0
test al, al
je 0x43443d
push 0
push 0
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4344ce
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.004a5340
add esp, 4
mov ebx, eax
push esi
push ebx
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x434427
test ebx, ebx
jne 0x4343f8
xor ecx, ecx
jmp 0x43440f
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434400
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.00409950
call fcn.00434b60
test al, al
jne 0x434427
inc dword [0x520340]
test ebx, ebx
je 0x4344ce
push ebx
call fcn.004a7190
add esp, 4
jmp 0x4344ce
mov edx, dword [0x520340]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 0xa
jne 0x43446d
push 0x5a
push 0x59
push str._d__d_n
call fcn.004a80de
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004a7560
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 0x4344ce
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4344b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00409950
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.004a63c4
mov esp, ebp
pop ebp
ret
Function at 0x434a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c88c8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x51eee0]
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 0x434ab4
xor bl, bl
jmp 0x434b19
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 0x434aea
push 0
lea ecx, [ebp + 0xc]
call fcn.004088a0
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 0x434b3d
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 0x434d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
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
mov eax, dword [0x520340]
lea ecx, [eax + 1]
imul eax, ecx
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 0x12
jne 0x434da5
push 0xd5
push 0xd4
push str._d__d_n
call fcn.004a80de
add esp, 0xc
cmp esi, 0xffffffff
je 0x434dfe
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.00434bc0
test al, al
jne 0x434dc6
inc dword [0x521038]
mov eax, dword [ebp + 0xc]
push 0
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434df7
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 esi
mov al, bl
pop ebx
pop ebp
ret