joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ca800
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
lea edx, [ecx + eax]
cmp ecx, edx
jae 0x4ca834
mov eax, dword [esp + 4]
push esi
push edi
movzx edi, byte [ecx]
movzx esi, al
shr ax, 8
xor esi, edi
xor ax, word [esi*2 + 0x5edcb0]
inc ecx
movzx eax, ax
cmp ecx, edx
jb 0x4ca815
pop edi
pop esi
ret
mov ax, word [esp + 4]
ret

Function at 0x4caa60
Capabilities:
Get disk information

Disassembly:
sub esp, 0x30
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
mov ecx, 0x3a
cmp cx, word [eax + 2]
jne 0x4cab5b
mov edx, 0x5c
cmp dx, word [eax + 4]
jne 0x4cab5b
mov ax, word [eax]
mov word [esp + 0x12], cx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov word [esp + 0x24], dx
lea edx, [esp + 0x10]
push edx
mov word [esp + 0x24], ax
xor eax, eax
push ecx
mov word [esp + 0x2e], ax
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x2c]
push eax
mov word [esp + 0x38], cx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4cab5b
mov ecx, dword [esp]
push ecx
lea edx, [esp + 0x1c]
push 0x5848cc
push edx
call fcn.00409bf0
movzx eax, byte [esp + 0x24]
movzx ecx, byte [esp + 0x26]
movzx edx, byte [esp + 0x28]
mov byte [esp + 0x10], al
movzx eax, byte [esp + 0x2a]
mov byte [esp + 0x11], cl
movzx ecx, byte [esp + 0x2c]
mov byte [esp + 0x12], dl
movzx edx, byte [esp + 0x2e]
mov byte [esp + 0x13], al
movzx eax, byte [esp + 0x30]
mov byte [esp + 0x14], cl
movzx ecx, byte [esp + 0x32]
mov byte [esp + 0x15], dl
movzx edx, byte [esp + 0x34]
mov byte [esp + 0x16], al
mov byte [esp + 0x17], cl
mov byte [esp + 0x18], dl
call fcn.004ca7a0
push 8
lea eax, [esp + 0x14]
push eax
push 0
call fcn.004ca800
add esp, 0x18
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0053f73f
add esp, 0x30
ret
mov ecx, dword [esp + 0x2c]
xor ecx, esp
xor eax, eax
call fcn.0053f73f
add esp, 0x30
ret
Function at 0x4d2730
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x565d18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d276f
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d27a1
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 1
cmp eax, 1
ja 0x4d27df
mov ecx, dword [eax*4 + 0x5b4dec]
push ecx
lea ecx, [esp + 0x10]
call fcn.00402230
push 0x20
lea ecx, [esp + 0x10]
call fcn.00405c40
mov esi, dword [esp + 0xc]
push esi
lea edx, [esp + 0x14]
push 0x542c
push edx
call fcn.00402140
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x24
push edi
call fcn.0050c485
cmp eax, 6
jne 0x4d2892
mov ecx, dword [0x5ba378]
xor eax, eax
cmp dword [ecx + 0xc4], 0x3b5
sete al
test eax, eax
mov eax, str.http:__www.editplus.com_kr_download.html
jne 0x4d282c
mov eax, str.http:__www.editplus.com_download.html
push eax
lea ecx, [esp + 0x18]
call fcn.004022b0
mov edx, dword [esp + 0x14]
mov eax, dword [0x5ed0c0]
mov ecx, dword [eax + 0x20]
push 5
push 0
push 0
push edx
push str.open
push ecx
mov byte [esp + 0x38], 2
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4d286d
push 0xffffffffffffffff
push 0
push 0x4e83
call fcn.0050c4d3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2892
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d28b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d28d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x4d56b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x562678
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.0044e500
mov eax, dword [esp + 0x28]
push 1
push 1
push bind
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.0044f040
test eax, eax
jne 0x4d5724
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0044e540
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0xc]
lea esi, [esp + 0x10]
call fcn.004d54b0
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.0044e540
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x4d57d0
Capabilities:
Write clipboard data

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jle 0x4d5830
mov eax, dword [esp + 0x10]
push eax
call fcn.0044f460
add esp, 4
test eax, eax
je 0x4d5830
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [edi + edi + 2]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0xc]
push edi
push edx
inc edi
push edi
push eax
call fcn.0044c530
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop esi
pop edi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
ret
Function at 0x4dc470
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push 0x4000
mov ebp, ecx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0x4000
call fcn.004ff95f
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push 0
push esi
mov dword [esp + 0x24], esi
call fcn.0053ff80
mov eax, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x4dc570
xor ebx, ebx
cmp dword [esp + 0xc], ebx
jle 0x4dc586
push edi
mov edi, dword [esp + 0x28]
add esi, 0x14
lea esp, [esp]
cmp dword [esp + 0x2c], 0
je 0x4dc538
cmp dword [esi - 0xc], 2
je 0x4dc538
test byte [esi - 8], 2
je 0x4dc55b
lea ecx, [esp + 0x28]
push ecx
lea edx, [esi - 0x14]
push edx
push 2
push 1
push 2
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x4dc522
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
mov edx, dword [esp + 0x28]
push eax
push edi
push ecx
push edx
mov ecx, ebp
call fcn.004dc470
jmp 0x4dc55b
mov eax, dword [esi]
push 0
push eax
push 0
push 0x5477
call fcn.0044ef40
add esp, 0x10
jmp 0x4dc55b
mov eax, dword [esi]
push 0x5c
push eax
call fcn.00540922
add esp, 8
test eax, eax
je 0x4dc54e
add eax, 2
jmp 0x4dc550
mov eax, dword [esi]
push 1
push edi
push eax
mov ecx, ebp
call fcn.004db050
inc ebx
add esi, 0x20
cmp ebx, dword [esp + 0x10]
jl 0x4dc4e0
mov esi, dword [esp + 0x18]
pop edi
jmp 0x4dc586
mov ecx, dword [esp + 0x20]
push 0
push ecx
push 0
push 0x5477
call fcn.0044ef40
add esp, 0x10
push esi
call fcn.004ff96a
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call sub.MPR.dll_WNetCloseEnum
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4de900
Capabilities:
Get common file path

Disassembly:
sub esp, 0x848
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x844], eax
push ebp
mov ebp, dword [esp + 0x854]
push esi
mov esi, dword [esp + 0x854]
lea eax, [esp + 8]
push eax
push 0x12
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4de94f
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.0053f73f
add esp, 0x848
ret
mov edx, dword [esp + 8]
push ebx
xor ecx, ecx
lea eax, [esp + 0x30]
push edi
mov dword [esp + 0x18], edx
mov word [esp + 0x34], cx
lea edx, [esp + 0x14]
xor edi, edi
mov ecx, eax
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call ebx
cmp esi, edi
je 0x4de9f2
lea ecx, [esp + 0x444]
push ecx
push esi
mov edi, 1
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, ebp
test eax, eax
je 0x4de9d5
lea edx, [esp + 0x444]
push edx
call fcn.00402230
push esi
mov edi, 2
call ebx
mov eax, edi
jmp 0x4de9f4
push 0x586d48
call fcn.00402230
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.00402270
push esi
call ebx
mov eax, edi
jmp 0x4de9f4
xor eax, eax
mov ecx, dword [esp + 0x854]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.0053f73f
add esp, 0x848
ret
Function at 0x4dff50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x566736
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x688]
mov dword fs:[0], eax
mov eax, dword [0x5ba380]
add eax, 0xfffffff0
push eax
mov ebp, ecx
call fcn.004045b0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x698], 0
call fcn.00414280
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x280]
push 0x208
push edx
call fcn.0053fe1c
push 0x586d50
lea eax, [esp + 0x28c]
push 0x208
push eax
call fcn.0053fd9f
mov ecx, dword [ebp + 0x148]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x20
push 0
push 0
push 0x14b
push ecx
call ebx
mov ecx, 0x5b4fe4
call fcn.004341e0
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4e0024
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x278]
push edx
mov byte [esp + 0x698], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x4e0130
mov edi, edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.004060b0
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e0075
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401fb0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004d56b0
add esp, 8
test eax, eax
je 0x4e0115
mov esi, dword [0x5b4fec]
test esi, esi
jl 0x4e01ab
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, 0x5b4fe4
call fcn.00433f60
mov edx, dword [0x5b4fe8]
lea eax, [esp + 0x14]
lea ecx, [edx + esi*4]
push eax
call fcn.004060b0
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x148]
push esi
push 0
push 0x143
push ecx
call ebx
push esi
mov edi, eax
call fcn.004ff96a
mov edx, dword [0x5b4fec]
mov eax, dword [ebp + 0x148]
add esp, 4
dec edx
push edx
push edi
push 0x151
push eax
call ebx
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e0060
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x690], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e0158
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x690], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x688]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.0053f73f
add esp, 0x680
ret
call fcn.00507f95
int3
Function at 0x4e4c40
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x566c38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x84]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test al, 1
jne 0x4e4cf5
cmp dword [edi + 0x88], 0
je 0x4e4cf5
test eax, 0x2000
je 0x4e4ca9
mov eax, 0xe81b
jmp 0x4e4cc4
test eax, 0x8000
je 0x4e4cb7
mov eax, 0xe81e
jmp 0x4e4cc4
shr eax, 0xc
not eax
and eax, 1
or eax, 0xe81c
mov ecx, dword [0x5ed0c0]
push eax
call fcn.0050eee8
mov ebx, eax
test ebx, ebx
je 0x4e4cf5
push esi
mov ecx, edi
call fcn.00509e34
push esi
mov ecx, ebx
call fcn.00509df3
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [edi + 0x144]
call fcn.0050a11f
lea ecx, [edi + 0x15c]
call fcn.0050a3e0
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
sub ebx, dword [esi]
sub ebp, dword [esi + 4]
lea ecx, [esp + 0x24]
call fcn.00509a78
push 0
push 0
push 0
push 0x5703fc
mov dword [esp + 0x4c], 0
call dword [sym.imp.GDI32.dll_CreateDCW]
push eax
lea ecx, [esp + 0x28]
call fcn.0050a0b6
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [edi + 0x144]
call fcn.0050a0b6
mov ecx, dword [esp + 0x28]
push ebp
push ebx
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [edi + 0x15c]
call fcn.0050a388
lea eax, [edi + 0x15c]
test eax, eax
je 0x4e4d7f
mov eax, dword [eax + 4]
mov edx, dword [edi + 0x148]
push eax
push edx
call fcn.0050a441
mov eax, dword [esi]
mov ecx, dword [esi + 4]
neg eax
mov dword [esi], eax
sub eax, dword [esp + 0x14]
neg ecx
add eax, dword [esp + 0x1c]
mov dword [esi + 4], ecx
sub ecx, dword [esp + 0x18]
mov dword [esi + 8], eax
add ecx, dword [esp + 0x20]
push 0
mov dword [esi + 0xc], ecx
mov eax, dword [0x5ecf4c]
mov ecx, dword [edi + 0x148]
push esi
neg eax
push 0
sbb eax, eax
push 6
and eax, 4
mov edx, dword [edi + eax*4 + 0x168]
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
mov eax, dword [edi + 0x148]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push eax
push ebp
push ebx
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0050a135
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x4e70e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.0050b420
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 8]
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4e7101
pop esi
ret
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e7124
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4e7129
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor eax, eax
pop esi
ret
movzx eax, word [esi + 6]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
mov edx, dword [esp + 0x14]
mov dword [edx], eax
xor ecx, ecx
add esp, 4
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4e7177
push ebx
lea ecx, [esi + 8]
push ebp
jmp 0x4e7160
movzx ebx, word [ecx]
mov ebp, dword [edx]
mov dword [ebp + eax*4], ebx
movzx ebx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, ebx
jl 0x4e7160
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
movzx eax, word [esi + 6]
pop edi
pop esi
ret
Function at 0x4e9d00
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0xcc
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
mov ebx, dword [esp + 0xe0]
push ebp
mov ebp, dword [esp + 0xe0]
push esi
mov esi, dword [esp + 0xe0]
xor ecx, ecx
push edi
mov edi, dword [esp + 0xe0]
xor eax, eax
mov word [esi], cx
test byte [edi], 8
mov word [esp + 0x10], ax
je 0x4e9d5f
test ebx, ebx
je 0x4e9d50
push 0x587cac
jmp 0x4e9d55
push str.Ctrl
push ebp
push esi
call fcn.0053fd9f
add esp, 0xc
test byte [edi], 0x10
je 0x4e9d7e
test ebx, ebx
je 0x4e9d6f
push str.Alt_
jmp 0x4e9d74
push str.Alt
push ebp
push esi
call fcn.0053fd9f
add esp, 0xc
test byte [edi], 4
je 0x4e9d9d
test ebx, ebx
je 0x4e9d8e
push str.Shift_
jmp 0x4e9d93
push str.Shift
push ebp
push esi
call fcn.0053fd9f
add esp, 0xc
movzx eax, word [edi + 2]
cmp ax, 3
jne 0x4e9dc0
push str.Break
lea edx, [esp + 0x14]
push 0x64
push edx
call fcn.0053fe1c
add esp, 0xc
jmp 0x4e9e7d
cmp ax, 0x13
jne 0x4e9ddf
push str.Pause
lea eax, [esp + 0x14]
push 0x64
push eax
call fcn.0053fe1c
add esp, 0xc
jmp 0x4e9e7d
mov ecx, 0x90
cmp ax, cx
jne 0x4e9dff
push str.Num_Lock
lea edx, [esp + 0x14]
push 0x64
push edx
call fcn.0053fe1c
add esp, 0xc
jmp 0x4e9e7d
cmp ax, 0x6f
jne 0x4e9e1b
push str.Num__
lea eax, [esp + 0x14]
push 0x64
push eax
call fcn.0053fe1c
add esp, 0xc
jmp 0x4e9e7d
movzx ecx, ax
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ecx, word [edi + 2]
shl eax, 0x10
cmp cx, 0x2d
je 0x4e9e6a
cmp cx, 0x2e
je 0x4e9e6a
cmp cx, 0x24
je 0x4e9e6a
cmp cx, 0x23
je 0x4e9e6a
cmp cx, 0x21
je 0x4e9e6a
cmp cx, 0x22
je 0x4e9e6a
cmp cx, 0x25
je 0x4e9e6a
cmp cx, 0x27
je 0x4e9e6a
cmp cx, 0x26
je 0x4e9e6a
cmp cx, 0x28
jne 0x4e9e6f
or eax, 0x1000000
push 0x14
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [esp + 0x10]
push eax
push ebp
push esi
call fcn.0053fd9f
mov ecx, dword [esp + 0xe4]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f73f
add esp, 0xcc
ret
Function at 0x4f3530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xa74
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0xa70], eax
push ebx
mov ebx, dword [esp + 0xa7c]
push esi
mov esi, dword [esp + 0xa84]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f3576
pop esi
pop ebx
mov ecx, dword [esp + 0xa70]
xor ecx, esp
call fcn.0053f73f
add esp, 0xa74
ret
mov eax, dword [ebx + 0x20]
push esi
push 0
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4f36da
push edi
push esi
lea ecx, [esp + 0x670]
push 0x208
push ecx
call fcn.0053fe1c
push str..
lea edx, [esp + 0x67c]
push 0x208
push edx
call fcn.0053fd9f
add esp, 0x18
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x670]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f36d9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
mov ecx, 0x57713c
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f3626
test dx, dx
je 0x4f3622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f3626
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f3600
xor eax, eax
jmp 0x4f362b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4f36c1
mov ecx, 0x5780fc
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f3666
test dx, dx
je 0x4f3662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f3666
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f3640
xor eax, eax
jmp 0x4f366b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4f36c1
push esi
lea edx, [esp + 0x264]
push 0x208
push edx
call fcn.0053fe1c
push 0x57c2e0
lea eax, [esp + 0x270]
push 0x208
push eax
call fcn.0053fd9f
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x27c]
push 0x208
push edx
call fcn.0053fd9f
lea eax, [esp + 0x284]
push eax
push ebx
call fcn.004f3530
add esp, 0x2c
lea ecx, [esp + 0x10]
push ecx
push edi
call ebp
test eax, eax
jne 0x4f35f0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
mov ecx, dword [esp + 0xa78]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0053f73f
add esp, 0xa74
ret
Function at 0x4f6940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, dword [esp + 0x428]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
lea eax, [esp + 0x14]
push 0x208
push eax
call fcn.0053fe1c
push str.Shell_Folders
lea ecx, [esp + 0x20]
push 0x208
push ecx
call fcn.0053fd9f
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x2001f
push 0
lea eax, [esp + 0x1c]
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f69de
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0x589d6c
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x420]
pop esi
xor ecx, esp
call fcn.0053f73f
add esp, 0x420
ret
Function at 0x4ff6d7
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5b7b5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ff7ac
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ff79b
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x4ff785
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x4ff79b
push eax
push edi
push dword [ebp - 0x110]
call fcn.004ff674
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x4ff7ae
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053f73f
leave
ret 4

Function at 0x500331
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0050b420
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x50036a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004fff7d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x5003c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x5003ec
cmp dword [edi + 0x54], 0
jne 0x5003ec
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0050b420
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00500389
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8