joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452476
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call fcn.0046d347
test eax, eax
jle 0x4524c5
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.00455f69
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x452526
mov ecx, edi
inc ebx
call fcn.0046d347
cmp ebx, eax
jl 0x452494
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x45257f
sub eax, 4
je 0x45252a
dec eax
dec eax
jne 0x452576
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00484f1b
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x45174e
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x452576
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x452578
cmp dword [esi + 0x54], 0
je 0x452576
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00450608
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + pe_nt_image_headers32]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x452576
cmp dword [esi + 0x54], 0
je 0x4525ce
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4525ce
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x4525ce
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00484da4
pop ecx
pop ecx
test eax, eax
je 0x4525ce
mov ecx, dword [esi + 0x54]
call fcn.00466252
test al, al
jne 0x452576
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.0045232a
jmp 0x452526
Function at 0x454e4a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x594aa4]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0xc
mov eax, 0x53ce7a
call fcn.0047ffae
mov edi, dword [ebp + 0x2c0]
mov ebx, ecx
call fcn.00454433
call fcn.0045079f
push eax
lea ecx, [ebp + 0x230]
call fcn.0045634f
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004507a5
mov ecx, eax
call fcn.004560c2
test al, al
je 0x454fac
push edi
lea ecx, [ebp + 0x230]
call fcn.00456152
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp + 0x230]
call fcn.00455fb4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
push esi
cmp eax, 0xffffffff
jne 0x454f20
push str.Error_opening_file
mov ecx, ebx
call fcn.00454609
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call fcn.00455f9a
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.0047ff9f
add ebp, 0x2b8
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x454f35
push esi
push str.File_is_empty
jmp 0x454ee1
cmp edi, 0x400000
jbe 0x454f45
push esi
push 0x5474e4
jmp 0x454ee1
push edi
mov dword [ebp - 0x14], esi
call fcn.00446872
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x454f8b
push dword [ebp - 0x10]
call fcn.0044687d
pop ecx
mov ecx, ebx
call fcn.00454433
push esi
push str.Could_not_read_file
jmp 0x454ee1
push dword [ebp + 0x2c4]
mov ecx, ebx
push edi
push dword [ebp - 0x10]
call fcn.00454cf9
push dword [ebp - 0x10]
mov bl, al
call fcn.0044687d
pop ecx
jmp 0x454eea
call fcn.004507a5
push eax
lea ecx, [ebp + 0x230]
call fcn.00456138
call fcn.004507ab
test al, al
je 0x454fcd
call fcn.004507b1
jmp 0x454fe4
push 2
push esi
lea ecx, [ebp + 0x230]
call fcn.00455fb4
push eax
call fcn.00460bcf
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x454ff6
push esi
push str.Error_opening_zip_file
jmp 0x454ee1
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.0045f2cd
add esp, 0x14
test eax, eax
je 0x45501b
push esi
push str.Could_not_find_ziped_file
jmp 0x454ee1
mov eax, dword [ebp + 0x22c]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x454f2d
cmp eax, 0x400000
ja 0x454f3d
push eax
call fcn.00446872
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00460c2c
add esp, 0x18
cmp eax, esi
je 0x455082
cmp eax, 0x600
je 0x455082
push edi
call fcn.0044687d
pop ecx
call fcn.004507ab
test al, al
jne 0x455077
push dword [ebp - 0x10]
call fcn.00460c66
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x454ee1
call fcn.004507ab
test al, al
jne 0x455094
push dword [ebp - 0x10]
call fcn.00460c66
pop ecx
push dword [ebp + 0x2c4]
mov ecx, ebx
push dword [ebp - 0x14]
push edi
call fcn.00454cf9
push edi
jmp 0x454f9f
Function at 0x45dea6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x45deb1
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x45df6c
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x549eb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x549eb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x549eb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x549eb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x549eb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x549eb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x549eb8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x549eb8]
inc edx
sub edi, 8
dec esi
jne 0x45ded1
pop ebx
test edi, edi
je 0x45df85
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x549eb8]
inc edx
dec edi
jne 0x45df70
pop edi
not eax
pop esi
ret

Function at 0x45e41c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x45e450
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45e44b
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x45e478
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x45e461
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00481e40
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x45f215
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x594aa4]
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 0x45f2bf
movzx ecx, word [esi]
test cx, cx
je 0x45f2bf
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x45f253
cmp cx, 0x5c
jne 0x45f255
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x45f247
cmp eax, esi
je 0x45f293
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00481656
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0045f215
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0048049a
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0048046c
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047ff9f
leave
ret
Function at 0x4607f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46086b
cmp dword [esi + 4], 0xffffffff
jne 0x46086b
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x57d450
push edi
call fcn.0048046c
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x46083d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x46083d
mov eax, 0x2000000
jmp 0x460870
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045e232
add esp, 0x10
test eax, eax
jne 0x46085b
mov eax, dword [ebp + 0x10]
jmp 0x460870
push eax
call fcn.004603ec
mov dword [esi], eax
mov eax, dword [0x5a8308]
pop ecx
jmp 0x460870
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x466410
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x466478
cmp dword [ebp + 8], 0x100
jne 0x466467
cmp word [ebp + 0xc], 0xd
jne 0x466467
cmp byte [esi + 0x4da], bl
je 0x46644e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x466467
cmp byte [esi + 0x4db], bl
jne 0x466467
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x466463
push ebx
push ebx
push ebx
push 0x54a878
push esi
call fcn.00451cc7
xor eax, eax
jmp 0x46647b
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x470ef5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x594aa4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x470f66
cmp dword [esi + 0x10], ebx
je 0x470f66
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00485760
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x470f66
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00456116
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00451cc7
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047ff9f
leave
ret 0x10
Function at 0x47a9ba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x47a9df
cmp eax, edi
jge 0x47a9d7
mov eax, esi
call fcn.0047a36e
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x47aa01
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x47a9e6
cmp ecx, 4
jge 0x47aa20
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x47aa0e
xor eax, eax
jmp 0x47aa16
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x47aa04
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x47aa52
mov eax, str.zlib_corrupt
call fcn.00477f8b
jmp 0x47aa8d
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x47aa62
mov eax, str.read_past_buffer
jmp 0x47aa4b
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x47aa77
mov ecx, edi
call fcn.0047a399
test eax, eax
je 0x47aa8d
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00481e40
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x47ff9f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x594aa4]
jne 0x47ffa9
repz ret
jmp fcn.0048a76c

Function at 0x486551
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x486582
call fcn.00482ac5
mov dword [eax], esi
call fcn.00482ab2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00481361
add esp, 0x14
push 0x16
pop eax
jmp 0x4865d7
test dword [ebp + 0xc], 0xfffffff9
jne 0x48655e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4865af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00482ad8
pop ecx
call fcn.00482ab2
mov eax, dword [eax]
jmp 0x4865d7
test al, 0x10
jne 0x4865d5
test al, 1
je 0x4865d5
test byte [ebp + 0xc], 2
je 0x4865d5
call fcn.00482ac5
mov dword [eax], 5
call fcn.00482ab2
mov dword [eax], 0xd
jmp 0x4865a6
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4977a2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00489f23
and dword [ebp - 4], 0
cmp dword [0x5a9158], 0
mov ebx, eax
jne 0x497853
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x497904
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x550bf0
push edi
call esi
test eax, eax
je 0x497904
push eax
call fcn.00489eb1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5a9158], eax
call esi
push eax
call fcn.00489eb1
mov dword [esp], 0x550bcc
push edi
mov dword [0x5a915c], eax
call esi
push eax
call fcn.00489eb1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5a9160], eax
call esi
push eax
call fcn.00489eb1
pop ecx
mov dword [0x5a9168], eax
test eax, eax
je 0x497853
push 0x550b98
push edi
call esi
push eax
call fcn.00489eb1
pop ecx
mov dword [0x5a9164], eax
mov eax, dword [0x5a9164]
cmp eax, ebx
je 0x4978ab
cmp dword [0x5a9168], ebx
je 0x4978ab
push eax
call fcn.00489f2c
push dword [0x5a9168]
mov esi, eax
call fcn.00489f2c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4978ab
test edi, edi
je 0x4978ab
call esi
test eax, eax
je 0x4978a2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4978a2
test byte [ebp - 0xc], 1
jne 0x4978ab
or dword [ebp + 0x10], 0x200000
jmp 0x4978e4
mov eax, dword [0x5a915c]
cmp eax, ebx
je 0x4978e4
push eax
call fcn.00489f2c
pop ecx
test eax, eax
je 0x4978e4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4978e4
mov eax, dword [0x5a9160]
cmp eax, ebx
je 0x4978e4
push eax
call fcn.00489f2c
pop ecx
test eax, eax
je 0x4978e4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a9158]
call fcn.00489f2c
pop ecx
test eax, eax
je 0x497904
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x497906
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49e140
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49e192
mov eax, dword [esp]
cmp al, 2
jne 0x49e18c
shr eax, 8
cmp al, 2
jne 0x49e18c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0047ff9f
add esp, 0x194
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4a7902
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x4a7a50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x290], 0
push edi
je case.default.0x4a7ab0
test eax, eax
je case.default.0x4a7ab0
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x4a7ab0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x4a7ab0
jmp dword [edx*4 + 0x4a7bcc]
mov ecx, str.Header
mov edx, str.from
jmp 0x4a7acd
mov ecx, str.Header
mov edx, 0x5519f0
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.004ad1d0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a7af0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4a7b45
mov ecx, dword [esi + 0xfc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4a7bb0
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4a7b73
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x4a7bb0
mov eax, dword [esi + 0xf8]
push eax
push 1
push 2
push 0x5519cc
call fcn.0048030d
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0048030d
add esp, 0x20
jmp case.default.0x4a7ab0
test ebx, ebx
jl 0x4a7bae
cmp ebx, 2
jg 0x4a7bae
mov eax, dword [esi + 0xf8]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x5519cc]
push 2
push ecx
call fcn.0048030d
mov edx, dword [esi + 0xf8]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.0048030d
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047ff9f
add esp, 0xa4
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4a7e6f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4a7e4f
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.004c2d00
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.004a7c70
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4a8590
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x154], 0
mov ebx, dword [ebp]
jne 0x4a86a1
push esi
mov esi, dword [esp + 0x11c]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4a85ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004c2d00
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4a8696
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x98]
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a8633
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004c2d00
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4a8696
lea edi, [ebx + 0x86c4]
lea ecx, [ebx + 0x8694]
lea esi, [esp + 0x14]
call fcn.004a8540
test eax, eax
jne 0x4a8664
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004c2d00
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4a8696
lea edi, [ebx + 0x86f8]
lea ecx, [ebx + 0x86c8]
lea esi, [esp + 0x94]
call fcn.004a8540
test eax, eax
jne 0x4a869f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004c2d00
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004a7c70
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0047ff9f
add esp, 0x108
ret

Function at 0x4a86c0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4a8703
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004c2d00
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004a7be0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004a7be0
add esp, 8
pop esi
pop ecx
ret

Function at 0x4a8720
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4a8769
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4a8781
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x4a8bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x518]
cmp eax, 0xffffffff
je 0x4a8c61
mov ecx, dword [ecx + 0x50c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x4a8c61
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x4a8c1c
mov dword [ecx], eax
mov ecx, dword [eax + 0xc8]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp dword [eax + 0xe0], 0
je 0x4a8c49
push eax
call fcn.0049ea30
add esp, 4
test eax, eax
jne 0x4a8c45
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov eax, dword [eax + 0xc8]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4a8c3b
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret

Function at 0x4a8c70
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4a8c7f
jmp dword [ecx*4 + 0x4a8cd4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret