joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6bada0
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 0x6badcb
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 0x6badef
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 0x6bae0a
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 0x6bff23
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6bff5b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.006c3255
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006c322d
jmp 0x6bff67
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x6c1a45
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 0x6c1a87
call fcn.006d8f27
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6c1a87
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6c1a7e
xor eax, eax
jmp 0x6c1a8f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006c1a95
pop edi
pop esi
pop ebx
ret 4

Function at 0x6c3678
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 0x6c369a
cmp dword [edi + 0x3c], 0
jne 0x6c369a
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.006d8f27
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.006c36c7
pop edi
pop esi
pop ebx
ret 8

Function at 0x6c372b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.006d8f27
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x6c375c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.006c376f
pop edi
pop esi
pop ebx
ret 8
Function at 0x6da57e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x6da5ac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6da5ca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006da4e4
jmp 0x6da5ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6da5ca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006da4e4
test edi, edi
mov eax, edi
jne 0x6da5b4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6de2f1
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x6de319
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x6de32a
push 2
call edi
test ax, ax
jge 0x6de32a
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.006bf52d
cmp dword [esi + 0x30], ebx
jne 0x6de404
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.006bf52d
cmp eax, dword [esp + 0x34]
jne 0x6de404
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x6de3a0
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x6de3e5
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x6de404
cmp eax, 0x205
je 0x6de404
cmp eax, 0x201
je 0x6de404
cmp eax, 0x204
je 0x6de404
cmp eax, ebx
jne 0x6de3cb
cmp dword [esp + 0x1c], 0x1b
je 0x6de404
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x859648]
jbe 0x6de3fa
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x6de35d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4032ad
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x493393
call fcn.00481b40
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004180b2
mov dl, byte [ebp + 0xb]
lea ecx, [esi + 0x4c]
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ecx], dl
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov byte [esi + 0x31], al
mov dword [esi + 0x48], eax
mov byte [esi + 0x32], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi], fcn.00430ce8
mov byte [esi + 0x30], 1
mov dword [esi + 0x44], eax
call fcn.0040382a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x414324
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [0x4d3d98]
call dword [sym.imp.USER32.dll_SetParent]
push 0
mov dword [0x4d4614], eax
push dword [0x4d3d98]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xfffffffffffffff0
push dword [0x4d3d98]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x3fffffff
or eax, 0x40000000
push eax
push 0xfffffffffffffff0
push dword [0x4d3d98]
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp fcn.00414296
Function at 0x417bed
Capabilities:
Create thread

Disassembly:
mov ecx, 0x4d2f6c
jmp 0x417be3
push ecx
push ebx
xor ebx, ebx
cmp byte [0x4d46d0], bl
push esi
mov esi, ecx
jne 0x417c3e
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4d46c8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x4d46c4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4d46cc], eax
lea eax, [esp + 8]
push eax
push ebx
push ebx
push 0x417c92
push ebx
push ebx
call fcn.00483137
add esp, 0x18
cmp eax, ebx
mov dword [0x4d46c0], eax
je 0x417c3e
mov byte [0x4d46d0], 1
mov eax, esi
pop esi
pop ebx
pop ecx
ret

Function at 0x418add
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov cl, byte [ebx + 0x42]
push edi
test cl, cl
je 0x418af6
mov eax, dword [ebx + 0x4c]
jmp 0x418af8
xor eax, eax
cmp eax, 8
je 0x418bbf
cmp eax, 0x18
je 0x418b66
cmp eax, 0x20
jne 0x418c25
test cl, cl
je 0x418b1b
mov eax, dword [ebx + 0x44]
mov dword [ebp - 8], eax
jmp 0x418b1e
mov dword [ebp - 8], esi
push esi
push esi
mov ecx, ebx
call fcn.00419f33
mov edi, eax
mov dword [ebp - 4], esi
cmp byte [ebx + 0x42], 0
mov dword [ebp - 0xc], edi
je 0x418b3a
mov eax, dword [ebx + 0x48]
jmp 0x418b3c
xor eax, eax
cmp dword [ebp - 4], eax
jge 0x418c25
mov ecx, dword [ebp - 8]
mov edx, 4
mov esi, dword [ebp - 0xc]
mov eax, 0xffffff
xor dword [esi], eax
add esi, edx
dec ecx
jne 0x418b55
add edi, dword [ebx + 0x54]
inc dword [ebp - 4]
xor esi, esi
jmp 0x418b2c
test cl, cl
je 0x418b72
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0xc], eax
jmp 0x418b75
mov dword [ebp - 0xc], esi
push esi
push esi
mov ecx, ebx
call fcn.00419f33
mov edx, eax
mov dword [ebp - 4], esi
cmp byte [ebx + 0x42], 0
mov dword [ebp - 8], edx
je 0x418b91
mov eax, dword [ebx + 0x48]
jmp 0x418b93
xor eax, eax
cmp dword [ebp - 4], eax
jge 0x418c25
pushfd
cld
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, esi
lodsw ax, word [esi]
not ax
stosw word es:[edi], ax
lodsb al, byte [esi]
not al
stosb byte es:[edi], al
dec ecx
jne 0x418ba6
popfd
add edx, dword [ebx + 0x54]
inc dword [ebp - 4]
xor esi, esi
jmp 0x418b83
test cl, cl
je 0x418bcb
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0xc], eax
jmp 0x418bce
mov dword [ebp - 0xc], esi
push esi
push esi
mov ecx, ebx
call fcn.00419f33
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
cmp byte [ebx + 0x42], 0
je 0x418be8
mov eax, dword [ebx + 0x48]
jmp 0x418bea
xor eax, eax
cmp dword [ebp - 8], eax
jge 0x418c25
mov ecx, dword [ebp - 0xc]
mov edx, ecx
shr ecx, 2
mov esi, dword [ebp - 4]
mov edi, esi
xor eax, eax
dec eax
mov edi, 4
xor dword [esi], eax
add esi, edi
dec ecx
jne 0x418c04
mov ecx, edx
and ecx, 3
je 0x418c18
xor byte [esi], al
inc esi
dec ecx
jne 0x418c12
mov eax, dword [ebx + 0x54]
add dword [ebp - 4], eax
inc dword [ebp - 8]
xor esi, esi
jmp 0x418bdd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a32f
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov edi, dword [ebp + 8]
mov esi, 0x400
mov dword [ebp - 0x14], eax
push esi
lea eax, [edi + 0x48]
push 0x49b7c0
push eax
call fcn.00481f00
push esi
lea eax, [edi + 0x448]
push 0x49bbc0
push eax
call fcn.00481f00
push esi
lea eax, [edi + 0x848]
push 0x49bfc0
push eax
call fcn.00481f00
push esi
lea eax, [edi + 0xc48]
push 0x49c3c0
push eax
call fcn.00481f00
and dword [ebp + 0xc], 0
add esp, 0x30
mov dword [ebp + 8], 0x49b778
sub dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0x12
and dword [ebp - 4], 0
mov dword [ebp - 8], 4
mov eax, dword [ebx]
push dword [ebp + 0xc]
mov ecx, ebx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
movzx eax, al
shl ecx, 8
or eax, ecx
inc dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x41a3df
and dword [ebp + 0xc], 0
dec dword [ebp - 8]
jne 0x41a3b8
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ecx + eax]
xor ecx, dword [ebp - 4]
mov dword [eax], ecx
add eax, 4
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jne 0x41a3ad
xor esi, esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.0041a20d
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [edi + esi*4], eax
mov eax, dword [ebp + 8]
mov dword [edi + esi*4 + 4], eax
inc esi
inc esi
cmp esi, 0x12
jl 0x41a405
lea esi, [edi + 0x4c]
mov dword [ebp - 0x10], 4
mov ebx, 0x80
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.0041a20d
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
add esi, 8
dec ebx
jne 0x41a439
dec dword [ebp - 0x10]
jne 0x41a434
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a95c
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push DirectSoundCreate
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x41a995
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x41aed2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x494a3f
call fcn.00481b40
sub esp, 0x108
mov eax, dword [ebp + 0x10]
cmp eax, 1
jge 0x41aef3
push dword [ebp + 0xc]
call fcn.00481630
pop ecx
push ebx
push esi
push eax
lea ecx, [ebp - 0x114]
push dword [ebp + 0xc]
call fcn.0041b28b
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov bl, byte [esi]
lea ecx, [ebp - 0x114]
call fcn.0041b327
xor bl, al
mov byte [esi], bl
inc esi
test bl, bl
jne 0x41af0b
xor eax, eax
push 0x100
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004826e0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret

Function at 0x41af52
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp + 8]
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x104
mov byte [esi], bl
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41afb1
cmp dword [ebp + 0x14], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push esi
push eax
push ebx
jne 0x41af96
push 0x4d105c
jmp 0x41af99
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41afa8
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41b171
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
push esi
push edi
mov esi, str.lfsofm43_emm
lea edi, [ebp - 0x20]
lea eax, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push eax
mov byte [ebp - 1], bl
movsb byte es:[edi], byte [esi]
call fcn.0041aec0
lea eax, [ebp - 0x13c]
mov dword [esp], 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x33c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x33c]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, 1
jae 0x41b1e8
mov byte [ebp - 1], 1
jmp 0x41b27f
push esi
call fcn.00481b5f
push esi
push ebx
push eax
mov dword [ebp - 8], eax
call fcn.004826e0
add esp, 0x10
lea eax, [ebp - 0x33c]
push dword [ebp - 8]
push esi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41b26d
push 6
mov esi, str._WbsGjmfJogp_Usbotmbujpo
pop ecx
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3c]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0041aec0
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41b271
mov ecx, dword [ebp - 0x10]
xor eax, eax
shr ecx, 2
mov edx, 0x111
je 0x41b271
cmp eax, ebx
jne 0x41b25b
add edx, 0x300
mov esi, dword [ebp - 0xc]
movzx esi, word [esi + eax*4]
cmp esi, edx
je 0x41b26d
inc eax
cmp eax, ecx
jb 0x41b251
jmp 0x41b271
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x41b27f
push dword [ebp - 8]
call fcn.00479f2e
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f64b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x494d18
call fcn.00481b40
sub esp, 0x40
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x20], esi
cmp byte [esi + 0x19], bl
je 0x41f68e
push dword [0x4bbb28]
call fcn.00481630
pop ecx
push eax
mov ecx, esi
push dword [0x4bbb28]
call fcn.0041fe71
neg al
sbb eax, eax
and eax, 2
dec eax
jmp 0x41f80a
push ebx
or dword [ebp - 0x2c], 0xffffffff
push 0x80
push 3
push ebx
push 1
push DirectSoundCreate
mov dword [ebp - 0x14], ebx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x28], esi
je 0x41f807
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call esi
cmp eax, ebx
je 0x41f807
cmp dword [ebp - 0x18], 4
jne 0x41f807
call fcn.004154ec
cmp dword [ebp - 0x1c], eax
jne 0x41f807
sub edi, 4
push edi
call fcn.00481b5f
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
push edi
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x41f7ee
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.004015d0
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x3c], al
call fcn.004015d0
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov byte [ebp - 0xd], bl
call fcn.0041f643
xor edi, edi
cmp dword [ebp - 0x24], ebx
jbe 0x41f7ce
mov al, byte [esi]
inc esi
mov byte [ebp - 0x1c], al
movsx eax, al
sub eax, 9
je 0x41f7bf
dec eax
je 0x41f785
push dword [ebp - 0x1c]
cmp byte [ebp - 0xd], bl
push 1
jne 0x41f780
lea ecx, [ebp - 0x4c]
call fcn.00410290
jmp 0x41f7c8
lea ecx, [ebp - 0x3c]
jmp 0x41f779
cmp dword [ebp - 0x44], ebx
jbe 0x41f7a4
cmp dword [ebp - 0x34], ebx
jbe 0x41f7a4
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
push 1
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041f3ea
inc dword [ebp - 0x14]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040149f
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040149f
mov byte [ebp - 0xd], bl
jmp 0x41f7c8
cmp byte [ebp - 0xd], bl
jne 0x41f7c8
mov byte [ebp - 0xd], 1
inc edi
cmp edi, dword [ebp - 0x24]
jb 0x41f75b
mov esi, dword [ebp - 0x14]
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.004015d0
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x4c]
call fcn.004015d0
jmp 0x41f7f1
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.00479f2e
pop ecx
mov eax, esi
jmp 0x41f80a
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41f819
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x19], bl
je 0x41f85f
cmp byte [esi + 0x1a], bl
je 0x41f850
push dword [0x4bbb28]
call fcn.00481630
pop ecx
push eax
mov ecx, esi
push dword [0x4bbb28]
call fcn.0041fd7b
test al, al
je 0x41f858
mov byte [esi + 0x1a], bl
xor eax, eax
inc eax
jmp 0x41f94d
xor eax, eax
jmp 0x41f94d
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x41f94a
call fcn.004154ec
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
push 4
push eax
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f94a
cmp dword [ebp - 0xc], 4
jne 0x41f94a
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 4], eax
je 0x41f93e
push edi
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x24]
lea eax, [ecx + eax + 3]
push eax
call fcn.00481b5f
pop ecx
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x20]
cmp eax, ebx
jne 0x41f8e3
mov eax, 0x49a4a0
mov ecx, dword [ecx + 0x10]
cmp ecx, ebx
jne 0x41f8ef
mov ecx, 0x49a4a0
push eax
push ecx
push str._s_t_s_n
push edi
call fcn.0048231c
add esp, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], eax
push ebx
push ecx
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, ebx
mov dword [ebp - 0x10], eax
je 0x41f920
push edi
call fcn.00479f2e
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x41f93d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x41f93d
lea ecx, [ebp - 4]
call fcn.00420517
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 8]
jne 0x41f8c1
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x1a], bl
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x421e38
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x421e99
call fcn.00422256
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x421e5b
mov eax, dword [ecx + 0x28]
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00447b73
cmp byte [esi + 0x3c], 0
jne 0x421e99
mov ecx, dword [esi + 0xc]
push edi
mov byte [esi + 0x48], 1
call fcn.0044826e
xor edi, edi
cmp byte [esi + 0x3c], 0
jne 0x421e8b
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1f4
jl 0x421e70
cmp byte [esi + 0x3c], 0
pop edi
jne 0x421e99
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret

Function at 0x429edd
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [0x4d45e7], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, ecx
je 0x429f0c
call edi
cmp eax, dword [0x4d3d98]
jne 0x429f0c
push 0x10
call ebx
movsx eax, ax
test eax, eax
js 0x429f4a
cmp byte [esi + 0x1828], 0
jne 0x429fb6
cmp byte [esi + 0xb90], 0
je 0x429fb6
call edi
mov edi, eax
cmp edi, dword [0x4d3d98]
je 0x429f41
mov ecx, dword [0x4bb140]
mov eax, dword [ecx]
call dword [eax + 0x64]
test al, al
je 0x429fb6
cmp dword [esi + 0xb8c], 2
jne 0x429f4e
mov al, 1
jmp 0x429fb8
cmp byte [esi + 0x1829], 0
je 0x429fb6
push 0x11
call ebx
movsx ebx, ax
shr ebx, 0x1f
and bl, 1
je 0x429f78
lea ecx, [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x34]
test al, al
je 0x429f74
xor bl, bl
test bl, bl
jne 0x429f9e
mov ecx, dword [0x4bb140]
mov eax, dword [ecx]
call dword [eax + 0xe8]
test al, al
je 0x429f94
test byte [0x4d1af4], 0x20
setne bl
test bl, bl
jne 0x429f9e
and byte [0x4d45e6], bl
cmp edi, dword [0x4d3d98]
jne 0x429fb6
test bl, bl
je 0x429fb6
cmp byte [0x4d45e6], 0
sete al
jmp 0x429fb8
xor al, al
pop edi
pop esi
pop ebx
ret