joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443950
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.004b6c70
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x204c]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x2050], edx
push eax
mov dword [ebp - 0x2058], ecx
xor edi, edi
mov dword [ebp - 0x2054], esi
mov dword [ebp - 0x204c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4439d0
mov eax, dword [ebp - 0x2048]
mov edi, dword [ebp - 0x2044]
mov esi, dword [ebp - 0x203c]
mov dword [ebp - 0x2054], eax
mov eax, dword [ebp - 0x2040]
shrd edi, eax, 0x14
shr eax, 0x14
mov eax, dword [ebp - 0x2038]
shrd esi, eax, 0x14
shr eax, 0x14
mov ecx, dword [0x519de8]
push 1
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x443a21
push dword [ebp - 0x2054]
lea eax, [ebp - 0x200c]
push esi
push edi
push str.total_memory:__f__free_memory:__f__memory_load:__f
push 0x1000
push eax
call fcn.0040b1a0
mov ecx, dword [0x519de8]
lea edx, [ebp - 0x200c]
add esp, 0x18
mov eax, dword [ecx]
push 0x149c
push str.AppManager.cpp
push edx
push 1
call dword [eax + 4]
cmp esi, 0x2d0
jae 0x443a3f
cmp edi, 0x2d0
jbe 0x443a3f
mov eax, dword [ebp - 0x2054]
imul eax, edi
cmp eax, esi
cmova esi, eax
lea eax, [esi + esi*2]
mov esi, dword [ebp - 0x2058]
shr eax, 2
mov dword [esi], eax
cmp eax, 0x300
jle 0x443a6b
mov ecx, dword [ebp - 0x2050]
mov dword [esi], 0x300
mov dword [ecx], 0x80
jmp 0x443b16
cmp eax, 0x180
jge 0x443aef
cmp edi, 0x280
jbe 0x443aa3
mov ecx, dword [ebp - 0x2050]
mov dword [esi], 0x180
mov dword [ebx], 0x80
mov dword [ecx], 0x80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret
movd xmm0, edi
cvtdq2pd xmm0, xmm0
shr edi, 0x1f
addsd xmm0, qword [edi*8 + 0x4efc10]
mulsd xmm0, qword [0x4efb80]
call fcn.004cb5c1
mov ecx, 0x180
cmp eax, ecx
cmova eax, ecx
mov ecx, dword [ebp - 0x2050]
mov dword [esi], eax
mov dword [ecx], eax
mov eax, dword [esi]
sar eax, 1
mov dword [ebx], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2050]
sar eax, 2
mov dword [ecx], eax
mov eax, dword [esi]
sar eax, 1
mov dword [ebx], eax
cmp dword [ecx], 0x80
jle 0x443b0e
mov dword [ecx], 0x80
cmp dword [ebx], 0x100
jle 0x443b1c
mov dword [ebx], 0x100
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00494c10
mov esp, ebp
pop ebp
ret
Function at 0x445c20
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test cl, cl
je 0x445d82
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x445dcb
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00455d60
push 0x4eb938
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.004568e0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 1
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x4e6da4
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x445d15
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x238]
call fcn.00424350
test al, al
je 0x445d53
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae ecx, dword [ebp - 0x238]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x4e6da4
push dword [ebp - 0x240]
mov dword [ebp - 0x21c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x224], 8
mov dword [ebp - method.UString.virtual_0], vtable.UString.0
jb 0x445dcb
push dword [ebp - 0x238]
call fcn.00494c0b
add esp, 4
jmp 0x445dcb
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x445dbf
push 0x4e6da4
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret
Function at 0x445df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4ced
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x510620]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x228], 0
lea edi, [esi + 4]
mov dword [edi + 0x14], 7
xor eax, eax
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 0x22c], esi
mov dword [esi], vtable.UString.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push 1
push 0
push str.SOFTWAREYonyouUClient
push SysReAllocString
mov dword [ebp - 0x228], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x445f1c
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x208
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 1
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push ebx
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x445f10
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00455d60
lea eax, [ebp - 0x244]
mov dword [ebp - 4], 1
cmp edi, eax
je 0x445eef
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00402990
cmp dword [ebp - 0x230], 8
mov dword [ebp - method.UString.virtual_0], vtable.UString.0
jb 0x445f10
push dword [ebp - 0x244]
call fcn.00494c0b
add esp, 4
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00494c10
mov esp, ebp
pop ebp
ret

Function at 0x445f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREYonyouUClient
push SysReAllocString
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x445fa0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREYonyouUClient
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x445fd8
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445fa5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.PathName
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00494c10
mov esp, ebp
pop ebp
ret
Function at 0x445ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 1
push esi
push str.SOFTWAREYonyouUClient
push SysReAllocString
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44605c
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
push esi
push 0x4e6dec
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
test eax, eax
cmove esi, dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00494c10
mov esp, ebp
pop ebp
ret

Function at 0x446070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edx
push eax
push 0xf003f
push 0
push str.SOFTWAREYonyouUClient
push SysReAllocString
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4460d0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREYonyouUClient
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4460f1
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x4e6dec
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret
Function at 0x448c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d4ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x510620]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x510620]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x448db6
cmp byte [ebx + 0x46], 0
je 0x448db6
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x448ccb
xor al, al
jmp 0x448db8
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x448d43
dec eax
je 0x448d47
sub eax, 2
je 0x448d9d
xor bl, bl
jmp 0x448d9f
mov byte [ebx + 0x46], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x448d7e
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00495650
add esp, 0x10
cmp esi, eax
jne 0x448d3f
cmp byte [ebx + 0x46], 0
je 0x448d9d
test esi, esi
jne 0x448d02
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040d090
jmp 0x448d02
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x448db2
push dword [esp + 0x18]
call fcn.00494c0b
add esp, 4
mov al, bl
jmp 0x448db8
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00494c10
mov esp, ebp
pop ebp
ret

Function at 0x44a690
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, ecx
push esi
push edi
cmp dword [edx + 0x14], 8
mov edi, dword [edx + 0x10]
jb 0x44a69f
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add edi, edi
je 0x44a6c1
lea ebx, [ebx]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x44a6b0
pop edi
mov eax, esi
pop esi
ret
Function at 0x4516b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], 0
mov ebx, esi
mov dword [ebp - 0x10], esi
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4516d3
push 0x4e4d44
sub ebx, edx
lea eax, [ebp - 8]
push ecx
sar ebx, 1
push eax
mov dword [ebp - 0xc], ebx
call fcn.004953e8
add esp, 0xc
test eax, eax
jne 0x451770
push edi
push eax
push eax
push eax
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push eax
push 0xfde9
call ebx
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.0047d9ae
add esp, 4
mov esi, eax
push 0
push 0
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push 0xfde9
call ebx
mov byte [esi + eax], 0
push dword [ebp - 8]
push eax
push 1
push esi
call fcn.00495650
push dword [ebp - 8]
call fcn.00495371
add esp, 0x14
pop edi
test esi, esi
je 0x45175e
push esi
call fcn.00495300
add esp, 4
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.00494c10
mov esp, ebp
pop ebp
ret
Function at 0x451d80
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d61f6
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x451f4f
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0049aba0
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
push 0
push 0x4e6da4
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x451f47
push dword [ebp - 0x23c]
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405d20
push 4
push 0
push str..exe
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.004061d0
cmp eax, 0xffffffff
je 0x451f30
push eax
push 0
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405ec0
push str..exe
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
call fcn.004069e0
add esp, 4
lea ecx, [ebp - 0x230]
push eax
call fcn.004020d0
cmp dword [ebp - 0x240], 8
jb 0x451ec0
push dword [ebp - 0x254]
call fcn.00494c0b
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
jb 0x451ef7
push dword [ebp - 0x26c]
call fcn.00494c0b
add esp, 4
lea eax, [ebp - 0x230]
cmp edi, eax
je 0x451f0d
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00402990
push dword [ebp - 0x23c]
call esi
cmp dword [ebp - 0x21c], 8
jb 0x451f2c
push dword [ebp - 0x230]
call fcn.00494c0b
add esp, 4
mov al, 1
jmp 0x451f51
cmp dword [ebp - 0x21c], 8
jb 0x451f47
push dword [ebp - 0x230]
call fcn.00494c0b
add esp, 4
push dword [ebp - 0x23c]
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret
Function at 0x452030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0018
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00455d60
push ecx
push 0x4e9238
push 0x4e8698
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00456160
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45208f
xor ebx, ebx
jmp 0x45209a
test al, 0x10
mov ebx, 0
setne bl
inc ebx
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], vtable.UString.0
jb 0x4520b2
push dword [ebp - 0x28]
call fcn.00494c0b
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret

Function at 0x4520d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6228
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00452030
test eax, eax
jne 0x452157
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x452157
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00451b20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dl, 1
cmovae ecx, dword [ebp - 0x28]
call fcn.004520d0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
cmp dword [ebp - 0x14], 8
jb 0x452153
push dword [ebp - 0x28]
call fcn.00494c0b
add esp, 4
mov al, bl
jmp 0x452159
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret
Function at 0x452180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6260
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x510620]
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 esi, edx
mov edi, ecx
push 0x4e99dc
push 0x86
push esi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4521e3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x38], eax
push ebx
test eax, eax
jne 0x4521e7
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
jmp 0x452201
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x452226
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x4e4f80
mov ecx, edi
call fcn.00405d20
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.00494c10
mov esp, ebp
pop ebp
ret
push eax
call fcn.0047d9ae
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4521fc
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.0049ac30
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x4e4f80
lea ecx, [ebp - 0x30]
call fcn.00455d60
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push esi
call fcn.004562f0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00405cf0
lea ecx, [ebp - 0x30]
call fcn.00416900
push esi
call fcn.00495300
add esp, 4
jmp 0x452208
Function at 0x4522a0
Capabilities:
Extract resource via kernel32 functions
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d62a8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
call fcn.00452030
test eax, eax
je 0x4522ee
cmp byte [ebp + 0x10], 0
jne 0x4522ee
mov al, 1
jmp 0x45246b
push ebx
movzx eax, di
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x452324
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
push edi
test eax, eax
je 0x45231e
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x45232b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
jmp 0x45246b
push ebx
call fcn.0047d9ae
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x452467
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.0049ac30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], 0xffffffff
je 0x4523b1
mov ecx, edi
call fcn.00452030
test eax, eax
je 0x4523b1
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4523aa
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x45245a
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00451b20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x28], 0
jbe 0x4523f3
mov edx, edi
lea ecx, [ebp - 0x54]
call fcn.00451b20
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4523e4
mov eax, dword [eax]
mov ecx, eax
call fcn.004520d0
lea ecx, [ebp - 0x54]
call fcn.00402110
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x452425
lea ecx, [ebp - 0x38]
xor bl, bl
call fcn.00402110
push esi
call fcn.00495300
add esp, 4
jmp 0x452469
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.00402110
push esi
call fcn.00495300
add esp, 4
jmp 0x452469
push esi
mov bl, 1
call fcn.00495300
add esp, 4
jmp 0x452469
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret