joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404440
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x428d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push edi
push eax
lea ecx, [esp + 0x30]
call fcn.0041cbf6
mov ecx, dword [0x434540]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x2c]
xor edi, edi
mov byte [esp + 0x24], 1
cmp dword [eax - 8], esi
jle 0x4044f7
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jne 0x4044ee
lea edx, [esi + 1]
lea eax, [esp + 0x10]
push edx
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0041bce7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0041cfba
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0041ce81
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ecx
push edx
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0xc
call ebp
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x40448f
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.0041ce81
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041ce81
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x404530
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40454f
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404599
xor eax, eax
add esp, 0x14
ret
push 0x80020003
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x4045d0
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x404c20
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428e86
push eax
mov dword fs:[0], esp
sub esp, 0x10c
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x404c94
mov edi, 0x4340c8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SetupFile.bin
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0041ceef
xor ebx, ebx
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], ebx
call fcn.0041bd7d
cmp eax, ebx
jle 0x404d1a
push eax
lea ecx, [esp + 0x18]
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041bce7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call fcn.0041cfba
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], bl
call fcn.0041ce81
push str.ChinaVnet
lea ecx, [esp + 0x14]
call fcn.0041d1e9
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00403f90
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.0041ce81
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x404d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
lea eax, [esp + 0x10]
push edi
mov esi, ecx
push eax
call fcn.00404810
mov edi, dword [esp + 0x38]
push str.param.ini
lea ecx, [esp + 0x14]
push edi
push ecx
mov dword [esp + 0x3c], 0
call fcn.0041d116
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00421b33
push 0x4340c8
lea edx, [esp + 0x10]
push edi
push edx
mov byte [esp + 0x3c], 2
call fcn.0041d116
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov byte [esp + 0x34], 3
call fcn.00404440
mov ecx, dword [esp + 0x10]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x24]
call fcn.00421ce5
pop edi
pop esi
test eax, eax
jne 0x404e6f
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.0041ce81
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00421c28
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0041ce81
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041ce81
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edx, dword [0x434540]
mov dword [esp], edx
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push eax
push str._Env__r_nSourcePath_s_r_n
push ecx
mov byte [esp + 0x34], 4
call fcn.0041c0a7
mov eax, dword [esp + 0xc]
add esp, 0xc
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00421e3c
lea ecx, [esp + 0x10]
call fcn.00421f00
lea ecx, [esp]
mov byte [esp + 0x28], 3
call fcn.0041ce81
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.0041ce81
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00421c28
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0041ce81
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041ce81
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x404ff0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41435d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x435ef0
cmp edx, dword [eax]
je 0x41437f
add eax, 8
inc ecx
cmp eax, 0x435f80
jl 0x414370
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x435ef0]
jne 0x4144ad
mov eax, dword [0x438788]
cmp eax, 1
je 0x414487
test eax, eax
jne 0x4143b0
cmp dword [0x4354e4], 1
je 0x414487
cmp edx, 0xfc
je 0x4144ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4143e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413270
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41442a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413270
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d4e8
push edi
call fcn.004163b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412330
lea eax, [ebp - 0xa0]
push 0x42d4c8
push eax
call fcn.00412330
push dword [esi + 0x435ef4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00416d0e
add esp, 0x2c
pop edi
jmp 0x4144ad
lea eax, [ebp + 8]
lea esi, [esi + 0x435ef4]
push 0
push eax
push dword [esi]
call fcn.00413270
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 0x41b4b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f4a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41b57b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41b57b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41b52e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41b539
or bh, 8
and edi, 0x8000000
je 0x41b554
mov eax, dword [0x439edc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41b57b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41b97b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41b99f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41b9ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41f6ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41f731
call fcn.0042563b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f731
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f728
xor eax, eax
jmp 0x41f739
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f73f
pop edi
pop esi
pop ebx
ret 4

Function at 0x42130f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x421331
cmp dword [edi + 0x3c], 0
jne 0x421331
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042563b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042135e
pop edi
pop esi
pop ebx
ret 8
Function at 0xc53290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7f5000]
push edi
jmp 0xc532aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc532b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc532a0
mov eax, 1
add ebx, ebx
jne 0xc532c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc532d4
jne 0xc532f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc532f3
dec eax
add ebx, ebx
jne 0xc532e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xc532b8
add ebx, ebx
jne 0xc532ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xc53345
xor ecx, ecx
sub eax, 3
jb 0xc5330b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc5337a
sar eax, 1
mov ebp, eax
jmp 0xc53316
add ebx, ebx
jne 0xc53316
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc532e4
inc ecx
add ebx, ebx
jne 0xc53324
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc532e4
add ebx, ebx
jne 0xc53331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc53326
jne 0xc53342
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc53326
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc53364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc53356
jmp 0xc532a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc53364
add edi, ecx
jmp 0xc532a6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xc53382
cmp byte [edi], 0x11
jne 0xc53382
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 0xc53387
lea edi, [esi + 0x84c000]
mov eax, dword [edi]
or eax, eax
je 0xc533ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfc124c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfc13c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc533b4
mov ecx, edi
jns 0xc533e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfc13cc]
or eax, eax
je 0xc533f9
mov dword [ebx], eax
add ebx, 4
jmp 0xc533d1
call dword [esi + 0xfc13dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xc53430
cmp al, 0xef
ja 0xc53423
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xc53405
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xc53412
mov ebp, dword [esi + 0xfc13d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0xc53464
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x4010cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x401102
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010fe
jmp 0x4010f0
cmp esi, eax
jae 0x401102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x401109
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402f30
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x58aae0]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 0xa1
jne 0x403018
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4030e7
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x20]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0xc4]
sub ecx, 0xa
cmp ecx, dword [esp + 8]
jle 0x403000
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00419fb6
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
sub ecx, 0x14
add eax, 0x14
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
sub edx, 0x14
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edx
call fcn.00419fd2
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051209f
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0xa3
jne 0x40305c
xor eax, eax
mov byte [esi + 0x1dd], al
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0xc4]
cmp eax, dword [esp + 8]
jge 0x4030e7
jmp 0x403000
cmp edi, 0x84
jne 0x4030a7
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push edi
call fcn.0041a035
cmp eax, 9
je 0x40308f
cmp eax, 8
je 0x40308f
cmp eax, 0x14
je 0x40308f
cmp eax, 3
je 0x40308f
cmp eax, 0xc
jne 0x403005
mov eax, 2
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051209f
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0x18
jne 0x4030cf
mov edx, dword [esi + 0x20]
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4030e7
cmp edi, 0xae
je 0x403000
cmp edi, 0xaf
je 0x403000
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
mov ecx, esi
call fcn.0041a035
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0051209f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 8
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 8]
call fcn.00417b0a
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x404e5a
push 0x74
call ebx
test ax, ax
jns 0x404e5a
lea ecx, [ebp - 8]
call fcn.00417219
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x404e96
cmp dword [esi + 4], edi
jne 0x404e96
push 0x4f
call ebx
test ax, ax
js 0x404e47
cmp dword [esi + 4], edi
jne 0x404e96
push 0x50
call ebx
test ax, ax
js 0x404e47
cmp dword [esi + 4], edi
jne 0x404e96
push 0x4e
call ebx
test ax, ax
js 0x404e47
lea ecx, [ebp - 8]
call fcn.00417219
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4054f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405562
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x405531
cmp eax, 2
jne 0x40554c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40555c
test eax, eax
je 0x405557
test al, 1
jne 0x40554c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40555c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc