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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x46b3b7
cmp byte [esi + 1], 0
je 0x46b3bf
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x46b3d1
cmp byte [esi + 1], 0
je 0x46b3c5
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x46b3d9
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x46b391
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x46b3d9
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x46b3eb
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0049c7c6
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x46b405
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x46b519
jmp 0x46b429
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x46b438
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x46b44f
mov ebx, 0x404
cmp byte [esi], 0
je 0x46b474
cmp byte [esi + 1], 0
je 0x46b519
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x46b477
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x46b4a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46b49b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x46b4c9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x46b4b1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0049fa60
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x46b519
lea eax, [ebx - 3]
test eax, eax
jle 0x46b50d
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x46b4ff
cmp byte [eax + ecx + 1], 0x4b
jne 0x46b4ff
cmp byte [eax + ecx + 2], 5
jne 0x46b4ff
cmp byte [eax + ecx + 3], 6
je 0x46b505
test eax, eax
jg 0x46b4e0
jmp 0x46b50d
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x46b519
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x46b420
mov eax, dword [ebp - 0x10]
push eax
call fcn.0049c78c
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x46c226
cmp dword [esi + 4], 0xffffffff
jne 0x46c226
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46c1c0
mov eax, dword [0x4d5cf0]
mov dword [edi], eax
cmp ebx, 1
jne 0x46c1f1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, ebx
je 0x46c1f1
mov eax, 0x2000000
pop edi
pop ecx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push ecx
mov edi, ebx
call fcn.0046aff0
add esp, 0xc
test eax, eax
jne 0x46c214
mov eax, dword [ebp + 8]
pop edi
pop ecx
pop ebp
ret 8
call fcn.0046b530
mov dword [esi], eax
mov eax, dword [0x4f9c98]
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8
Function at 0x4725f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x4d4], 0
je 0x472675
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0x100
jne 0x472654
cmp bx, 0xd
jne 0x472654
cmp byte [esi + 0x4da], 0
je 0x472634
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x472654
cmp byte [esi + 0x4db], 0
jne 0x472654
mov edi, dword [esi + 0x40]
test edi, edi
je 0x47264b
push 0
push 0
push str.return
mov ecx, esi
call fcn.00450780
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ebx
push edi
call edx
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x47db60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
push ebx
mov dword [eax + 0x5b8], 0
cmp dword [edi + 4], 0
push esi
jne 0x47dc09
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x9c], edx
mov edx, dword [eax + 0x1c]
call edx
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [eax]
push 0
sub ebx, edx
push ebx
sub esi, ecx
push esi
push edx
push ecx
push 0
push 0x40000000
push 0
push eax
mov eax, edi
call fcn.00445bf0
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov ebx, dword [ecx + 0x4a8]
call eax
mov esi, eax
mov eax, ebx
call fcn.00450f70
mov ecx, dword [eax]
mov edx, dword [edi + 4]
push 1
push ecx
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x90]
push edx
call eax
mov ecx, dword [eax]
cmp word [ecx], 0
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
sete bl
cmp eax, edx
je 0x47dc3c
push eax
call fcn.0049c78c
add esp, 4
test bl, bl
je 0x47dc4f
mov eax, dword [edi + 0x10]
add eax, 0x5a8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 4]
add ecx, 0x5a8
push ecx
push 0
push 0x1002
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov byte [edi + 0x18], 1
pop ebx
call fcn.0049c72a
mov esp, ebp
pop ebp
ret 4
Function at 0x481f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x481fa4
cmp eax, edi
jge 0x481f9c
call fcn.004816e0
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor eax, eax
test edi, edi
jle 0x481fcf
mov ecx, dword [esi + 0xc]
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + eax - 4], dl
shr ecx, 8
mov ebx, edi
inc eax
mov dword [esi + 0xc], ecx
test ebx, ebx
jg 0x481fb0
mov dword [esi + 8], ebx
cmp eax, 4
jge 0x481fee
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x481fdc
xor ecx, ecx
jmp 0x481fe4
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
movzx ecx, dl
mov byte [ebp + eax - 4], cl
inc eax
cmp eax, 4
jl 0x481fd2
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp - 2]
movzx ebx, ah
movzx eax, al
shl ebx, 8
add ebx, eax
shl ecx, 8
mov eax, ebx
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x482027
mov dword [0x4f949c], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
add ecx, ebx
cmp ecx, dword [esi + 4]
jbe 0x482043
pop edi
pop esi
mov dword [0x4f949c], 0x4e1824
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
add edx, ebx
cmp edx, dword [esi + 0x18]
jbe 0x48205a
mov ecx, ebx
mov edi, esi
call fcn.00481720
test eax, eax
je 0x48201e
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
push ebx
push edi
push eax
call fcn.0049fa60
mov eax, dword [esi + 0x10]
add edi, ebx
add esp, 0xc
add eax, ebx
mov dword [esi], edi
pop edi
mov dword [esi + 0x10], eax
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x487d90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0049f8e0
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xfff
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call fcn.0049f910
lea eax, [ebp - 0x1004]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x487dd0
sub eax, edx
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
mov ecx, 0xffe
sub ecx, eax
push ecx
lea edx, [ebp + eax - 0x1004]
push edx
call fcn.004a65a9
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x1004]
push ecx
call fcn.0049f81e
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
Function at 0x488660
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push 0x4f9fe0
mov esi, eax
mov dword [ebp - 0x10], edi
call fcn.00490210
push 0x4f9fe0
mov dword [ebp - 4], esi
call fcn.00490230
add esp, 8
test esi, esi
je 0x488804
push ebx
mov esi, dword [ebp - 4]
cmp dword [esi + 0x10], 3
jne 0x4887ed
mov dword [ebp - 0xc], 0
lea edi, [esi + 0x158]
lea esp, [esp]
mov ebx, dword [edi - 4]
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
je 0x4887d4
mov eax, dword [ebp + 8]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4887d4
mov ecx, dword [esi + 4]
push ecx
call fcn.0048f340
mov esi, eax
add esp, 4
mov dword [esi], 0
call sub.KERNEL32.dll_GetTickCount
mov dword [edi - 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x488704
cmp eax, 0x1ffe8
ja 0x488704
push 0
push eax
lea edx, [esi + 0x18]
push edx
jmp 0x48870f
push 0
push 0x1ffe8
lea eax, [esi + 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jne 0x488743
mov ecx, dword [ebp - 8]
push ecx
call fcn.00490640
mov edx, dword [ebp - 4]
or eax, 0xffffffff
mov dword [edi - 4], eax
mov dword [edi - 0xc], eax
mov eax, dword [edx + 4]
push esi
push eax
call fcn.0048f3c0
add esp, 0xc
jmp 0x4887d4
call fcn.0049f9cc
mov eax, dword [eax]
cmp eax, 4
je 0x4887a8
cmp eax, 0xb
je 0x4887a8
test ebx, ebx
js 0x48871c
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], ebx
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov ecx, dword [edi]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x10], edx
mov dword [esi + 8], ecx
add dword [edi], ebx
inc dword [eax + 0xc]
push esi
call fcn.00490270
mov edx, dword [edi]
add esp, 4
cmp edx, dword [edi + 4]
jne 0x4887d4
mov eax, dword [ebp - 8]
push eax
call fcn.00490640
add esp, 4
or eax, 0xffffffff
mov dword [edi - 4], eax
mov dword [edi - 0xc], eax
mov dword [edi - 8], 0
jmp 0x4887d4
call fcn.0049f9cc
mov ecx, dword [eax]
push ecx
push 0x281
push str.GetDownloadData
push str._s__d__errno___d____n
call fcn.00487d90
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push esi
push eax
call fcn.0048f3c0
add esp, 0x18
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
inc eax
add edi, 0x114
mov dword [ebp - 0xc], eax
cmp eax, 5
jl 0x4886b0
mov eax, dword [esi]
mov dword [ebp - 4], eax
test eax, eax
jne 0x488692
mov eax, dword [ebp - 0x10]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x488c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
call sub.KERNEL32.dll_GetTickCount
mov ecx, eax
sub ecx, dword [0x4f715c]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
mov edx, ecx
sub edx, eax
cmp ecx, 0x3e8
jb 0x488c87
mov ecx, dword [0x4f7150]
shr ecx, 1
mov dword [0x4f7164], 0
mov dword [0x4f7160], ecx
call sub.KERNEL32.dll_GetTickCount
mov dword [0x4f715c], eax
mov eax, dword [0x4f7160]
pop ebp
ret
mov eax, dword [0x4f7160]
sub eax, dword [ebp + 8]
mov dword [0x4f7160], eax
cmp edx, 0x1f4
jae 0x488cca
test eax, eax
jg 0x488d2e
mov eax, 0x1ea
sub eax, edx
je 0x488cbb
mov ecx, 0x1f4
sub ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4f7160], 0
or eax, 0xffffffff
pop ebp
ret
cmp dword [0x4f7164], 0
jne 0x488cee
mov edx, dword [0x4f7150]
shr edx, 1
add eax, edx
mov dword [0x4f7160], eax
mov dword [0x4f7164], 1
pop ebp
ret
test eax, eax
jg 0x488d2e
mov eax, 0x3e3
sub eax, edx
je 0x488d09
mov ecx, 0x3e8
sub ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [0x4f7150]
shr edx, 1
mov dword [0x4f715c], eax
mov dword [0x4f7160], edx
mov dword [0x4f7164], 0
or eax, 0xffffffff
pop ebp
ret

Function at 0x488fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.12:40:30
push str.Jan_23_2015
push str.build_time:__s__s_n
call fcn.00487d90
mov eax, dword [ebp + 8]
push 0x4f9fe0
mov dword [0x4f7020], 0
mov dword [0x4f7150], eax
mov dword [0x4f7030], 0
call fcn.00490200
push 0x104
push 0
push 0x4f7048
call fcn.0049f910
push 0x14
push 0x20000
push 0x14
call fcn.0048f2c0
push 0x14
push 0xa3c
push 0x14
mov dword [0x4f7044], eax
call fcn.0048f2c0
add esp, 0x34
push 0x104
push 0x4f7048
push 0
mov dword [0x4f7038], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x48906a
mov eax, 0x4f7048
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x489036
sub eax, edx
cmp byte [eax + 0x4f7048], 0x5c
lea eax, [eax + 0x4f7048]
je 0x48905d
mov edi, edi
cmp eax, 0x4f7048
jb 0x489064
dec eax
cmp byte [eax], 0x5c
jne 0x489050
cmp eax, 0x4f7048
je 0x48907c
mov byte [eax + 1], 0
jmp 0x48907c
push 0x4c6b1c
push 0x4f7048
call fcn.0049ccba
add esp, 8
push esi
call fcn.00490910
call fcn.004902e0
call fcn.00490ec0
call fcn.0048c110
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x490a40
push 0
push 0
call esi
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x490330
push 0
push 0
mov dword [0x4f703c], eax
call esi
mov dword [0x4f714c], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x491280
push 0
push 0
call esi
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x488d30
push 0
push 0
mov dword [0x4f7040], eax
call esi
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x48d210
push 0
push 0
mov dword [0x4f702c], eax
call esi
mov dword [0x4f7028], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48f510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x3ff
mov esi, ecx
lea ecx, [ebp - 0x433]
push 0
push ecx
mov dword [ebp - 0x490], eax
mov byte [ebp - 0x434], 0
call fcn.0049f910
push 0x4d45d8
push esi
call fcn.0049d1a1
mov esi, eax
add esp, 0x14
test esi, esi
je 0x48f58f
push 2
push 0
push esi
call fcn.0049d89d
push esi
call fcn.0049d7ae
add esp, 0x10
cmp eax, 0x74
je 0x48f5a1
push 0x43
push str.LoadDownloadLogInfo
push str._s__d__file_size_not_right_n
call fcn.00487d90
push esi
call fcn.0049d986
add esp, 0x10
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
push esi
call fcn.0049d89d
push esi
push 0x74
lea edx, [ebp - 0x434]
push 1
push edx
call fcn.0049d402
push esi
mov edi, eax
call fcn.0049d986
add esp, 0x20
cmp edi, 0x74
pop edi
je 0x48f5f6
push 0x4e
push str.LoadDownloadLogInfo
push str._s__d__logfile_read_error_n
call fcn.00487d90
add esp, 0xc
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x48c]
push eax
call fcn.00494820
push 0x54
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x48c]
push edx
call fcn.00494860
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x48c]
push ecx
call fcn.00494940
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00490fb0
add esp, 0x20
mov eax, 0x20
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x434]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x48f65b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x48f645
jmp 0x48f68f
movzx esi, byte [ecx]
movzx eax, byte [edx]
sub eax, esi
jne 0x48f687
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x48f687
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x48f687
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jne 0x48f6eb
test ebx, ebx
je 0x48f6b4
lea edx, [ebp - 0x414]
mov ecx, 0x20
mov eax, ebx
sub edx, ebx
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x48f6dd
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x48f6a2
mov eax, dword [ebp - 0x490]
push 0x54
lea edx, [ebp - 0x414]
push edx
push eax
call fcn.0049fa60
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
push 0x5d
push str.LoadDownloadLogInfo
push str._s__d__file_md5_not_right_n
jmp 0x48f6f7
push 0x63
push str.LoadDownloadLogInfo
push str._s__d__logfile_md5_not_right_n
call fcn.00487d90
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0xfffffffd
pop esi
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
Function at 0x48f9a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x358]
xor ebx, ebx
mov edx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
lea esi, [edi + 0x364]
mov eax, dword [esi]
cmp dword [esi + 4], eax
jne 0x48fa05
mov ecx, dword [edi + 0x358]
cmp ecx, eax
je 0x48fa05
test eax, eax
jne 0x48f9e8
mov eax, ecx
mov dword [esi], eax
mov ecx, dword [edi + 0x358]
mov dword [esi + 4], ecx
jmp 0x48fa05
push ecx
push eax
push ebx
push 0xf8
push str.RefreshLogfile
push str._s__d__index__d__offset__d__filesize__d__n
call fcn.00487d90
mov edx, dword [ebp - 8]
add esp, 0x18
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub ecx, eax
add edx, ecx
mov dword [ebp - 8], edx
cmp dword [ebp - 4], eax
jae 0x48fa19
mov dword [ebp - 4], eax
inc ebx
add esi, 8
cmp ebx, 5
jl 0x48f9c4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
je 0x48fa30
sub eax, ecx
add edx, eax
cmp edx, dword [edi + 0x360]
je 0x48fa6d
mov eax, dword [edi + 0x360]
mov ecx, edx
sub ecx, eax
push ecx
push eax
push edx
add edi, 0x208
push edi
push 0x10e
push str.RefreshLogfile
push str._s__d__clogname__s____totaldlbytes___u__dltotalbytes___d__value_d_____n
call fcn.00487d90
add esp, 0x1c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [edi + 0x208]
push 0x4c7b64
push ebx
call fcn.0049d1a1
mov esi, eax
add esp, 8
test esi, esi
jne 0x48fac4
push 0x4d46bc
push ebx
call fcn.0049d1a1
mov esi, eax
add esp, 8
test esi, esi
jne 0x48fac4
call fcn.0049f9cc
mov edx, dword [eax]
push edx
push 0x118
push str.RefreshLogfile
push str._s__d__fopen_fail__errno__d__n
call fcn.00487d90
add esp, 0x10
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [edi + 0x318]
push ebx
add edi, 0x338
push 0x54
push edi
call fcn.004910c0
push esi
push 0x20
push 1
push ebx
call fcn.0049d5a0
push esi
push 0x54
push 1
push edi
call fcn.0049d5a0
push esi
call fcn.0049d986
add esp, 0x30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4904c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x4904d9
or eax, eax
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x49059d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x49059d
push ebx
jle 0x49056c
mov ebx, dword [sym.imp.WS2_32.dll_send]
jmp 0x490503
mov eax, dword [ebp + 8]
cmp dword [0x4f7020], 0
jne 0x490575
push 0
cmp esi, 0x400
jle 0x49051d
push 0x400
jmp 0x49051e
push esi
push edi
push eax
call ebx
cmp dword [0x4f7020], 0
jne 0x49057c
cmp eax, esi
je 0x49056c
test eax, eax
js 0x490540
sub esi, eax
mov dword [ebp - 4], 0
add edi, eax
jmp 0x490568
call fcn.0049f9cc
cmp dword [eax], 4
je 0x490554
call fcn.0049f9cc
cmp dword [eax], 0xb
jne 0x490593
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 0xa
jg 0x490593
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jg 0x490500
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0xb5
jmp 0x490581
push 0xc4
push str.SendData
push str._s__d__exit_n
call fcn.00487d90
add esp, 0xc
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4f7020], esi
jne 0x49060c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [0x4f7020], 0
jne 0x49062b
test eax, eax
jns 0x490626
call fcn.0049f9cc
cmp dword [eax], 0xb
je 0x4905f5
call fcn.0049f9cc
cmp dword [eax], 4
jne 0x490623
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jg 0x490623
cmp dword [0x4f7020], 0
je 0x4905c6
push 0xee
push str.ReceiveData
push str._s__d__exit_n
call fcn.00487d90
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xf5
jmp 0x490611
Function at 0x491170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x4d45d8
push eax
call fcn.0049d1a1
mov edi, eax
add esp, 8
test edi, edi
jne 0x4911bc
push str.Can_not_open_this_file__n
call fcn.00487d90
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00494820
push edi
call fcn.0049f3ff
add esp, 8
test eax, eax
jne 0x491228
jmp 0x4911f0
push edi
push 0x1000
push 1
push 0x4f7338
call fcn.0049d402
add esp, 0x10
test eax, eax
jle 0x49121b
push eax
lea ecx, [ebp - 0x6c]
push 0x4f7338
push ecx
call fcn.00494860
add esp, 0xc
push edi
call fcn.0049f3ff
add esp, 4
test eax, eax
je 0x4911f0
push edi
call fcn.0049d986
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x6c]
push eax
call fcn.00494940
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.00490fb0
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
Function at 0x494820
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x494ab0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x494b20
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x494ad6
pop esi
pop edi
pop ebp
ret