joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4304f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x414], 0
call fcn.0046fe20
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.0046fe20
add esp, 0x18
mov dword [ebp - 0x40c], 0x100
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 0x100
push 0
push eax
lea eax, [ebp - 0x404]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4306aa
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4306ac
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0xf003f
push 0
lea eax, [ebp - 0x404]
push eax
push 0
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4306ac
push dword [ebp - 0x408]
lea eax, [ebp - 0x204]
push eax
push edi
call fcn.004306e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4306bd
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4306bd
push dword [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004304f0
add esp, 8
mov esi, eax
push dword [ebp - 0x418]
call ebx
push dword [ebp - 0x408]
call ebx
test esi, esi
jne 0x4306c5
mov esi, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push 0
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0x100
push eax
push 0
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], 0x100
push eax
lea eax, [ebp - 0x204]
inc esi
push eax
push esi
push edi
mov dword [ebp - 0x414], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [ebp - 0x41c]
cmp eax, 0x103
jne 0x4305a3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x4306e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], esi
call fcn.0046fe20
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x430877
push edi
push eax
push eax
lea eax, [ebp - 0x210]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x430868
cmp dword [ebp - 0x20c], eax
je 0x430868
push dword [ebp - 0x210]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x430858
xor esi, esi
cmp dword [ebp - 0x20c], esi
jbe 0x430858
lea ebx, [ebx]
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0x100
push eax
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x430858
mov edi, dword [ebp - 0x228]
push edi
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
push str.RegCreateValues__d___s___d_
call fcn.004699e0
add esp, 0x10
lea eax, [ebp - 0x204]
push dword [ebp - 0x214]
push ebx
push dword [ebp - 0x220]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x430858
inc esi
cmp esi, dword [ebp - 0x20c]
jb 0x4307c0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret

Function at 0x430ab0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 2
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x430aed
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x430e11
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x430e06
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x430d41
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
mov esi, eax
push 0x490188
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0046f31e
add esp, 0x10
test esi, esi
sete bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp eax, 7
mov eax, dword [ebp - 4]
lea edx, [ecx + 2]
jne 0x430da5
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a792
mov esi, eax
add esp, 4
test esi, esi
je 0x430e06
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push edi
push dword [ebp - 8]
call eax
test eax, eax
jne 0x430dfd
mov eax, dword [ebp + 0xc]
push esi
push edi
push eax
push str.RegDBGetStringValue__s___s____s
call fcn.004699e0
push dword [ebp - 4]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00470c0c
jmp 0x430df5
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a792
mov esi, eax
add esp, 4
test esi, esi
je 0x430e06
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push edi
push dword [ebp - 8]
call eax
test eax, eax
jne 0x430dfd
mov eax, dword [ebp + 0xc]
push esi
push edi
push eax
push str.RegDBGetStringValue__s___s____s
call fcn.004699e0
push 0xffffffffffffffff
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00470a11
add esp, 0x20
mov ebx, 1
push esi
call fcn.0046e740
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x4310b5
mov eax, dword [ebp + 0x14]
cmp eax, 4
jne 0x43105b
push edi
call fcn.00470e16
add esp, 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4310ac
lea esi, [eax + 1]
jmp 0x4310ac
push dword [ebp + 0x1c]
push edi
cmp eax, 3
jne 0x43107a
push eax
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4310ac
lea esi, [eax + 1]
jmp 0x4310ac
cmp eax, 7
jne 0x431095
push eax
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4310ac
lea esi, [eax + 1]
jmp 0x4310ac
push eax
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
push ebx
push dword [ebp + 0xc]
push str.RegDBSetKeyValue__s___s___s____d
call fcn.004699e0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4310e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x43113d
push 4
lea eax, [ebp + 0x14]
mov dword [ebp - 8], 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.RegDBSetKeyValueDw__s___s___d____d
call fcn.004699e0
add esp, 0x14
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434df0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0x3bc
push 0
mov dword [0x4b5df8], esi
lea eax, [esi + 8]
push eax
call fcn.0046fe20
push 0x110
lea eax, [ebp - 0x114]
mov dword [esi + 0x3d0], 0
push 0
push eax
mov dword [esi + 0x3d4], 1
mov dword [esi + 0x3d8], 1
mov dword [esi + 0x408], 0
mov dword [esi + 0x40c], 1
mov dword [esi + 0x3dc], 0
mov dword [esi + 0x3f0], 0
mov dword [esi + 0x404], 0
mov dword [esi + 0x3cc], 0
mov dword [esi + 0x410], 0
mov dword [ebp - 0x118], 0x114
call fcn.0046fe20
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x434ed8
cmp dword [ebp - 0x114], 5
jb 0x434ed8
mov dword [esi + 0x3e0], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [esi + 0x3e0], 0
xor ecx, ebp
pop esi
call fcn.0046f33a
mov esp, ebp
pop ebp
ret

Function at 0x435570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x43567a
movzx eax, word [ebx]
test ax, ax
je 0x43567a
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x4355b0
cmp ax, 0x5c
jne 0x4355b2
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4355a4
cmp edi, ebx
je 0x43561a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046fe20
sub edi, ebx
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push ebx
push eax
call fcn.00471294
add edi, edi
add esp, 0x18
cmp edi, 0x208
jae 0x43568a
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00435570
add esp, 8
lea ecx, [ebp - 0x414]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x435622
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x435634
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x435650
mov ecx, ebx
lea eax, [ebp - 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
call fcn.004705e6
int3
Function at 0x435d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x435d99
cmp dword [esi + 4], 0xffffffff
jne 0x435d99
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x435d30
cmp dword [ebp + 0x10], 1
mov eax, dword [0x492588]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x435d63
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x435d63
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004388f0
add esp, 0x10
test eax, eax
jne 0x435d83
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00438ea0
add esp, 4
mov dword [esi], eax
mov eax, dword [0x4b5e04]
pop edi
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x438a30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x438a6e
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438a62
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x438a7f
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0046f7d0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x438b20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x438b2e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x438c03
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
dec edi
jne 0x438b46
pop edi
test esi, esi
je 0x438c22
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x490d50]
dec esi
jne 0x438c07
not eax
pop esi
pop ebp
ret
Function at 0x439730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x439765
cmp byte [edi + 1], 0
je 0x43975e
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43976b
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x439790
cmp byte [edi + 1], 0
je 0x439789
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x439793
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x4397a2
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
cmp ebx, eax
jae 0x4397a5
mov dword [ebp + 8], ebx
push esi
push 0x404
call fcn.00470748
mov esi, eax
add esp, 4
test esi, esi
jne 0x4397c0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, 4
mov dword [ebp - 0xc], 0
cmp ecx, eax
jbe 0x4398c0
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x18], edx
sub ebx, ecx
mov dword [ebp - 0x14], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x439821
cmp byte [edi + 1], 0
je 0x4398c0
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x439824
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 8], ebx
je 0x43984c
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439847
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x439875
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x43985f
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.0046f7d0
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4398c0
lea eax, [ebx - 3]
test eax, eax
jle 0x4398af
dec eax
cmp byte [eax + esi], 0x50
jne 0x4398a1
cmp byte [eax + esi + 1], 0x4b
jne 0x4398a1
cmp byte [eax + esi + 2], 5
jne 0x4398a1
cmp byte [eax + esi + 3], 6
je 0x4398a7
test eax, eax
jg 0x439885
jmp 0x4398af
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jne 0x4398c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
cmp eax, ecx
jb 0x4397d7
push esi
call fcn.0046f243
mov eax, dword [ebp - 0xc]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43aa90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x120]
push esi
push edi
push 0x11c
xor edi, edi
push edi
push eax
call fcn.0046fe20
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
push eax
call esi
test eax, eax
jne 0x43ab05
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
jne 0x43ab05
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, 0x80000
je 0x43ab29
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jb 0x43ab24
cmp dword [ebp - 0x118], 1
jae 0x43ab29
cmp eax, 6
jbe 0x43ab51
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43ab51
push str.AnimateWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43ab51
push esi
push dword [ebp + 0xc]
push ebx
call eax
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret

Function at 0x43adc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x494b48
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x43ae06
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43ae06
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test ecx, ecx
jne 0x43ae1a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.004699e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x10], 0
je 0x43ae27
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____DATA_Resource_found_
call fcn.004699e0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43b210
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046fe20
add esp, 0xc
test ebx, ebx
jle 0x43b327
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00470452
add esp, 0xc
cmp word [ebp + ebx*2 - 0x20e], 0x5c
jne 0x43b299
lea eax, [ebx*2 - 2]
cmp eax, 0x208
jae 0x43b33a
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
cmp word [ebp - 0x20c], 0
jne 0x43b2b6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43b327
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0047337b
mov edi, eax
add esp, 8
test edi, edi
je 0x43b301
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b210
mov esi, eax
add esp, 4
mov eax, 0x5c
mov word [edi], ax
test esi, esi
je 0x43b327
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str.CreateAllDirectory__s____d
call fcn.004699e0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
call fcn.004705e6
int3

Function at 0x43b340
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
mov edi, 1
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x43b363
push 0x103
mov byte [ebp - 0x108], al
sub esi, ecx
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.0046fe20
add esp, 0xc
test esi, esi
je 0x43b435
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004703fd
add esp, 0xc
cmp byte [ebp + esi - 0x109], 0x5c
jne 0x43b3c4
dec esi
cmp esi, 0x104
jae 0x43b448
mov byte [ebp + esi - 0x108], 0
cmp byte [ebp - 0x108], 0
jne 0x43b3e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43b435
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00473160
mov esi, eax
add esp, 8
test esi, esi
je 0x43b424
lea eax, [ebp - 0x108]
mov byte [esi], 0
push eax
call fcn.0043b340
mov edi, eax
mov byte [esi], 0x5c
add esp, 4
test edi, edi
je 0x43b435
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
call fcn.004705e6
int3