joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fcf
Capabilities:
Extract resource via kernel32 functions
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
mov ecx, 0x47d890
mov dword [ebp - 0x7c], eax
call fcn.00425323
test al, al
je 0x4050ae
push ebx
push esi
push str.hotplug.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4050ac
push 5
push 0x14a
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4050a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4050a5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
push 0x103
mov edi, eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00443310
add esp, 0xc
push 0x104
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x80]
pop edi
cmp eax, ebx
je 0x4050a5
cmp eax, dword [ebp + 0x9c]
jg 0x4050a5
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x9c]
push dword [ebp - 0x7c]
call fcn.004470cd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
xor eax, eax
call fcn.004432f5
add ebp, 0x90
leave
ret

Function at 0x4050c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x77]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x78], bl
call fcn.00443310
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.SoftwareEnterSafeInterPass_DLBANK
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40514d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405144
xor al, al
jmp 0x405189
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [ebp + 0x9c]
lea eax, [ebp - 0x78]
push eax
push edi
push esi
call fcn.004470cd
push esi
call fcn.00442f40
add esp, 0x10
cmp eax, 8
jbe 0x405186
push 6
lea eax, [esi + 3]
push eax
add edi, 0xfffffffe
lea eax, [esi + 2]
push edi
push eax
call fcn.00442e5a
add esp, 0x10
mov byte [esi + 8], bl
mov al, 1
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004432f5
add ebp, 0x90
leave
ret
Function at 0x4053f9
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor edi, edi
call fcn.00443310
and dword [ebp - 0x7c], edi
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x405469
lea eax, [ebp - 0x7c]
push eax
push 1
lea eax, [ebp - 0x78]
push eax
push edi
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x405469
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0xc], 2
jne 0x405469
inc edi
cmp dword [ebp - 0x7c], 0
je 0x405477
push dword [ebp - 0x7c]
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp + 0x190]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004432f5
add ebp, 0x194
leave
ret

Function at 0x40548f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov ecx, 0x47d890
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.0042534a
test al, al
je 0x4054fd
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4054fd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4054f4
cmp dword [ebp - 0x10], esi
setne al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x406011
Capabilities:
Create thread

Disassembly:
push 0x88
mov eax, 0x45d550
call fcn.00443770
mov dword [ebp - 0x20], ecx
cmp byte [ebp + 8], 0
je 0x406039
cmp byte [ebp + 8], 1
je 0x406039
xor eax, eax
call fcn.00443848
ret 0x14
call fcn.004326f2
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [eax + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
and dword [ebp - 0x1c], 0
push dword [ebp - 0x20]
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x94]
stosd dword es:[edi], eax
call fcn.0041d12b
mov al, byte [ebp + 8]
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x94]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov dword [0x47cc88], esi
call ebx
cmp byte [ebp + 8], 0
mov dword [0x47cc8c], eax
mov eax, dword [ebp + 0xc]
jne 0x4060b5
mov dword [0x47cc64], eax
mov eax, dword [ebp + 0x10]
mov dword [0x47cc60], eax
mov eax, dword [ebp + 0x14]
mov dword [0x47cc68], eax
mov eax, dword [ebp + 0x18]
mov dword [0x47cc6c], eax
jmp 0x4060d2
mov dword [0x47d134], eax
mov eax, dword [ebp + 0x10]
mov dword [0x47d130], eax
mov eax, dword [ebp + 0x14]
mov dword [0x47d138], eax
mov eax, dword [ebp + 0x18]
mov dword [0x47d13c], eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x405efd
push edi
push edi
mov dword [ebp - 0x10], edi
call fcn.0044773a
add esp, 0x18
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x406114
push 2
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0042e18f
mov eax, esi
jmp 0x406031
lea ecx, [ebp - 0x94]
call fcn.0042e8bd
cmp byte [ebp + 8], 0
jne 0x40612d
mov esi, dword [0x47cc5c]
jmp 0x4060fe
mov esi, dword [0x47d12c]
jmp 0x4060fe

Function at 0x4065b9
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x6f6], 0
je 0x4065e0
call fcn.00405b85
push 0
push dword [esi + 0x248]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
pop esi
jmp fcn.0042e2a1
pop esi
ret
Function at 0x4077ca
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x52b8]
mov eax, 0x5338
call fcn.00445d00
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x52b4], eax
mov eax, dword [ebp + 0x52c0]
push ebx
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x52c4]
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x52cc]
mov edi, 0x103
xor ebx, ebx
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x51b1]
push ebx
push eax
mov byte [ebp + 0x51b0], bl
call fcn.00443310
lea esi, [edi + 1]
add esp, 0xc
cmp dword [ebp + 0x52c8], esi
jle 0x40784a
xor eax, eax
mov ecx, dword [ebp + 0x52b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004432f5
add ebp, 0x52b8
leave
ret
push dword [ebp - 0x78]
lea eax, [ebp + 0x51b0]
push esi
push eax
call fcn.004470cd
add esp, 0xc
cmp byte [ebp + 0x51b0], bl
je 0x407877
lea eax, [ebp + 0x51b0]
cmp byte [eax], 0x7c
jne 0x407872
mov byte [eax], bl
inc eax
cmp byte [eax], bl
jne 0x40786b
lea eax, [ebp + 0x51b0]
push eax
push dword [ebp - 0x80]
call fcn.00446ea0
pop ecx
pop ecx
test eax, eax
je 0x407830
push edi
lea eax, [ebp + 0x50ad]
push ebx
push eax
mov byte [ebp + 0x50ac], bl
call fcn.00443310
add esp, 0xc
push esi
lea eax, [ebp + 0x50ac]
push eax
push 0x3e9
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x407830
lea eax, [ebp + 0x50ac]
push 0x28
push eax
call fcn.00446de0
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x407830
cmp byte [edi + 2], 0x3a
jne 0x4078fa
cmp byte [edi + 3], 0x29
jne 0x4078fa
mov al, byte [edi + 1]
cmp al, 0x61
jl 0x4078f2
cmp al, 0x7a
jle 0x40790b
cmp al, 0x41
jl 0x4078fa
cmp al, 0x5a
jle 0x40790b
push 0x28
inc edi
push edi
call fcn.00446de0
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x4078db
cmp edi, ebx
je 0x407830
push 0x103
lea eax, [ebp + 0x4fa9]
push ebx
push eax
mov byte [ebp + 0x4fa8], bl
call fcn.00443310
movsx eax, byte [edi + 1]
push eax
push str._c:_autorun.inf
lea eax, [ebp + 0x4fa8]
push esi
push eax
call fcn.004432b6
push 0x463404
lea eax, [ebp + 0x4fa8]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], ebx
call fcn.00445ca0
add esp, 0x28
test eax, eax
jne 0x407830
cmp dword [ebp - 0x78], ebx
je 0x407830
push 0x4fff
lea eax, [ebp - 0x57]
push ebx
push eax
mov byte [ebp - 0x58], bl
call fcn.00443310
push dword [ebp - 0x78]
lea eax, [ebp - 0x58]
push 0x5000
push 1
push eax
call fcn.00445ba8
push dword [ebp - 0x78]
mov esi, eax
call fcn.0044588c
add esp, 0x20
cmp esi, ebx
jle 0x407830
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407618
push ebx
push str.OEMINFOINTERPASS_ABC
lea ecx, [ebp - 0x74]
call fcn.004066a7
xor esi, esi
cmp eax, 0xffffffff
jne 0x4079dc
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.004014f6
mov eax, esi
jmp 0x407832
inc esi
jmp 0x4079ca
Function at 0x410aa6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x14
mov eax, 0x45e1d2
call fcn.00443770
mov esi, ecx
xor ebx, ebx
push str.SOFTWAREEnterSafeInterPass_DLBANK
lea ecx, [ebp]
mov dword [ebp - 0x10], ebx
call fcn.00403364
push 0x100
lea eax, [ebp + 0x1d]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 4
mov byte [ebp + 0x1c], bl
call fcn.00443310
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 0x10
mov dword [ebp - 0x1c], 0x101
jae 0x410b1a
lea eax, [ebp + 4]
lea ecx, [ebp - 0x10]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410bad
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push ebx
push str.Down_Address
push dword [ebp - 0x10]
call edi
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esi + 0x80]
call fcn.0040180f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.web_option
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x14], ebx
mov ecx, 0x47cac8
setne al
mov dword [esi + 0x78], eax
call fcn.00404130
push ebx
mov ecx, esi
mov dword [esi + 0x88], eax
call fcn.00428dc9
push ebx
push 1
lea ecx, [ebp]
call fcn.004014f6
xor eax, eax
inc eax
jmp 0x410bba
push ebx
push 1
lea ecx, [ebp]
call fcn.004014f6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.004432f5
add ebp, 0x124
leave
ret
Function at 0x410bdd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 1
mov esi, ecx
call fcn.00428dc9
push dword [esi + 0x88]
mov ecx, 0x47cac8
call fcn.0040447c
xor ebx, ebx
push str.SOFTWAREEnterSafeInterPass_DLBANK
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call fcn.00403364
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x410c26
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push ecx
push 2
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410c93
mov eax, dword [esi + 0x80]
push edi
push dword [eax - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push 1
push ebx
push str.Down_Address
push dword [ebp - 0x24]
call edi
xor eax, eax
cmp dword [esi + 0x78], ebx
push 4
setne al
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 4
push ebx
push str.web_option
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004014f6
xor eax, eax
inc eax
pop edi
jmp 0x410ca0
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004014f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004432f5
leave
ret

Function at 0x4163ca
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x47d7b0], 0
je 0x4163d7
xor eax, eax
inc eax
ret
call fcn.004326f2
mov eax, dword [eax + 4]
push 0
push dword [eax + 0x44]
push 0x4161c6
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x47d7b0], eax
mov eax, ecx
ret

Function at 0x417484
Capabilities:
Log keystrokes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp edi, esi
je 0x4174e5
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebp, eax
push ebp
push ebx
call esi
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push ebp
push ebx
call esi
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x419517
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
push dword [ebp + 0x1fc]
call fcn.00419494
test eax, eax
je 0x4196b1
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00443310
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.00443310
mov esi, 0x103
push esi
lea eax, [ebp + 0xed]
push ebx
push eax
mov byte [ebp + 0xec], bl
call fcn.00443310
push esi
lea eax, [ebp - 0x17]
push ebx
push eax
mov byte [ebp - 0x18], bl
call fcn.00443310
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x30
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push str.SOFTWAREEnterSafeInterPass_DLBANK
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], 4
call esi
test eax, eax
jne 0x4195f9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push str.web_option
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4195eb
cmp dword [ebp - 0x20], ebx
jne 0x4195f9
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4196ae
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push edi
call esi
test eax, eax
jne 0x41964c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push str.ProgramFilesDir
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41964c
lea eax, [ebp - 0x18]
push eax
mov esi, 0x104
lea eax, [ebp + 0xec]
push esi
push eax
call fcn.004470cd
add esp, 0xc
jmp 0x419651
mov esi, 0x104
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xec]
push eax
call fcn.00442f40
pop ecx
test eax, eax
je 0x4196ae
push str.Internet_ExplorerIEXPLORE.EXE
lea eax, [ebp + 0xec]
push esi
push eax
call fcn.0044578b
push str.www.bankofdl.com
lea eax, [ebp + 0xec]
push esi
push eax
call fcn.0044578b
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0xec]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
call fcn.004432f5
add ebp, 0x1f4
leave
ret 4

Function at 0x41b6a5
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x47d7c0], 0
je 0x41b6b2
xor eax, eax
inc eax
ret
call fcn.004326f2
mov eax, dword [eax + 4]
push 0
push dword [eax + 0x44]
push 0x41b55c
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x47d7c0], eax
mov eax, ecx
ret
Function at 0x41e86a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x41ea74
cmp dword [ebp + 0xc], ebx
je 0x41ea74
push edi
push 0xa
pop ecx
xor eax, eax
mov dword [ebp - 0x48], ebx
lea edi, [ebp - 0x44]
push ebx
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0x2c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00443310
add esp, 0xc
push ebx
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x48], 0x28
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jle 0x41ea73
cmp dword [ebp - 0x34], ebx
ja 0x41e8f5
movzx eax, word [ebp - 0x3a]
imul eax, dword [ebp - 0x44]
add eax, 0x1f
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
movzx eax, word [ebp - 0x3a]
dec eax
mov dword [ebp - 0x38], ebx
je 0x41e918
sub eax, 3
je 0x41e914
sub eax, 4
je 0x41e90d
xor edi, edi
jmp 0x41e91b
mov edi, 0x100
jmp 0x41e91b
push 0x10
jmp 0x41e91a
push 2
pop edi
lea eax, [edi*4 + 0x2c]
push esi
push eax
call fcn.00446f75
mov esi, eax
lea eax, [edi*4 + 0x2c]
push eax
push ebx
push esi
call fcn.00443310
push 0x28
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.00443b90
push dword [ebp - 0x34]
call fcn.00446f75
add esp, 0x20
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x41ea47
push ebx
push esi
push eax
push dword [esi + 8]
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0x465560
push dword [ebp + 0xc]
call fcn.00445c89
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x41e99d
push dword [ebp - 4]
call fcn.0044703f
push esi
mov dword [ebp - 4], ebx
call fcn.0044703f
pop ecx
pop ecx
jmp 0x41ea47
xor eax, eax
mov word [ebp - 0x16], ax
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x34]
add eax, 0x36
cmp edi, ebx
mov dword [ebp - 0x1a], eax
jle 0x41e9ba
lea eax, [eax + edi*4]
mov dword [ebp - 0x1a], eax
cmp edi, ebx
mov eax, 0x4d42
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x12], 0x36
jle 0x41e9d8
lea eax, [edi*4 + 0x36]
mov dword [ebp - 0x12], eax
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
push 1
push 0xe
push eax
call fcn.00445e8d
push dword [ebp - 8]
lea eax, [ebp - 0x48]
push 1
push 0x28
push eax
call fcn.00445e8d
add esp, 0x20
cmp edi, ebx
jle 0x41ea23
shl edi, 2
push edi
lea eax, [esi + 0x2c]
push 0x80
push eax
call fcn.00443310
push dword [ebp - 8]
lea eax, [esi + 0x2c]
push 1
push edi
push eax
call fcn.00445e8d
add esp, 0x1c
push dword [ebp - 8]
push 1
push dword [ebp - 0x34]
push dword [ebp - 4]
call fcn.00445e8d
push dword [ebp - 4]
call fcn.0044703f
push esi
mov dword [ebp - 4], ebx
call fcn.0044703f
add esp, 0x18
pop esi
cmp dword [ebp - 0xc], ebx
je 0x41ea57
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 4], ebx
je 0x41ea65
push dword [ebp - 4]
call fcn.0044703f
pop ecx
cmp dword [ebp - 8], ebx
je 0x41ea73
push dword [ebp - 8]
call fcn.0044588c
pop ecx
pop edi
pop ebx
leave
ret 8
Function at 0x41ee87
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x210]
xor ebp, ebp
mov ebx, 0x47d890
cmp ecx, ebp
je 0x41ef33
mov eax, dword [esi + 0x20c]
cmp eax, ecx
je 0x41ef33
push edi
push 2
push 0x100
push eax
mov ecx, esi
call fcn.0041ea79
push 2
mov ecx, ebx
call fcn.0042533d
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xc0000048
add eax, 0x40000000
push eax
push dword [esi + 0x210]
mov ecx, esi
call fcn.0041ea79
push dword [esi + 0x20c]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push ebp
lea eax, [esi + 0x105]
push eax
push ebp
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push dword [esi + 0x20c]
call dword [sym.imp.USER32.dll_SwitchDesktop]
push dword [esi + 0x210]
mov edi, dword [sym.imp.USER32.dll_CloseDesktop]
call edi
push dword [esi + 0x20c]
call edi
mov dword [esi + 0x210], ebp
mov dword [esi + 0x20c], ebp
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
call fcn.0042533d
test al, al
je 0x41ef53
push ebp
push ebp
push ebp
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop esi
pop ebp
pop ebx
ret

Function at 0x4216bf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ecx
jb 0x4216d5
mov eax, dword [eax + 4]
jmp 0x4216d8
add eax, 4
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x42174e
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [esi + 2]
push edi
call fcn.00425fde
push edi
mov ebx, eax
push 0
push ebx
call fcn.00443310
add esp, 0x10
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.00421514
push ebx
mov byte [ebp + 0xb], al
call fcn.00425fd3
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop ebx
jmp 0x421750
xor al, al
pop esi
leave
ret 4
Function at 0x424a2f
Capabilities:
Identify system language via api

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 8
mov eax, 0x45f825
call fcn.00443770
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x28], 1
mov byte [esi + 0x29], 1
cmp dword [esi + 0x40], ebx
je 0x424a70
cmp dword [esi + 0x5c], ebx
jne 0x424b53
push 0x103
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call fcn.00443310
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00403364
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], 0x5c
call fcn.0041f1f7
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x424af0
push ebx
push 1
lea ecx, [ebp]
call fcn.004014f6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.004432f5
add ebp, 0x124
leave
ret
cmp dword [esi + 0x40], ebx
jne 0x424b03
push eax
push ebx
lea eax, [ebp]
push eax
lea ecx, [esi + 0x2c]
call fcn.00402007
cmp dword [esi + 0x5c], ebx
jne 0x424b44
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp]
lea edi, [esi + 0x48]
push eax
mov ecx, edi
call fcn.00402007
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
mov byte [ebp - 0x10], 0x2e
call fcn.0041f1f7
cmp eax, 0xffffffff
je 0x424b44
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00401cf2
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.004014f6
cmp dword [esi + 0x40], ebx
je 0x424acb
cmp dword [esi + 0x5c], ebx
je 0x424acb
cmp dword [esi + 0x64], 0x1fffffff
jne 0x424b7a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [esi + 0x64], eax
push dword [esi + 0x64]
lea eax, [esi + 0x48]
push eax
mov ecx, esi
call fcn.00424890
jmp 0x424acd