joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402370
Capabilities:
Delete file
Execute command

Disassembly:
sub esp, 0x744
push ebx
push ebp
push esi
mov esi, dword [esp + 0x754]
xor ebx, ebx
cmp esi, 1
push edi
mov dword [esp + 0x10], ebx
jne 0x40239c
call fcn.00402010
mov dword [esp + 0x10], eax
call fcn.004017f0
jmp 0x4023a6
call fcn.00401d90
call fcn.00401390
lea eax, [esp + 0x454]
push esi
push eax
mov byte [esp + 0x55c], bl
mov byte [esp + 0x45c], bl
mov byte [esp + 0x21c], bl
call fcn.004010a0
lea ecx, [esp + 0x55c]
push ecx
call fcn.00401030
lea edx, [esp + 0x220]
push edx
call fcn.00401250
lea edi, [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
not ecx
dec ecx
je 0x402469
cmp esi, 2
jne 0x402426
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.MSVCRT.dll_system]
add esp, 4
jmp 0x402553
push 2
lea ecx, [esp + 0x658]
push 0x20
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x220]
push edx
push eax
call fcn.004025b0
mov esi, dword [sym.imp.MSVCRT.dll_system]
lea ecx, [esp + 0x128]
push ecx
call esi
lea edx, [esp + 0x66c]
push edx
call esi
add esp, 0x1c
jmp 0x402553
lea eax, [esp + 0x114]
push esi
push eax
call fcn.004011e0
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x1c]
push ecx
push str._seTurbo.lnk
push edx
call edi
add esp, 0x14
lea eax, [esp + 0x314]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4024b0
push eax
call ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x114]
lea ecx, [esp + 0x14]
push eax
push str._seTurboWare.lnk
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x314]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4024eb
push esi
call ebp
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x114]
lea eax, [esp + 0x14]
push edx
push str._sTouchTray.lnk
push eax
call edi
add esp, 0xc
cmp esi, 0xffffffff
je 0x402515
push esi
call ebp
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x114]
lea eax, [esp + 0x14]
push edx
push str._seTouchMonitor.lnk
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x314]
lea edx, [esp + 0x14]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x40254e
push eax
call ebp
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00401950
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x454]
lea edx, [esp + 0x14]
push ecx
push str._seTouchMonitor.lnk
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x314]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x402597
push eax
call ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x744
ret
Function at 0x4026c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x404228
push 1
push 0
push 0x404218
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4027cf
mov eax, dword [esp]
lea edx, [esp + 4]
push esi
push edx
mov ecx, dword [eax]
push 0x404238
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4027c2
mov ecx, dword [esp + 0x21c]
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov esi, eax
test esi, esi
jl 0x4027b7
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x21c]
push 0
push edi
mov edx, dword [eax]
push eax
call dword [edx + 0x4c]
mov esi, eax
test esi, esi
jl 0x4027b7
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x224]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jl 0x402787
mov eax, dword [esp + 8]
push 0
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esp + 8]
push str.Second
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov esi, eax
test esi, esi
jl 0x4027aa
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push 4
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret
Function at 0x4e7920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9b000]
push edi
jmp 0x4e793a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e7941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e7930
mov eax, 1
add ebx, ebx
jne 0x4e7953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e7964
jne 0x4e7983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e7983
dec eax
add ebx, ebx
jne 0x4e7970
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e7948
add ebx, ebx
jne 0x4e797f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e79d5
xor ecx, ecx
sub eax, 3
jb 0x4e799b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e7a0a
sar eax, 1
mov ebp, eax
jmp 0x4e79a6
add ebx, ebx
jne 0x4e79a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e7974
inc ecx
add ebx, ebx
jne 0x4e79b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e7974
add ebx, ebx
jne 0x4e79c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e79b6
jne 0x4e79d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e79b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e79f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e79e6
jmp 0x4e7936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e79f4
add edi, ecx
jmp 0x4e7936
pop esi
mov edi, esi
mov ecx, 0x2e92
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e7a12
cmp byte [edi], 0x1e
jne 0x4e7a12
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 0x4e7a17
lea edi, [esi + 0xe4000]
mov eax, dword [edi]
or eax, eax
je 0x4e7a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfec2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfed58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e7a44
mov ecx, edi
jns 0x4e7a73
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 + 0xfed5c]
or eax, eax
je 0x4e7a89
mov dword [ebx], eax
add ebx, 4
jmp 0x4e7a61
call dword [esi + 0xfed6c]
mov ebp, dword [esi + 0xfed60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x4e7ac3
sub esp, 0xffffff80
jmp 0x4613c2
Function at 0x4175ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
imul ebp, ecx, 0x3a422eb
jbe 0x417535
cmp eax, 0x48176441
cmp edi, 0x8382e15
cmp byte cs:[eax], cl
bswap edx
jne 0x417539
test ecx, ecx
xor dl, ah
xchg ah, bl
cmp ecx, esi
not bh
push 0x102b6
test dh, cl
dec eax
call 0x4175ac
not ch
jbe 0x417555
mov ch, 0xb7
test esi, edx
push 0xb91
mov ebx, 0xb4dcaa24
pop eax
sub eax, 0xb91
mov ecx, ecx
mov ebp, 0x82bb06a0
inc esi
cmp eax, 0x8f11
jbe 0x41757d
xor ebx, eax
add ebx, edi
dec esi
xchg ch, ch
lea edi, [0x25]
mov esi, 0xc27847e2
imul edi, edi, 0xc
xadd eax, edi
movsx ebp, ch
sub eax, 0x1bb
ja 0x41759d
test bh, 0x7d
mov ch, 0xe3
mov ecx, 0xe4c502ea
bswap edx
cmp eax, 0xc3
jb 0x417567
js 0x4175b4
lea ecx, [0x8cede66]
lea ecx, [0x64b1767b]
add edx, ebx
movsx esi, cx
test ebx, 0xf0e75bce
test esi, ebp
jae 0x4175cf
lea edx, [0xfff8fc6]
lea ecx, [2]
adc dl, bl
imul ecx, ecx, 0x2e3
dec ebx
bswap edx
sub ecx, 0xcfe
dec al
add ecx, 0xcfd
mov bh, 0xfd
and ebx, edx
jmp 0x4175f7
cmp ecx, 0xde
jae 0x4175dd
pop ebx
movd mm2, ebx
movzx ecx, si
mov bl, ch
dec eax
sub esi, esi
movzx ebp, ax
movd edx, mm2
imul eax, edi
dec edi
mov cl, 4
add edx, 0xb2bf7
add edx, 0xbac
imul eax, esi
push 0xa73c04
push 0xd14dc0
neg ebx
sub al, 0x46
jbe 0x417638
neg ebx
imul ebx, edx, 0x68b05ac6
cmp ecx, 0x5ad2
push edi
inc ecx
mov ah, 0x89
push edx
mov ecx, 0xa36e1ef9
push edx
not ecx
imul esi, ebx
xchg ebx, esi
lea ecx, [0x73785]
sub ecx, 0x6e265
inc esi
xor ebp, ecx
test eax, esi
movzx esi, ch
movzx ebx, ax
lea edi, [0x1871]
inc ch
sub edi, 0xb15
add al, 0x70
not bl
sub edi, 0x574
and eax, 0xc1c8a1c9
add edi, 0x573
sbb ah, dl
imul ecx, esi, 0x1b7b48e4
cmp edi, 0xf7
jae 0x41767c
ret

Function at 0x41b168
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0dd0]
jne 0x41b172
repz ret
jmp fcn.00426126
Function at 0x4242bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a0dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00418a2c
and dword [ebp - 0x14], 0
cmp dword [0x4a71bc], 0
mov dword [ebp - 0x18], eax
jne 0x42436f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x424417
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4926c0
push ebx
call edi
test eax, eax
je 0x424417
mov esi, dword [section..data]
push eax
call esi
push 0x4926b0
push ebx
mov dword [0x4a71bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a71c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a71c4], eax
call edi
push eax
call esi
mov dword [0x4a71cc], eax
test eax, eax
je 0x42436f
push 0x492668
push ebx
call edi
push eax
call esi
mov dword [0x4a71c8], eax
mov eax, dword [0x4a71c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x4a0004]
cmp eax, ecx
je 0x4243c8
cmp dword [0x4a71cc], ecx
je 0x4243c8
push eax
call esi
push dword [0x4a71cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4243c8
test ebx, ebx
je 0x4243c8
call edi
test eax, eax
je 0x4243bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4243bf
test byte [ebp - 8], 1
jne 0x4243c8
or dword [ebp + 0x10], 0x200000
jmp 0x4243fb
mov eax, dword [0x4a71c0]
cmp eax, dword [ebp - 0x18]
je 0x4243fb
push eax
call esi
test eax, eax
je 0x4243fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4243fb
mov eax, dword [0x4a71c4]
cmp eax, dword [ebp - 0x18]
je 0x4243fb
push eax
call esi
test eax, eax
je 0x4243fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a71bc]
call esi
test eax, eax
je 0x424417
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x424419
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b168
leave
ret
Function at 0x445d52
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x445e56
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, 0x20019
mov dword [ebp - 0xc], eax
jmp 0x445da5
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
push 0
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x445e68
mov eax, dword [ebp - 8]
push edi
push eax
call fcn.00445d52
mov ecx, dword [ebp - 8]
add esp, 8
push ecx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x445e68
lea edx, [ebp - 0x18]
xor ebx, ebx
push edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00434f4f
test al, al
je 0x445e0f
push ebx
push edi
lea eax, [ebp - 0x220]
push eax
push esi
lea ecx, [ebp - 0x18]
push ecx
call fcn.00445d2f
call eax
jmp 0x445e1d
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x445e5f
lea eax, [ebp - 0x18]
push eax
call fcn.004352a6
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x445da2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
call fcn.004352a6
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446344
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, 1
push 0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp dword [ebp + 0xc], 0
jne 0x446377
mov dword [ebp + 0xc], 0x400
cmp dword [ebp + 8], 0
je 0x4463d1
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004358d4
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push eax
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x446401
mov eax, dword [ebp + 8]
test eax, eax
je 0x4463c8
push eax
push edi
lea ecx, [esi + 0x44]
push ecx
call fcn.0043586f
mov eax, dword [ebp + 8]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x446384
jmp 0x4463d1
push edi
call fcn.00410eb6
add esp, 4
mov edx, dword [esi + 8]
or edx, dword [esi + 0xc]
jne 0x4463ee
push edx
push 0xdeadbeef
push 0x21
push esi
call fcn.00446311
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.00446311
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
call fcn.00410eb6
add esp, 4
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.00446311
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4028ef
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x402907
push dword [esp + 4]
push 0x402888
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x402944
push esi
mov esi, dword [0x40c35c]
test esi, esi
je 0x402943
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40293b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40c35c
call fcn.00408b87
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x402914
pop edi
pop ebx
pop esi
ret 4
Function at 0x403d8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x40cb44]
xor esi, esi
call fcn.00408964
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x403ef3
push edi
lea ecx, [ebp - 0xc]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 4], 0x4d42
jne 0x403e53
mov al, byte [ebp + 0x10]
and al, 0x80
neg al
sbb eax, eax
and eax, 0xffffe000
add eax, 0x2010
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [0x40c334]
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
cmp esi, edi
je 0x403ef3
lea eax, [ebp - 0x38]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp word [ebp - 0x26], 8
ja 0x403ec9
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x10
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [0x40c334]
call dword [sym.imp.USER32.dll_LoadImageA]
jmp 0x403eb6
push 0x10
push edi
push edi
push 1
push dword [ebp + 0xc]
push dword [0x40c334]
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
cmp esi, edi
je 0x403ea0
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x403ec9
lea eax, [ebp - 0x38]
push eax
push 0x18
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_GetObjectA]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x403ec9
push edi
push dword [ebp + 0xc]
call fcn.004081ea
cmp eax, edi
je 0x403ec9
push dword [ebp + 0x10]
push eax
call fcn.00403f0e
mov esi, eax
cmp esi, edi
je 0x403ef3
lea eax, [ebp - 0x38]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp esi, edi
je 0x403ef3
cmp dword [ebp + 8], 0xffffffff
mov dword [ebx], esi
mov ax, word [ebp - 0x34]
mov word [ebx + 4], ax
mov ax, word [ebp - 0x30]
mov word [ebx + 6], ax
mov al, byte [ebp - 0x26]
mov byte [ebx + 8], al
mov al, byte [ebp + 0x10]
mov byte [ebx + 9], al
jne 0x403ef3
mov esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x404e72
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40cb68]
call fcn.004089c8
mov edi, eax
test edi, edi
je 0x404ed4
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404e9b
push dword [esp + 0xc]
push edi
call eax
jmp 0x404ed4
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00408d60
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00408de0
pop esi
pop ebx
pop edi
ret 8
Function at 0x4064e1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x40654f
push 0x11
call esi
test al, al
js 0x40654f
push 0x10
call esi
test al, al
js 0x40654f
push 0x12
call esi
test al, al
js 0x40654f
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40654f
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x406573
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x406573
dec eax
push eax
push dword [0x40cb70]
call fcn.004089c8
mov eax, dword [eax + 8]
jmp 0x406575
xor eax, eax
pop esi
leave
ret 4
Function at 0x401b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x218]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
call fcn.004073c0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
xor eax, eax
push fcn.00401b40
push ebp
push 0x40d9d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4120e0]
mov dword [ebp - 0x210], eax
mov eax, dword [0x4120dc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x214]
call fcn.00408500
mov eax, dword [ebp - 0x214]
test eax, eax
jne 0x401bf4
mov eax, 0x481a90
push eax
push dword [0x4384e0]
call sub.advapi32.dll_RegQueryValueExW
test eax, 0xffffffff
je 0x401c09
jmp 0x401c4e
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x218]
call fcn.00408580
mov ebx, dword [ebp - 0x218]
test ebx, ebx
je 0x401c2b
mov ebx, dword [ebx - 4]
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x218]
call fcn.00408580
mov eax, dword [ebp - 0x218]
mov edx, 0
mov ecx, ebx
call fcn.00408c50
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00401b40
pop ebx
leave
ret

Function at 0x401c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
call fcn.004073c0
xor eax, eax
push fcn.00401c70
push ebp
push 0x40d9d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4120e8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4120e4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401cd2
mov eax, 0x481a90
push eax
push dword [0x4384e0]
call sub.advapi32.dll_RegQueryValueExA
test eax, 0xffffffff
je 0x401ce7
jmp 0x401d09
movzx eax, byte [ebp - 0xd]
shl eax, 0x18
movzx edx, byte [ebp - 0xe]
shl edx, 0x10
or eax, edx
movzx edx, byte [ebp - 0xf]
shl edx, 8
or eax, edx
movzx edx, byte [ebp - 0x10]
or eax, edx
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x11]
shl eax, 0x18
movzx edx, byte [ebp - 0x12]
shl edx, 0x10
or eax, edx
movzx edx, byte [ebp - 0x13]
shl edx, 8
or eax, edx
movzx edx, byte [ebp - 0x14]
or eax, edx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
or eax, edx
mov ecx, 0
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00401c70
leave
ret