joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4cb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
mov edi, closesocket
cmp dword [esi + 0x14], 8
jb 0x416c1a
mov eax, dword [esi]
jmp 0x416c1c
mov eax, esi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf013f
push 1
push 0
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove edi, dword [ebp - 0xc]
cmp dword [esi + 0x14], 8
jb 0x416c4b
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edx, 0x4ae8c0
mov eax, str.Flase
cmove edi, dword [ebp - 0xc]
cmp byte [ebx + 4], 0
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416c80
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Enabled
push edi
call esi
cmp dword [ebx + 0x1c], 8
lea edx, [ebx + 8]
jb 0x416cb5
mov edx, dword [edx]
mov ecx, edx
lea ebx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416cc0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.ParameterString
push edi
call esi
mov ebx, dword [ebp - 0x10]
cmp dword [ebx + 0x34], 8
lea edx, [ebx + 0x20]
jb 0x416cf2
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416d00
sub ecx, dword [ebp - 0x10]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.ScriptFile
push edi
call esi
cmp byte [ebx + 0x38], 0
mov eax, str.Flase
mov edx, 0x4ae8c0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416d40
sub ecx, dword [ebp - 0x10]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Visible
push edi
call esi
cmp byte [ebx + 0x39], 0
mov eax, str.Flase
mov ebx, 0x4ae8c0
cmove ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416d80
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push ebx
push 1
push 0
push str.WaitForScript
push edi
call esi
test edi, edi
je 0x416daf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459a5d
mov esp, ebp
pop ebp
ret 4
Function at 0x417480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4992e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4cb070]
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, ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov edi, closesocket
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], vtable.Registry.0
mov dword [ebp - 0x18], closesocket
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x4174e3
mov eax, dword [esi]
jmp 0x4174e5
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0xf013f
push 1
push 0
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove edi, dword [ebp - 0x24]
cmp dword [esi + 0x14], 8
jb 0x417514
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push eax
push 0x20006
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x3c]
test eax, eax
cmove edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], edi
call fcn.0040ab80
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x417549
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417550
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Format
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x41758d
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
test edi, edi
je 0x417598
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00459a5d
mov esp, ebp
pop ebp
ret 4
Function at 0x417840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4992e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4cb070]
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, ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov edi, closesocket
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], vtable.Registry.0
mov dword [ebp - 0x18], closesocket
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x4178a3
mov eax, dword [esi]
jmp 0x4178a5
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0xf013f
push 1
push 0
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove edi, dword [ebp - 0x24]
cmp dword [esi + 0x14], 8
jb 0x4178d4
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push eax
push 0x20006
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edx, 0x4ae8c0
mov eax, str.False
cmove edi, dword [ebp - 0x24]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x14], edi
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417910
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Enabled
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebx + 0x14]
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0040c310
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x417950
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417955
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Seperator
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x417992
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
test edi, edi
je 0x41799d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00459a5d
mov esp, ebp
pop ebp
ret 4
Function at 0x419220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499760
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4cb070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea ecx, [ebx + 4]
mov dword [ebx], vtable.PdfSettings.0
lea eax, [edi + 4]
push eax
call fcn.00410850
lea eax, [edi + 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x10]
call fcn.00410850
lea eax, [edi + 0x1c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0x1c]
call fcn.00410850
lea eax, [edi + 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0x28]
call fcn.00410850
lea esi, [ebx + 0x38]
mov byte [ebp - 4], 3
lea eax, [edi + 0x3c]
mov dword [ebp + 8], esi
push eax
lea ecx, [esi + 4]
mov dword [esi], vtable.CompressColorAndGray.0
call fcn.00410850
mov eax, dword [edi + 0x48]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x50]
mov byte [esi + 0x18], al
movsd xmm0, qword [edi + 0x58]
movsd qword [esi + 0x20], xmm0
movzx eax, byte [edi + 0x60]
mov byte [esi + 0x28], al
lea esi, [ebx + 0x68]
mov byte [ebp - 4], 4
lea eax, [edi + 0x6c]
mov dword [ebp + 8], esi
push eax
lea ecx, [esi + 4]
mov dword [esi], vtable.CompressMonochrome.0
call fcn.00410850
mov eax, dword [edi + 0x78]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x80]
mov byte [esi + 0x18], al
movzx eax, byte [edi + 0x81]
mov byte [esi + 0x19], al
lea eax, [edi + 0x84]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 0x84]
call fcn.00419a40
lea eax, [edi + 0xd4]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebx + 0xd4]
call fcn.00419c00
mov eax, dword [edi + 0x194]
mov dword [ebx + 0x194], eax
mov eax, dword [edi + 0x198]
mov dword [ebx + 0x198], eax
movzx eax, byte [edi + 0x19c]
mov byte [ebx + 0x19c], al
movzx eax, byte [edi + 0x19d]
mov byte [ebx + 0x19d], al
mov eax, dword [edi + 0x1a0]
mov dword [ebx + 0x1a0], eax
mov eax, dword [edi + 0x1a4]
mov dword [ebx + 0x1a4], eax
mov eax, dword [edi + 0x1a8]
mov dword [ebx + 0x1a8], eax
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 4
Function at 0x41ba60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499b70
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
mov eax, dword [0x4cb070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xc
xor eax, eax
mov dword [esi], vtable.BackgroundPage.0
push str.NoRepetition
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.0040a9c0
push 0xe
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.RepeatAllPages
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040a9c0
push 0xe
xor eax, eax
mov dword [ebp - 0x14], 7
push str.RepeatLastPage
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040a9c0
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push dword [ebp - 0x10]
lea ecx, [esi + 4]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.00410fa0
push fcn.0040ac70
push 3
push 0x18
lea eax, [ebp - 0x58]
push eax
call fcn.00459f47
xor eax, eax
mov byte [esi + 0x10], 0
lea ecx, [esi + 0x14]
mov dword [ecx + 0x14], 7
push eax
mov dword [ecx + 0x10], 0
push 0x4aed34
mov word [ecx], ax
call fcn.0040a9c0
mov word [esi + 0x2c], 0
mov eax, esi
mov dword [esi + 0x30], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41cbf0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499b70
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
mov eax, dword [0x4cb070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 9
xor eax, eax
mov dword [esi], vtable.Signature.0
push str.FirstPage
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.0040a9c0
push 8
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.LastPage
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040a9c0
push 0xa
xor eax, eax
mov dword [ebp - 0x14], 7
push str.CustomPage
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040a9c0
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push dword [ebp - 0x10]
lea ecx, [esi + 4]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.00410fa0
push fcn.0040ac70
push 3
push 0x18
lea eax, [ebp - 0x58]
push eax
call fcn.00459f47
xor eax, eax
mov byte [esi + 0x10], 0
lea ecx, [esi + 0x14]
mov dword [ecx + 0x14], 7
push eax
mov dword [ecx + 0x10], 0
push 0x4aed34
mov word [ecx], ax
call fcn.0040a9c0
xor eax, eax
mov word [esi + 0x2c], 0
lea ecx, [esi + 0x40]
mov dword [esi + 0x30], 0x42c80000
mov dword [esi + 0x34], 0x42c80000
mov dword [esi + 0x38], 0x43480000
mov dword [esi + 0x3c], 0x43480000
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x4aed34
mov word [ecx], ax
call fcn.0040a9c0
xor eax, eax
mov dword [esi + 0x6c], 7
lea ecx, [esi + 0x58]
mov dword [ecx + 0x10], 0
push eax
push 0x4aed34
mov word [ecx], ax
call fcn.0040a9c0
xor eax, eax
mov dword [esi + 0x84], 7
lea ecx, [esi + 0x70]
mov dword [ecx + 0x10], 0
push eax
push 0x4aed34
mov word [ecx], ax
call fcn.0040a9c0
mov dword [esi + 0x88], 1
xor eax, eax
mov dword [esi + 0x8c], 0
lea ecx, [esi + 0x90]
mov dword [ecx + 0x14], 7
push eax
mov dword [ecx + 0x10], 0
push 0x4aed34
mov word [ecx], ax
call fcn.0040a9c0
xor eax, eax
mov dword [esi + 0xbc], 7
lea ecx, [esi + 0xa8]
mov dword [ecx + 0x10], 0
push eax
push 0x4aed34
mov word [ecx], ax
call fcn.0040a9c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4200c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a408
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x4cb070]
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, dword [ebp + 8]
lea ecx, [ebx + 0x20]
call dword [sym.imp.NetWork.dll_public:_void____thiscall_Http::Request::UserData_void_const]
mov edi, eax
test edi, edi
je 0x4202e6
mov ecx, ebx
call dword [sym.imp.NetWork.dll_public:_enum_CURLcode___thiscall_Http::Response::CurlCode_void_]
test eax, eax
jne 0x4202e6
cmp dword [edi], 3
jne 0x4202ae
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4cf724]
cmp eax, dword [ecx + 4]
jle 0x42017a
push 0x4cf724
call fcn.0045a17f
add esp, 4
cmp dword [0x4cf724], 0xffffffff
jne 0x42017a
push 0x4a0220
mov dword [0x4cf73c], 0xf
mov dword [0x4cf738], 0
mov byte [0x4cf728], 0
call fcn.00459d25
push 0x4cf724
call fcn.0045a140
add esp, 8
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.00401a40
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], 0
push ecx
mov edx, eax
lea ecx, [ebp - 0x1dc]
call fcn.004230e0
add esp, 4
mov ecx, 0x4cf728
push eax
call fcn.004066c0
mov eax, dword [ebp - 0x1c8]
cmp eax, 0x10
jb 0x4201e2
inc eax
lea ecx, [ebp - 0x1dc]
push eax
push dword [ebp - 0x1dc]
call fcn.00401820
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1c8], 0xf
mov dword [ebp - 0x1cc], 0
mov byte [ebp - 0x1dc], 0
cmp eax, 0x10
jb 0x420222
inc eax
lea ecx, [ebp - 0x1f4]
push eax
push dword [ebp - 0x1f4]
call fcn.00401820
push 0xb0
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1e0], 0xf
push 0
push eax
mov dword [ebp - 0x1e4], 0
mov byte [ebp - 0x1f4], 0
call fcn.00474730
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.00420a70
mov ecx, ebx
mov dword [ebp - 4], 1
call dword [sym.imp.NetWork.dll_public:_unsigned_int___thiscall_Http::Memory::Size_void_const]
push 0
push eax
mov ecx, ebx
call dword [sym.imp.NetWork.dll_public:_char____thiscall_Http::Memory::MemoryAddr_void_const]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00421420
lea ecx, [ebp - 0x1c4]
call fcn.00420a00
push dword [edi + 0x18]
push 0x4cf728
push dword [edi + 0xc]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x1c4]
call fcn.00420310
jmp 0x4202e6
push 0x20
call fcn.00459a9f
mov esi, eax
add esp, 4
mov dword [ebp - 0x1f8], esi
push ebx
mov ecx, esi
mov dword [ebp - 4], 2
call dword [sym.imp.NetWork.dll_public:_void___thiscall_Http::Response::constructor_class_Http::Response_const__]
mov dword [esi], vtable.Http::Response.0
push dword [edi + 0x18]
push esi
push dword [edi + 0xc]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
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.00459a5d
mov esp, ebp
pop ebp
ret 4
Function at 0x422000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a698
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4cb070]
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, ecx
cmp dword [ebx + 0x38], 0
je 0x42212e
cmp byte [ebx + 0x3d], 0
je 0x42212e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x422059
xor al, al
jmp 0x422130
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00409a00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4220bf
sub eax, 1
je 0x4220c3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x422116
xor bl, bl
jmp 0x422118
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4220f8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0047b53e
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4220bb
cmp byte [ebx + 0x3d], 0
je 0x422116
test esi, esi
jne 0x422081
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00401240
jmp 0x42207e
mov bl, 1
cmp ecx, 0x10
jb 0x42212a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00401820
mov al, bl
jmp 0x422130
mov al, 1
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.00459a5d
mov esp, ebp
pop ebp
ret
Function at 0x4225a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497f46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4cb070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00459a9f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00456efe
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 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 0x424cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x4cb070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceType_int_]
add esp, 4
call dword [sym.imp.DuiLib.dll_public:_static_int___cdecl_DuiLib::CPaintManagerUI::GetResourceType_void_]
sub eax, 1
je 0x424d81
sub eax, 3
jne 0x424dd8
call dword [sym.imp.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetInstance_void_]
push 0x4b0cd8
mov edi, eax
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x424dd8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x424d68
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x424d68
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int__wchar_t_const__]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.DuiLib.dll_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_]
add esp, 4
push str.skin
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CDuiString::operator_wchar_t_const__]
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__]
mov esi, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
lea ecx, [ebp - 0x90]
add esp, 4
call esi
lea ecx, [ebp - 0x114]
call 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
Function at 0x42fb90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497f46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4cb070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00459a9f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00456efe
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 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