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

Disassembly:
push 0x2c4
mov eax, 0x588a2c
call fcn.004f495a
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0053c3b9
call fcn.005321a7
push eax
lea ecx, [ebp - 0x94]
call fcn.0052f07b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.005321b3
mov ecx, eax
call fcn.0052f915
test al, al
je 0x53c140
push ebx
lea ecx, [ebp - 0x94]
call fcn.0052f371
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.0052f29c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x53c0b1
push str.Error_opening_file
jmp 0x53c221
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x53c1ba
cmp edi, 0x400000
ja 0x53c1cb
and dword [ebp - 0x2c8], 0
push edi
call fcn.004f48f1
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 0x53c129
push ebx
call fcn.004f48c9
pop ecx
mov ecx, esi
call fcn.0053c3b9
push 0
push str.Could_not_read_file
jmp 0x53c221
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0053c26c
push dword [ebp - 0x2cc]
jmp 0x53c24f
call fcn.005321b3
push eax
lea ecx, [ebp - 0x94]
call fcn.0052f354
call fcn.005324cb
test al, al
je 0x53c161
call fcn.005321b9
jmp 0x53c178
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0052f29c
push eax
call fcn.00545b58
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x53c189
push eax
push str.Error_opening_zip_file
jmp 0x53c221
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.00545599
add esp, 0x14
test eax, eax
je 0x53c1b0
push 0
push str.Could_not_find_ziped_file
jmp 0x53c221
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x53c1c3
push 0
push str.File_is_empty
jmp 0x53c221
cmp ebx, 0x400000
jbe 0x53c1d4
push 0
push str.File_too_large
jmp 0x53c221
push ebx
call fcn.004f48f1
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00545f18
add esp, 0x18
test eax, eax
je 0x53c22c
cmp eax, 0x600
je 0x53c22c
push dword [ebp - 0x2c8]
call fcn.004f48c9
pop ecx
call fcn.005324cb
test al, al
jne 0x53c21a
push edi
call fcn.005453f3
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0053c3e1
mov bl, al
jmp 0x53c257
call fcn.005324cb
test al, al
jne 0x53c23c
push edi
call fcn.005453f3
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0053c26c
push edi
mov bl, al
call fcn.004f48c9
pop ecx
lea ecx, [ebp - 0x94]
call fcn.0052f1a2
mov al, bl
call fcn.004f4915
ret 8

Function at 0x53d932
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00562d68
Function at 0x53e666
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e108c]
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 + 0x46c], 0
mov edi, dword [ebp + 0x1c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebx + 0x468], ecx
mov dword [ebx + 0x470], eax
test ecx, ecx
jne 0x53e6d1
call fcn.0053e458
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test edi, edi
je 0x53e6d1
call fcn.0053e458
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.0053e458
mov esi, ebx
lea edx, [ebx + 0x14]
neg esi
mov ecx, eax
mov edi, dword [eax]
sbb esi, esi
and esi, edx
push esi
call dword [edi]
mov ecx, dword [ebx + 0x468]
test ecx, ecx
jne 0x53e6f7
mov ecx, dword [ebp - 0x18]
jmp 0x53e6fe
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0053218b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0052f057
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push connect
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.0053002a
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x53e741
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x53e73c
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.004f4655
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x545445
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5e108c]
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 0x5454fb
movzx eax, word [esi]
test ax, ax
je 0x5454fb
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x545485
cmp ax, 0x5c
jne 0x545487
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x545479
cmp edi, esi
je 0x5454ce
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.0051a655
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x54550b
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00545445
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0057a1ac
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0057a13b
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.004f4655
mov esp, ebp
pop ebp
ret
call fcn.004f4bcb
int3
Function at 0x545ad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x545b4c
cmp dword [edi + 4], 0xffffffff
jne 0x545b4c
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.e_:
push esi
call fcn.0057a13b
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x545b1e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x545b1e
mov eax, 0x2000000
jmp 0x545b51
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00547ece
add esp, 0x10
test eax, eax
jne 0x545b3c
mov eax, dword [ebp - 4]
jmp 0x545b51
push eax
call fcn.005485d8
mov dword [edi], eax
mov eax, dword [0x60be24]
pop ecx
jmp 0x545b51
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x547fdd
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 0x548011
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 0x54800c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x548038
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x548021
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.00505ef0
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 0x5481ab
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x5481b9
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x548278
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 + 0x5a9ae0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a9ae0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a9ae0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a9ae0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a9ae0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a9ae0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a9ae0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a9ae0]
sub edi, 1
jne 0x5481d1
pop edi
test esi, esi
je 0x548294
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a9ae0]
inc edx
sub esi, 1
jne 0x54827c
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x556af7
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 0x556b1b
cmp dword [esi + 8], edi
jge 0x556b13
push esi
call fcn.00552454
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 0x556b44
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 0x556b27
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x556b5e
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x556b4f
xor dl, dl
jmp 0x556b54
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x556b46
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 0x556b93
push str.zlib_corrupt
call fcn.0055237d
add esp, 4
jmp 0x556bd3
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x556ba3
push str.read_past_buffer
jmp 0x556b89
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x556bbd
push edi
push ecx
push esi
call fcn.005596c0
add esp, 0xc
test eax, eax
je 0x556bd3
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00505ef0
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 0x55c479
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x60c], edi
je 0x55c4e3
cmp dword [ebp + 8], 0x100
jne 0x55c4d2
cmp word [ebp + 0xc], 0xd
jne 0x55c4d2
cmp byte [esi + 0x612], 0
je 0x55c4b9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x55c4d2
cmp byte [esi + 0x613], 0
jne 0x55c4d2
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x55c4ce
push edi
push edi
push edi
push str.return
push esi
call fcn.00535bdd
xor eax, eax
jmp 0x55c4e6
mov eax, dword [esi + 0x60c]
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 0x56d966
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x1c], 0
je 0x56d9ee
cmp dword [esi + 0x14], 0
je 0x56d9ee
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004f49d0
mov ebx, esp
test ebx, ebx
je 0x56d9ee
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x14]
push ebx
add ecx, 0x1cc
call fcn.0052f240
mov ecx, dword [esi + 0x14]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00535bdd
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.005324d8
test al, al
je 0x56d9ee
mov ecx, dword [esi + 0x14]
call fcn.005437c7
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56e857
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x58a065
call fcn.004f495a
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.005321a7
push eax
lea ecx, [ebp - 0x94]
call fcn.0052f07b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.005321b3
mov ecx, eax
call fcn.0052f915
test al, al
je 0x56e945
push ebx
lea ecx, [ebp - 0x94]
call fcn.0052f371
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.0052f29c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x56e8e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0052f1a2
jmp 0x56ea26
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x56e8d4
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004f48f1
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 0x56ea11
push edi
call fcn.004f48c9
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0052f1a2
jmp 0x56ea24
call fcn.005321b3
push eax
lea ecx, [ebp - 0x94]
call fcn.0052f354
call fcn.005324cb
test al, al
je 0x56e966
call fcn.005321b9
jmp 0x56e97d
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0052f29c
push eax
call fcn.00545b58
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x56e8d4
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.00545599
add esp, 0x14
test eax, eax
jne 0x56e8d4
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x56e8d4
push esi
call fcn.004f48f1
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00545f18
add esp, 0x18
test eax, eax
je 0x56ea01
cmp eax, 0x600
je 0x56ea01
push edi
call fcn.004f48c9
pop ecx
call fcn.005324cb
test al, al
jne 0x56e931
push ebx
call fcn.005453f3
jmp 0x56e930
call fcn.005324cb
test al, al
jne 0x56ea11
push ebx
call fcn.005453f3
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0052f1a2
test edi, edi
jne 0x56ea98
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x56ea94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x56ea94
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004f48f1
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 0x56ea90
push edi
call fcn.004f48c9
pop ecx
xor edi, edi
test edi, edi
jne 0x56ea98
xor eax, eax
jmp 0x56eab3
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0056eabb
push 1
push edi
mov esi, eax
call fcn.004f4639
pop ecx
pop ecx
mov eax, esi
call fcn.004f4915
ret 4
Function at 0x56f3bd
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x58a065
call fcn.004f495a
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.005321a7
push eax
lea ecx, [ebp - 0x94]
call fcn.0052f07b
xor esi, esi
mov dword [ebp - 4], esi
call fcn.005321b3
mov ecx, eax
call fcn.0052f915
test al, al
je 0x56f4ab
push ebx
lea ecx, [ebp - 0x94]
call fcn.0052f371
push esi
push 0x80
push 3
push esi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.0052f29c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x56f44e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0052f1a2
jmp 0x56f58c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x56f43a
push edi
mov dword [ebp - 0x2c8], esi
call fcn.004f48f1
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x56f577
push esi
call fcn.004f48c9
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0052f1a2
jmp 0x56f58a
call fcn.005321b3
push eax
lea ecx, [ebp - 0x94]
call fcn.0052f354
call fcn.005324cb
test al, al
je 0x56f4cc
call fcn.005321b9
jmp 0x56f4e3
push 2
push esi
lea ecx, [ebp - 0x94]
call fcn.0052f29c
push eax
call fcn.00545b58
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x56f43a
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.00545599
add esp, 0x14
test eax, eax
jne 0x56f43a
mov edi, dword [ebp - 0x98]
test edi, edi
je 0x56f43a
push edi
call fcn.004f48f1
push 3
push edi
mov esi, eax
push esi
push dword [ebp - 0x2d4]
push ebx
call fcn.00545f18
add esp, 0x18
test eax, eax
je 0x56f567
cmp eax, 0x600
je 0x56f567
push esi
call fcn.004f48c9
pop ecx
call fcn.005324cb
test al, al
jne 0x56f497
push ebx
call fcn.005453f3
jmp 0x56f496
call fcn.005324cb
test al, al
jne 0x56f577
push ebx
call fcn.005453f3
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0052f1a2
test esi, esi
jne 0x56f5fa
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push connect
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x56f611
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x56f611
push edi
mov dword [ebp - 0x2d0], esi
call fcn.004f48f1
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x2d0]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], edi
je 0x56f5f6
push esi
call fcn.004f48c9
pop ecx
xor esi, esi
test esi, esi
je 0x56f611
mov ecx, dword [ebp - 0x2d8]
push edi
push esi
call fcn.0056eed9
push 1
push esi
call fcn.004f4639
pop ecx
pop ecx
call fcn.004f4915
ret 4
Function at 0x57339e
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x5e108c]
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 0x5733ca
xor eax, eax
jmp 0x57343f
push esi
mov esi, 0xff
lea eax, [ebp - 0x104]
push esi
push 0
push eax
call fcn.005065b0
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 0x5733c6
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.00505ef0
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.004f4655
mov esp, ebp
pop ebp
ret

Function at 0x57850c
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5e108c]
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 0x57855a
cmp esi, 0x28
jbe 0x578554
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x57855a
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005065b0
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.0052f0a0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4655
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40170f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40174e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40174e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40174e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40174e
cmp dword [ecx + 0x74], 0xe
jbe 0x40174e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4071cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40726c
push ebx
push esi
call fcn.00407198
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004070e1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407219
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40726b
push edi
push eax
call fcn.00407a47
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407239
call fcn.00405cf1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40726a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004070e1
add esp, 0x20
test eax, eax
jne 0x407258
push edi
call fcn.00405cf1
jmp 0x407260
push ebx
call fcn.00405cf1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408155
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff68
push 0x40ff60
push str.FlsAlloc
push 0x1e
call fcn.00408073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408189
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
jmp 0x40818f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4081d3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff78
push 0x40ff70
push str.FlsGetValue
push 0x20
call fcn.00408073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40820a
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40d0f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d11d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d11d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret