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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x214], eax
push esi
lea esi, [ebp - 0x20c]
test ecx, ecx
je 0x455775
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455904
mov eax, dword [ebp - 0x214]
push edi
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x4558ec
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
inc ecx
inc eax
mov dword [ebp - 0x21c], ecx
cmp ecx, eax
mov dword [ebp - 0x220], eax
cmovb ecx, eax
mov dword [ebp - 0x218], ecx
cmp ecx, 0x104
jbe 0x4557fa
lea eax, [ecx + ecx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4557f4
lea edi, [eax + 8]
jmp 0x4558d2
mov ecx, dword [ebp - 0x218]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ecx
push eax
push esi
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x455861
push esi
push dword [ebp - 0x214]
call fcn.00455700
mov edi, eax
test edi, edi
jne 0x4558d2
mov eax, dword [ebp - 0x218]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x455822
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x455877
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x4558d2
mov eax, dword [ebp - 0x218]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4558d2
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
jne 0x4558d2
mov eax, dword [ebp - 0x218]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4558a0
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x4558ec
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x224], 0
je 0x455901
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e41f
mov esp, ebp
pop ebp
ret 8
Function at 0x455920
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x1c]
mov ebx, 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455a28
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x455a1f
mov eax, dword [ebp - 0x10]
inc eax
push esi
mov dword [ebp - 0x14], eax
xor esi, esi
add eax, eax
push edi
push eax
call fcn.00574fb6
mov edi, eax
mov dword [ebp - 0x20], esi
add esp, 4
mov dword [ebp - 0x1c], esi
test edi, edi
je 0x455a1d
cmp dword [ebp - 0xc], esi
jbe 0x455a14
test ebx, ebx
je 0x455a14
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x455a0e
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455a0e
push dword [ebp + 0x18]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [ebp + 0x14]
push dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4559a6
push edi
call fcn.00574f9b
add esp, 4
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x455aeb
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
xor esi, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00538f33
add esp, 4
mov edi, eax
cmp dword [ebp - 8], esi
jbe 0x455ae2
mov eax, dword [ebp - 4]
push 0
inc eax
mov dword [ebp - 0xc], 0
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x455adc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x455adc
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x14]
push ebx
call dword [ebp + 0xc]
sub eax, 1
je 0x455af7
inc esi
cmp esi, dword [ebp - 8]
jb 0x455a95
push edi
call fcn.00538f2e
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00538f2e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab6ad
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6244f8]
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 edx, dword [ebp + 8]
mov ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455e24
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004049b3
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
lea ecx, [edx - 1]
cmp edx, ecx
jbe 0x455fbc
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp edi, 8
cmovae eax, ebx
cmp word [eax + ecx*2], 0x5c
jne 0x455ef7
cmp edx, ecx
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovb ecx, edx
mov dword [ebp - 0x2c], 7
cmp edi, 8
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x40]
push eax
call fcn.004049b3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x455ed3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x455ec9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455fc1
push edx
push ecx
call fcn.0056e411
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
push 0
push 0x5c6b38
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x455f51
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x455f51
push eax
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x455f51
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x48]
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, ebx
push eax
call fcn.00455b10
mov edx, dword [ebp - 0x14]
add esp, 8
mov esi, eax
cmp edx, 8
jb 0x455f9e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x455f94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455fc1
push edx
push ecx
call fcn.0056e411
add esp, 8
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.0056e41f
mov esp, ebp
pop ebp
ret
call fcn.00404979
call fcn.00574b50
int3
Function at 0x4560c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x800
xor bl, bl
mov dword [ebp - 4], 0x800
call fcn.00574fb6
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.00570de0
add esp, 0x10
test esi, esi
je 0x456224
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
cmp ecx, 1
je 0x456124
cmp ecx, 2
jne 0x456212
cmp eax, 0xea
jne 0x456156
push dword [ebp - 4]
push esi
call fcn.0058888f
mov esi, eax
add esp, 8
test esi, esi
je 0x456224
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x456212
mov eax, dword [ebp - 4]
cmp eax, 2
jbe 0x456210
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x456180
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456180
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004049b3
cmp dword [ebp - 8], 2
jne 0x456210
mov ebx, dword [ebp - 4]
and ebx, 0xfffffffe
lea eax, [ebx + ebx]
push eax
call fcn.00574fb6
mov edi, eax
add esp, 4
test edi, edi
je 0x456210
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.00570de0
add esp, 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jbe 0x4561f3
add eax, eax
push eax
push edi
call fcn.0058888f
mov edi, eax
add esp, 8
test edi, edi
je 0x4561f3
push dword [ebp - 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x456207
mov ecx, dword [ebp + 0x10]
push edi
call fcn.0044bd90
push edi
call fcn.00574f9b
add esp, 4
mov bl, 1
push esi
call fcn.00574f9b
add esp, 4
mov al, bl
pop edi
pop esi
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 0x45c120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab900
mov eax, dword fs:[0]
push eax
mov eax, 0x1084
call fcn.0056ed20
mov eax, dword [0x6244f8]
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 eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x103c], ecx
mov dword [ebp - 0x1030], eax
jne 0x45c184
push ebx
push esi
push edi
push ecx
call fcn.0045c970
add esp, 0x10
jmp 0x45c365
lea eax, [ebp - 0x1028]
push eax
call fcn.0045c3a0
add esp, 4
cmp dword [ebp - 0x1018], 0
mov dword [ebp - 4], 0
je 0x45c330
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x1029], 0
mov dword [ebp - 0x1034], esi
jb 0x45c1c2
mov eax, dword [esi]
mov dword [ebp - 0x1034], eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x1038], edi
jb 0x45c1d6
mov eax, dword [edi]
mov dword [ebp - 0x1038], eax
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x45c1e0
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x1030]
cmp dword [ecx + 0x14], 8
jb 0x45c1ee
mov ecx, dword [ecx]
push dword [ebp - 0x1034]
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
push dword [ebp - 0x1038]
cmovae eax, dword [ebp - 0x1028]
push edx
push ecx
push eax
push 0x5c6fd0
lea eax, [ebp - 0x1010]
push 0x800
push eax
call fcn.0044f080
add esp, 0x20
mov dword [ebp - 0x108c], 0
xor eax, eax
mov dword [ebp - 0x1088], 0
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1048], eax
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x1040], eax
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1090]
mov dword [ebp - 0x1084], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1080], 0
push eax
push 0
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x1078], 0
mov dword [ebp - 0x1074], 0
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x106c], 0
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x105c], 0
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x1090], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
movzx ecx, byte [ebp - 0x1029]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x1030], ecx
jmp 0x45c34d
push dword [ebp - 0x1030]
push ebx
push esi
push edi
push dword [ebp - 0x103c]
call fcn.0045bcd0
add esp, 0x14
mov byte [ebp - 0x1030], al
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 0xffffffff
call fcn.00404885
mov eax, dword [ebp - 0x1030]
test al, al
jne 0x45c37a
push ebx
push esi
push edi
push dword [ebp - 0x103c]
call fcn.0045c970
add esp, 0x10
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.0056e41f
mov esp, ebp
pop ebp
ret
Function at 0x45c970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aae2d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6244f8]
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 + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x45c9d0
mov edi, dword [edi]
cmp ecx, 8
jae 0x45c9f8
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
jmp 0x45ca37
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00404993
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push eax
call fcn.00570860
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
push 0
push 0x5c7020
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x5c3574
push eax
call fcn.0040ae41
mov ecx, dword [ebx + 0x10]
mov edx, 2
add ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x18]
add eax, 0x64
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00538f33
add esp, 0x14
mov edi, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x45ca92
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x45ca9a
mov ebx, dword [ebx]
push eax
push esi
push ebx
push 0x5c7030
push dword [ebp - 0x2c]
push edi
call fcn.0044f080
add esp, 0x18
push 1
push 0
push 0
push edi
push 0x5be094
push dword [ebp - 0x34]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
push edi
setg bl
call fcn.00538f2e
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x45cb08
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45cafe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cb26
push edx
push ecx
call fcn.0056e411
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
call fcn.00574b50
int3
Function at 0x45e630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x45e7be
cmp dword [edi + 0x20], 0
je 0x45e7be
cmp dword [edi + 0x24], 0
je 0x45e7be
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x45e7be
cmp dword [esi], edi
jne 0x45e7be
mov eax, dword [esi + 4]
cmp eax, 0x2a
je 0x45e698
cmp eax, 0x39
je 0x45e698
cmp eax, 0x45
je 0x45e698
cmp eax, 0x49
je 0x45e698
cmp eax, 0x5b
je 0x45e698
cmp eax, 0x67
je 0x45e698
cmp eax, 0x71
je 0x45e698
cmp eax, 0x29a
jne 0x45e7be
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 2
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
test ecx, ecx
jns 0x45e6cd
neg ecx
mov dword [esi + 0x18], ecx
push 0
push 0
push 0
cmp ecx, 2
jne 0x45e6e6
mov dword [esi + 4], 0x39
call fcn.00462a80
jmp 0x45e6fd
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
mov dword [esi + 4], eax
call fcn.004627f0
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esi + 0x28], 0
push esi
call fcn.00461310
mov esi, dword [edi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00570de0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x5c7122]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x5c7120]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x5c7124]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x5c7126]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret
Function at 0x4627f0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00462800

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x462a8c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00462aa0

Function at 0x46a470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x628]
test eax, eax
jne 0x46a4ac
push 0x32
call fcn.00574fb6
push 0x32
push 0
push eax
mov dword [esi + 0x628], eax
call fcn.00570de0
mov eax, dword [esi + 0x628]
add esp, 0x10
test eax, eax
jne 0x46a4ac
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1d4]
mov ecx, dword [esi + 0x628]
mov dword [ecx], eax
mov eax, dword [esi + 0x26c]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x628]
and ecx, 0x2000
shl ecx, 9
mov dword [eax + 4], ecx
cmp dword [esi + 0x8c], 0
jne 0x46a4f3
push 0
push 0
push dword [esi + 0x628]
mov ecx, esi
call fcn.00541d8d
mov ecx, esi
pop esi
jmp fcn.00541aad
Function at 0x46fdb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46fe49
push 0
lea eax, [ebp - 0x40]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fe42
cmp dword [ebp - 0x40], 0xe
jne 0x46fe42
push 0
lea eax, [ebp - 0x40]
push eax
push 0x28
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fe42
cmp dword [ebp - 0x40], 0x28
jne 0x46fe42
push ebx
xor ebx, ebx
cmp word [ebp - 0x2e], 0x20
push esi
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0056e41f
mov esp, ebp
pop ebp
ret

Function at 0x46fe60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46fe9c
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46fe9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x46fe9c
xor eax, eax
cmp word [ecx + 0xe], 0x20
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x46ff30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46ffe0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x474e5089
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ffd9
cmp dword [ebp - 8], 4
jne 0x46ffd9
lea ecx, [ebp - 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 4]
push esi
cmp eax, dword [edx]
je 0x46ffaa
cmp al, byte [edx]
jne 0x46ffc0
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x46ffc0
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x46ffc0
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x46ffc0
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret
sbb esi, esi
push edi
or esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret