joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dc70
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec968
push 0x47556c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x46dd0e
jmp 0x46de44
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x46dd30
jmp 0x46de44
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46dd50
jmp 0x46de44
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x46dd73
push 0xb
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x46de44
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x454c
je 0x46dd97
push 0xb
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x46de44
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xbc], 0
jne 0x46ddc2
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push 0x714
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x46de44
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0xb8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xc
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0x10], 0
je 0x46ddf3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x2c]
jae 0x46de05
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
push 0x7a
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x46de44
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00473c80
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004738d0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0046de52
jmp 0x46de96
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46e910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b14
call fcn.00473e00
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0x4e3f08
lea ecx, [ebp - 0x1914]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00473c05
add esp, 0xc
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x808]
push eax
push 0x80000006
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ea61
mov dword [ebp - 0x80c], 0x1000
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x180c]
push edx
push 0
push 0
push 0x4e3f28
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x46ea57
lea ecx, [ebp - 0x180c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00474490
add esp, 8
mov dword [ebp - 0x1810], 4
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x1814]
push ecx
push 0
push 0
push 0x4e3f34
lea ecx, [ebp - 0x1a14]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x46ea57
cmp dword [ebp + 0xc], 0
je 0x46ea2c
cmp dword [ebp - 0x1814], 0
je 0x46ea2c
mov eax, dword [ebp - 0x1814]
push eax
push 0x4e3f40
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00473c05
add esp, 0xc
jmp 0x46ea50
push 0x4e3f44
lea ecx, [ebp - 0x1b14]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00474490
add esp, 8
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46f120
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15ec
call fcn.00473e00
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0x4e4080
lea ecx, [ebp - 0x15ec]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
push 0x80000006
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
je 0x46f16f
xor eax, eax
jmp 0x46f248
mov dword [ebp - 0xc], 0
mov ecx, 1
test ecx, ecx
je 0x46f23b
mov dword [ebp - 0x14ec], 0xff
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x14ec]
push edx
lea eax, [ebp - 0x14e8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
je 0x46f1ba
jmp 0x46f23b
lea eax, [ebp - 0x13e8]
push eax
lea ecx, [ebp - 0x14e8]
push ecx
call fcn.0046eb50
test eax, eax
je 0x46f22d
movsx edx, byte [ebp - 0x1268]
push edx
call fcn.00475677
add esp, 4
mov esi, eax
movsx eax, byte [ebp + 8]
push eax
call fcn.00475677
add esp, 4
cmp esi, eax
jne 0x46f22d
cmp dword [ebp + 0xc], 0
je 0x46f20d
lea ecx, [ebp - 0x14e8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00474490
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x46f224
mov edi, dword [ebp + 0x10]
lea esi, [ebp - 0x13e8]
mov ecx, 0x4f5
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 1
jmp 0x46f23b
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x46f176
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46f740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov byte [ebp - 0xc], 0
push 8
push 0
lea eax, [ebp - 8]
push eax
call fcn.00473c80
add esp, 0xc
mov dword [ebp - 8], 8
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 8
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x41018
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x46f79a
mov cl, byte [ebp - 4]
mov byte [ebp - 0x18], cl
jmp 0x46f7a1
xor eax, eax
jmp 0x46f9d3
movsx edx, byte [ebp - 0x18]
push edx
push 0x4e41e4
lea ecx, [ebp - 0x624]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00473c05
add esp, 0xc
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x218]
push edx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46f9cb
mov dword [ebp - 0x41c], 0x200
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
push 0x4e4210
lea ecx, [ebp - 0x724]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f9c1
lea eax, [ebp - 0x418]
push eax
push 0x4e421c
lea ecx, [ebp - 0x824]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00473c05
add esp, 0xc
mov dword [ebp - 0x420], 0
lea edx, [ebp - 0x420]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x218]
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46f9c1
mov dword [ebp - 0x41c], 0x100
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x4e4248
lea ecx, [ebp - 0x924]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x46f907
mov byte [ebp - 0xc], 1
lea ecx, [ebp - 0x218]
push ecx
call fcn.0046dad0
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x381
push edx
call fcn.00474490
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0046f250
push 1
mov edx, dword [ebp + 0xc]
add edx, 0x381
push edx
call fcn.0046db60
test eax, eax
jne 0x46f9b4
mov eax, dword [ebp + 0xc]
add eax, 0x481
push eax
lea ecx, [ebp - 0x524]
push ecx
call fcn.00474490
add esp, 8
push 0x2e
lea edx, [ebp - 0x524]
push edx
call fcn.00474610
add esp, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x46f971
mov eax, dword [ebp - 0x424]
mov byte [eax], 0
push 0x4e4258
lea ecx, [ebp - 0x524]
push ecx
call fcn.004744a0
add esp, 8
push 1
lea edx, [ebp - 0x524]
push edx
call fcn.0046db60
test eax, eax
je 0x46f9b4
lea eax, [ebp - 0x524]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x381
push ecx
call fcn.00474490
add esp, 8
mov byte [ebp - 0xc], 1
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov esp, ebp
pop ebp
ret 8
Function at 0x46f9e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x914]
call fcn.0046fb50
push 0x13d5
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00473c80
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
cmp dword [ebp + 0xc], 0
je 0x46faa1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046f740
test eax, eax
je 0x46fa9f
push 0x4e4260
lea ecx, [ebp - 0xa14]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.004744a0
add esp, 8
mov edx, dword [ebp + 0x10]
add edx, 0x381
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004744a0
add esp, 8
mov ecx, dword [ebp + 0x10]
add ecx, 0x7d5
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0046deb0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x914]
call fcn.00470260
mov dword [ebp - 4], eax
jmp 0x46fb1b
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov dl, byte [ebp + 8]
push edx
call fcn.0046f120
test eax, eax
je 0x46fb1b
push 0x4e4270
lea ecx, [ebp - 0xb14]
call fcn.0046e850
mov ecx, eax
call fcn.0046e900
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004744a0
add esp, 8
mov ecx, dword [ebp + 0x10]
add ecx, 0x381
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.004744a0
add esp, 8
mov eax, dword [ebp + 0x10]
add eax, 0x7d5
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.0046deb0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x914]
call fcn.00470260
mov dword [ebp - 4], eax
lea eax, [ebp - 0x904]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00474490
add esp, 8
mov edx, dword [ebp - 4]
mov dword [ebp - 0xb18], edx
lea ecx, [ebp - 0x914]
call fcn.00470750
mov eax, dword [ebp - 0xb18]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x473230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4f9de0], eax
push 0x40
mov eax, dword [0x4f9de0]
push eax
push 0x4f9da0
call fcn.004738d0
add esp, 0xc
mov ecx, dword [0x4f9ddc]
mov dword [0x4f9de8], ecx
mov dword [0x4f9df8], 1
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [0x4f9de8]
push eax
mov ecx, dword [0x4f9de0]
push ecx
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47329b
xor eax, eax
jmp 0x4732a0
call fcn.00472f10
mov esp, ebp
pop ebp
ret
Function at 0x473540
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x473574
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 8]
jae 0x4735e7
cmp dword [ebp + 0x10], 0
je 0x4735b1
cmp dword [ebp - 0x14], 1
jbe 0x4735b1
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx - 2]
cmp eax, 0xff
jne 0x4735b1
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx - 1]
cmp edx, 0x15
jne 0x4735b1
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0
ja 0x4735dc
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
xor edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, dword [edx*4 + 0x4e9614]
mov dword [ebp - 0xc], eax
jmp 0x4735e5
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
jmp 0x47356b
mov ecx, dword [ebp - 0xc]
xor ecx, 0xffffffff
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47a79f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ec148
cmp edx, dword [eax]
je 0x47a7c1
add eax, 8
inc ecx
cmp eax, 0x4ec1d8
jl 0x47a7b2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ec148]
jne 0x47a8ef
mov eax, dword [0x4f9e70]
cmp eax, 1
je 0x47a8c9
test eax, eax
jne 0x47a7f2
cmp dword [0x4e9a74], 1
je 0x47a8c9
cmp edx, 0xfc
je 0x47a8ef
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47a829
lea eax, [ebp - 0x1a4]
push 0x4ecf38
push eax
call fcn.00474490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00474580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x47a86c
lea eax, [ebp - 0x1a4]
push eax
call fcn.00474580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ecf34
push edi
call fcn.00474ca0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4ecf18
push eax
call fcn.00474490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004744a0
lea eax, [ebp - 0xa0]
push 0x4ecf14
push eax
call fcn.004744a0
push dword [esi + 0x4ec14c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004744a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4eceec
push eax
call fcn.0047c33a
add esp, 0x2c
pop edi
jmp 0x47a8ef
lea eax, [ebp + 8]
lea esi, [esi + 0x4ec14c]
push 0
push eax
push dword [esi]
call fcn.00474580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4def82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 8
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
not esi
mov edx, 0xff
jb 0x4df05c
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [ecx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, edx
mov esi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
xor esi, edi
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
mov edi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc ecx
mov bl, byte [ecx]
xor ebx, edi
and ebx, edx
mov esi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
mov edi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc ecx
mov bl, byte [ecx]
xor ebx, edi
and ebx, edx
mov esi, dword [ebx*4 + 0x68cd1eb8]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
mov edi, dword [ebx*4 + 0x68cd1eb8]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, edi
and ebx, edx
mov esi, dword [ebx*4 + 0x68cd1eb8]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
mov edi, dword [ebx*4 + 0x68cd1eb8]
shr esi, 8
xor esi, edi
inc ecx
dec eax
jne 0x4defa5
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x4df07c
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, edx
mov eax, dword [eax*4 + 0x68cd1eb8]
shr esi, 8
xor esi, eax
inc ecx
dec dword [ebp + 0x10]
jne 0x4df062
mov eax, esi
not eax
pop esi
pop ebp
ret 0xc

Function at 0x4df085
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x58]
add dword [esi + 0x5c], ecx
test ecx, ecx
not eax
jbe 0x4df0c9
push ebx
push edi
mov edi, dword [esp + 0x14]
mov edx, ecx
mov ecx, dword [esp + 0x18]
mov bl, byte [ecx]
mov byte [edi], bl
xor ebx, ebx
mov bl, byte [ecx]
inc edi
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x68cd1eb8]
shr eax, 8
xor eax, ebx
inc ecx
dec edx
jne 0x4df0a6
pop edi
pop ebx
not eax
mov dword [esi + 0x58], eax
pop esi
ret 0x10
Function at 0x7a2370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x7a238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x7cb074
push ecx
mov edi, eax
call fcn.007b6198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7a23cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.007b602e
push esi
call fcn.007b5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x7a5850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x7a58ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x7d0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7a58ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.007b61e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x7a58ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x7d0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7a592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.007b7082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x7a5957
mov word [eax], si
add eax, 2
push eax
call fcn.007b7030
add esp, 4
jmp 0x7a5959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x7a58ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7a58b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x7a5ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x7a6080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7a60c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7cb458
push ecx
call fcn.007b61e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007b61e1
add esp, 0x10
jmp 0x7a60d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.007b620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.007b5dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.007a6050
mov eax, dword [0x7d0728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x7a613b
push esi
call fcn.007a5fb0
add esp, 4
mov dword [0x7d0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x7a614c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.007a5ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x7a9440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7a94b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x7a948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7a9471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7a947e
add edx, ecx
cmp ebx, edx
jb 0x7a948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7a9467
xor ecx, ecx
jmp 0x7a94a2
test eax, eax
jne 0x7a9492
xor ecx, ecx
jmp 0x7a94a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.007a93c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7a98f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x7a9921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x7a9946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x7a996e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x7a9993
push ecx
push esi
call fcn.007a94c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret