joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040eec0
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040eec0
add esp, 4
add esi, eax
mov dword [ebp - 0x2c], esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], 0x28
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
shl eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx + 0x10]
mov word [ebp - 0x1c], dx
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 0x12]
mov word [ebp - 0x1a], cx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 0x30]
push eax
push 0x28
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x30]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ef50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040eef0
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040eec0
add esp, 4
mov esi, eax
lea edx, [ebp - 0x60]
push edx
call fcn.0040eec0
add esp, 4
add esi, eax
mov dword [ebp - 0x30], esi
movzx eax, word [ebp - 6]
cmp eax, 8
jl 0x40efa0
mov dword [ebp - 0x44], 0
jmp 0x40efb5
movzx ecx, word [ebp - 6]
movzx edx, word [ebp - 8]
imul ecx, edx
mov eax, 1
shl eax, cl
mov dword [ebp - 0x44], eax
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0x40], cl
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x3f], dl
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], 0
mov cx, word [ebp - 8]
mov word [ebp - 0x3c], cx
mov dx, word [ebp - 6]
mov word [ebp - 0x3a], dx
mov eax, dword [ebp - 0x30]
add eax, 0x28
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x34], ecx
push 0
lea edx, [ebp - 0x48]
push edx
push 0x10
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x48]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 0x20]
push eax
push 0x18
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [ebp - 0x20]
push edx
call fcn.0040eec0
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.00515646
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40f07a
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jl 0x40f0cd
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
imul edx, dword [ebp - 0x14]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
and ecx, 3
je 0x40f0cb
mov dword [ebp - 0x2c], 0
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, 4
sub eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40f071
mov eax, dword [ebp - 4]
push eax
call fcn.00515569
add esp, 4
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret

Function at 0x40f130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40f165
mov eax, dword [ebp + 0x14]
jmp 0x40f1a1
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40f194
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
jmp 0x40f1a1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40f1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0x200
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00515e20
add esp, 0xc
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40f1f4
or eax, 0xffffffff
jmp 0x40f341
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40f226
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40f341
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 0x15], al
add dword [ebp - 0x10], 1
cmp byte [ebp - 0x15], 0
jne 0x40f23f
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 2
jbe 0x40f33e
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [ebp - 0x25], dl
add dword [ebp - 0x20], 1
cmp byte [ebp - 0x25], 0
jne 0x40f273
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
jne 0x40f2d1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [edx]
mov byte [ebp - 0x35], al
add dword [ebp - 0x30], 1
cmp byte [ebp - 0x35], 0
jne 0x40f2ac
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x3c]
mov byte [edx - 1], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x40]
mov al, byte [edx]
mov byte [ebp - 0x45], al
add dword [ebp - 0x40], 1
cmp byte [ebp - 0x45], 0
jne 0x40f2e0
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x4c]
movsx eax, byte [edx - 1]
cmp eax, 0xd
jne 0x40f33e
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [ebp - 0x55], cl
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x40f319
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x5c]
mov byte [eax - 1], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40f8f0
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x58c804]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40f9b7
push 0x200
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40f9b7
push str._c_del
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.____NUL
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40f9b7
push 0
push 0
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x408]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x40f9b7
mov eax, 1
jmp 0x40f9b9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051555a
mov esp, ebp
pop ebp
ret

Function at 0x40fef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40ff2c
xor eax, eax
jmp 0x40ff7b
mov edx, dword [ebp + 0xc]
push edx
call fcn.00515646
add esp, 4
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x40ff6d
mov eax, dword [ebp - 8]
jmp 0x40ff7b
mov edx, dword [ebp - 8]
push edx
call fcn.00515569
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40fff0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00515e20
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x8540
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], 0
cmp dword [0x5901c8], 0
je 0x410031
mov dword [ebp - 0x30], str.runas
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x4e20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x4101a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x5901b8], 0
je 0x4101c3
movzx eax, byte [0x5901bd]
test eax, eax
je 0x4101c3
mov dword [ebp - 8], 0x100
jmp 0x4101ca
mov dword [ebp - 8], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
or edx, 0xf003f
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410236
cmp dword [0x5901b8], 0
je 0x410209
movzx edx, byte [0x5901bd]
test edx, edx
je 0x410209
mov dword [ebp - 0xc], 0x100
jmp 0x410210
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x15], cl
add dword [ebp - 0x10], 1
cmp byte [ebp - 0x15], 0
jne 0x410245
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41028d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x410299
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4102a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5901b8], 0
je 0x4102c3
movzx eax, byte [0x5901bd]
test eax, eax
je 0x4102c3
mov dword [ebp - 8], 0x100
jmp 0x4102ca
mov dword [ebp - 8], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
or edx, 0xf003f
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410336
cmp dword [0x5901b8], 0
je 0x410309
movzx edx, byte [0x5901bd]
test edx, edx
je 0x410309
mov dword [ebp - 0xc], 0x100
jmp 0x410310
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x410361
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x41036d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4147a0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5310f1
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x58c804]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], ax
mov byte [ebp - 0x234], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x233]
push ecx
call fcn.00515e20
add esp, 0xc
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x240]
push eax
call fcn.0040e870
add esp, 4
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
add ecx, 0x10
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x268], edx
mov byte [ebp - 4], 2
push 0x544cd0
mov eax, dword [ebp - 0x268]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.0040e490
add esp, 0xc
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x23c]
call fcn.00402030
push 0x200
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.00515e20
add esp, 0xc
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x24c], ecx
cmp dword [ebp - 0x24c], 0x200
jle 0x4148e3
mov byte [ebp - 4], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00402030
mov dword [ebp - 4], 7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402030
jmp 0x414a03
mov edx, dword [ebp - 0x238]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0x200
jae 0x414965
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x26c], ecx
lea edx, [ebp - 0x234]
mov dword [ebp - 0x270], edx
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x26c]
mov dl, byte [ecx]
mov byte [ebp - 0x275], dl
mov eax, dword [ebp - 0x270]
mov cl, byte [ebp - 0x275]
mov byte [eax], cl
mov edx, dword [ebp - 0x26c]
add edx, 1
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x270]
add eax, 1
mov dword [ebp - 0x270], eax
cmp byte [ebp - 0x275], 0
jne 0x414922
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
mov byte [ebp + eax - 0x233], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 3
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov edx, 0x414
mov word [ebp - 0x1c], dx
mov dword [ebp - 0x1a], 0
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x12], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00402030
mov dword [ebp - 4], 9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0051555a
mov esp, ebp
pop ebp
ret
Function at 0x41916a
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.00425829
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4191a3
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.00418dbb
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 0x419201
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 0x419225
cmp dword [edi + 0x54], 0
jne 0x419225
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00425829
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
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004191c2
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

Function at 0x420445
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42048c
call fcn.00425829
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42048c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4204a8
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041ffbf
mov esi, eax
test edi, edi
je 0x4204a6
test ebx, ebx
je 0x4204a6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4213aa
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x531d2c
call fcn.00518281
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4213cf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x421415
lea ecx, [ebp - 0x10]
call fcn.00412750
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417941
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00412510
mov eax, esi
call fcn.00518359
ret 8
Function at 0x426022
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42606a
call fcn.00425829
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42606a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4260ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x426096
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x426096
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4260aa
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42fdd2
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x58c804]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x42fe0b
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x42fe32
cmp dword [0x5925e0], 0
jne 0x42fe32
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x42fe25
push 0x12
call esi
test bx, ax
je 0x42fe29
mov eax, edi
jmp 0x42fe9d
push edi
call fcn.0051ad7e
pop ecx
jmp 0x42fe9d
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.00423aed
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
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]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051555a
leave
ret 4