joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f439
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0xffffffffffffffff
push 0x53a1a1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [esp + 0x20], edi
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ebp, dword [esi + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [esp + 0x2c], ebx
push ebp
mov dword [esp + 0x1c], 1
call fcn.004542a7
test ebp, ebp
je 0x48f587
cmp dword [esi + 0x14], 0x10
jb 0x48f4a1
mov eax, dword [esi]
jmp 0x48f4a3
mov eax, esi
cmp dword [esi + 0x14], 0x10
movzx eax, byte [eax + ebx]
mov cl, byte [eax*4 + 0x598b50]
jb 0x48f4b8
mov eax, dword [esi]
jmp 0x48f4ba
mov eax, esi
movzx eax, byte [eax + ebx + 1]
shl cl, 2
mov al, byte [eax*4 + 0x598b50]
mov byte [esp + 0x17], al
sar al, 4
and al, 3
or al, cl
mov ecx, edi
mov byte [esp + 0x1c], al
push dword [esp + 0x1c]
mov byte [esp + 0x1a], al
push 1
call fcn.0045a784
add ebx, 2
cmp ebx, ebp
jae 0x48f53c
cmp dword [esi + 0x14], 0x10
jb 0x48f4fa
mov eax, dword [esi]
jmp 0x48f4fc
mov eax, esi
cmp byte [eax + ebx], 0x3d
je 0x48f587
cmp dword [esi + 0x14], 0x10
jb 0x48f510
mov eax, dword [esi]
jmp 0x48f512
mov eax, esi
movzx eax, byte [eax + ebx]
mov cl, byte [esp + 0x17]
shl cl, 4
mov al, byte [eax*4 + 0x598b50]
mov byte [esp + 0x16], al
sar al, 2
and al, 0xf
or al, cl
mov ecx, edi
movzx eax, al
push eax
push 1
call fcn.0045a784
inc ebx
cmp ebx, ebp
jae 0x48f57e
cmp dword [esi + 0x14], 0x10
jb 0x48f54b
mov eax, dword [esi]
jmp 0x48f54d
mov eax, esi
cmp byte [eax + ebx], 0x3d
je 0x48f587
cmp dword [esi + 0x14], 0x10
jb 0x48f55d
mov eax, dword [esi]
jmp 0x48f55f
mov eax, esi
movzx eax, byte [eax + ebx]
mov cl, byte [esp + 0x16]
shl cl, 6
or cl, byte [eax*4 + 0x598b50]
movzx eax, cl
mov ecx, edi
push eax
push 1
call fcn.0045a784
inc ebx
cmp ebx, ebp
jb 0x48f497
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x48fa60
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x48fb0a
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, 0x40
jne 0x48fb0a
push ebp
push esi
push ecx
mov ecx, ebx
call fcn.0048fd22
xor esi, esi
mov ecx, dword [edi]
movzx edx, byte [esi + ecx]
movzx eax, byte [esi + ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + ecx + 3]
shl edx, 8
or edx, eax
mov eax, dword [ebx]
mov dword [esi + eax], edx
add esi, 4
cmp esi, 0x40
jl 0x48fa8c
push 4
pop ebp
mov edi, dword [ebx]
mov ecx, dword [edi + ebp]
mov esi, ecx
mov edx, dword [edi + ebp + 0x34]
mov eax, ecx
rol esi, 0xe
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [edi + ebp - 4]
add esi, dword [edi + ebp + 0x20]
mov dword [edi + ebp + 0x3c], esi
add ebp, 4
cmp ebp, 0xc4
jl 0x48fac0
pop esi
mov al, 1
pop ebp
jmp 0x48fb0c
xor al, al
pop edi
pop ebx
ret 8

Function at 0x48fb11
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x10
push ebx
test ecx, ecx
je 0x48fc34
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
and eax, 0xfffffffc
cmp eax, 0x20
jne 0x48fc34
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
and eax, 0xfffffffc
cmp eax, 0x100
jne 0x48fc34
push ebp
push esi
push edi
push ecx
lea ecx, [esp + 0x18]
call fcn.004813d4
and dword [esp + 0x10], 0
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
mov ebp, edx
mov esi, dword [edi + 0x18]
mov eax, edx
rol eax, 7
mov ecx, edx
ror ebp, 0xb
not ecx
xor ebp, eax
and ecx, esi
mov eax, edx
ror eax, 6
xor ebp, eax
mov eax, dword [edi + 0x14]
and eax, edx
xor ecx, eax
mov eax, dword [0x59ddf0]
add ebp, ecx
mov ecx, dword [esp + 0x10]
add ebp, dword [ecx + eax]
mov eax, dword [ebx]
add ebp, dword [ecx + eax]
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx]
add ebp, dword [ecx + 0x1c]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov dword [ecx + 0x1c], esi
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 0xc]
add eax, ebp
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 8], eax
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, ebx
ror ecx, 0xd
mov eax, ebx
rol eax, 0xa
xor ecx, eax
mov eax, ebx
ror eax, 2
xor ecx, eax
mov eax, edi
xor eax, edx
and edi, edx
and eax, ebx
add ecx, ebp
mov ebx, dword [esp + 0x24]
xor eax, edi
mov edi, dword [esp + 0x14]
add eax, ecx
mov dword [edi], eax
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
cmp eax, 0x100
jl 0x48fb5f
mov esi, dword [esp + 0x28]
xor edx, edx
mov ecx, dword [esi]
mov eax, dword [edx + edi]
add dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x48fc16
push edi
call fcn.0050815e
pop ecx
pop edi
pop esi
mov al, 1
pop ebp
jmp 0x48fc36
xor al, al
pop ebx
add esp, 0x10
ret 8
Function at 0x4903e2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x490427
mov eax, dword [esp]
cmp al, 2
jne 0x490421
shr eax, 8
cmp al, 2
jne 0x490421
dec al
jmp 0x490429
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00508163
mov esp, ebp
pop ebp
ret
Function at 0x4907a6
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x11c
mov eax, dword [0x596700]
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 0x490800
cmp dword [esp + 0x134], 0
jl 0x490800
cmp byte [esi + 0xc], 0
jne 0x49081e
cmp dword [0x59d50c], 0
je 0x490800
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__no_connected.
push 1
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00508163
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 0x49088a
cmp dword [0x59d50c], 0
je 0x490883
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 [0x59d50c]
call fcn.00485f11
add esp, 0x14
mov eax, ebp
jmp 0x490803
test ebx, ebx
jne 0x4908a7
cmp dword [0x59d50c], ebx
je 0x490883
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 0x490875
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 0x4908f2
cmp dword [0x59d50c], eax
je 0x4908e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__receive_failed__size_0_.
push 2
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x10
mov ecx, esi
call fcn.00490786
mov eax, edi
jmp 0x490803
cmp edi, ebp
jne 0x4908eb
cmp dword [0x59d50c], 0
je 0x490883
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 0x490873
Function at 0x490980
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x596700]
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 0x490a15
xor eax, eax
inc eax
cmp dword [ebp + 0x9c], eax
jl 0x490a15
cmp byte [esi + 0xc], 0
je 0x490a15
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.0050cd80
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 0x490a15
test eax, eax
je 0x490a15
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 0x490a17
xor al, al
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508163
lea esp, [ebp + 0x90]
pop ebp
ret 8

Function at 0x490a31
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x596700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x490a68
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x490a4e
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x490a6c
mov eax, edi
jmp 0x490a82
add esi, esi
mov eax, esi
call fcn.0050d7e0
mov edx, dword [ebp + 8]
mov ecx, esp
push 3
push esi
call fcn.00490301
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x490a98
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x490a98
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.00508163
mov esp, ebp
pop ebp
ret 4
Function at 0x491890
Capabilities:
Terminate thread

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x492c1e
xor ecx, ecx
cmp dword [esi + 0x24], ecx
jne 0x492c1e
mov dword [esi + 0x24], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push 0x492b58
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 0x492bf9
cmp eax, 0xffffffff
je 0x492bf9
mov al, 1
jmp 0x492c20
cmp dword [0x59d50c], 0
je 0x492c1e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x5767fc
push 1
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x10
xor al, al
pop esi
pop ebp
ret 4
Function at 0x49465b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x596700]
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 0x494696
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x49467c
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x49469a
mov eax, edi
jmp 0x4946af
add esi, esi
mov eax, esi
call fcn.0050d7e0
mov ecx, esp
mov edx, ebx
push 3
push esi
call fcn.00490301
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, dword [ebp + 0xc]
mov ebx, eax
test ebx, ebx
je 0x4946fc
mov ecx, esi
call fcn.00496bb3
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4946fc
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.00496e03
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00496e2c
lea ebx, [ebx + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x4946d2
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.00508163
mov esp, ebp
pop ebp
ret 8
Function at 0x4957a5
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 0x4958a7
cmp dword [edi + 0x60], ebx
je 0x4958a7
cmp byte [eax + 0x6c], bl
je 0x4958a7
lea ebp, [edi + 0x5c]
cmp dword [ebp], ebx
je 0x4958a7
lea eax, [esp + 0x14]
push eax
call fcn.004952d3
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 0x495815
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450ce2
jmp 0x4958a7
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x495890
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 0x495890
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 0x495890
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 0x495890
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 0x495890
mov bl, 1
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450ce2
test esi, esi
je 0x4958a7
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 0x49771a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x53ac51
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
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.00450dd2
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.004975ba
mov bl, al
mov byte [esp + 0x9c], 3
xor eax, eax
lea ecx, [esp + 0x74]
push 0
inc eax
push eax
call fcn.00451108
test bl, bl
je 0x49784f
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004999f0
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x49784f
lea ecx, [esp + 0x1c]
inc ebx
call fcn.0044ddff
cmp dword [esp + 0x1c], esi
jne 0x497818
test ebx, ebx
je 0x49784f
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.00499919
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 0x497852
xor esi, esi
inc esi
push 0
push esi
lea ecx, [esp + 0x4c]
call fcn.00451108
push 0
push esi
lea ecx, [esp + 0x34]
call fcn.00451108
push 0
push esi
lea ecx, [esp + 0x64]
call fcn.00451108
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.00508163
add esp, 0x8c
ret 4
Function at 0x49821f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x53ae0f
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
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.00450dd2
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.004975ba
xor esi, esi
mov byte [esp + 0x94], 3
push esi
push 1
lea ecx, [esp + 0x74]
mov bl, al
call fcn.00451108
test bl, bl
je 0x4983b2
lea edx, [esp + 0x24]
lea ecx, [esp + 0x6c]
call fcn.004869e0
mov ecx, dword [esp + 0x18]
push eax
call fcn.0044d9e5
push esi
push 1
lea ecx, [esp + 0x74]
call fcn.0044ea87
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00499919
mov ecx, ebx
mov esi, dword [eax]
lea eax, [esp + 0x24]
push eax
mov esi, dword [esi]
mov dword [esp + 0x1c], esi
call fcn.00499919
jmp 0x4983a6
cmp dword [ebp + 0x10], 0
je 0x498372
push 0x577f10
call fcn.0044ea41
pop ecx
push eax
push 0x577f10
mov ecx, ebp
call fcn.0044e558
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
push esi
call fcn.0044ea41
pop ecx
push eax
push esi
mov ecx, ebp
call fcn.0044e558
lea ecx, [esp + 0x18]
call fcn.0044ddff
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.00499919
mov esi, dword [esp + 0x18]
cmp dword [eax], esi
jne 0x498354
xor esi, esi
cmp dword [ebp + 0x10], esi
setne bh
push esi
push 1
lea ecx, [esp + 0x5c]
call fcn.00451108
push esi
push 1
lea ecx, [esp + 0x2c]
call fcn.00451108
push esi
push 1
lea ecx, [esp + 0x44]
call fcn.00451108
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.00508163
add esp, 0x84
ret 0xc
Function at 0x4989d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [0x59d50c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, ecx
je 0x498a1d
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 [0x59d50c]
call fcn.00485f11
add esp, 0x28
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x498a33
mov byte [esi + 0xfb], 1
mov al, 1
jmp 0x498b1c
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.00499514
cmp dword [esi + 0x84], 0
jl 0x498a93
jg 0x498a63
cmp dword [esi + 0x80], 0
jbe 0x498a93
mov eax, dword [esi + 0x84]
mov ecx, esi
mov ebx, dword [esi + 0x80]
mov dword [esp + 0x10], eax
call fcn.0049955a
mov ecx, eax
mov eax, dword [esp + 0x10]
cmp edx, eax
jl 0x498a93
jg 0x498a8a
cmp ecx, ebx
jbe 0x498a93
push eax
push ebx
mov ecx, esi
call fcn.00499514
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 0x498878
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 0x498af9
cmp eax, 0xffffffff
je 0x498af9
cmp dword [0x59d50c], 0
je 0x498a2c
call edi
push eax
push str._INFO___d___create_download_thread_success.
push 3
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x10
jmp 0x498a2c
cmp dword [0x59d50c], 0
je 0x498b1a
call edi
push eax
push str._ERROR___d___create_download_thread_failed_
push 1
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x499183
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 0x4991ef
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x4991ef
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 0x4991ef
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 0x4991e9
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 0x4991f4
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8