joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418a19
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor edi, edi
push edi
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x418a3f
xor al, al
jmp 0x418aee
push ebx
push 0x10
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0049d740
add esp, 0xc
push 2
pop eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x14], ax
call edi
mov ebx, dword [sym.imp.WS2_32.dll_bind]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call ebx
cmp eax, 0xffffffff
jne 0x418aa3
push 0
call edi
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call ebx
cmp eax, 0xffffffff
jne 0x418aa3
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x418aed
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 8]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x22]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 5
push dword [esi + 8]
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_listen]
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
lea ecx, [esi + 0x44]
mov edx, dword [ecx]
push esi
push 0x41872b
call dword [edx + 4]
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x418af4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push ebx
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x418b1a
xor al, al
jmp 0x418bc6
push edi
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0049d740
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
lea edi, [eax + ecx]
cmp eax, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], eax
jge 0x418b6d
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x418b6d
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jl 0x418b44
cmp dword [ebp + 8], edi
pop edi
jne 0x418b7e
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x418b13
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 8]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x22]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 5
push dword [esi + 8]
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_listen]
push ebx
push ebx
push ebx
lea ecx, [esi + 0x44]
push esi
mov dword [esi + 0x28], eax
mov eax, dword [ecx]
push 0x41872b
call dword [eax + 4]
mov al, 1
pop esi
pop ebx
leave
ret 8
Function at 0x418c2b
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x50fd6d
call fcn.00508264
push ecx
push ecx
and dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0xe8
call fcn.0049ad2e
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x418c75
push dword [ebp + 8]
push esi
push eax
call fcn.00418d7f
mov edi, eax
jmp 0x418c77
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], edi
test edi, edi
je 0x418c96
push ebx
add esi, 0x2c
lea ebx, [ebp + 8]
call fcn.0041990e
mov eax, edi
call fcn.00418e50
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x418ca6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50fd6d
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
jmp 0x418d5d
cmp dword [edi + 0x24], 0xffffffff
je 0x418d52
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.HttpServer::Run_:_begin_accept_socket.__n
call esi
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_accept]
push str.HttpServer::Run_:__Leave_accept_socket._n
mov ebx, eax
call esi
cmp ebx, 0xffffffff
je 0x418d5d
push 0xe8
call fcn.0049ad2e
pop ecx
mov dword [esp + 0x14], eax
and dword [esp + 0x24], 0
test eax, eax
je 0x418d25
push ebx
lea ecx, [edi - 4]
push ecx
push eax
call fcn.00418d7f
mov dword [esp + 0x10], eax
jmp 0x418d2a
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
or dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x14], eax
test eax, eax
je 0x418d5d
lea esi, [edi + 0x28]
lea ebx, [esp + 0x14]
call fcn.0041990e
mov eax, dword [esp + 0x10]
call fcn.00418e50
jmp 0x418d5d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [edi + 0x40]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x418cce
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b1fd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
lea ecx, [esi + 0x16a0]
call fcn.004017bb
push dword [ebp + 8]
lea ecx, [esi + 0x16bc]
call fcn.004017bb
push dword [ebp + 0xc]
lea ecx, [esi + 0x16d8]
call fcn.004017bb
push dword [ebp + 8]
lea ecx, [esi + 0x2c]
call fcn.004017bb
push dword [ebp + 0xc]
lea ecx, [esi + 0x48]
call fcn.004017bb
push 0xffffffffffffffff
xor edi, edi
push edi
push 0x55a5d0
lea ecx, [esi + 0x10]
call fcn.00401729
push dword [ebp + 0x10]
lea ecx, [esi + 0x1674]
call fcn.00401829
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push esi
push 0x41e1bf
push edi
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
pop edi
pop ebp
ret 0xc

Function at 0x41c308
Capabilities:
Create thread

Disassembly:
mov eax, 0x50f32e
call fcn.00508264
push ecx
push esi
push edi
push 0xd0
call fcn.0049ad2e
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x41c343
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call fcn.00426921
mov esi, eax
jmp 0x41c345
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x1724]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [ebp + 0x14], esi
sar ecx, 2
mov dword [esi + 0xb8], ecx
lea ecx, [ebp + 0x14]
push ecx
call fcn.0041df28
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push esi
push 0x41e34c
push edi
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret 0x10
Function at 0x41ef15
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
lea esi, [edi + 4]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push ebx
mov dword [edi], vtable.FileListInReg.0
push ebx
mov byte [edi + 0x10], bl
mov dword [edi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push ebx
mov dword [esi + 8], eax
lea eax, [esi - 4]
push eax
push 0x4207b9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, edi
pop ebx
ret
Function at 0x422219
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
xor esi, esi
push edi
test ebx, ebx
jle 0x422253
push 0
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [esp + 0x18]
add eax, esi
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42224d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x422258
add esi, edi
cmp esi, ebx
jl 0x422221
mov eax, ebx
pop edi
pop esi
ret
mov eax, esi
jmp 0x422255

Function at 0x42225c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
test byte [0x55a8d4], 1
jne 0x422278
or dword [0x55a8d4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x55a8d0], eax
push ebx
push ebp
push esi
push edi
push 0
push 0x55a4e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x55a874
push esi
mov dword [esp + 0x14], eax
call ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x55a8d0]
mov edi, eax
mov eax, dword [0x55a8cc]
cmp edi, ecx
je 0x4222ba
mov ebx, edi
sub ebx, ecx
xor edx, edx
div ebx
cmp dword [esp + 0x10], 0
jbe 0x4222d1
cmp eax, dword [esp + 0x10]
jbe 0x4222d1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42229b
mov eax, edi
sub eax, ecx
cmp eax, 0x3e8
jbe 0x4222e9
and dword [0x55a8cc], 0
mov dword [0x55a8d0], edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
push dword [esp + 0x1c]
call fcn.00422219
pop ecx
pop ecx
push esi
mov ebx, eax
call ebp
add dword [0x55a8cc], ebx
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

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

Disassembly:
mov eax, dword [esi + 0x14]
push ebx
push edi
xor edi, edi
test eax, eax
jbe 0x4223ec
cmp dword [esi + 0x18], 0x10
jb 0x4223ba
mov ecx, dword [esi + 4]
jmp 0x4223bd
lea ecx, [esi + 4]
push 0
sub eax, edi
push eax
add ecx, edi
push ecx
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4223e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x4223f2
mov eax, dword [esi + 0x14]
add edi, ebx
cmp edi, eax
jb 0x4223af
mov eax, dword [esi + 0x14]
pop edi
pop ebx
ret
mov eax, edi
jmp 0x4223ef
Function at 0x422edd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50e135
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp dword [ebp + 8], ebx
jne 0x422f1d
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esi + 0x28]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
test eax, eax
jne 0x422f42
xor esi, esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x422f09
lea eax, [esp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x1c], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.0049ab60
add esp, 0x18
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x422f32
cmp dword [ebp + 0x18], ebx
je 0x422f75
push dword [ebp + 0x18]
push dword [esp + 0x14]
call fcn.004232ba
mov eax, dword [esi + 0x20]
add esi, 8
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.00425640
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
jmp 0x42301d
lea ecx, [esp + 0x20]
call fcn.0042398a
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x422fc5
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x20]
call fcn.00423d26
lea eax, [esp + 0x38]
jmp 0x423006
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, ebx
je 0x423014
cmp dword [esp + 0x14], 0x103
je 0x423014
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov ecx, edi
call fcn.00422eba
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x20]
call fcn.00423d26
lea eax, [esp + 0x40]
push ebx
push edi
push eax
mov ecx, esi
call fcn.004233ed
xor ebx, ebx
jmp 0x42301d
lea ecx, [esp + 0x20]
call fcn.00423d26
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [esp + 0x30]
call fcn.00425640
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
call fcn.004239b9
test al, al
je 0x422f9e
push 0x28
call fcn.0049ad2e
pop ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ebx
cmp eax, ebx
je 0x42306a
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x14]
push dword [esp + 0x24]
call fcn.00422d5c
mov edi, eax
jmp 0x42306c
xor edi, edi
or dword [esp + 0x54], 0xffffffff
cmp edi, ebx
je 0x423083
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00423321
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x423090
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
xor esi, esi
inc esi
jmp 0x422f34
Function at 0x423145
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x28]
push edi
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 8]
mov edi, dword [esi + 0x24]
test edi, edi
jne 0x423185
xor esi, esi
inc esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4232b1
xor ecx, ecx
push 4
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499a0f
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4231a6
xor esi, esi
jmp 0x423174
mov eax, edi
shl eax, 2
push eax
push 0
push ebx
call fcn.0049d740
mov eax, dword [esi + 0x20]
add esp, 0xc
add esi, 8
push esi
push dword [eax]
lea ecx, [esp + 0x28]
xor edi, edi
call fcn.00425640
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
push esi
push dword [esi + 0x18]
mov dword [esp + 0x1c], eax
jmp 0x423231
lea ecx, [esp + 0x10]
call fcn.0042398a
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x4231f7
mov dword [ebx + edi*4], ecx
inc edi
push 1
mov ecx, eax
call fcn.00422eba
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call fcn.00423d26
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004233ed
push esi
push dword [esi + 0x18]
lea ecx, [esp + 0x28]
call fcn.00425640
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.004239b9
test al, al
je 0x4231e1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [esp + 0xc], eax
cmp eax, 0x102
jne 0x423289
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x423289
cmp edi, esi
jle 0x423289
push 0
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc esi
cmp esi, edi
jl 0x423279
xor esi, esi
test edi, edi
jle 0x42329d
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x42328f
push ebx
call fcn.0049ac10
xor eax, eax
cmp dword [esp + 0x10], 0x102
pop ecx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x424335
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, 0x50e121
call fcn.00508264
sub esp, 0x45c
push ebx
push esi
push edi
push 4
lea eax, [ebp - 0x2c]
push eax
mov edi, edx
push 6
push dword [edi + 4]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x28], 0x20
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esi + 0x18], 0x10
jb 0x424378
mov esi, dword [esi + 4]
jmp 0x42437b
add esi, 4
push ebx
push 0x4000000
push ebx
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x424499
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 4
call esi
test eax, eax
je 0x4243d5
mov eax, dword [ebp - 0x18]
push 0x64
xor edx, edx
pop ecx
div ecx
cmp eax, 2
je 0x4243d5
xor al, al
jmp 0x42449f
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
push eax
push 5
push edi
call esi
cmp eax, 1
jne 0x424453
lea eax, [ebp - 0x64]
push eax
call fcn.0049ca1e
mov edi, eax
pop ecx
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004244b0
push ebx
lea esi, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.004244fe
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42442c
cmp dword [ebp - 0x14], edi
jne 0x42442c
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
lea esi, [ebp - 0x44]
call fcn.004244fe
mov ecx, dword [ebp + 8]
push edi
push dword [ebp - 0x24]
mov byte [eax], bl
call fcn.00401898
call fcn.0042ec20
jmp 0x42449c
mov dword [ebp - 0x14], ebx
cmp ebx, ebx
jbe 0x42446c
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x468]
push eax
call fcn.0040c170
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x424490
cmp dword [ebp - 0x14], ebx
ja 0x42445a
mov byte [ebp - 0xd], 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x42449c
mov byte [ebp - 0xd], bl
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x426fd3
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x50daef
call fcn.00508264
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebx
push eax
mov eax, edi
call fcn.00426fc0
mov eax, dword [edi + 0x50]
sub eax, 0
je 0x427126
dec eax
je 0x42700b
dec eax
je 0x427070
dec eax
jne 0x427139
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [edi + 0xbc]
push 1
push eax
call esi
call ebx
mov ecx, dword [edi + 0x48]
lea edx, [edi + 0x60]
push edx
lea edx, [edi + 0x58]
push edx
lea edx, [edi + 0x98]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 0x10], eax
call ebx
sub eax, dword [ebp - 0x14]
push 0
mov dword [edi + 0xb4], eax
lea eax, [edi + 0xbc]
push eax
call esi
mov esi, dword [ebp - 0x10]
mov eax, esi
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 2
jne 0x4270c5
mov eax, dword [edi + 0x44]
push edi
push esi
push 0xe402
jmp 0x427131
lea eax, [edi + 0xbc]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call ebx
mov esi, dword [edi + 0x4c]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x58]
push eax
call fcn.0043467e
mov esi, eax
call ebx
sub eax, dword [ebp - 0x10]
push 0
mov dword [edi + 0xb4], eax
lea eax, [edi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x64
mov eax, esi
cdq
pop ecx
idiv ecx
push edi
push esi
cmp eax, 2
mov eax, dword [edi + 0x44]
jne 0x42712c
push 0xe402
jmp 0x427131
cmp eax, 3
jne 0x427115
lea eax, [ebp - 0x30]
push eax
mov eax, dword [edi + 0x48]
call fcn.00433f3a
and dword [ebp - 4], 0
push 0xffffffffffffffff
push 0
lea esi, [edi + 0x7c]
push eax
mov ecx, esi
call fcn.00401729
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004017de
lea eax, [edi + 0xc]
mov ecx, esi
call fcn.0040713e
push edi
push dword [ebp - 0x10]
test eax, eax
mov eax, dword [edi + 0x44]
je 0x42712c
push 0xe404
jmp 0x427131
push esi
push str.ret:__d_n
call fcn.00413df9
pop ecx
pop ecx
push edi
push esi
jmp 0x427129
push edi
push 0
mov eax, dword [edi + 0x44]
push 0xe403
push dword [eax]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
call ebx
push eax
mov eax, edi
call fcn.00426fc0
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42a97c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test dword [esi + 0x1690], 0xfffffff8
push ebx
push edi
jne 0x42a9e3
cmp dword [esi + 0x168c], 8
jb 0x42a9a0
mov eax, dword [esi + 0x1678]
jmp 0x42a9a6
lea eax, [esi + 0x1678]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x1698], eax
cmp eax, 0xffffffff
jne 0x42aa03
push 0x53ba00
call fcn.00413df9
pop ecx
push 0x28
mov ebx, esi
call fcn.0042ad4b
jmp 0x42ab06
cmp dword [esi + 0x168c], 8
jb 0x42a9f4
mov eax, dword [esi + 0x1678]
jmp 0x42a9fa
lea eax, [esi + 0x1678]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
lea ebx, [esi + 0x1640]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x168c], 8
jb 0x42aa21
mov eax, dword [esi + 0x1678]
jmp 0x42aa27
lea eax, [esi + 0x1678]
push 0xff
push eax
lea eax, [esi + 0x100]
push eax
call fcn.004a0285
fld1
add esp, 0xc
fstp qword [esi + 0x638]
lea eax, [esi + 0x600]
push eax
mov dword [esi + 0x620], edi
mov dword [esi + 0x624], edi
mov dword [esi + 0x630], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xf4]
cmp eax, edi
je 0x42aa8b
push edi
push dword [esi + 0xf8]
push 0xe414
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x53ba7c
call fcn.00413df9
inc dword [esi + 0x16f8]
lea ebx, [esi + 0x1724]
mov edi, dword [ebx + 0x10]
sub edi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar edi, 2
dec edi
sar eax, 2
pop ecx
cmp edi, eax
jb 0x42aabe
call fcn.0049af27
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + edi*4]
push 0
push 0
push 0xe405
push dword [eax]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x42ab06
cmp byte [esi + 0xf0], 0
je 0x42ab06
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0xf8]
push 0xe419
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret
Function at 0x42ab0a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
test dword [esi + 0x1690], 0xfffffff8
push edi
jne 0x42ab43
mov eax, dword [esi + 0x16f4]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebx + 4]
push dword [esi + 0x1698]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42ab7e
jmp 0x42ab7a
mov edi, dword [esi + 0x186c]
test edi, edi
je 0x42ab9c
cmp dword [esi + 0x1694], 0
je 0x42ab61
push dword [ebx]
mov ecx, esi
call fcn.0041bd77
jmp 0x42ab67
mov eax, dword [esi + 0x16f4]
push dword [esi + 0x188c]
push eax
push dword [ebx + 4]
call edi
add esp, 0xc
test eax, eax
jge 0x42ab7e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
jne 0x42ab9c
push 0x28
push 0
push 0xe411
push dword [esi]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
xor eax, eax
jmp 0x42ac54
lea eax, [esi + 0x1640]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x16f4]
mov ecx, dword [edi]
lea eax, [esi + 0x628]
add dword [eax], ecx
adc dword [eax + 4], 0
lea eax, [esi + 0x1640]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi]
lea eax, [esi + 0xb8]
add dword [eax], ecx
adc dword [eax + 4], 0
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x42ac29
cmp byte [esi + 0xf0], 0
je 0x42ac29
mov ecx, dword [ebx]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0xf8]
push 0xe41a
push eax
call edi
mov eax, dword [ebx]
inc eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xf8]
push 0xe419
push dword [esi + 0xf4]
call edi
test dword [esi + 0x1690], 0xfffffff8
je 0x42ac51
mov eax, dword [esi + 0x1694]
test eax, eax
je 0x42ac51
mov eax, dword [eax + 0xd8]
dec eax
cmp dword [ebx], eax
jne 0x42ac51
push 0
jmp 0x42ab86
xor eax, eax
inc eax
pop edi
leave
ret