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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b34
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x45a400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
call eax
lea ecx, [ebp - 0x14]
call fcn.0041c4ed
mov dword [ebp - 4], 0
push 0x44b696
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0043cde0
test eax, eax
je 0x43caec
push 0x44ad94
lea ecx, [ebp - 0x14]
call fcn.0041c501
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0041c5d4
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c55d
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c55d
push 0
push 0
push 3
push 0
push 1
push accept
lea ecx, [ebp - 0x14]
call fcn.0041c5d4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0xffffffff
jne 0x43cb44
call fcn.0043b4c0
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c4f3
mov eax, dword [ebp - 0x68]
jmp 0x43cbd2
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
xor edi, edi
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov cl, 0x20
call fcn.004417d0
or esi, eax
or edi, edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x43cbb9
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x38]
push eax
call fcn.0043ca20
add esp, 0x10
movzx ecx, al
test ecx, ecx
jne 0x43cbb9
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c4f3
mov eax, dword [ebp - 0x64]
jmp 0x43cbd2
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c4f3
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43cca0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0
push 0
push 3
push 0
push 1
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x43ccd5
call fcn.0043b4c0
jmp 0x43cd10
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [ebp - 0x10]
xor edx, edx
mov cl, 0x20
call fcn.004417d0
or esi, eax
or edi, edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], edi
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43cf70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444bac
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x45a400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x50], 0xffffffff
jne 0x43cfaf
mov eax, 4
jmp 0x43d014
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x50]
push eax
call sub.WS2_32.dll_recv
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x43cfed
mov dword [ebp - 4], 0xffffffff
jmp 0x43cffb
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x43d00b
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xffffffff
jne 0x43d012
call fcn.0043c350
jmp 0x43d014
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d1f0
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x27d8
call fcn.0042a390
mov eax, dword [0x45a400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
movsx eax, word [0x45b73c]
cmp eax, 0x2b10
jl 0x43d226
mov eax, 0x40a
mov word [0x45b73c], ax
push 0x2710
lea eax, [ebp - 0x2730]
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x2730]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x43d253
xor eax, eax
jmp 0x43d39e
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.0042a4a0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00429e20
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov cx, word [eax + 8]
mov word [ebp - 0x18], cx
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x54], 0xffffffff
jne 0x43d2ac
xor eax, eax
jmp 0x43d39e
mov ax, word [0x45b73c]
mov word [ebp - 0x20], ax
mov cx, word [0x45b73c]
add cx, 1
mov word [0x45b73c], cx
movzx eax, word [ebp - 0x20]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
mov ax, word [0x45b73c]
add ax, 1
mov word [0x45b73c], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x54]
push edx
call sub.WS2_32.dll_bind
mov dword [ebp - 0x2734], eax
cmp dword [ebp - 0x2734], 0
je 0x43d314
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
je 0x43d2ac
cmp dword [ebp - 0x2734], 0
je 0x43d321
xor eax, eax
jmp 0x43d39e
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
call sub.WS2_32.dll_listen
movsx eax, word [ebp - 0x20]
and eax, 0xff
push eax
movsx ecx, word [ebp - 0x20]
shr ecx, 8
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx + 3]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 1]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx]
push edx
push str._d__d__d__d__d__d
lea eax, [ebp - 0x2798]
push eax
call fcn.0042884f
add esp, 0x20
lea eax, [ebp - 0x2798]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x4c
call fcn.0041c501
mov ax, word [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428263
mov esp, ebp
pop ebp
ret
Function at 0x43d4b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x45a400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
push 0x2c
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call fcn.0042a1a0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x43d4f3
mov eax, 9
jmp 0x43d658
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax - 1]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0043d670
test eax, eax
je 0x43d4cf
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 1]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0043d670
test eax, eax
je 0x43d4cf
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
push edx
mov ecx, dword [ebp - 8]
call fcn.0043d670
test eax, eax
je 0x43d539
jmp 0x43d51b
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
push 0x10
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0042a4a0
add esp, 0xc
mov eax, 2
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x28], 0
jmp 0x43d56d
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 6
jge 0x43d5ee
mov eax, dword [ebp - 0xc]
push eax
call fcn.004295a5
add esp, 4
mov ecx, dword [ebp - 0x28]
mov byte [ebp + ecx - 0x24], al
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0x43d5a7
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x39
jg 0x43d5a7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x43d586
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x43d5d2
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0x43d5c7
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x39
jle 0x43d5d2
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x43d5a7
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x43d5e9
cmp dword [ebp - 0x28], 5
je 0x43d5e9
mov eax, 9
jmp 0x43d658
jmp 0x43d564
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x23]
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0x21]
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x1f]
shl eax, 8
movzx ecx, byte [ebp - 0x20]
or eax, ecx
mov word [ebp - 0x1a], ax
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x50], 0xffffffff
jne 0x43d638
call fcn.0043c350
jmp 0x43d658
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
push edx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x43d656
call fcn.0043c350
jmp 0x43d658
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428263
mov esp, ebp
pop ebp
ret
Function at 0x43e290
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444be2
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x45a400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x50], 0xffffffff
jne 0x43e2cf
mov eax, 4
jmp 0x43e334
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x50]
push eax
call sub.WS2_32.dll_send
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x43e30d
mov dword [ebp - 4], 0xffffffff
jmp 0x43e31b
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x43e32b
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xffffffff
jne 0x43e332
call fcn.0043c350
jmp 0x43e334
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43e6d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x43e6f5
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 4
jmp 0x43e71b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x43e719
call fcn.0043b6b0
jmp 0x43e71b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x440360
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444d5c
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x45a400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
jne 0x4403ad
cmp dword [ebp + 0x10], 0
je 0x4403a3
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 4
jmp 0x4404f1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x58]
or eax, dword [edx + 0x5c]
jne 0x4403cb
mov eax, 1
jmp 0x4404f1
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x4403f5
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x18], 0
jne 0x440405
call fcn.0043b6b0
jmp 0x4404f1
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 0x58]
sub esi, eax
mov eax, dword [edx + 0x5c]
sbb eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], esi
mov dword [ecx + 0x5c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x58]
or eax, dword [edx + 0x5c]
jne 0x4404ef
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x50], 0
je 0x4404cc
push 0x44ca0c
lea ecx, [ebp - 0x1c]
call fcn.0041ca26
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.0041c5d4
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041c55d
push str.___r_n
lea ecx, [ebp - 0x1c]
call fcn.0041c55d
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041c5d7
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041c5d4
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4404bd
call fcn.0043b6b0
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041c4f3
mov eax, dword [ebp - 0x64]
jmp 0x4404f1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041c4f3
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4404ef
call fcn.0043b6b0
jmp 0x4404f1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x440760
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x44077f
mov eax, 4
jmp 0x440803
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
call fcn.00436850
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x44079a
mov eax, 4
jmp 0x440803
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x4407b0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 0
push 3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x4407e7
call fcn.0043b6b0
jmp 0x440803
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.0041c501
mov eax, dword [ebp - 4]
mov cx, word [ebp + 0x14]
mov word [eax + 0x14], cx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x440920
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x44093f
mov eax, 4
jmp 0x4409f9
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
call fcn.00436850
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44095d
mov eax, 4
jmp 0x4409f9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x440973
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0x8000000
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x4409d5
call fcn.0043b6b0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
call fcn.00440d90
cmp dword [ebp - 8], 0x13
jne 0x4409d0
mov ecx, dword [ebp - 4]
call fcn.00440a30
mov eax, dword [ebp - 8]
jmp 0x4409f9
mov ecx, dword [ebp - 4]
call fcn.00440d90
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.0041c501
mov eax, dword [ebp - 4]
mov cx, word [ebp + 0x14]
mov word [eax + 0x14], cx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402ebe
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push edi
mov dword [ebp - 0x2c8], ecx
mov byte [ebp - 0x134], 0
xor eax, eax
mov dword [ebp - 0x133], eax
mov dword [ebp - 0x12f], eax
mov byte [ebp - 0x12b], al
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov dword [ebp - 7], ecx
mov word [ebp - 3], cx
mov byte [ebp - 1], cl
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x2c4], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x2c3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 8]
push eax
push 0x41c6a8
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x122]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x126]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x128]
and ecx, 0xffff
push ecx
push 0x41c6b0
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x41c6bc
lea ecx, [ebp - 0x118]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x118]
push edx
push 0x190
lea eax, [ebp - 0x2c4]
push eax
push 0x41d460
lea ecx, [ebp - 0x14]
push ecx
push 0x41c6c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x40302d
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x2c4]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x2c4]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x41c6d0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x403034
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push edi
mov dword [ebp - 0x2c8], ecx
mov byte [ebp - 0x134], 0
xor eax, eax
mov dword [ebp - 0x133], eax
mov dword [ebp - 0x12f], eax
mov byte [ebp - 0x12b], al
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov dword [ebp - 7], ecx
mov word [ebp - 3], cx
mov byte [ebp - 1], cl
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x2c4], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x2c3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 8]
push eax
push str._d
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x122]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x126]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x128]
and ecx, 0xffff
push ecx
push str._d_02d_02d
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x41c6ec
lea ecx, [ebp - 0x118]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x118]
push edx
push 0x190
lea eax, [ebp - 0x2c4]
push eax
push 0x41d464
lea ecx, [ebp - 0x14]
push ecx
push 0x41c6f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x403174
mov al, 1
jmp 0x403176
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x403197
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x114], 0
xor eax, eax
mov dword [ebp - 0x113], eax
mov dword [ebp - 0x10f], eax
mov byte [ebp - 0x10b], al
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x41c700
lea edx, [ebp - 0x104]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x104]
push eax
push 0
push 0x41c70c
push 0x41c710
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x4032a2
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
add edx, 1
mov dword [ebp - 0x118], edx
push 0xa
push 0
lea edx, [ebp - 0x114]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x118]
push eax
push 0x41c718
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x114]
push eax
push 0x41c71c
push str.gtag
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x108]
pop edi
mov esp, ebp
pop ebp
ret