joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3007a2ed
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.3007e61e
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
pop ecx
pop ecx
push 0x10
call esi
test ah, ah
jns 0x3007a31f
push 4
pop edi
push 0x11
call esi
test ah, ah
jns 0x3007a32a
or edi, 8
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call fcn.3007a0c8
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x3007aa22
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x3009683c], bl
jne 0x3007ab28
push esi
push edi
push 4
push 0x2a
push ebx
push dword [0x30096f84]
push ebx
push ebx
push 0x30076857
push 0xa
call fcn.3000c058
mov esi, dword [sym.imp.USER32.dll_VkKeyScanA]
add esp, 0x20
push 0x3a
call esi
mov edx, dword [0x30096e7c]
movsx eax, ax
mov ecx, eax
mov edi, 0xff
and ecx, edi
push eax
mov dword [edx + 0xce], ecx
call fcn.30006b00
pop ecx
mov ecx, dword [0x30096e7c]
push 0x3b
mov dword [ecx + 0xd2], eax
call esi
mov edx, dword [0x30096e7c]
movsx eax, ax
mov ecx, eax
and ecx, edi
push eax
mov dword [edx + 0xd6], ecx
call fcn.30006b00
pop ecx
mov ecx, dword [0x30096e7c]
mov dword [ecx + 0xda], eax
cmp dword [0x30096e74], ebx
je 0x3007ab1f
call fcn.30056999
cmp eax, ebx
mov dword [0x30096840], eax
je 0x3007ab1f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x300028b0
push eax
call esi
push 0x3000289c
push dword [0x30096840]
mov dword [0x30096844], eax
call esi
push 0x30002888
push dword [0x30096840]
mov dword [0x30096848], eax
call esi
push 0x3000286c
push dword [0x30096840]
mov dword [0x3009684c], eax
call esi
push 0x30002854
push dword [0x30096840]
mov dword [0x30096850], eax
call esi
mov dword [0x30096854], eax
pop edi
mov byte [0x3009683c], 1
pop esi
pop ebx
ret

Function at 0x3007c1cd
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov cl, 0x55
jle 0x3007c1ef
push esi
mov esi, dword [esp + 0xc]
mov dl, byte [esi]
xor dl, cl
inc esi
mov byte [eax], dl
inc eax
dec edi
mov cl, dl
jne 0x3007c1e1
pop esi
mov byte [eax], 0
pop edi
ret
Function at 0x300843e7
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x30095244]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.300843e7
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x30095244]
jne 0x300842d2
ret
Function at 0x30084469
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x300028f8
call fcn.30084728
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x300844a9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x300844a9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x300844c1
cmp eax, 0x20b
je 0x300844ae
mov dword [ebp - 0x1c], ebx
jmp 0x300844d5
cmp dword [ecx + 0x84], 0xe
jbe 0x300844a9
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x300844cf
cmp dword [ecx + 0x74], 0xe
jbe 0x300844a9
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x30096ff0], 0xffffffff
or dword [0x30096ff4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300968b0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x300968ac]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x30096fec], eax
call fcn.300846a0
call fcn.3002e37b
cmp dword [0x30095248], ebx
jne 0x30084535
push fcn.30064891
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.30084798
push 0x300900d0
push 0x300900cc
call sub.MSVCRT.dll__initterm
push 0x300846e4
call fcn.3008468e
mov eax, dword [0x300968a8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x300968a4]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x30084589
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x300900c8
push 0x300900c0
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30084607
cmp al, bl
je 0x300845b3
cmp dword [ebp - 0x20], ebx
jne 0x30084607
mov al, byte [esi]
cmp al, bl
je 0x300845c3
cmp al, 0x20
ja 0x300845c3
inc esi
mov dword [ebp - 0x24], esi
jmp 0x300845b3
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x300845df
movzx eax, word [ebp - 0x54]
jmp 0x300845e2
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.3000916c
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x300845ff
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x3008465c
cmp al, 0x22
jne 0x30084616
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x30084629
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x300845a1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30084763
ret
Function at 0x300849fd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x30097010], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x30084a41
call ebx
test eax, eax
jns 0x30084a37
push 0x30002a78
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30002a6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x30097014], eax
mov dword [0x30097010], 1
mov eax, dword [0x30097014]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x30084a5d
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x30084a8d
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x30084a83
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x30084a77
push dword [eax + 8]
call dword [eax]
jmp 0x30084a7d
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x30084a8c
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x30084b04
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3f4]
sub esp, 0x474
mov eax, dword [0x30095244]
push esi
mov dword [ebp + 0x3f0], eax
push 0x105
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x30084b3d
xor eax, eax
jmp 0x30084c3e
add eax, eax
lea ecx, [ebp + eax + 0x194]
cmp word [ecx], 0x5c
je 0x30084b59
mov word [ecx], 0x5c
mov word [ebp + eax + 0x196], si
push ebx
push edi
mov edi, 0x30002b60
push 0x106
lea edx, [ebp + 0x194]
mov ecx, edi
call fcn.30084ada
push 8
push esi
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x30084b99
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x30084c29
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30002b4c
push ebx
call edi
push 0x30002b2c
push ebx
mov dword [ebp - 0x80], eax
call edi
cmp eax, esi
mov dword [ebp - 0x7c], eax
je 0x30084c29
cmp dword [ebp + 0x3fc], esi
mov ebx, 0x30002b18
mov edi, 0x30002ac8
je 0x30084c0d
cmp dword [ebp - 0x80], esi
je 0x30084c29
lea eax, [ebp + 0x3a0]
push eax
push dword [ebp + 0x3fc]
call dword [ebp - 0x80]
cmp eax, esi
jne 0x30084c06
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
lea eax, [ebp + 0x3a0]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x78], 0x104
call dword [ebp - 0x7c]
cmp eax, esi
je 0x30084c2d
cmp eax, 0x642
je 0x30084c2d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x78], 0x104
call dword [ebp - 0x7c]
test eax, eax
je 0x30084c2d
xor eax, eax
jmp 0x30084c3c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x300968b8], eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x3f0]
pop esi
call fcn.300843e7
add ebp, 0x3f4
leave
ret 4
Function at 0x30084cd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x30095244]
push ebx
push esi
mov dword [ebp + 0x194], eax
lea eax, [ebp - 0x80]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x30002a08
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [ebp - 0x7c], 0x208
mov word [ebp - 0x78], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x30002be4
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x30084d59
cmp eax, 0x208
ja 0x30084d59
shr eax, 1
mov esi, eax
je 0x30084d59
lea eax, [ebp + esi*2 - 0x7a]
cmp word [eax], 0x5c
je 0x30084d59
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x30084d4c
mov edx, dword [ebp + 0x1a0]
lea ecx, [ebp - 0x78]
mov word [ebp + esi*2 - 0x78], bx
call fcn.30084c54
mov ecx, dword [ebp + 0x194]
pop esi
pop ebx
call fcn.300843e7
add ebp, 0x198
leave
ret 4

Function at 0x300850f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x30095244]
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push 0x30002b90
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x30002b70
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x104
lea edx, [ebp - 0x78]
mov ecx, 0x30002ce8
call fcn.30084ada
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x30085178
push 0x30002cdc
call fcn.30084cd8
mov ecx, dword [ebp + 0x190]
call fcn.300843e7
add ebp, 0x194
leave
ret
Function at 0x4091d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
or ebp, 0xffffffff
jmp 0x4091f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4091f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4091e8
mov eax, 1
add ebx, ebx
jne 0x40920b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409200
jne 0x40921c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409200
xor ecx, ecx
sub eax, 3
jb 0x409230
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4092a2
mov ebp, eax
add ebx, ebx
jne 0x40923b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40926c
inc ecx
add ebx, ebx
jne 0x409258
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40924d
jne 0x409269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40924d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40928c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40927d
jmp 0x4091ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40928c
add edi, ecx
jmp 0x4091ee
pop esi
mov edi, esi
mov ecx, 0xa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4092aa
cmp byte [edi], 0
jne 0x4092aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4092af
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40931e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa144]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa1cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4092dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa1d4]
or eax, eax
je 0x409318
mov dword [ebx], eax
add ebx, 4
jmp 0x4092f9
call dword [esi + 0xa1d0]
mov ebp, dword [esi + 0xa1d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x409352
sub esp, 0xffffff80
jmp 0x4018d4
Function at 0xf4bbe8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf4bbf2
pushal
call 0xf4bbf8
pop ebp
sub ebp, 0x10
sub ebp, 0xb4bbe8
jmp 0xf4bc0e
mov eax, 0xb4bbe8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a5
mov edx, 0x81fb423b
xor byte [eax], dl
inc eax
dec ecx
jne 0xf4bc25
jmp 0xf4bc38
mov al, 0xf6
mov al, 0xb2
pop es
cmp edi, dword [ebx]
cmp edi, dword [edx + 0x3b3bc3fa]
cmp edi, dword [eax]
test byte [ebx + 0x3b3b3b3d], 0x81
adc edi, dword [ebx]
cmp edi, dword [ebx]
int3
Function at 0x1005a265
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1005a274
pop dword [ebp - 0x2c]
mov eax, 0xc1e6ec95
add eax, 0x4e1eb5df
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x1950b4fa
add dword [ebp - 0x3c], 0x35019051
mov dword [ebp - 0x38], 0x7d21015d
sub dword [ebp - 0x38], 0x4aedb518
mov dword [ebp - 0x34], 0x5bc8fb20
sub dword [ebp - 0x34], 0xf7cb6f2
mov dword [ebp - 0x30], 0xdd2c5fe2
sub dword [ebp - 0x30], 0xdd2c5fe2
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb8997529
sub dword [ebp - 0x3c], 0x44270bd3
mov dword [ebp - 0x38], 0xaaa7eeee
add dword [ebp - 0x38], 0x96c47287
mov dword [ebp - 0x34], 0xf5b759d
sub dword [ebp - 0x34], 0xabec0931
mov dword [ebp - 0x30], 0x55cd4699
sub dword [ebp - 0x30], 0x55cd4699
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x314c5dc8
add eax, 0xdeb3b484
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x4a3cd
push 0
call eax
mov ecx, 0x2469f6fb
sub ecx, 0x2469ad6a
mov edi, eax
mov esi, 0x6e029ce3
sub esi, 0x5df578e3
add esi, dword [ebp - 0x2c]
mov ebx, 0x76c6d3d4
sub ebx, 0x96974fea
sub dword [ebp - 0x1c], ebx
mov edx, dword [esi]
add dword [ebp - 0x18], ebx
sub edx, ebx
xor dword [ebp - 8], eax
mov dword [edi], edx
xor dword [ebp - 4], eax
add edi, 0x1d43cb06
sub edi, 0x1d43cb02
add esi, 0xaa8c4376
sub esi, 0xaa8c4372
loop 0x1005a391
add eax, 0xbd067cb6
sub eax, 0xbd05639f
xor ebx, ebx
add ebx, eax
add eax, 0xb2c88276
add eax, 0x4d377d8f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x543370
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 0x54338e
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 0x56c074
push ecx
mov edi, eax
call fcn.00557198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5433cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0055702e
push esi
call fcn.00556fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x546850
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 0x5468ae
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 0x571720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5468ba
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.005571e1
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 0x5468ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x571720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x54692a
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.00558082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x546957
mov word [eax], si
add eax, 2
push eax
call fcn.00558030
add esp, 4
jmp 0x546959
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 0x5468ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5468b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x546ff0
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 0x547080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5470c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x56c458
push ecx
call fcn.005571e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005571e1
add esp, 0x10
jmp 0x5470d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0055720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00556dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00547050
mov eax, dword [0x571728]
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 0x54713b
push esi
call fcn.00546fb0
add esp, 4
mov dword [0x571728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x54714c
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.00546ff0
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 0x54a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x54a4b7
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 0x54a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x54a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x54a47e
add edx, ecx
cmp ebx, edx
jb 0x54a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x54a467
xor ecx, ecx
jmp 0x54a4a2
test eax, eax
jne 0x54a492
xor ecx, ecx
jmp 0x54a4a2
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.0054a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x54a8f0
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 0x54a921
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 0x54a946
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 0x54a96e
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 0x54a993
push ecx
push esi
call fcn.0054a4c0
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