joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c3fc
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x4fd6e1
call fcn.00498af8
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0045c78b
call fcn.004505b7
push eax
lea ecx, [ebp - 0x94]
call fcn.0044dddb
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004505c3
mov ecx, eax
call fcn.0044e5fa
test al, al
je 0x45c512
push ebx
lea ecx, [ebp - 0x94]
call fcn.0044e05a
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.004030c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x45c483
push str.Error_opening_file
jmp 0x45c5f3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x45c58c
cmp edi, 0x400000
ja 0x45c59d
and dword [ebp - 0x2c8], 0
push edi
call fcn.00497f5e
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x45c4fb
push ebx
call fcn.00497f67
pop ecx
mov ecx, esi
call fcn.0045c78b
push 0
push str.Could_not_read_file
jmp 0x45c5f3
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0045c63e
push dword [ebp - 0x2cc]
jmp 0x45c621
call fcn.004505c3
push eax
lea ecx, [ebp - 0x94]
call fcn.0044e03d
call fcn.004508db
test al, al
je 0x45c533
call fcn.004505c9
jmp 0x45c54a
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004030c0
push eax
call fcn.004757dc
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x45c55b
push eax
push str.Error_opening_zip_file
jmp 0x45c5f3
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0047521d
add esp, 0x14
test eax, eax
je 0x45c582
push 0
push str.Could_not_find_ziped_file
jmp 0x45c5f3
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x45c595
push 0
push str.File_is_empty
jmp 0x45c5f3
cmp ebx, 0x400000
jbe 0x45c5a6
push 0
push 0x509858
jmp 0x45c5f3
push ebx
call fcn.00497f5e
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00475b9c
add esp, 0x18
test eax, eax
je 0x45c5fe
cmp eax, 0x600
je 0x45c5fe
push dword [ebp - 0x2c8]
call fcn.00497f67
pop ecx
call fcn.004508db
test al, al
jne 0x45c5ec
push edi
call fcn.00475077
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0045c7b3
mov bl, al
jmp 0x45c629
call fcn.004508db
test al, al
jne 0x45c60e
push edi
call fcn.00475077
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0045c63e
push edi
mov bl, al
call fcn.00497f67
pop ecx
lea ecx, [ebp - 0x94]
call fcn.0044df02
mov al, bl
call fcn.00498ab3
ret 8
Function at 0x46efc2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x46efe6
cmp dword [esi + 8], edi
jge 0x46efde
push esi
call fcn.0046a91f
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x46f00f
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x46eff2
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x46f029
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x46f01a
xor dl, dl
jmp 0x46f01f
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x46f011
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x46f05e
push str.zlib_corrupt
call fcn.0046a848
add esp, 4
jmp 0x46f09e
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x46f06e
push str.read_past_buffer
jmp 0x46f054
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x46f088
push edi
push ecx
push esi
call fcn.00471b8b
add esp, 0xc
test eax, eax
je 0x46f09e
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0049cae0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x474c7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x614], edi
je 0x474cf3
cmp dword [ebp + 8], 0x100
jne 0x474ce2
cmp word [ebp + 0xc], 0xd
jne 0x474ce2
cmp byte [esi + 0x61a], 0
je 0x474cbc
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x474ce2
cmp byte [esi + 0x61b], 0
jne 0x474ce2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
je 0x474cde
mov eax, dword [esi]
mov ecx, esi
push edi
push edi
push edi
push str.return
push esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0045404f
xor eax, eax
jmp 0x474cf6
mov eax, dword [esi + 0x614]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4750c9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x47517f
movzx eax, word [esi]
test ax, ax
je 0x47517f
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x475109
cmp ax, 0x5c
jne 0x47510b
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4750fd
cmp edi, esi
je 0x475152
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004b3b5e
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x47518f
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004750c9
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004b3b21
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004b3ab0
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
call fcn.00497de3
int3

Function at 0x475754
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4757d0
cmp dword [edi + 4], 0xffffffff
jne 0x4757d0
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x526ee4
push esi
call fcn.004b3ab0
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x4757a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4757a2
mov eax, 0x2000000
jmp 0x4757d5
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00477c6f
add esp, 0x10
test eax, eax
jne 0x4757c0
mov eax, dword [ebp - 4]
jmp 0x4757d5
push eax
call fcn.00478377
mov dword [edi], eax
mov eax, dword [0x53c43c]
pop ecx
jmp 0x4757d5
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x477d7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x477db0
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x477dab
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x477dd7
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x477dc0
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0049cae0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x477f4a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x477f58
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x478017
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
sub edi, 1
jne 0x477f70
pop edi
test esi, esi
je 0x478033
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50b280]
inc edx
sub esi, 1
jne 0x47801b
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x488de3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x488e63
cmp dword [esi + 0x10], 0
je 0x488e63
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004987d0
mov ebx, esp
test ebx, ebx
je 0x488e63
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c8
call fcn.0044dfa0
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
push str.textchanged
push ecx
mov ecx, dword [ecx + 0x44]
call fcn.0045404f
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x44]
call fcn.004508e8
test al, al
je 0x488e63
mov ecx, dword [esi + 0x10]
call fcn.00455df9
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x489c5d
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x4fe8ad
call fcn.00498af8
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.004505b7
push eax
lea ecx, [ebp - 0x94]
call fcn.0044dddb
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004505c3
mov ecx, eax
call fcn.0044e5fa
test al, al
je 0x489d4b
push ebx
lea ecx, [ebp - 0x94]
call fcn.0044e05a
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.004030c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x489cee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044df02
jmp 0x489e2c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x489cda
push esi
mov dword [ebp - 0x2c8], edi
call fcn.00497f5e
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x489e17
push edi
call fcn.00497f67
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044df02
jmp 0x489e2a
call fcn.004505c3
push eax
lea ecx, [ebp - 0x94]
call fcn.0044e03d
call fcn.004508db
test al, al
je 0x489d6c
call fcn.004505c9
jmp 0x489d83
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004030c0
push eax
call fcn.004757dc
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x489cda
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0047521d
add esp, 0x14
test eax, eax
jne 0x489cda
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x489cda
push esi
call fcn.00497f5e
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00475b9c
add esp, 0x18
test eax, eax
je 0x489e07
cmp eax, 0x600
je 0x489e07
push edi
call fcn.00497f67
pop ecx
call fcn.004508db
test al, al
jne 0x489d37
push ebx
call fcn.00475077
jmp 0x489d36
call fcn.004508db
test al, al
jne 0x489e17
push ebx
call fcn.00475077
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044df02
test edi, edi
jne 0x489e9e
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push accept
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x489e9a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x489e9a
push esi
mov dword [ebp - 0x2d0], edi
call fcn.00497f5e
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x489e96
push edi
call fcn.00497f67
pop ecx
xor edi, edi
test edi, edi
jne 0x489e9e
xor eax, eax
jmp 0x489eb9
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00489ec1
push 1
push edi
mov esi, eax
call fcn.00497f50
pop ecx
pop ecx
mov eax, esi
call fcn.00498ab3
ret 4
Function at 0x48be3f
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x48be6b
xor eax, eax
jmp 0x48bee0
push esi
mov esi, 0xff
lea eax, [ebp - 0x104]
push esi
push 0
push eax
call fcn.0049d060
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
pop esi
test eax, eax
je 0x48be67
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.0049cae0
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret

Function at 0x48ff71
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00481322

Function at 0x490d2d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
and dword [ebx + 0x468], 0
mov edi, dword [ebp + 0x1c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebx + 0x464], ecx
mov dword [ebx + 0x46c], eax
test ecx, ecx
jne 0x490d98
call fcn.00490af4
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test edi, edi
je 0x490d98
call fcn.00490af4
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.00490af4
mov esi, ebx
lea edx, [ebx + 0x10]
neg esi
mov ecx, eax
mov edi, dword [eax]
sbb esi, esi
and esi, edx
push esi
call dword [edi]
mov ecx, dword [ebx + 0x464]
test ecx, ecx
jne 0x490dbe
mov ecx, dword [ebp - 0x18]
jmp 0x490dc5
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0045059b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0044ddb7
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push accept
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045bc19
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x490e08
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x490e03
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x496a28
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x496a76
cmp esi, 0x28
jbe 0x496a70
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x496a76
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0049d060
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
or ecx, 0x1000000
cmp dword [ebp + 0x10], 0
push 0x104
cmove ecx, edi
push eax
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0044de00
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ba967
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ba7e6

Function at 0x4bf3a8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bf068

Function at 0x4c64f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4c6540
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4c653a
shr eax, 8
cmp al, 2
jne 0x4c653a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret

Function at 0x4ca940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4ca95e
cmp dword [esi + 0x48], 0
je 0x4ca95e
push 2
push 3
push esi
call fcn.004ddb40
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004d4240
add esp, 4
test esi, esi
je 0x4ca97e
cmp dword [esi + 0x48], 0
je 0x4ca97e
push 3
push esi
call fcn.004ddb80
add esp, 8
pop esi
pop ebp
ret
Function at 0x4d2690
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4d270e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4d26de
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004de2e0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004d2380
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x8574], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4d28f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4d2919
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4d294f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x51e600
push 2
push eax
call fcn.004a5bb2
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004a5bb2
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x538]
test edi, edi
je 0x4d2b14
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4d2ae1
cmp dword [esi + 0x40], eax
je 0x4d2b14
mov dword [ebp - 8], edi
mov byte [ebp - 4], 0
test eax, eax
jne 0x4d2aef
mov eax, dword [esi + 0x40]
push 0x4d38f0
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.004d8a80
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x4d2b1d
mov dword [esi + 0x538], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4d2b26
mov dword [eax], edi
cmp byte [edi + 0x178], 0
mov esi, dword [edi + 0x154]
jne 0x4d2b14
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
pop edi
cmove esi, ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d2f80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x53d158]
mov dword [ebp - 0x128], 0x4020
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x12c], 4
push esi
test eax, eax
jne 0x4d304a
push 0x11c
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0049d060
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
mov dword [ebp - 0x11c], 6
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4d303e
mov dword [0x53d158], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
mov dword [0x53d158], 1
jmp 0x4d304f
cmp eax, 2
je 0x4d309d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x124]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4d3083
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x128]
jg 0x4d309d
push 4
lea eax, [ebp - 0x128]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00497ebf
mov esp, ebp
pop ebp
ret