joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005b3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10005cd1
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10005cd1
cmp dword [ebp + 0x10], 0
je 0x10005cd1
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10005cd1
cmp dword [ebp + 0x18], 0
je 0x10005cd1
and byte [edi], 0
cmp byte [esi], 0x2e
jne 0x10005b9b
cmp byte [esi + 1], 0x5c
jne 0x10005b9b
add esi, 2
push esi
push dword [ebp + 0x10]
push ebx
push edi
call fcn.1000698e
add esp, 0x10
jmp 0x10005cbe
push 9
push str.WINSYSTEM
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005bc9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esi + 9], 0x5c
jne 0x10005cbe
add esi, 0xa
jmp 0x10005c6e
push 0xb
push str.WINCOMMON64
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005c01
push 1
push ebx
push edi
call fcn.10007078
add esp, 0xc
cmp byte [edi], 0
je 0x10005cd1
cmp byte [esi + 0xb], 0x5c
jne 0x10005cbe
add esi, 0xc
jmp 0x10005c6e
push 9
push str.WINCOMMON
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005c2b
push eax
push ebx
push edi
call fcn.10007078
add esp, 0xc
cmp byte [edi], 0
je 0x10005cd1
jmp 0x10005bb7
push 3
push 0x10019d80
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005c52
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esi + 3], 0x5c
jne 0x10005cbe
add esi, 4
jmp 0x10005c6e
cmp byte [esi], 0x24
jne 0x10005c75
cmp byte [esi + 1], 0x57
jne 0x10005c75
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esi + 2], 0x5c
jne 0x10005cbe
add esi, 3
push esi
push edi
jmp 0x10005b8c
push 0xe
push str.NETSCAPEPLUGIN
push esi
call fcn.1000aa80
add esp, 0xc
test eax, eax
jne 0x10005cd6
push ebx
push edi
call fcn.10005a6c
cmp byte [edi], 0
pop ecx
pop ecx
je 0x10005cb1
cmp byte [esi + 0xe], 0x5c
jne 0x10005cac
add esi, 0xf
push esi
push edi
push ebx
push edi
call fcn.1000698e
add esp, 0x10
cmp byte [edi], 0
jne 0x10005cc3
push ebx
push dword [ebp + 0x10]
push edi
call fcn.10009940
add esp, 0xc
cmp byte [edi], 0
je 0x10005cd1
push dword [ebp + 0x18]
push edi
push ebx
push edi
call fcn.1000698e
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
cmp byte [esi], 0
je 0x10005cb1
cmp byte [esi + 1], 0x3a
jne 0x10005cb1
push ebx
push esi
jmp 0x10005cb5

Function at 0x10006f78
Capabilities:
Get common file path

Disassembly:
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10006fbb
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006fbb
push dword [esp + 8]
push dword [esp + 8]
call eax
test eax, eax
jne 0x10006fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AIL:GetSystemWindowsDirectory_err_d
push 1
call fcn.10004a2b
add esp, 0xc
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
ret
Function at 0x10007128
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10007136
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp word [ebp + 0x10], 0
not eax
je 0x10007167
push esi
movzx edx, byte [ecx]
movzx esi, al
add dword [ebp + 0x10], 0xffff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x10019fc0]
xor eax, edx
inc ecx
cmp word [ebp + 0x10], 0
jne 0x10007143
pop esi
not eax
pop ebp
ret

Function at 0x1000720a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10007328
mov edi, eax
test edi, edi
je 0x10007254
mov ecx, edi
call fcn.10007438
mov esi, dword [ebp + 0x1c]
push eax
push esi
push edi
push 0x1001a3c0
push 1
call fcn.10004a2b
add esp, 0x14
mov ecx, edi
call fcn.10007438
test eax, eax
je 0x10007254
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0x20219
jmp 0x10007259
mov esi, 0x20019
test edi, edi
je 0x10007265
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea eax, [ebp - 4]
push eax
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000729e
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x100073a3
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.Kernel32.DLL
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call edi
push str.User32.DLL
mov dword [esi + 0x1c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x10007422
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.IsWow64Process2
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.Wow64EnableWow64FsRedirection
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.GetSystemWow64DirectoryA
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x10007434
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret
Function at 0x1000790a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x10007938
mov eax, 1
jmp 0x10007a1e
cmp dword [ebp - 8], 0
jne 0x10007a12
cmp dword [ebp - 4], 3
je 0x10007952
cmp dword [ebp - 4], 2
jne 0x10007a12
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.100080b6
lea ecx, [ebp - 0x18]
call fcn.10007f30
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.100086c7
movsx edx, al
cmp edx, 0x5c
jne 0x100079a5
lea ecx, [ebp - 0x18]
call fcn.10007f30
sub eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.10008df8
push eax
lea ecx, [ebp - 0x18]
call fcn.10008724
lea ecx, [ebp - 0x24]
call fcn.10008151
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.10008c4f
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10007a0a
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x18]
call fcn.10008df8
push eax
lea ecx, [ebp - 0x18]
call fcn.10008724
lea ecx, [ebp - 0x30]
call fcn.10008151
lea ecx, [ebp - 0x18]
call fcn.10008714
push eax
call fcn.1000790a
add esp, 4
test eax, eax
je 0x10007a0a
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x18]
call fcn.10008151
mov eax, dword [ebp - 0x34]
jmp 0x10007a1e
lea ecx, [ebp - 0x18]
call fcn.10008151
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000f044
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esp
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000ec20
push eax
push esi
push dword [ebp + 8]
call fcn.1000ebd5
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000ec10
mov dh, 0x13
out dx, eax
out dx, eax
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.1000ec10
mov esp, 0x8dad4790
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x1000f330
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000f2e7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000f305
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000f363
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
jge 0x1000f342
jge 0x1000f342
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000f34a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000f353
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000f35d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000f33f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000f2c9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000f3b0
dec eax
je 0x1000f3a7
sub eax, 3
je 0x1000f39e
mov dword [ebp - 4], 0x40
jmp 0x1000f3cd
mov dword [ebp - 4], 4
jmp 0x1000f3b3
mov dword [ebp - 4], 0x20
jmp 0x1000f3b3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000f3ff
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000f37f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000ec10
cmp byte [edi + edi*4 - 0xf], bh
push dword [ebp + 0x14]
push 1
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax

Function at 0x1001078b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp - 0x6fc], 1
jne 0x1001083c
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.1000ec20
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.1000eb81
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x10010b88
cmp dword [ebp - 0x6fc], 2
Function at 0x10010841
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [edx]
jne 0x100108f9
and byte [ebp - 0x79c], 0
and byte [ebp - 0x79b], 0
mov byte [ebp - 0x79a], 0x10
and byte [ebp - 0x799], 0
mov byte [ebp - 0x798], 0xb3
mov byte [ebp - 0x797], 0x8c
mov byte [ebp - 0x796], 0x80
mov byte [ebp - 0x795], 0x81
mov byte [ebp - 0x794], 0x9d
mov byte [ebp - 0x793], 0x8a
mov byte [ebp - 0x792], 0x9c
mov byte [ebp - 0x791], 0xc1
mov byte [ebp - 0x790], 0x8b
mov byte [ebp - 0x78f], 0x83
mov byte [ebp - 0x78e], 0x83
mov byte [ebp - 0x78d], 0xef
invalid
push edx
invalid
clc
invalid
jno 0x100108a0
invalid

Function at 0x4228a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x4228ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4228c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4228b0
mov eax, 1
add ebx, ebx
jne 0x4228d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4228c8
jne 0x4228e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4228c8
xor ecx, ecx
sub eax, 3
jb 0x4228f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42296a
mov ebp, eax
add ebx, ebx
jne 0x422903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422934
inc ecx
add ebx, ebx
jne 0x422920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422915
jne 0x422931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422915
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422954
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422945
jmp 0x4228b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422954
add edi, ecx
jmp 0x4228b6
pop esi
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x4229b3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422971
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22030]
or eax, eax
je 0x4229ad
mov dword [ebx], eax
add ebx, 4
jmp 0x42298e
call dword [esi + 0x2202c]
mov ebp, dword [esi + 0x22034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4229e7
sub esp, 0xffffff80
jmp 0x403955
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d004]
jne 0x40100a
repz ret
jmp fcn.00401587

Function at 0x40444b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00401e3b
and dword [ebp - 0x14], 0
cmp dword [0x41f5a8], 0
mov dword [ebp - 0x18], eax
jne 0x4044fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4045a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4045a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41f5a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41f5ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41f5b0], eax
call edi
push eax
call esi
mov dword [0x41f5b8], eax
test eax, eax
je 0x4044fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41f5b4], eax
mov eax, dword [0x41f5b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404557
cmp dword [0x41f5b8], ecx
je 0x404557
push eax
call esi
push dword [0x41f5b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404557
test ebx, ebx
je 0x404557
call edi
test eax, eax
je 0x40454e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40454e
test byte [ebp - 8], 1
jne 0x404557
or dword [ebp + 0x10], 0x200000
jmp 0x40458a
mov eax, dword [0x41f5ac]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40458a
mov eax, dword [0x41f5b0]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41f5a8]
call esi
test eax, eax
je 0x4045a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4045a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x4c8652
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004c86d1
jae 0x4c865e
xor ecx, ecx
call fcn.004c86d1
jae 0x4c8688
xor eax, eax
call fcn.004c86d1
jae 0x4c8699
mov al, 0x10
call fcn.004c86d1
adc al, al
jae 0x4c867a
jne 0x4c86c6
stosb byte es:[edi], al
jmp 0x4c865f
call fcn.004c86dd
dec ecx
loop 0x4c86a5
mov eax, ebp
call fcn.004c86db
jmp 0x4c86c7
lodsb al, byte [esi]
shr eax, 1
je 0x4c86ed
adc ecx, 2
mov ebp, eax
jmp 0x4c86c7
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004c86db
cmp eax, 0x7d00
jae 0x4c86c5
cmp eax, 0x500
jae 0x4c86c6
cmp eax, 0x7f
ja 0x4c86c7
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4c865f
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x77ba1582
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and word [esi], 0
lea eax, [edi + edi]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x77ba15d4
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push str.WinDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dword [ebp - 8], 0xfffffffe
jmp 0x77ba15de
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x77ba15e4
xor eax, eax
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
je 0x77ba15fa
mov word [esi + eax*2], 0x5c
inc eax
push str.config_
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
leave
ret
Function at 0x404fc0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ReadConsoleW]
mov edx, eax
sub esp, 0x14
mov eax, 1
test edx, edx
je 0x405010
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x424528]
test edi, edi
je 0x405088
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x405000
mov esi, dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_GetConsoleCP]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 0x14]
sub esp, 0x18
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xffff
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x4050a5
mov dword [0x424528], eax
jmp 0x40501a
test byte [0x423030], 2
jne 0x4050bb
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xalloc
mov dword [esp + 4], 0x423030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x4050ae
Function at 0x4050f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x20
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x14], ecx
mov dword [esp], 0x21c
call edi
test eax, eax
je 0x40522a
mov ebx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x405200
mov eax, dword [esi]
lea eax, [eax + eax + 2]
mov dword [esp], eax
call edi
mov edx, eax
test eax, eax
je 0x40522a
mov ecx, dword [esi]
mov dword [ebx], eax
mov dword [esp], edx
lea eax, [ecx + ecx]
mov dword [ebp - 0x1c], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov dword [esp + 4], eax
call sym._memcpy
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov word [edx + ecx*2], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea eax, [eax + eax + 2]
mov dword [esp], eax
call edi
mov edi, eax
test eax, eax
je 0x40522a
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [esp], edi
lea eax, [edx + edx]
mov dword [ebp - 0x18], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
call sym._memcpy
mov eax, dword [ebp + 8]
mov dword [esi], 0
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
mov word [edi + edx*2], cx
xor edi, edi
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
mov word [ebx + 0x14], di
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x405218
mov dword [eax + 8], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov word [ebx + 0x14], ax
jmp 0x4051ca
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x423030], 2
jne 0x405240
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xalloc
mov dword [esp + 4], 0x423030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x405233
Function at 0x406f30
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 4
mov ebx, eax
lea eax, [ebp - 0x22]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
sub esp, 8
test eax, eax
jne 0x406f70
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movsx esi, word [ebp - 0x20]
movsx eax, word [ebp - 0x22]
lea edi, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 0x10], edi
inc esi
mov dword [esp + 0xc], 0
imul esi, eax
mov dword [esp + 4], 0x20
mov dword [esp + 8], esi
call dword [sym.imp.kernel32.dll_FillConsoleOutputCharacterW]
movzx eax, word [ebp - 0x1a]
sub esp, 0x14
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FillConsoleOutputAttribute]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret