joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x520204]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40bd6c
cmp eax, 0x104
ja 0x40bd6c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00403ea0
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.0040a630
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40bd04
mov ecx, dword [eax]
jmp 0x40bd06
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040a630
lea ecx, [ebp - 0x240]
call fcn.0040ae50
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x40bd3a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004052f0
lea ecx, [ebp - 0x240]
call fcn.00403e60
lea ecx, [ebp - 0x258]
call fcn.00403e60
lea ecx, [ebp - 0x228]
call fcn.00403e60
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a352c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004a352c
mov esp, ebp
pop ebp
ret

Function at 0x40bde0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x520204]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x520ca0]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004a37d6
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x535128]
xor dl, dl
test esi, esi
jle 0x40be78
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x40be73
mov eax, dword [esi*4 + 0x534bb0]
test eax, eax
je 0x40be73
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x40be50
dec edi
test edi, edi
jle 0x40be81
test dl, dl
jne 0x40be40
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a352c
mov esp, ebp
pop ebp
ret

Function at 0x41edef
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x170]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, esi
test eax, eax
jne 0x41ee15
call fcn.0041bc19
jmp 0x41ee41
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b0f2
mov eax, dword [esi + 0x180]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x41ee41
push 1
push ecx
push ecx
push eax
push 0x4f0c58
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc
Function at 0x4286c1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4f1ddc
push dword [ebp + 8]
call fcn.004b0524
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42871e
push ebx
push edi
push esi
call fcn.004aebbe
push eax
call fcn.004bb7bd
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x4286fd
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x428713
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.004af1d1
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.004ae9ab
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x42e2fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x78
pop ecx
mov ax, word [edi + 0x210]
add ax, word [ebp + 0xc]
cwde
cdq
idiv ecx
movzx eax, ax
mov dword [ebp + 0xc], eax
cwde
mov word [edi + 0x210], dx
cdq
xor eax, edx
sub eax, edx
movzx ebx, ax
xor eax, eax
cmp ax, bx
jge 0x42e3a4
xor ecx, ecx
cmp word [ebp + 0xc], ax
setle cl
xor edx, edx
mov dword [ebp - 4], ecx
inc edx
mov eax, dword [edi]
push 0
push ecx
push edx
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
je 0x42e36c
mov ecx, edi
call fcn.0042f9e6
mov ecx, dword [ebp - 4]
inc esi
push 1
pop edx
cmp si, bx
jl 0x42e347
cmp si, bx
jge 0x42e3a4
push dword [ebp + 0x14]
or eax, 0xffffffff
mov ecx, ebx
push dword [ebp + 0x10]
sub ecx, esi
cmp word [ebp + 0xc], 0
push 1
pop edx
cmovg eax, edx
movsx ecx, cx
cwde
imul ecx, eax
movsx eax, cx
mov ecx, edi
imul eax, eax, 0x78
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.0041b27a
test bx, bx
je 0x42e3e3
mov ecx, edi
call fcn.004dca94
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
movzx edx, word [ebp + 0x14]
mov edi, eax
movzx ecx, word [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl edx, 0x10
or edx, ecx
push edx
push dword [ebp + 8]
push 0x200
push edi
call esi
push 0x2000001
push edi
push 0x20
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4303b3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x520204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004a8200
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x43040e
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x430422
cmp byte [ebp - 6], 1
jne 0x430422
cmp dword [ebp - 0x11c], 6
jne 0x430422
xor eax, eax
inc eax
jmp 0x430424
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a352c
mov esp, ebp
pop ebp
ret
Function at 0x439cd2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x5c]
push edi
push esi
call fcn.0040dd60
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x34], 0
push ecx
mov ecx, esi
mov dword [ebp - 0x5c], 0x4f7ef0
mov dword [ebp - 0x54], 0x4f421c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
call dword [eax + 0x94]
cmp dword [ebp - 0x34], 0
jne 0x439ec3
cmp dword [ebp + 0x10], 0
jne 0x439d41
cmp dword [esi + 0x264], 0
jne 0x439d34
cmp dword [esi + 0x260], 0
je 0x439d71
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x439d71
cmp edi, 0xffffffff
je 0x439e98
imul ecx, edi, 0xc
xor eax, eax
push edi
add ecx, dword [esi + 0x26c]
cmp dword [ecx + 8], eax
sete al
mov dword [ecx + 8], eax
mov ecx, esi
mov dword [esi + 0x220], edi
call fcn.0043a371
jmp 0x439e98
cmp dword [esi + 0x264], 0
jne 0x439d87
cmp dword [esi + 0x260], 0
je 0x439e1d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x439e1d
cmp edi, 0xffffffff
je 0x439e98
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
mov ebx, eax
mov eax, edi
cmp ebx, edi
mov ecx, ebx
cmovg eax, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
cmove ecx, edi
and dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
mov ecx, esi
call fcn.00439958
test eax, eax
jle 0x439e98
mov edi, dword [ebp + 0x10]
mov dword [ebp + 8], ebx
xor ebx, ebx
mov eax, dword [esi + 0x26c]
add eax, ebx
mov ecx, dword [eax + 8]
cmp edi, dword [ebp - 4]
jl 0x439df8
cmp edi, dword [ebp - 8]
jg 0x439df8
mov dword [eax + 8], 1
jmp 0x439dfc
and dword [eax + 8], 0
cmp ecx, dword [eax + 8]
je 0x439e09
push edi
mov ecx, esi
call fcn.0043a371
mov ecx, esi
inc edi
add ebx, 0xc
call fcn.00439958
cmp edi, eax
jl 0x439dda
mov edi, dword [ebp + 0xc]
jmp 0x439e95
or dword [esi + 0x220], 0xffffffff
mov ecx, esi
xor ebx, ebx
call fcn.00439958
test eax, eax
jle 0x439e71
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [esi + 0x26c]
cmp ebx, edi
je 0x439e5c
mov edx, dword [eax + ecx + 8]
test edx, edx
je 0x439e5c
and dword [eax + ecx + 8], 0
test edx, edx
je 0x439e5c
push ebx
mov ecx, esi
call fcn.0043a371
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
inc ebx
mov dword [ebp + 0xc], ecx
mov ecx, esi
call fcn.00439958
mov ecx, dword [ebp + 0xc]
cmp ebx, eax
jl 0x439e36
cmp edi, 0xffffffff
je 0x439e95
mov eax, dword [esi + 0x26c]
imul ecx, edi, 0xc
push edi
mov dword [eax + ecx + 8], 1
mov ecx, esi
mov dword [esi + 0x220], edi
call fcn.0043a371
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x30]
call fcn.0040dd60
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
mov dword [ebp - 0x30], 0x4f7ef0
mov dword [ebp - 0x28], 0x4f4288
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
call dword [eax + 0x94]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d2d2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, ecx
sub eax, 9
je 0x43d333
sub eax, 1
je 0x43d315
sub eax, 3
je 0x43d315
test dword [edi + 0x370], 0x2000
je 0x43d34e
push esi
call fcn.004af7a3
pop ecx
test eax, eax
jne 0x43d34e
cmp esi, 0x2d
je 0x43d34e
cmp esi, 0x2e
je 0x43d34e
cmp esi, 0x2c
je 0x43d34e
jmp 0x43d369
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x43d34e
test dword [edi + 0x370], 0x1000
jmp 0x43d34c
test byte [edi + 0x374], 0x80
jne 0x43d34e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x43d369
mov eax, dword [edi + 0x380]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43d5d6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x2c]
push edi
push esi
call fcn.0040dd60
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x2c], 0x4f7ef0
mov dword [ebp - 0x24], 0x4f4814
mov byte [ebp - 4], bl
mov dword [ebp - 0xc], edi
call dword [eax + 0x94]
cmp byte [ebp - 4], bl
jne 0x43d63f
cmp edi, 0xd
jne 0x43d644
test dword [esi + 0x370], 0x1000
jne 0x43d644
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x43d644
mov dword [esi + 0x10], ebx
jmp 0x43d65e
mov eax, dword [esi + 0x380]
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43fa71
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, ecx
push edi
push 0x12
call esi
push 0x11
mov edi, eax
call esi
and eax, 0x8000
push 0x10
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
and eax, 0x8000
and edi, 0x8000
jne 0x43fad4
test ecx, ecx
jne 0x43faba
test eax, eax
jne 0x43fab3
inc eax
jmp 0x43fb08
push 2
pop eax
push 4
jmp 0x43fb07
test eax, eax
jne 0x43fac5
push 4
pop eax
push 2
jmp 0x43fb07
push 6
pop eax
push 0x10
mov word [ebx + 0x170], ax
pop eax
jmp 0x43fb0f
test ecx, ecx
jne 0x43fae6
test eax, eax
jne 0x43fae2
push 8
pop eax
inc ecx
jmp 0x43fb08
test ecx, ecx
je 0x43faf5
test eax, eax
jne 0x43faf1
push 0x40
pop eax
push 3
jmp 0x43fb07
test ecx, ecx
jne 0x43fb00
test eax, eax
je 0x43fb00
push 0x20
pop eax
push 5
jmp 0x43fb07
mov eax, 0x80
push 7
pop ecx
mov word [ebx + 0x170], cx
test word [ebx + 0x174], ax
je 0x43fb26
mov ax, word [ebx + 0x176]
mov word [ebx + 0x170], ax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040dd60
mov ax, word [ebx + 0x170]
lea ecx, [ebp - 0x28]
mov word [ebp - 6], ax
mov ax, word [ebx + 0x172]
mov word [ebp - 8], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov dword [ebp - 0x28], 0x4f7ef0
mov dword [ebp - 0x20], 0x4f4ee4
call dword [eax + 0x94]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452b48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x452b55
xor eax, eax
jmp 0x452b83
push dword [ecx + 4]
call fcn.0042d1bb
pop ecx
test eax, eax
je 0x452b70
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test al, 2
jne 0x452b51
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4
Function at 0x452c71
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.00452b48
test eax, eax
je 0x452ca6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.004526e4
xor eax, eax
inc eax
jmp 0x452da3
push esi
push dword [ebx + 4]
call fcn.0042d1bb
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x452d50
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x452d50
cmp edi, 0x25
je 0x452ce0
cmp edi, 0x27
je 0x452cee
cmp edi, 0x26
je 0x452ce0
cmp edi, 0x28
jne 0x452d50
cmp edi, 0x27
je 0x452cee
cmp edi, 0x28
je 0x452cee
push 2
jmp 0x452cf0
push 3
pop edi
jmp 0x452cfe
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x452d3a
push edi
mov ecx, esi
call fcn.004199e3
mov esi, eax
test esi, esi
jne 0x452cf3
mov ecx, dword [ebp - 4]
cmp edi, 3
setne al
push eax
call fcn.004196dc
mov ecx, eax
jmp 0x452d2d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x452d3a
push edi
mov ecx, esi
call fcn.004199e3
mov esi, eax
test esi, esi
jne 0x452d1f
jmp 0x452d4b
push 1
mov ecx, esi
call fcn.00419917
push eax
mov ecx, ebx
call fcn.00452ff6
xor eax, eax
inc eax
jmp 0x452da2
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.0045403a
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.00452df7
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call fcn.00401200
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x454160
Capabilities:
Log keystrokes
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x52015c]
push esi
mov esi, dword [ebp + 8]
movzx edx, cx
mov dword [esi], eax
cmp edx, 0x25
ja 0x4541f4
je 0x4541ea
mov eax, edx
sub eax, 0xd
je 0x4541e0
sub eax, 0xe
je 0x4541d6
sub eax, 5
je 0x4541cc
sub eax, 1
je 0x4541c2
sub eax, 1
je 0x4541b8
sub eax, 1
je 0x4541ae
sub eax, 1
jne 0x45422d
push str.Home
jmp 0x454354
push 0x4f7740
jmp 0x454354
push str.PageDown
jmp 0x454354
push str.PageUp
jmp 0x454354
push str.Space
jmp 0x454354
push 0x4f76f4
jmp 0x454354
push 0x4f76fc
jmp 0x454354
push str.Left
jmp 0x454354
mov eax, edx
sub eax, 0x26
je 0x45434f
sub eax, 1
je 0x454348
sub eax, 1
je 0x454341
dec eax
sub eax, 1
je 0x45433a
sub eax, 3
je 0x454333
sub eax, 1
je 0x45432c
cmp cx, 0x30
jb 0x454239
cmp cx, 0x39
jbe 0x454242
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x45425a
movzx eax, cx
mov ecx, esi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
call fcn.00405030
jmp 0x45435b
lea eax, [ecx - 0x60]
cmp ax, 9
ja 0x45426e
lea eax, [edx - 0x60]
push eax
push str.Num__d
jmp 0x4542b0
cmp cx, 0x6a
jne 0x45427e
push 0x4f77b4
jmp 0x454354
cmp cx, 0x6b
jne 0x45428e
push str.Num_
jmp 0x454354
cmp cx, 0x6e
jne 0x45429e
push str.Num_Del
jmp 0x454354
lea eax, [ecx - 0x70]
cmp ax, 0xb
ja 0x4542d9
lea eax, [edx - 0x6f]
push eax
push 0x4f77dc
lea eax, [ebp + 8]
push eax
push esi
call fcn.00419037
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff4
cmp ecx, dword [0x520158]
je 0x45435b
call fcn.004012f0
jmp 0x45435b
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, al
movsx eax, cl
cmp eax, 0x3d
jg 0x454304
je 0x454313
cmp eax, 0x27
je 0x454313
cmp eax, 0x2b
jle 0x45435b
cmp eax, 0x2f
jle 0x454313
cmp eax, 0x3b
je 0x454313
jmp 0x45435b
cmp eax, 0x5b
jl 0x45435b
cmp eax, 0x5d
jle 0x454313
cmp eax, 0x60
jne 0x45435b
movsx ax, cl
mov ecx, esi
movzx eax, ax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
call fcn.0041d844
jmp 0x45435b
push str.Delete
jmp 0x454354
push str.Insert
jmp 0x454354
push str.Print
jmp 0x454354
push str.Down
jmp 0x454354
push str.Right
jmp 0x454354
push 0x4f7708
mov ecx, esi
call fcn.004044f0
mov eax, esi
pop esi
pop ebp
ret

Function at 0x45afbd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x45b025
mov ecx, esi
call fcn.0045b02a
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3ac]
test ecx, ecx
je 0x45b000
push 0
call fcn.0041bfaa
and dword [esi + 0x3ac], 0
mov ecx, dword [0x522d9c]
lea ecx, [ecx + 8]
call fcn.0040dd3d
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x45b025
pop esi
mov ecx, dword [ecx + 0x174]
pop ebp
jmp fcn.0045bb2e
pop esi
pop ebp
ret 4
Function at 0x45e6d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x45e6f7
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x45e794
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.0045e2ea
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45e71a
push ebx
call fcn.004ae9ab
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x45e770
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x520180]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x45e745
call fcn.004ae9ab
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x45e770
push esi
push 1
push eax
call fcn.004af1d1
push ebx
mov esi, eax
call fcn.004ae9ab
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x45e779
push dword [ebp - 4]
call dword [0x520184]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x45e793
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0045e67f
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46c0f5
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46c15c
push esi
call fcn.0046c3d8
pop ecx
test al, al
jne 0x46c15c
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.0046c377
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x46c155
mov al, byte [esi]
push eax
call fcn.00476dfa
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x46c138
pop edi
movzx eax, bl
pop ebx
jmp 0x46c15e
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46ce89
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46ceaa
cmp dword [esi + 0x8c], 0
je 0x46ceaa
push 2
push 3
push esi
call fcn.004778b6
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00477cd0
pop ecx
test esi, esi
je 0x46ceca
cmp dword [esi + 0x8c], 0
je 0x46ceca
push 3
push esi
call fcn.004778f1
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x4748b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x608], edi
je 0x4748f4
push 1
push esi
call fcn.00468b88
push dword [esi + 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [esi + 0x608]
push 0
push esi
mov edi, eax
call fcn.00468b88
add esp, 0x24
jmp 0x47492a
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x47492a
push dword [esi + 0x598]
imul eax, eax, 3
push 1
push 2
add eax, 0x4fa9e4
push eax
call fcn.004aee1c
push dword [esi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004aee1c
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x474cfa
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x520204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx + eax*4 + 0x1a8]
push eax
push ebx
mov dword [ebp - 0x88], ecx
call fcn.004751ae
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov eax, dword [ebp - 0x88]
and dword [eax], 0
cmp esi, 0xffffffff
jne 0x474da5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x474d6f
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], 0x51
jmp 0x474da5
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00498544
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00474930
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcac], edi
mov eax, dword [ebp - 0x88]
mov dword [eax], 0x37
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a352c
mov esp, ebp
pop ebp
ret
Function at 0x4751ae
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add edi, edi
mov eax, dword [esi + 0x2a8]
mov edx, dword [esi + ecx*4 + 0x1a8]
mov dword [ebp + 8], edx
mov ebx, dword [esi + edi*8 + 0x1d0]
sub ebx, dword [esi + edi*8 + 0x1d4]
test byte [eax + 0x40], 3
je 0x475296
cmp dword [esi + ecx*4 + 0x1bc], 0x474c35
jne 0x475296
xor eax, eax
cmp dword [esi + edi*8 + 0x1cc], eax
je 0x47520a
test ebx, ebx
je 0x475296
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004744d5
add esp, 0x14
cmp eax, 0xffffffff
je 0x475296
test al, 1
je 0x475296
xor ecx, ecx
cmp dword [esi + edi*8 + 0x1cc], ecx
jne 0x475271
mov eax, dword [esi]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + edi*8 + 0x1d0], eax
call dword [0x520188]
mov ebx, dword [esi + edi*8 + 0x1d0]
pop ecx
xor ecx, ecx
mov dword [esi + edi*8 + 0x1cc], eax
mov dword [esi + edi*8 + 0x1d4], ecx
mov dword [esi + edi*8 + 0x1d8], ecx
test eax, eax
jne 0x475271
mov dword [esi + edi*8 + 0x1d0], ecx
jmp 0x475296
mov eax, dword [esi + edi*8 + 0x1cc]
add eax, dword [esi + edi*8 + 0x1d4]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x475296
add dword [esi + edi*8 + 0x1d4], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47535a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x475378
push eax
call fcn.0046f3b5
pop ecx
test eax, eax
jne 0x475394
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x475374
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x475370
mov al, 1
pop ebp
ret

Function at 0x4759ff
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x532eb0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x475a46
push 3
push esi
push eax
push 6
call fcn.00476b49
add esp, 0x10
test al, al
je 0x475a3e
mov dword [0x532eb0], esi
jmp 0x475a86
xor eax, eax
inc eax
mov dword [0x532eb0], eax
cmp eax, esi
je 0x475a86
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x475a74
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x475a85
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret