joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40236c
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp + 8], eax
mov esi, dword [edi]
mov dword [ebp - 4], esi
inc esi
lea eax, [esi*4 + 4]
push eax
call fcn.0040207c
pop ecx
mov dword [edi], esi
mov dword [ebx], eax
mov ecx, dword [0x408010]
cmp byte [ecx], 0x2d
jne 0x4023b5
cmp byte [ecx + 1], 0x4a
jne 0x4023b5
add ecx, 2
mov dword [eax], ecx
mov ecx, dword [0x408010]
add eax, 4
mov ebx, dword [ebp - 4]
xor edi, edi
test ebx, ebx
jle 0x4023ea
mov esi, dword [ebp + 8]
mov edx, dword [esi]
cmp byte [edx], 0x2d
jne 0x4023e2
cmp byte [edx + 1], 0x4a
jne 0x4023e2
cmp byte [edx + 2], 0
lea ecx, [edx + 2]
je 0x402423
mov dword [eax], ecx
mov ecx, dword [0x408010]
add eax, 4
inc edi
add esi, 4
cmp edi, ebx
jl 0x4023c1
cmp byte [ecx], 0x2d
jne 0x4023f5
cmp byte [ecx + 1], 0x4a
je 0x4023fa
mov dword [eax], ecx
add eax, 4
test ebx, ebx
jle 0x40241b
mov edx, dword [ebp + 8]
mov esi, ebx
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x402410
cmp byte [ecx + 1], 0x4a
je 0x402415
mov dword [eax], ecx
add eax, 4
add edx, 4
dec esi
jne 0x402403
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret
push 1
push 0x4089f0
call fcn.00403329
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x402439
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push 0x408a28
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x402491
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.0040207c
mov edi, eax
push ebx
push 0x408a34
push edi
call esi
push 0
push edi
call fcn.0040178c
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00403082
pop ecx
test al, al
pop ecx
jne 0x4024bb
push 1
push 0x408a48
call fcn.00403329
pop ecx
xor al, al
pop ecx
jmp 0x4025df
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.0040207c
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x408a6c
push edi
call esi
push 0
push edi
call fcn.0040178c
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x408014
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, 0x40801c
lea edx, [edx + ecx + 1]
jl 0x402505
inc edx
push edx
call fcn.0040207c
mov edx, eax
mov esi, 0x408a84
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
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]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
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
cmp dword [esp + 0x10], 0x40801c
rep movsb byte es:[edi], byte [esi]
jl 0x40253f
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.0040178c
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40281d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00403044
lea eax, [ebp - 0x184]
push 0x4090e0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402876
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x4090e4
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x4028c6
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4028ba
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x402890
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x402db9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402e95
pop ecx
test al, al
pop ecx
jne 0x402de5
push 1
push 0x4092bc
call fcn.00403329
pop ecx
pop ecx
push 2
call dword [sym.imp.MSVCRT.dll_exit]
push 0
call fcn.00402db3
push eax
push dword [ebp + 0x10]
call fcn.004028c9
add esp, 0xc
cmp eax, 1
jge 0x402e13
push 1
push 0x4092f0
call fcn.00403329
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401537
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov edi, eax
and byte [ebx], 0
push ebx
push edi
mov dword [ebp + 0x14], edi
push dword [ebp + 0x10]
call fcn.00402f5d
add esp, 0x1c
test al, al
jne 0x402e91
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
mov esi, 0x409328
add edx, ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.0040207c
push ebx
mov edi, eax
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 1
push edi
call fcn.00403329
add esp, 0x1c
push 4
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403415
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, 0x104
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [ebp - 0x114]
xor eax, eax
push esi
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x4034b4
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.00403fdf
pop ecx
test eax, eax
pop ecx
je 0x403499
cmp dword [ebp - 8], 0
je 0x403488
push dword [ebp - 8]
lea eax, [ebp - 0x114]
push eax
call fcn.00403f10
pop ecx
test eax, eax
pop ecx
jle 0x403499
push dword [ebp - 8]
call ebx
pop ecx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x114]
push esi
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x40344c
mov edi, dword [ebp - 8]
test edi, edi
jne 0x4034b8
xor eax, eax
jmp 0x40352e
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push edi
je 0x4034db
call ebx
cmp dword [ebp - 4], 0
pop ecx
jmp 0x403505
call ebx
pop ecx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x114]
xor esi, esi
push eax
push esi
push esi
push 0x4096fc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403512
cmp dword [ebp - 4], esi
je 0x4034b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4034b4
cmp dword [ebp - 4], esi
je 0x403520
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403533
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40356c
push 1
push 0x409708
call fcn.00403329
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x104]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x403641
mov edi, dword [ebp + 8]
mov ecx, ebx
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
mov ecx, ebx
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x409740
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, edx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov eax, 0x409738
dec edi
mov esi, eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
cmp byte [0x40ac72], 0
je 0x403626
mov esi, dword [sym.imp.MSVCRT.dll_printf]
lea eax, [ebp - 0x104]
push eax
push 0x409748
call esi
mov eax, dword [edi]
pop ecx
test eax, eax
pop ecx
je 0x40361e
mov ebx, edi
push eax
push 0x409754
call esi
mov eax, dword [ebx + 4]
add ebx, 4
pop ecx
test eax, eax
pop ecx
jne 0x40360a
push 0x40975c
call esi
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
push 0
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
push eax
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4037e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
test eax, eax
jl 0x4038e4
mov eax, dword [esi + 4]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4038e4
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, edi
je 0x403845
push ebx
call dword [sym.imp.MSVCRT.dll_free]
jmp 0x4038e3
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x403858
and byte [edi + ebx], cl
mov eax, ebx
jmp 0x4038e6
cmp eax, 8
jne 0x4038e4
push 0x38
push 0x4097c8
lea eax, [ebp - 0x38]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
call fcn.00404321
add esp, 0x10
test eax, eax
jl 0x403839
mov eax, dword [esi]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x403839
mov eax, dword [esi]
push 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x2c], edi
call fcn.0040440b
pop ecx
test eax, eax
pop ecx
jge 0x4038c2
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
push edi
call esi
pop ecx
jmp 0x4038e3
mov eax, dword [esi]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
and byte [eax + edi], 0
call esi
lea eax, [ebp - 0x38]
push eax
call fcn.004042e3
pop ecx
test eax, eax
pop ecx
jge 0x4038eb
push edi
call esi
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, edi
jmp 0x4038e6
Function at 0x403b76
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__lseek]
push edi
push 2
push 0xffffffffffffffea
push dword [ebp + 8]
call esi
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jl 0x403caa
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__read]
push 0x16
push ebx
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jl 0x403caa
movzx ecx, byte [ebx + 1]
xor eax, eax
mov ah, byte [ebx + 3]
mov al, byte [ebx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebx]
shl eax, 8
or eax, ecx
cmp eax, 0x6054b50
jne 0x403be0
mov eax, dword [ebp - 4]
jmp 0x403cad
push 2
push 0
push dword [ebp + 8]
call esi
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x403caa
mov ebx, 0x10015
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x403c06
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
push 2
neg eax
push eax
push dword [ebp + 8]
call esi
add esp, 0xc
test eax, eax
jl 0x403caa
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 8], esi
je 0x403caa
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jl 0x403ca2
add eax, esi
mov dword [ebp + 8], eax
lea ebx, [eax - 0x16]
cmp ebx, esi
jb 0x403ca2
cmp byte [ebx], 0x50
jne 0x403c7f
movzx edx, byte [ebx + 1]
xor ecx, ecx
mov ch, byte [ebx + 3]
mov cl, byte [ebx + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x403c7f
xor ecx, ecx
mov ch, byte [ebx + 0x15]
mov cl, byte [ebx + 0x14]
lea ecx, [ecx + ebx + 0x16]
cmp ecx, eax
je 0x403c82
dec ebx
jmp 0x403c47
mov edi, dword [ebp + 0xc]
push 5
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 8]
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCRT.dll_free]
mov eax, ebx
pop ecx
sub eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
jmp 0x403cad
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401569
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 0x4015a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4015a0
lea ebx, [ebx]
cmp esi, edx
jae 0x4015a4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401590
cmp esi, edx
jb 0x4015ab
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x401d55
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x401d60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d60
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x401d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x401da9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401db5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x401db0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e63
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x20], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x424]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00414c10
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x4025d1
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x4025d1
call fcn.00401640
mov esi, eax
jmp 0x4026be
push dword [ebp - 0x42c]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4025f4
call fcn.00401640
jmp 0x4026b1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x402612
call fcn.00401640
jmp 0x4026b1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x42c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x402633
mov esi, 0x8007000e
jmp 0x4026b3
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.0040c460
jmp 0x40265d
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x402674
mov esi, 0x8007000e
jmp 0x4026b3
push esi
push dword [ebp - 0x424]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x402694
call fcn.00401640
jmp 0x4026b1
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.004032b0
mov esi, eax
test edi, edi
je 0x4026be
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4026e0
lea ecx, [ebp - 0x424]
call fcn.0040cec0
jmp 0x4026e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a0e0
Capabilities:
Get common file path
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.0040b0c0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40a111
call fcn.0040aeb0
push str.MDSXfhrsZt5FOLpnGWESJbuDABFgvxzXMbs
push 0
push 0
call dword [0x430dfc]
mov dword [0x430dbc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a157
push dword [0x430dbc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x40a1df
push dword [0x430dbc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40a13e
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x28]
push eax
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x104
lea eax, [esp + 0x134]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x138]
push eax
call dword [0x430ddc]
push 0
lea eax, [esp + 0x2c]
push eax
call dword [0x430df8]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
call fcn.0040a2f0
mov ecx, edi
call fcn.0040a370
test eax, eax
je 0x40a13e
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x40a2b5
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, dword [sym.imp.USER32.dll_SetFocus]
lea esp, [esp]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x430e04]
cmp eax, ecx
jne 0x40a2d0
mov eax, dword [esp + 0x10]
cmp eax, 0x200
je 0x40a2a0
cmp eax, 0x204
je 0x40a2a0
cmp eax, 0x203
je 0x40a2a0
cmp eax, 0x100
jne 0x40a25f
push 0x11
call edi
test ax, ax
js 0x40a2a0
mov eax, dword [esp + 0x10]
cmp eax, 0x201
jne 0x40a275
cmp dword [esp + 0x14], 0
je 0x40a275
mov dword [esp + 0x14], 0
lea eax, [esp + 0xc]
push eax
push dword [0x430df4]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40a2a0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x40a220
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret 0x10
cmp eax, dword [0x430dcc]
jne 0x40a275
cmp dword [esp + 0x10], 0x100
jne 0x40a275
cmp dword [esp + 0x14], 9
jne 0x40a275
push ecx
call ebx
jmp 0x40a2a0
Function at 0x40abf0
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42232b
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00404630
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ac39
push 0x80004005
call fcn.00401460
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x104], esi
push 0x14
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
push dword [0x430dcc]
mov dword [ebp - 0x108], 0x64
call edi
push 0x64
lea eax, [ebp - 0x100]
push eax
push dword [0x430e04]
call edi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jge 0x40aca2
push dword [0x430e04]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40adc0
push 0
push dword [0x430df4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3000
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x100]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_UrlEscapeW]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [0x43107c]
lea eax, [ebp - 0x104]
push dword [0x431038]
push eax
call fcn.0040daa0
mov esi, dword [ebp - 0x104]
add esp, 0x14
mov edx, dword [0x43103c]
push esi
call fcn.00409d30
mov eax, dword [0x4310a0]
add esp, 4
cmp eax, 1
jge 0x40ad5e
push dword [0x431078]
inc eax
push 0x7d6
push dword [0x430df4]
mov dword [0x4310a0], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
push 0x427c58
push dword [0x430e04]
call edi
push 5
push dword [0x430df4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x430e04]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40adc0
mov eax, dword [0x430e1c]
mov dword [0x4310a0], 0
test eax, eax
je 0x40ad93
push eax
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40ad93
push edi
call dword [0x430de4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x430e20], 0
jne 0x40adc0
push 0x409f80
push dword [0x430e10]
mov dword [0x430e18], 0x40ae00
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x430e20], eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ade1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret