joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42024c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x42028b
call fcn.0044b8ee
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42028b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x420293
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004d4b99
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x420c7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x420d08
cmp dword [esi + 0x20], 0
je 0x420d08
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420d08
cmp dword [ebp + 8], 0
je 0x420d08
xor edi, edi
mov ebx, edi
call fcn.0044b8ee
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x420cec
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x420d08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004dabad
mov edi, eax
add esp, 0xc
test edi, edi
je 0x420d04
mov ecx, esi
call fcn.00420a1a
mov eax, edi
jmp 0x420d0a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4255dc
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00580c08
pop ecx
test eax, eax
jne 0x42561e
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004060b0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4255e4
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x4257ad
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
mov eax, dword [esi]
push 1
mov edi, dword [eax + 0xe0]
mov ecx, edi
je 0x4257e8
push 0
call dword [0x5b1a70]
mov ecx, esi
call edi
test eax, eax
je 0x4257e4
xor eax, eax
inc eax
jmp 0x4257fb
xor eax, eax
jmp 0x4257fb
push dword [esi + 0x24]
call dword [0x5b1a70]
mov ecx, esi
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x441435
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x44144e
call fcn.0044b8ee
mov esi, dword [eax + 0xc]
push 0x5b6634
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x441490
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441490
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x441490
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00441499
jmp 0x441492
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x448254
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4482f3
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4482ef
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4482ef
cmp dword [ebx], eax
jne 0x4482ef
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4482c9
sub eax, 1
je 0x448299
sub eax, 1
jne 0x4482ef
mov edi, 0x428e
jmp 0x4482ce
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4482ce
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4482ce
add edi, 3
jmp 0x4482ce
mov edi, 0x3ea0
push edi
mov ecx, 0x614d30
call fcn.00406280
test eax, eax
je 0x4482f3
mov eax, dword [0x614d30]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4482e8
call fcn.0041912f
int3
Function at 0x474021
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x47417f
push esi
push edi
push 0x5c7b3c
call fcn.0044391d
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4740ba
mov edi, dword [ebx + 0x168]
jmp 0x4740a6
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4740a6
push esi
call fcn.004202b9
push eax
push 0x60c76c
call fcn.0044387e
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4740a6
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4740a6
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x474055
lea ecx, [ebx + 0x164]
call fcn.00413a6f
jmp 0x47417d
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47417d
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00410de1
mov edi, dword [eax]
test edi, edi
jne 0x4740e6
xor esi, esi
jmp 0x4740e9
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47416d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47416d
cmp dword [ebp - 0x10], 0
jne 0x474142
push edi
push 0x60c76c
call fcn.0044387e
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, edi
call esi
push eax
push 0x5b8f00
call fcn.0044387e
pop ecx
pop ecx
test eax, eax
je 0x47416d
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.004731b1
test eax, eax
jne 0x47416d
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.00471083
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4740d1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a7a88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4a7c0f
je 0x4a7c36
sub eax, 0xa1
je 0x4a7c36
sub eax, 1
je 0x4a7c36
dec eax
sub eax, 1
je 0x4a7c36
sub eax, 1
je 0x4a7c36
dec eax
sub eax, 1
je 0x4a7c36
sub eax, 1
je 0x4a7c36
sub eax, 0x58
jne 0x4a7c74
cmp dword [edi + 0xc0], 0xffffffff
je 0x4a7c36
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4a7c36
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4a7b64
sub eax, 1
jne 0x4a7c36
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4a7b53
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, edi
call esi
test eax, eax
jne 0x4a7bb0
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4a7b29
jmp 0x4a7c8e
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4a7c8e
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, edi
call esi
test eax, eax
jne 0x4a7bb0
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4a7b7b
jmp 0x4a7c8e
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, edi
call esi
mov ecx, eax
call fcn.004171bd
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4a7c8e
sub eax, 0x200
je 0x4a7c36
sub eax, 1
je 0x4a7c36
sub eax, 1
je 0x4a7c36
dec eax
sub eax, 1
je 0x4a7c36
sub eax, 1
je 0x4a7c36
dec eax
sub eax, 1
je 0x4a7c36
sub eax, 1
jne 0x4a7c74
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4a7c55
cmp dword [eax + 0x20], ebx
je 0x4a7c55
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4a7c74
cmp dword [eax + 0x20], ebx
je 0x4a7c74
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x4a7c93
lea eax, [edi + 0x2250]
test eax, eax
je 0x4a7c8a
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4a7c93
xor eax, eax
inc eax
jmp 0x4a7c9b
push esi
mov ecx, edi
call fcn.004fd73f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b3902
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x5a88a7
call fcn.0057452c
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4b39f9
cmp edi, dword [ebx + 0xc]
jge 0x4b39f9
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4b3959
cmp edi, dword [esi + 8]
jl 0x4b39e7
cmp dword [ebp + 0xc], 0
je 0x4b39e7
xor edi, edi
jmp 0x4b398b
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.004b3514
mov esi, eax
test esi, esi
je 0x4b3973
mov dword [esi], vtable.CThreadData.0
jmp 0x4b3975
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00419490
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4b39a7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4b39b3
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4b3a20
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.005785e0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4b39f9
cmp edi, dword [esi + 8]
jge 0x4b39f9
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00574491
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00419149
int3
Function at 0x4b5295
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x60ce80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x615190]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x4b52ee
push 0x5b3b30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b5313
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x615190], eax
jmp 0x4b52f7
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4b5313
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x5b1a70]
call esi
jmp 0x4b5455
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.004b560c
lea eax, [ebp - 0x14]
push eax
call fcn.0057fad2
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00580573
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004b560c
lea eax, [ebp - 0x14]
push eax
call fcn.0057fad2
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.00580573
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.004b560c
lea eax, [ebp - 0x14]
push eax
call fcn.0057fad2
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00580573
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004b560c
lea eax, [ebp - 0x14]
push eax
call fcn.0057fad2
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00580573
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.004b560c
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0057fad2
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00580573
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00573f01
leave
ret
Function at 0x4b6d75
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x5a8bc5
call fcn.005744f6
mov ebx, ecx
mov dword [ebp - 0x224], ebx
and dword [ebp - 0x228], 0
call fcn.0044b8ee
push 0
mov ecx, dword [eax + 4]
call fcn.00411e49
mov edi, eax
xor eax, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx]
mov byte [ebp - 4], 1
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call dword [0x5b1a70]
mov ecx, ebx
call esi
push 0x2001f
lea ecx, [ebp - 0x234]
push dword [eax]
push edi
call fcn.004b6b26
mov ecx, dword [ebp - 0x21c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004066a0
test esi, esi
jne 0x4b6f67
xor ebx, ebx
lea eax, [ebp - 0x113]
push 0x103
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.005785e0
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
jmp 0x4b6f03
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x21c], 0x104
push 0
push eax
inc ebx
mov byte [ebp - 0x218], 0
call fcn.005785e0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004b6d16
test eax, eax
jne 0x4b6eee
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ecx + 4]
call fcn.004b5bcf
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.0057fe70
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00406430
mov dword [ebp - 0x228], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4b6e5b
test edi, edi
je 0x4b6f25
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x234], edi
mov ebx, dword [ebp - 0x224]
and dword [ebp - 0x230], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call dword [0x5b1a70]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x240]
push dword [eax]
call fcn.004b6420
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.004066a0
jmp 0x4b6f6d
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x4b6f78
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x240]
call fcn.00411e0b
mov eax, dword [ebp - 0x228]
call fcn.005744a5
ret
Function at 0x4ba6a8
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x60ce80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4ba6d4
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4ba6ff
cmp dword [0x614304], 0
jne 0x4ba6ff
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4ba6fb
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4ba6fb
push edi
call fcn.005879b4
pop ecx
jmp 0x4ba774
mov eax, edi
jmp 0x4ba774
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4ba783
push esi
call fcn.0041d8c8
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push esi
push 1
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00573f01
leave
ret 4
call fcn.0041912f
int3
Function at 0x4d38b2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4d38dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d38e2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00406aa0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004dd039
int3

Function at 0x4d398f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x4d39d6
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4d39e5
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4d39e5
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x5b1a70]
call edi
jmp 0x4d39e7
cmp dword [esi + 4], ebx
je 0x4d39e5
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4d3c1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4d3c2d
xor eax, eax
jmp 0x4d3c49
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d3c4e
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00406aa0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004dd039
int3

Function at 0x4d3d29
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4d3d5c
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00406aa0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004dd039
int3

Function at 0x4d3e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4d3e5b
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d3e61
cmp dword [ebp - 4], esi
jne 0x4d3e78
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00406aa0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004dd039
lea ecx, [edi + 0xc]
call fcn.00406aa0
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004dcc8f
int3
Function at 0x4d53bf
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x59fab1
call fcn.005744c3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040ddd0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x4d541d
call fcn.0044b93c
cmp eax, 1
jne 0x4d541d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.00415ee4
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040f004
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004066a0
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004066a0
mov eax, esi
call fcn.00574491
ret 0x10

Function at 0x4d5444
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x59fab1
call fcn.005744c3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040ddd0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x4d54a2
call fcn.0044b93c
cmp eax, 1
jne 0x4d54a2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.00415ee4
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040f004
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004066a0
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004066a0
mov eax, esi
call fcn.00574491
ret 0x14

Function at 0x4dc5ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x4dc642
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4dc61b
call fcn.0041a372
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4dc630
call fcn.0041a372
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4dc642
call fcn.0041a372
call fcn.0044b8ee
cmp dword [eax + 0x3c], 0
je 0x4dc657
push esi
mov ecx, ebx
call fcn.004dbd12
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004dc841
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4dc680
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4dc68c
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8