joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a803
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x11c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x130]
mov esi, ecx
test edi, edi
je 0x48a85d
cmp dword [esp + 0x134], 0
jl 0x48a85d
cmp byte [esi + 0xc], 0
jne 0x48a87b
cmp dword [0x59535c], 0
je 0x48a85d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__no_connected.
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00501f3e
add esp, 0x11c
ret 8
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push ecx
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 0x1e
push eax
push ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebp, 0xffffffff
cmp ebx, ebp
jne 0x48a8e7
cmp dword [0x59535c], 0
je 0x48a8e0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__select_err__d_.
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x14
mov eax, ebp
jmp 0x48a860
test ebx, ebx
jne 0x48a904
cmp dword [0x59535c], ebx
je 0x48a8e0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__receive_failed__select_ret_0___err__d_.
push 2
jmp 0x48a8d2
push 0
push dword [esp + 0x138]
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jne 0x48a94f
cmp dword [0x59535c], eax
je 0x48a941
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__receive_failed__size_0_.
push 2
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
mov ecx, esi
call fcn.0048a7e3
mov eax, edi
jmp 0x48a860
cmp edi, ebp
jne 0x48a948
cmp dword [0x59535c], 0
je 0x48a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__err__d_
jmp 0x48a8d0
Function at 0x48a9dd
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x98]
mov esi, ecx
test edi, edi
je 0x48aa72
xor eax, eax
inc eax
cmp dword [ebp + 0x9c], eax
jl 0x48aa72
cmp byte [esi + 0xc], 0
je 0x48aa72
mov dword [ebp - 0x78], eax
xor ebx, ebx
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x80], 0x1e
mov dword [ebp - 0x7c], ebx
call fcn.00506ab0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x48aa72
test eax, eax
je 0x48aa72
push ebx
push dword [ebp + 0x9c]
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne al
jmp 0x48aa74
xor al, al
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501f3e
lea esp, [ebp + 0x90]
pop ebp
ret 8

Function at 0x48aa8e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x48aac5
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x48aaab
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x48aac9
mov eax, edi
jmp 0x48aadf
add esi, esi
mov eax, esi
call fcn.005075c0
mov edx, dword [ebp + 8]
mov ecx, esp
push 3
push esi
call fcn.0048a35e
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x48aaf5
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x48aaf5
mov edi, dword [eax]
mov eax, edi
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501f3e
mov esp, ebp
pop ebp
ret 4
Function at 0x48b91d
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, ecx
inc ebx
test esi, esi
je 0x48b947
cmp esi, 0xffffffff
je 0x48b947
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48b947
push 0
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov al, bl
pop ebx
ret
Function at 0x48cc47
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x48ccad
xor ecx, ecx
cmp dword [esi + 0x24], ecx
jne 0x48ccad
mov dword [esi + 0x24], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push 0x48cbe7
push 0x500000
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x48cc88
cmp eax, 0xffffffff
je 0x48cc88
mov al, 1
jmp 0x48ccaf
cmp dword [0x59535c], 0
je 0x48ccad
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x56f19c
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
xor al, al
pop esi
pop ebp
ret 4

Function at 0x48d55d
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x534150
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
and dword [ebx + 0x10], 0
lea eax, [ebx + 0x18]
and dword [ebx + 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push eax
mov dword [ebx], vtable.CDownloadManager.0
call edi
and dword [esp + 0x20], 0
and dword [ebx + 0x34], 0
mov byte [ebx + 0x30], 0
call fcn.004506c4
push eax
lea ecx, [ebx + 0x3c]
call fcn.004504da
mov byte [esp + 0x20], 1
call fcn.004506c4
push eax
lea ecx, [ebx + 0x40]
call fcn.004504da
mov byte [esp + 0x20], 2
call fcn.004506c4
push eax
lea ecx, [ebx + 0x44]
call fcn.004504da
mov byte [esp + 0x20], 3
call fcn.004506c4
push eax
lea ecx, [ebx + 0x48]
call fcn.004504da
mov byte [esp + 0x20], 4
call fcn.004506c4
push eax
lea ecx, [ebx + 0x4c]
call fcn.004504da
xor eax, eax
mov dword [ebx + 0x50], 6
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x68]
push eax
call edi
lea eax, [ebx + 0x84]
push eax
call edi
mov byte [esp + 0x20], 7
call fcn.004506c4
push eax
lea ecx, [ebx + 0xa8]
call fcn.004504da
mov byte [esp + 0x20], 8
lea edi, [ebx + 0xb0]
call fcn.004506c4
push eax
mov ecx, edi
call fcn.004504da
xor eax, eax
mov byte [esp + 0x20], 9
push eax
push eax
push 1
push eax
mov dword [ebx + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 8], eax
call esi
or dword [ebx + 0xa0], 0xffffffff
mov dword [ebx + 0x38], eax
xor eax, eax
mov byte [ebx + 0x9c], al
push eax
mov ecx, ebx
mov dword [ebx + 0xa4], eax
call fcn.00490777
push 1
mov ecx, ebx
call fcn.00490729
mov ebp, 0x56f654
mov ecx, ebp
call fcn.00450b61
push eax
push ebp
mov ecx, edi
call fcn.00450ad5
call esi
push 0
mov dword [ebx + 0xac], eax
call fcn.0050344e
push eax
call fcn.0050f6b6
pop ecx
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x48e754
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x48e78f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x48e775
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x48e793
mov eax, edi
jmp 0x48e7a8
add esi, esi
mov eax, esi
call fcn.005075c0
mov ecx, esp
mov edx, ebx
push 3
push esi
call fcn.0048a35e
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, dword [ebp + 0xc]
mov ebx, eax
test ebx, ebx
je 0x48e7f5
mov ecx, esi
call fcn.00490d08
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x48e7f5
mov dword [ebp - 8], edi
mov eax, dword [eax]
mov ecx, esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004911b6
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004911df
lea ebx, [ebx + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x48e7cb
xor eax, eax
cmp dword [esi + 4], edi
setne al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501f3e
mov esp, ebp
pop ebp
ret 8
Function at 0x48f8fa
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 0x54]
test eax, eax
je 0x48f9fc
cmp dword [edi + 0x60], ebx
je 0x48f9fc
cmp byte [eax + 0x6c], bl
je 0x48f9fc
lea ebp, [edi + 0x5c]
cmp dword [ebp], ebx
je 0x48f9fc
lea eax, [esp + 0x14]
push eax
call fcn.0048f3ff
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48f96a
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450c64
jmp 0x48f9fc
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x48f9e5
push 2
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push 0xfffffffffffffffc
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x48f9e5
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
test eax, eax
je 0x48f9e5
imul eax, dword [edi + 0x50], 0x18
push 0xfffffffffffffffc
pop ecx
push 2
sub ecx, eax
mov eax, ecx
lea ecx, [esp + 0x34]
push ecx
cdq
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x48f9e5
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
imul eax, dword [edi + 0x50], 0x18
push eax
push dword [edi + 0x60]
push esi
call ebp
test eax, eax
je 0x48f9e5
mov bl, 1
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450c64
test esi, esi
je 0x48f9fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x2c
ret
Function at 0x491bf4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x534691
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0xa4]
lea edi, [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x28], edi
push edi
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 7
mov dword [esp + 0xa0], ebx
xor eax, eax
pop ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
push esi
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 3
call fcn.00450d66
lea eax, [esp + 0x44]
mov byte [esp + 0x9c], 4
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00491a94
mov bl, al
mov byte [esp + 0x9c], 3
xor eax, eax
lea ecx, [esp + 0x74]
push 0
inc eax
push eax
call fcn.004510a8
test bl, bl
je 0x491d29
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00493f77
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x491d29
lea ecx, [esp + 0x1c]
inc ebx
call fcn.0044dd2a
cmp dword [esp + 0x1c], esi
jne 0x491cf2
test ebx, ebx
je 0x491d29
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.00493e6c
mov ecx, dword [esp + 0x18]
push 1
movzx ecx, cl
cmp dword [eax + 4], 0
pop esi
cmovne ecx, esi
mov dword [esp + 0x18], ecx
jmp 0x491d2c
xor esi, esi
inc esi
push 0
push esi
lea ecx, [esp + 0x4c]
call fcn.004510a8
push 0
push esi
lea ecx, [esp + 0x34]
call fcn.004510a8
push 0
push esi
lea ecx, [esp + 0x64]
call fcn.004510a8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0x18]
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00501f3e
add esp, 0x8c
ret 4
Function at 0x4926f9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x53484f
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xa0]
lea edi, [eax + 8]
mov esi, dword [esp + 0x9c]
xor bh, bh
mov ebp, dword [esp + 0xa4]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
xor eax, eax
push 7
mov dword [esp + 0x98], edx
pop ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
mov word [esp + 0x3c], ax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov word [esp + 0x24], ax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov word [esp + 0x54], ax
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 3
call fcn.00450d66
lea eax, [esp + 0x54]
mov byte [esp + 0x94], 4
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00491a94
xor esi, esi
mov byte [esp + 0x94], 3
push esi
push 1
lea ecx, [esp + 0x74]
mov bl, al
call fcn.004510a8
test bl, bl
je 0x49288c
lea edx, [esp + 0x24]
lea ecx, [esp + 0x6c]
call fcn.00480835
mov ecx, dword [esp + 0x18]
push eax
call fcn.0044d8e7
push esi
push 1
lea ecx, [esp + 0x74]
call fcn.0044ea00
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00493e6c
mov ecx, ebx
mov esi, dword [eax]
lea eax, [esp + 0x24]
push eax
mov esi, dword [esi]
mov dword [esp + 0x1c], esi
call fcn.00493e6c
jmp 0x492880
cmp dword [ebp + 0x10], 0
je 0x49284c
push 0x57090c
call fcn.0044e9b4
pop ecx
push eax
push 0x57090c
mov ecx, ebp
call fcn.0044e4a8
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
push esi
call fcn.0044e9b4
pop ecx
push eax
push esi
mov ecx, ebp
call fcn.0044e4a8
lea ecx, [esp + 0x18]
call fcn.0044dd2a
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.00493e6c
mov esi, dword [esp + 0x18]
cmp dword [eax], esi
jne 0x49282e
xor esi, esi
cmp dword [ebp + 0x10], esi
setne bh
push esi
push 1
lea ecx, [esp + 0x5c]
call fcn.004510a8
push esi
push 1
lea ecx, [esp + 0x2c]
call fcn.004510a8
push esi
push 1
lea ecx, [esp + 0x44]
call fcn.004510a8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bh
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00501f3e
add esp, 0x84
ret 0xc
Function at 0x492f28
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [0x59535c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, ecx
je 0x492f70
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call edi
push eax
push str._INFO___d___download:_start_pos__I64d___will_download__I64d___downloaed__I64d_
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x28
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x492f86
mov byte [esi + 0xfc], 1
mov al, 1
jmp 0x49306f
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0x10]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ebx
call fcn.00493a67
cmp dword [esi + 0x84], 0
jl 0x492fe6
jg 0x492fb6
cmp dword [esi + 0x80], 0
jbe 0x492fe6
mov eax, dword [esi + 0x84]
mov ecx, esi
mov ebx, dword [esi + 0x80]
mov dword [esp + 0x10], eax
call fcn.00493aad
mov ecx, eax
mov eax, dword [esp + 0x10]
cmp edx, eax
jl 0x492fe6
jg 0x492fdd
cmp ecx, ebx
jbe 0x492fe6
push eax
push ebx
mov ecx, esi
call fcn.00493a67
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esi + 0xd0], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0xd4], eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 0x492dcb
push 0x800000
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
test eax, eax
je 0x49304c
cmp eax, 0xffffffff
je 0x49304c
cmp dword [0x59535c], 0
je 0x492f7f
call edi
push eax
push str._INFO___d___create_download_thread_success.
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
jmp 0x492f7f
cmp dword [0x59535c], 0
je 0x49306d
call edi
push eax
push str._ERROR___d___create_download_thread_failed_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4936d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x493742
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x493742
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x493742
mov ebx, dword [esi + 0xd4]
mov eax, edi
mov edi, dword [esi + 0xd0]
mov ecx, dword [esi + 0x64]
cdq
add edi, eax
mov dword [esi + 0xd0], edi
adc ebx, edx
mov dword [esi + 0xd4], ebx
test ecx, ecx
je 0x49373c
push dword [esi + 0x68]
push edx
push eax
push ebx
push edi
push dword [esi + 8]
call ecx
add esp, 0x18
mov eax, edi
mov edx, ebx
jmp 0x493747
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x497eec
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x535009
call fcn.00507124
mov edi, ecx
call fcn.004c6755
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
push eax
push str._INFO___d___OnCreate_1
push 3
push dword [0x593c04]
call fcn.004c6a0f
add esp, 0x10
mov ecx, edi
push 0xfffffffffffffff0
call fcn.004bd914
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.004bd914
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.0049a561
lea eax, [edi + 0x24]
mov ecx, ebx
push eax
call fcn.00499a50
lea ecx, [ebp - 0x36c]
call fcn.004c7b09
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
and dword [ebp - 4], 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004971ba
test al, al
jne 0x498008
call esi
push eax
push str._INFO___d___OnCreate_2
push 3
push dword [0x593c04]
call fcn.004c6a0f
mov eax, dword [edi]
lea ecx, [ebp - 0x94]
add esp, 0x10
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00497005
push eax
call fcn.0050596f
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.00496a0e
push 0
lea eax, [edi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.00497005
push eax
push esi
lea ecx, [ebp - 0x36c]
call fcn.004c8b2f
mov esi, eax
jmp 0x498063
call esi
push eax
push str._INFO___d___OnCreate_3
push 3
push dword [0x593c04]
call fcn.004c6a0f
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
add esp, 0x10
lea esi, [edi + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00497005
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
call fcn.004c8b2f
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00496a0e
test esi, esi
jne 0x4980cc
push 0xffffffffffffffff
push 0x539b7c
lea ecx, [ebp - 0x94]
call fcn.0049690b
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00496b53
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.00496a0e
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.00497005
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.00499ae6
lea eax, [edi + 0x20]
mov ecx, ebx
push eax
call fcn.00499996
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.00496a0e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.004c6c35
xor eax, eax
call fcn.005070d3
ret 0x10
Function at 0x49a880
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x49a8a3
or esi, 1
push 2
call edi
test ax, ax
jns 0x49a8af
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x49a8bb
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x49a8c7
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x49dc6d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x4a8]
call fcn.004bd914
mov edi, dword [ebp + 8]
test eax, eax
jle 0x49dcc3
push ebx
lea ecx, [esi + 0x4a8]
mov byte [ebp + 0xb], 0
call fcn.00496b03
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x49dd21
lea ecx, [esi + 0x4a8]
inc ebx
call fcn.004bd914
cmp ebx, eax
jl 0x49dc8c
sub edi, 0x100
je 0x49dd87
sub edi, 4
je 0x49dd25
dec edi
dec edi
jne 0x49dd7c
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.00507793
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x49f590
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x49dd7c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x128]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x49dd7e
cmp dword [esi + 0x108], 0
je 0x49dd7c
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.0049a880
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x49dd7c
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x49dde0
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x49dde0
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x49dde0
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00502f4e
pop ecx
pop ecx
test eax, eax
je 0x49dde0
mov ecx, dword [esi + 0x108]
call fcn.004b5e72
test al, al
jne 0x49dd7c
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x49de28
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x49de28
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x49de28
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00502f4e
pop ecx
pop ecx
test eax, eax
jne 0x49dd7c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0049ee2d
jmp 0x49dd21