joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44aed0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4b51cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ax, word [0x4be06c]
push esi
push edi
push 0
push 0
push 3
mov dword [esp + 0x28], ecx
mov cl, byte [0x4be06e]
push 0
push 0
push closesocket
push 0x4be054
mov word [esp + 0x2c], ax
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2b], 0
xor bl, bl
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], edi
je 0x44af42
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x4bd878
push 0x4be054
call fcn.004a7d19
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x44af6e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea esi, [edi + 2]
push ebp
push esi
call fcn.004a71d4
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
mov dword [esp + 0x28], ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push 1
push ecx
push ebp
call fcn.004a7d2c
lea edx, [esp + 0x28]
push edx
push ebp
call fcn.004a7f3b
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x44b097
mov eax, dword [esp + 0x20]
lea ebp, [eax + 0x715d0]
mov al, byte [esp + 0x13]
test al, al
je 0x44b068
movsx eax, al
dec eax
jne 0x44b07a
movsx eax, bl
dec eax
je 0x44b018
dec eax
jne 0x44b07a
mov edx, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x19
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor bl, bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x13], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebp, 4
rep movsb byte es:[edi], byte [esi]
jmp 0x44b07a
push 0x3c
call fcn.004a71d4
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x30], 0
je 0x44b03b
mov ecx, eax
call fcn.004a4ee0
jmp 0x44b03d
xor eax, eax
or ecx, 0xffffffff
mov dword [ebp], eax
lea edx, [eax + 4]
xor eax, eax
mov dword [esp + 0x30], ecx
mov bl, 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x44b07a
mov edx, dword [edi]
mov ecx, 0x4be04c
cmp edx, dword [ecx]
jne 0x44b07a
mov byte [esp + 0x13], 1
mov bl, 1
lea eax, [esp + 0x14]
push eax
push 0
call fcn.004a7f3b
mov edi, eax
add esp, 8
test edi, edi
jne 0x44afc6
mov ebp, dword [esp + 0x24]
push ebp
call fcn.004a71c9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004a7b32
mov ecx, dword [esp + 0x30]
add esp, 8
mov eax, 1
mov dword fs:[0], ecx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x451ad0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [ecx - 9]
cmp eax, 0x88
ja case.0x451ae9.12
xor edx, edx
mov dl, byte [eax + 0x451cec]
jmp dword [edx*4 + 0x451cdc]
mov dword [esi + 0x72ac4], 1
pop esi
ret 4
mov dword [esi + 0x72acc], 1
pop esi
ret 4
cmp byte [esi + 0x731c5], 4
jne case.default.0x451b33
mov eax, dword [esi + 0x72ac4]
test eax, eax
je 0x451c66
lea eax, [ecx - 0x30]
cmp eax, 9
ja case.default.0x451b33
jmp dword [eax*4 + 0x451d78]
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 9
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 0
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 1
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 2
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 3
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 4
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 5
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 6
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 7
pop esi
ret 4
push 0
push 0
push 0
push 0
push 3
mov ecx, esi
call fcn.00438f60
mov word [esi + 0x39c], 8
pop esi
ret 4
mov eax, dword [esi + 0x72e1c]
test eax, eax
jne case.default.0x451b33
push 0x12
call dword [sym.imp.user32.dll_GetAsyncKeyState]
and eax, 0xffff8000
test ax, ax
jne case.default.0x451b33
lea eax, [esi + 0x73401]
mov dword [esi + 0x72e1c], 1
mov dword [esi + 0x72574], eax
lea eax, [esi + 0x730e9]
mov dword [esi + 0x72f38], 0xa
mov dword [esi + 0x72f3c], 0x19e
mov dword [eax], 0
mov byte [esi + 0x730e8], 0x40
mov esi, dword [esi + 0x72574]
test esi, esi
je 0x451ccf
mov dword [esi], 0
mov dword [eax], 0
pop esi
ret 4
Function at 0x491dc0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x314
mov eax, dword [0x573d68]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0x1c
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push 5
push 0
push 0
push 0x4c7874
push 0x4c786c
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x491f2e
mov ebp, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push 0x4c7864
push closesocket
call ebp
test eax, eax
jne 0x491f2e
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x220]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x24], 0x104
call esi
mov edi, dword [sym.imp.kernel32.dll_lstrcpyA]
lea edx, [esp + 0x220]
lea eax, [esp + 0x18]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
push ecx
call ebx
lea edx, [esp + 0x18]
push 0x4c7850
push edx
call dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 1
push 0
push ecx
push closesocket
call ebp
test eax, eax
jne 0x491f2e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x220]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x24], 0x104
call esi
lea edx, [esp + 0x220]
lea eax, [esp + 0x18]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x18]
push 0x4c7848
push edx
call fcn.004a80e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x491f08
lea eax, [esp + 0x18]
push 0x4c7844
push eax
call fcn.004a80e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x491f08
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
lea esi, [esp + eax + 0x17]
jmp 0x491f0b
mov byte [esi], 0
mov edi, dword [sym.imp.kernel32.dll_lstrcatA]
push 0x4bd988
push esi
call edi
push 0x4c7874
push esi
call edi
lea edx, [esp + 0x18]
push 5
push edx
call dword [sym.imp.kernel32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
Function at 0x494b00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
xor eax, eax
push esi
push edi
mov esi, ecx
push eax
push eax
mov ecx, 0x41
lea edi, [esp + 0x18]
push 3
push eax
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x12c]
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x494c5c
push ebx
push ebp
push 0
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x20]
push pe_nt_image_headers32
push edx
push edi
call ebp
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00494c70
movsx eax, word [esi + 0x93ab78]
movsx ecx, word [esi + 0x93ab7a]
imul eax, ecx
lea edx, [eax + eax*4]
shl edx, 1
push edx
call fcn.004a71d4
movsx ecx, word [esi + 0x93ab7a]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
movsx eax, word [esi + 0x93ab78]
imul eax, ecx
lea edx, [eax + eax*4]
shl edx, 1
push edx
push ebx
push edi
call ebp
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor edi, edi
mov eax, ebx
cmp word [esi + 0x93ab7a], di
jle 0x494c51
lea ecx, [esi + 0x5da7a]
mov dword [esp + 0x10], ecx
xor edx, edx
cmp word [esi + 0x93ab78], dx
jle 0x494c3a
mov bp, word [eax]
add eax, 2
mov word [ecx - 2], bp
mov bp, word [eax]
add eax, 2
mov word [ecx], bp
mov bp, word [eax]
add eax, 2
mov word [ecx + 2], bp
mov bp, word [eax]
add eax, 2
mov word [ecx + 4], bp
test byte [eax], 0x80
je 0x494c12
mov byte [ecx + 6], 0
jmp 0x494c16
mov byte [ecx + 6], 1
test byte [eax], 0x40
je 0x494c21
mov byte [ecx + 7], 1
jmp 0x494c25
mov byte [ecx + 7], 0
movsx ebp, word [esi + 0x93ab78]
add eax, 2
inc edx
add ecx, 0x2f00
cmp edx, ebp
jl 0x494be0
movsx edx, word [esi + 0x93ab7a]
mov ecx, dword [esp + 0x10]
inc edi
add ecx, 0x10
cmp edi, edx
mov dword [esp + 0x10], ecx
jl 0x494bd5
push ebx
call fcn.004a71c9
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10c
ret 4
Function at 0x49cc20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov esi, dword [sym.imp.user32.dll_FindWindowExA]
push edi
push 0
push 0
push 0
mov ebx, ecx
push 0
call esi
mov ebp, eax
test ebp, ebp
je 0x49ccfa
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0xff
push eax
push ebp
call dword [sym.imp.user32.dll_GetWindowTextA]
test eax, eax
jle 0x49ccbb
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x49ccab
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x49cca5
movsx edx, byte [esp + esi + 0x10]
push edx
call fcn.004a8160
add esp, 4
mov byte [esp + esi + 0x10], al
inc esi
cmp esi, edi
jl 0x49cc8e
mov esi, dword [sym.imp.user32.dll_FindWindowExA]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.0049d070
test al, al
jne 0x49ccea
push 0
push 0
push 0
push ebp
call esi
test eax, eax
je 0x49ccd6
push 1
push ebp
mov ecx, ebx
call fcn.0049cf60
test al, al
jne 0x49cced
push 0
push 0
push ebp
push 0
call esi
mov ebp, eax
test ebp, ebp
je 0x49ccfa
jmp 0x49cc46
mov dword [ebx + 0x10], ebp
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x100
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x100
ret

Function at 0x49cf60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x10c]
push ebx
push ebp
push esi
mov esi, ecx
cmp eax, 5
push edi
mov dword [esp + 0x10], esi
jg 0x49d061
mov eax, dword [esp + 0x118]
mov ebx, dword [sym.imp.user32.dll_FindWindowExA]
push 0
push 0
push 0
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x49d061
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0xff
push ecx
push ebp
stosb byte es:[edi], al
call dword [sym.imp.user32.dll_GetWindowTextA]
test eax, eax
jle 0x49d013
lea edx, [esp + 0x14]
test edx, edx
je 0x49d003
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x49cfff
movsx eax, byte [esp + esi + 0x14]
push eax
call fcn.004a8160
add esp, 4
mov byte [esp + esi + 0x14], al
inc esi
cmp esi, edi
jl 0x49cfe8
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0049d070
test al, al
jne 0x49d04f
push 0
push 0
push 0
push ebp
call ebx
test eax, eax
je 0x49d035
mov edx, dword [esp + 0x11c]
mov ecx, esi
inc edx
push edx
push ebp
call fcn.0049cf60
test al, al
jne 0x49d052
mov eax, dword [esp + 0x118]
push 0
push 0
push ebp
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x49d061
jmp 0x49cfa0
mov dword [esi + 0x10], ebp
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x104
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret 8
Function at 0x49dd60
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
xor ecx, ecx
mov al, 1
lea ebx, [ebp + 0x3c]
xor edx, edx
mov esi, ebx
mov dword [ebp], 0x4b7354
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x50], ecx
mov byte [ebp + 0x18], al
mov dword [esi], edx
push edi
push ecx
mov dword [esi + 4], edx
mov edi, dword [esp + 0x18]
push ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
lea esi, [ebp + 0x30]
mov byte [ebp + 0x19], dl
mov byte [ebp + 0x34], al
mov dword [esi], ecx
mov eax, dword [esp + 0x20]
movsx ecx, word [esp + 0x28]
mov dword [ebp + 0x20], eax
lea edx, [ecx*8 + 0x18]
push edx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x28]
push 4
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [esp + 0x20]
push 0
add edx, 0x64
push 0
push edx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
push eax
push 4
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [esi]
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax*2 + 0x1b]
lea ecx, [edx + ecx*4]
lea edx, [eax + eax*2]
shl edx, 2
push edx
mov dword [ebp + 0x28], ecx
call fcn.004a71d4
mov esi, dword [esi]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [ebp + 0x4c], eax
lea edx, [esi + esi*2]
push 0
shl edx, 2
push ecx
push edx
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x24]
pop edi
mov byte [ebp + 0x1a], cl
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4a3e00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
lea eax, [esp + 8]
push eax
push 0x202
call sub.ws2_32.dll_WSAStartup
test eax, eax
je 0x4a3e41
mov ecx, dword [0x573d68]
push 0x30
push 0x4bc8f8
push 0x4c7d28
push ecx
call dword [sym.imp.user32.dll_MessageBoxA]
push 0
call dword [sym.imp.user32.dll_PostQuitMessage]
add esp, 0x198
ret
mov edx, dword [esp + 0x19c]
mov eax, dword [0x573d70]
mov ecx, dword [0x573d68]
push edx
push eax
push ecx
mov ecx, dword [0x4d0244]
call fcn.004040e0
test eax, eax
jne 0x4a3e73
push eax
call dword [sym.imp.user32.dll_PostQuitMessage]
add esp, 0x198
ret
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x10]
push 8
push edx
call dword [sym.imp.winmm.dll_timeGetDevCaps]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.winmm.dll_timeBeginPeriod]
push 1
push 0
push 0x4a3de0
push 0
push 0x3e8
call dword [sym.imp.winmm.dll_timeSetEvent]
mov dword [0x4d0240], eax
xor edi, edi
xor eax, eax
mov ebp, 0x3f
mov ecx, 0xffffff01
lea esi, [edi*4]
mov ebx, eax
lea eax, [ecx + edi]
test eax, eax
mov edx, eax
jg 0x4a3ed1
mov edx, 1
jmp 0x4a3edb
cmp eax, 0x1f
jl 0x4a3edb
mov edx, 0x1f
test eax, eax
mov dword [ebx + 0x4d0248], edx
jg 0x4a3eec
mov eax, 1
jmp 0x4a3ef2
cmp eax, ebp
jl 0x4a3ef2
mov eax, ebp
cmp ecx, edi
mov dword [ebx + 0x4f0048], eax
jge 0x4a3f04
mov dword [esi + 0x52c13c], edi
jmp 0x4a3f1b
cmp ecx, 0x1f
jle 0x4a3f15
mov dword [esi + 0x52c13c], 0x1f
jmp 0x4a3f1b
mov dword [esi + 0x52c13c], ecx
cmp ecx, edi
jge 0x4a3f27
mov dword [esi + 0x54bf3c], edi
jmp 0x4a3f39
cmp ecx, ebp
jle 0x4a3f33
mov dword [esi + 0x54bf3c], ebp
jmp 0x4a3f39
mov dword [esi + 0x54bf3c], ecx
add ebx, 4
inc ecx
add esi, 0x100
lea edx, [ecx + 0xff]
cmp edx, 0x1fe
jl 0x4a3ec1
inc edi
mov eax, ebx
cmp edi, 0x40
jl 0x4a3eb3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
Function at 0x4a4c40
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4b5dd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov eax, dword [0x4c7d64]
push esi
push edi
mov edi, dword [esp + 0x34]
push 0
push 0
push 3
mov dword [esp + 0x24], ecx
mov cl, byte [0x4c7d68]
push 0
push 0
push closesocket
push edi
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], cl
mov dword [esp + 0x2c], 0
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp esi, 0xffffffff
mov ebp, eax
je 0x4a4cae
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x4bd878
push edi
call fcn.004a7d19
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a4dcf
lea esi, [ebp + 1]
push esi
call fcn.004a71d4
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
push ebx
and ecx, 3
push 1
push ebp
push edx
rep stosb byte es:[edi], al
mov dword [esp + 0x28], edx
call fcn.004a7d2c
push ebx
call fcn.004a7b32
push 0x114
call fcn.004a71d4
add esp, 0x1c
mov dword [esp + 0x34], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x4a4d2b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, eax
call fcn.004a60f0
mov edi, eax
mov dword [esp + 0x34], edi
jmp 0x4a4d31
mov dword [esp + 0x34], ebx
mov edi, ebx
mov ecx, edi
mov dword [esp + 0x2c], 0xffffffff
call fcn.004a6150
mov esi, eax
cmp esi, ebx
je 0x4a4db2
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
lea ebx, [edx + 4]
push 0x18
push 8
call edi
push eax
call ebp
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x2c], 1
je 0x4a4d80
push 0
push esi
push 0
mov ecx, eax
call fcn.004a5770
jmp 0x4a4d82
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
inc eax
add ebx, 4
cmp eax, 0x1f4
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], eax
jge 0x4a4dae
mov ecx, dword [esp + 0x34]
call fcn.004a6150
mov esi, eax
test esi, esi
jne 0x4a4d59
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4a4dbe
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004a71c9
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4a5460
Capabilities:
Encode data using xor
Get file size

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push closesocket
push ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
sub esi, 0xa
cmp edi, 0xffffffff
je 0x4a549d
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x4bd878
push ebx
call fcn.004a7d19
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4a54bb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea edi, [esi + 1]
push edi
call fcn.004a71d4
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
push 0xa
rep stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
call fcn.004a7d2c
push ebp
push 1
push esi
push ebx
call fcn.004a7d2c
push ebp
call fcn.004a7b32
add esp, 0x28
xor eax, eax
test esi, esi
jle 0x4a5522
mov cl, byte [esp + 0x28]
mov dl, byte [eax + ebx]
xor dl, cl
mov byte [eax + ebx], dl
inc eax
cmp eax, esi
jl 0x4a5515
mov edx, dword [esp + 0x24]
push 0x4bca38
push edx
call fcn.004a7d19
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a554f
push ebx
call fcn.004a71c9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov cl, byte [esp + 0x10]
test cl, cl
je 0x4a5568
lea eax, [esp + 0x10]
xor cl, 0x14
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4a555b
lea eax, [esp + 0x10]
push eax
call fcn.004a7ece
add esp, 4
cmp eax, esi
je 0x4a5585
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
push edi
push 1
push esi
push ebx
call fcn.004a7baf
push edi
call fcn.004a7b32
push ebx
call fcn.004a71c9
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4a5840
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x20]
push 0x4bca40
push ecx
mov dword [esi + 8], 0
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 0
push closesocket
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
mov eax, dword [esp + 0x40]
push 0
push 0
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x14]
push 0xe
push edx
push edi
call ebx
mov eax, dword [esp + 0xe]
add eax, 0xfffffff2
push eax
call fcn.004a71d4
mov edx, dword [esp + 0x12]
add esp, 4
lea ecx, [esp + 0x3c]
add edx, 0xfffffff2
push 0
push ecx
push edx
push eax
push edi
mov dword [esi + 8], eax
call ebx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov cx, word [eax + 4]
mov word [esi], cx
mov dx, word [eax + 8]
mov word [esi + 2], dx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4a5953
mov ax, word [eax + 0xe]
cmp ax, 0x18
jne 0x4a590e
mov word [esi + 4], 0
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp ax, 8
jne 0x4a5925
mov word [esi + 4], pe_nt_image_headers32
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp ax, 1
jne 0x4a593c
mov word [esi + 4], 2
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp ax, 4
jne 0x4a58fd
mov word [esi + 4], 0x10
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
mov ax, word [eax + 0x20]
pop edi
mov word [esi + 4], ax
mov eax, esi
pop esi
pop ebx
add esp, 0x2c
ret 8
Function at 0x4a66b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push edi
cmp byte [ebp + 0x10], 1
jne 0x4a66c9
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
je 0x4a66d7
push eax
call sub.ws2_32.dll_closesocket
push 0
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
mov dword [ebp + 0x20], eax
jne 0x4a66f5
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
mov edi, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov word [esp + 0x14], 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call sub.ws2_32.dll_inet_addr
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
push ebx
call sub.ws2_32.dll_htons
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x9bc]
mov word [esp + 0x12], ax
mov eax, dword [ebp + 0x20]
push 0x33
push ecx
push edx
push eax
call sub.ws2_32.dll_WSAAsyncSelect
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4a6776
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a6776
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp + 4], eax
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
mov ecx, dword [ebp + 0x20]
push esi
lea eax, [esp + 0x10]
push 4
push eax
push 0x1002
push 0xffff
push ecx
mov dword [esp + 0x24], 0xa000
call sub.ws2_32.dll_setsockopt
mov eax, dword [ebp + 0x20]
lea edx, [esp + 0x10]
push 4
push edx
push 0x1001
push 0xffff
push eax
call sub.ws2_32.dll_setsockopt
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
pop esi
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x9b8], ecx
mov byte [ebp + 0x10], 2
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 0xc