joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431c13
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
mov eax, 0x43fb84
call fcn.0043a940
sub esp, 0x428
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x22a]
mov word [ebp - 0x22c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x432]
mov word [ebp - 0x434], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x104
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x431d46
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push 0x4532f8
push dword [ebp - 0x10]
call edi
cmp eax, esi
jne 0x431da8
mov eax, dword [ebp - 0x20]
cmp eax, esi
jbe 0x431da8
cmp word [ebp + eax*2 - 0x22e], 0x5c
je 0x431cce
lea eax, [ebp - 0x22c]
push 0x4532f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 4], esi
call fcn.0040603c
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
call fcn.00431de8
pop ecx
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
sar eax, 1
push eax
push dword [ebp - 0x1c]
call fcn.0040acc0
lea eax, [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
push eax
lea eax, [ebp - 0x434]
push eax
push esi
push esi
push str.InstallLanguageId
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x431d46
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, esi
pop ecx
jne 0x431d4f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
call fcn.00431df9
cmp dword [ebp + 0xc], esi
pop ecx
je 0x431d9a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x431d9a
lea eax, [ebp + 0xf]
lea ecx, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 3
push dword [ebp + 0xc]
call fcn.0040603c
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.00431e2a
cmp dword [ebp - 0x1c], esi
pop ecx
je 0x431d9a
push dword [ebp - 0x1c]
call sub.MFC42u.DLL_operatordelete
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x431d9a
Function at 0x431eca
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x43fbfc
call fcn.0043a940
sub esp, 0x448
cmp dword [ebp + 8], 0
je 0x4320bb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4320bb
call fcn.00431db3
cmp byte [eax + 0x16], 0
jne 0x431f0d
cmp byte [eax + 0x15], 0
jne 0x431f0d
mov ecx, eax
call fcn.004321f7
and word [ebp - 0x24c], 0
push ebx
push esi
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x24a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 0x104
lea eax, [ebp - 0x24c]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x44]
push dword [ebp + 0xc]
push eax
call fcn.00431e3b
add esp, 0xc
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040212c
and word [ebp - 0x454], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x452]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xf]
mov esi, 0x455e48
push eax
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.0040603c
lea eax, [ebp + 0xf]
lea ecx, [ebp - 0x20]
push eax
push esi
mov byte [ebp - 4], 4
call fcn.0040603c
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [ebp + 8]
mov byte [ebp - 4], 6
call esi
mov edi, eax
test edi, edi
je 0x43209d
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x432095
push 0x208
lea eax, [ebp - 0x454]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x454]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov dword [ebp - 0x10], 0x4545b4
mov eax, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x43202c
add dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0x4545bc
jb 0x432007
jmp 0x432095
lea eax, [ebp - 0x24c]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x2c]
push dword [ebp - 0x14]
push eax
call fcn.00431e3b
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
cmp eax, ecx
je 0x43206f
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [ebp + 0xb]
push edx
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0040bdaa
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 8
sar eax, 1
push eax
push dword [ebp - 0x2c]
call fcn.0040acc0
push dword [ebp - 0x20]
mov byte [ebp - 4], 6
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 2
push edi
jmp 0x431fbd
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
call fcn.0040212c
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xa
call fcn.0040212c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4320c7
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x43fc3f
call fcn.0043a940
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call fcn.0042f86c
xor eax, eax
lea ecx, [esi + 0x18]
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], 1
mov byte [esi + 0x15], al
mov byte [esi + 0x16], al
call fcn.0040bd65
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.0040bd65
lea edi, [esi + 0x34]
mov byte [ebp - 4], 2
mov ecx, edi
mov dword [esi + 0x30], 0x1fffffff
call fcn.0040bd65
lea ebx, [esi + 0x44]
mov byte [ebp - 4], 3
mov ecx, ebx
mov dword [esi + 0x40], 8
call fcn.0040bd65
push str.English
mov ecx, edi
mov byte [ebp - 4], 4
mov dword [esi], 0x4448b4
call fcn.0040969d
push str.Tahoma
mov ecx, ebx
call fcn.0040969d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4321f7
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x43fcb0
call fcn.0043a940
sub esp, 0x21c
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
lea ebx, [esi + 0x18]
mov dword [esi + 0x10], edx
mov byte [esi + 0x14], 1
mov byte [esi + 0x15], 1
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x432232
mov eax, dword [esi + 0x24]
lea edi, [esi + 0x24]
cmp eax, dword [edi + 4]
jne 0x432321
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
mov word [ebp - 0x228], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040603c
push 0xffffffffffffffff
push 0x5c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00430a34
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x4322ac
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 3
call fcn.0040212c
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [ebx]
cmp ecx, dword [ebx + 4]
jne 0x4322c1
push eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov ecx, ebx
call fcn.004306f4
mov eax, dword [esi + 0x24]
lea edi, [esi + 0x24]
cmp eax, dword [edi + 4]
jne 0x432302
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
sub ecx, eax
dec ecx
inc eax
push ecx
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004306f4
push 0xffffffffffffffff
push 0x2e
mov ecx, edi
call fcn.00430a34
cmp eax, 0xffffffff
je 0x432302
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.0043074f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 4
sar eax, 1
push eax
push dword [ebp - 0x1c]
call fcn.0040acc0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x43229b
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x43229b
cmp dword [esi + 0x30], 0x1fffffff
jne 0x432351
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
mov ecx, esi
call fcn.0043239d
push dword [esi + 0x30]
mov ecx, esi
push edi
call fcn.004323f0
jmp 0x43229d
Function at 0x435fd6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp word [ebp + 8], 0x20
push ebx
push esi
push edi
mov edi, ecx
jb 0x4360d5
cmp word [ebp + 8], 0x7e
ja 0x4360d5
xor esi, esi
push esi
push esi
push 0xd5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.004364be
mov ebx, eax
lea eax, [edi + 0x40]
push eax
lea ecx, [edi + 0x4c]
mov dword [ebp - 4], ebx
call fcn.0042f3e6
push esi
mov ecx, edi
call fcn.0043635b
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
mov ecx, dword [edi + 0x24]
sub eax, dword [esi]
sar eax, 1
cmp ecx, eax
jbe 0x43604c
push str.Unknown_situation_occured____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4360d5
cmp dword [edi + 0x28], eax
jbe 0x436054
mov dword [edi + 0x28], eax
mov edx, dword [ebp + 0xc]
sub edx, 0
je 0x4360fc
dec edx
je 0x4360dc
dec edx
jne 0x4360a1
mov eax, dword [edi + 0x28]
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0043074f
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x24]
sub ecx, dword [esi]
sar ecx, 1
cmp ebx, ecx
jae 0x4360a1
test eax, eax
jbe 0x4360a1
lea ebx, [eax - 1]
push 1
push ebx
mov ecx, esi
call fcn.0043074f
mov ecx, dword [esi + 4]
mov eax, ebx
sub ecx, dword [esi]
sar ecx, 1
cmp dword [ebp - 4], ecx
jb 0x436082
push 1
mov ecx, edi
call fcn.0043635b
push 0xfffffffffffffff4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, dword [edi + 4]
movzx eax, ax
or eax, 0xf470000
push edi
push eax
push 0x111
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [edi + 0x28]
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0043074f
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 1
cmp ebx, eax
jae 0x4360a1
push 1
push dword [edi + 0x24]
jmp 0x4360e3
cmp dword [ebp - 8], eax
jne 0x436106
cmp ecx, dword [edi + 0x28]
je 0x4360d5
mov eax, dword [edi + 0x28]
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0043074f
mov ebx, dword [edi + 0x24]
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 1
cmp dword [ebp - 4], eax
jbe 0x4360a1
push dword [ebp + 8]
mov eax, ebx
mov ecx, esi
inc ebx
push 1
push eax
call fcn.00436738
jmp 0x436117

Function at 0x436315
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x436355
cmp eax, 3
ja 0x436355
cmp dword [ecx + eax*4 + 0x54], 0
lea esi, [ecx + eax*4 + 0x54]
je 0x436333
push 1
pop eax
jmp 0x436357
push 0
call fcn.004366d1
push eax
push 0x4361b8
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x436357
xor eax, eax
pop esi
ret 4
Function at 0x43884d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x440260
call fcn.0043a940
sub esp, 0x34
push ebx
push esi
push edi
lea eax, [ebp - 0xd]
xor esi, esi
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.00412633
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + ecx*2]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004128c7
push esi
lea eax, [ebp - 0x40]
push esi
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
call fcn.004393e4
add esp, 0x10
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
sub eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
shr eax, 3
lea edi, [eax*8 + 8]
lea eax, [edi + 1]
push eax
call fcn.00401f78
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 5
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call sub.MSVCRT.dll_memcpy
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
sub esi, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x34]
push edi
call fcn.00401f78
cmp dword [ebp + 0x14], 0
mov byte [ebp - 4], 6
je 0x43897a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
sub eax, dword [ebp - 0x1c]
push edi
push eax
add eax, ecx
push 8
push eax
call fcn.00435c70
test al, al
jne 0x438942
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0040212c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040212c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0040212c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040212c
jmp 0x4389c3
xor esi, esi
mov ebx, 0x100
lea eax, [ebx + esi]
cmp eax, edi
jle 0x438954
mov ebx, edi
sub ebx, esi
mov eax, dword [ebp - 0x28]
push str.EnterSafe_2007Feitian__0
add eax, esi
push ebx
push eax
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
call fcn.00435a04
add esi, ebx
cmp ebx, 0x100
jge 0x438949
mov ebx, dword [ebp - 0x34]
mov esi, edi
push 0x454730
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x4389c7
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0040212c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040212c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0040212c
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 8
call fcn.0040212c
xor eax, eax
jmp 0x438a0f
push edi
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0040212c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040212c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0040212c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040212c
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x438a1e
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4402b4
call fcn.0043a940
mov eax, 0x5028
call fcn.0043a9e0
push ebx
push esi
push edi
push 0x452408
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x438b0b
and byte [ebp - 0x5034], 0
mov ecx, 0x13ff
xor eax, eax
lea edi, [ebp - 0x5033]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
push 0x5000
lea eax, [ebp - 0x5034]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea eax, [ebx + 1]
lea ecx, [ebp - 0x28]
lea esi, [ebp - 0x5034]
push eax
call fcn.00401f78
xor edi, edi
cmp dword [ebp + 0x14], edi
mov dword [ebp - 4], edi
je 0x438b18
cmp ebx, edi
je 0x438aff
mov eax, ebx
push 8
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x438aff
mov esi, 0x100
lea eax, [edi + esi]
cmp eax, ebx
jle 0x438ac5
mov esi, ebx
sub esi, edi
push str.EnterSafe_2007Feitian__0
lea eax, [ebp + edi - 0x5034]
push esi
push eax
mov eax, dword [ebp - 0x28]
add eax, edi
push eax
call fcn.00435b3a
add edi, esi
cmp esi, 0x100
jge 0x438aba
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push 8
push dword [ebp - 0x28]
call fcn.00435cca
test al, al
jne 0x438b12
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040212c
xor eax, eax
jmp 0x438bc8
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp + 0x17]
lea ecx, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.00412633
mov al, byte [ebp + 0xb]
add ebx, esi
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00404a72
push 0
lea eax, [ebp - 0x34]
push 0
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.00438bd7
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
sub eax, dword [ebp - 0x18]
sar eax, 1
cmp dword [esi], eax
jae 0x438b7d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040212c
mov byte [ebp - 4], 7
xor esi, esi
jmp 0x438bb2
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
sar eax, 1
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov byte [ebp - 4], 8
sar eax, 1
push eax
push dword [ebp - 0x18]
call fcn.0040acc0
push 1
mov byte [ebp - 4], 9
pop esi
lea ecx, [ebp - 0x34]
call fcn.0040212c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040212c
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4398e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test ebx, ebx
jle 0x439941
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
sub eax, edx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 8], eax
inc esi
mov ebx, 0xff
and esi, ebx
movzx eax, byte [ecx + esi + 8]
add edi, eax
and edi, ebx
movzx ebx, byte [ecx + edi + 8]
mov byte [ecx + esi + 8], bl
mov byte [ecx + edi + 8], al
add al, bl
mov ebx, dword [ebp + 8]
movzx eax, al
mov al, byte [eax + ecx + 8]
xor al, byte [ebx + edx]
mov byte [edx], al
inc edx
dec dword [ebp + 0x14]
jne 0x43990c
mov dword [ecx + 4], edi
mov dword [ecx], esi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x439c62
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp word [ebp + 8], 0x20
push ebx
push esi
push edi
mov edi, ecx
jb 0x439dc8
cmp word [ebp + 8], 0x7e
ja 0x439dc8
xor esi, esi
push esi
push esi
push 0xd5
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0043a0d8
mov ebx, eax
push esi
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00439f75
mov eax, dword [edi + 0x48]
lea esi, [edi + 0x44]
mov ecx, dword [edi + 0x5c]
sub eax, dword [esi]
sar eax, 1
cmp ecx, eax
jbe 0x439ccc
push str.Unknown_situation_occured____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x439dc8
cmp dword [edi + 0x60], eax
jbe 0x439cd4
mov dword [edi + 0x60], eax
mov edx, dword [ebp + 0xc]
sub edx, 0
je 0x439d4e
dec edx
je 0x439d2e
dec edx
jne 0x439d1d
mov eax, dword [edi + 0x60]
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0043074f
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x5c]
sub ecx, dword [esi]
sar ecx, 1
cmp ebx, ecx
jae 0x439d1d
test eax, eax
jbe 0x439d1d
lea ebx, [eax - 1]
push 1
push ebx
mov ecx, esi
call fcn.0043074f
mov ecx, dword [esi + 4]
mov eax, ebx
sub ecx, dword [esi]
sar ecx, 1
cmp dword [ebp - 4], ecx
jb 0x439cfe
push 1
mov ecx, edi
call fcn.00439f75
test edi, edi
jne 0x439d87
xor eax, eax
jmp 0x439d8a
mov eax, dword [edi + 0x60]
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0043074f
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 1
cmp ebx, eax
jae 0x439d1d
push 1
push dword [edi + 0x5c]
jmp 0x439d35
cmp dword [ebp - 8], eax
jne 0x439d58
cmp ecx, dword [edi + 0x60]
je 0x439dc8
mov eax, dword [edi + 0x60]
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0043074f
mov ebx, dword [edi + 0x5c]
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 1
cmp dword [ebp - 4], eax
jbe 0x439d1d
push dword [ebp + 8]
mov eax, ebx
mov ecx, esi
inc ebx
push 1
push eax
call fcn.00436738
jmp 0x439d69
mov eax, dword [edi + 0x20]
push 0xfffffffffffffff4
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test edi, edi
mov ebx, eax
jne 0x439d9d
xor esi, esi
jmp 0x439da0
mov esi, dword [edi + 0x20]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
movzx ecx, bx
or ecx, 0xf470000
push esi
push ecx
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x439f2c
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x439f6f
cmp eax, 3
ja 0x439f6f
cmp dword [ecx + eax*4 + 0x7c], 0
lea esi, [ecx + eax*4 + 0x7c]
je 0x439f4a
push 1
pop eax
jmp 0x439f71
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0
push eax
push 0x439dcf
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x439f71
xor eax, eax
pop esi
ret 4
Function at 0x4775c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c000]
push edi
or ebp, 0xffffffff
jmp 0x4775e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4775e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4775d8
mov eax, 1
add ebx, ebx
jne 0x4775fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47760c
jne 0x47762b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47762b
dec eax
add ebx, ebx
jne 0x477618
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4775f0
add ebx, ebx
jne 0x477627
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47767d
xor ecx, ecx
sub eax, 3
jb 0x477643
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4776b2
sar eax, 1
mov ebp, eax
jmp 0x47764e
add ebx, ebx
jne 0x47764e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47761c
inc ecx
add ebx, ebx
jne 0x47765c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47761c
add ebx, ebx
jne 0x477669
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47765e
jne 0x47767a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47765e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47769c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47768e
jmp 0x4775de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47769c
add edi, ecx
jmp 0x4775de
pop esi
mov edi, esi
mov ecx, 0x2aee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4776ba
cmp byte [edi], 0x26
jne 0x4776ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4776bf
lea edi, [esi + 0x74000]
mov eax, dword [edi]
or eax, eax
je 0x477737
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x79fbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7a0d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4776ec
mov ecx, edi
jns 0x47771b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7a0d8]
or eax, eax
je 0x477731
mov dword [ebx], eax
add ebx, 4
jmp 0x477709
call dword [esi + 0x7a0e0]
mov ebp, dword [esi + 0x7a0dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47776b
sub esp, 0xffffff80
jmp 0x4422e4