joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008f96a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x1008f97a
xor eax, eax
jmp 0x1008fb43
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x1008fafb
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x100fb908]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x100fb908]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x100fb908]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x100fb908]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x100fb908]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x100fb908]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x100fb908]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x100fb908]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x1008f983
cmp dword [ebp + 0x10], 0
je 0x1008fb3d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x100fb908]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x1008fb01
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x100ea801
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100ea821
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10013491
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100ea844
test byte [esp + 8], 2
je 0x100ea844
call fcn.10013504
mov dword [eax], 0xd
call fcn.1001350d
mov dword [eax], 5
jmp 0x100ea81d
xor eax, eax
ret

Function at 0x100f0bbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100f0c00
call fcn.100f4c16
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100f0c00
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100f0bf7
xor eax, eax
jmp 0x100f0c08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100f0c0e
pop edi
pop esi
pop ebx
ret 4
Function at 0x403570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52335b
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x194], 0
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x198], ecx
cmp dword [ebp - 0x198], 0x168
jae 0x4035c1
jmp 0x4035c6
call fcn.004e67d3
mov edx, dword [ebp - 0x198]
mov byte [ebp + edx - 0x178], 0
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x190]
call fcn.00407770
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x178]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x403661
push str.TuxlerChromeExtensionHelperApp
lea edx, [ebp - 0x178]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x40364f
push 0x5810c2
mov ecx, dword [ebp + 8]
call fcn.00407770
mov eax, dword [ebp - 0x194]
or eax, 1
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00407540
mov eax, dword [ebp + 8]
jmp 0x403694
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x190]
call fcn.004074b0
lea edx, [ebp - 0x190]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407680
mov eax, dword [ebp - 0x194]
or eax, 1
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00407540
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret

Function at 0x4038a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.004071b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4038cf
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4038cf
mov dword [ebp - 8], 1
jmp 0x4038d6
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4038e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.004071b0
push eax
call fcn.00509275
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403910
mov dword [ebp - 8], 1
jmp 0x403917
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x404260
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5234f3
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x188], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.00406940
mov byte [ebp - 4], 1
push 0x581210
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0040e1b0
add esp, 0xc
mov byte [ebp - 4], 2
lea edx, [ebp - 0x180]
push edx
lea ecx, [ebp - 0x40]
call fcn.004071b0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0xffffffff
je 0x404347
mov eax, dword [ebp - 0x180]
and eax, 0x10
jne 0x404322
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407770
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x194]
call fcn.00406c90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407540
lea eax, [ebp - 0x180]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4042e9
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x194]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406e20
mov ecx, dword [ebp - 0x188]
or ecx, 1
mov dword [ebp - 0x188], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.00406c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407540
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret
Function at 0x404710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52335b
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x194], 0
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x198], ecx
cmp dword [ebp - 0x198], 0x168
jae 0x404761
jmp 0x404766
call fcn.004e67d3
mov edx, dword [ebp - 0x198]
mov byte [ebp + edx - 0x178], 0
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x190]
call fcn.00407770
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x178]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x404801
push str.TuxlerExtensionDumpFiles
lea edx, [ebp - 0x178]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x4047ef
push 0x5810e3
mov ecx, dword [ebp + 8]
call fcn.00407770
mov eax, dword [ebp - 0x194]
or eax, 1
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00407540
mov eax, dword [ebp + 8]
jmp 0x404834
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x190]
call fcn.004074b0
lea edx, [ebp - 0x190]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407680
mov eax, dword [ebp - 0x194]
or eax, 1
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00407540
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret

Function at 0x404850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404883
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x4048b7
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4048a7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x4048b7
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x405320
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5236a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a4], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x1a0], eax
push 0x128
push 0
lea eax, [ebp - 0x198]
push eax
call fcn.004ff190
add esp, 0xc
mov dword [ebp - 0x198], 0x128
cmp dword [ebp - 0x1a0], 0xffffffff
jne 0x405395
xor eax, eax
jmp 0x4054ed
lea ecx, [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4054ae
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407770
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407770
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.00403aa0
add esp, 8
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00403aa0
add esp, 8
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.0040ecf0
add esp, 8
mov byte [ebp - 0x199], al
lea ecx, [ebp - 0x58]
call fcn.00407540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00407540
movzx eax, byte [ebp - 0x199]
test eax, eax
je 0x405477
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x1a4], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407540
jmp 0x4054ae
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407540
lea edx, [ebp - 0x198]
push edx
mov eax, dword [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4053b1
mov ecx, dword [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1a4], 0
je 0x4054eb
cmp dword [ebp + 0xc], 0
je 0x4054d5
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1a4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1a4]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x4054ed
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret
Function at 0x405510
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5236e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x1a0], eax
push 0x128
push 0
lea eax, [ebp - 0x198]
push eax
call fcn.004ff190
add esp, 0xc
mov dword [ebp - 0x198], 0x128
cmp dword [ebp - 0x1a0], 0xffffffff
jne 0x40557b
xor al, al
jmp 0x4056a9
mov byte [ebp - 0x199], 0
lea ecx, [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x405696
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407770
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407770
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.00403aa0
add esp, 8
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00403aa0
add esp, 8
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x1ac]
push edx
call fcn.0040ecf0
add esp, 8
mov byte [ebp - 0x19a], al
lea ecx, [ebp - 0x58]
call fcn.00407540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00407540
movzx eax, byte [ebp - 0x19a]
test eax, eax
je 0x40565f
mov byte [ebp - 0x199], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407540
jmp 0x405696
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407540
lea ecx, [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40559e
mov eax, dword [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x199]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret
Function at 0x405e90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jae 0x405eb4
or eax, 0xffffffff
jmp 0x405f41
mov byte [ebp - 0x39], 0
lea ecx, [ebp - 0x38]
push ecx
push 0
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x39]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00405a60
add esp, 0x18
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407590
lea ecx, [ebp - 0x1c]
call fcn.00407540
mov ecx, dword [ebp + 8]
call fcn.00407140
movzx ecx, al
test ecx, ecx
jne 0x405f3e
movzx edx, byte [ebp - 0x39]
test edx, edx
je 0x405f0d
mov dword [ebp - 0x44], 0x1c
jmp 0x405f14
mov dword [ebp - 0x44], 0x10
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x405f39
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x405f41
mov eax, dword [ebp - 0x40]
jmp 0x405f41
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret
Function at 0x405f50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523830
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x592bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jae 0x4060ef
lea ecx, [ebp - 0x3c]
call fcn.00406940
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00406940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00406940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00406940
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00406750
imul edx, dword [ebp + 0x14], 0x3e8
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x3c]
push eax
push 1
call fcn.004175b0
add esp, 0x18
lea ecx, [ebp - 0x24]
call fcn.004068c0
movzx ecx, al
test ecx, ecx
je 0x40600e
lea ecx, [ebp - 0x30]
call fcn.004068c0
movzx edx, al
test edx, edx
je 0x40604d
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406900
mov al, byte [ebp - 0xd]
jmp 0x4060f1
push 0
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x4060ae
mov byte [ebp - 0xe], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406900
mov al, byte [ebp - 0xe]
jmp 0x4060f1
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406900
jmp 0x405f83
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x406270
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
and ecx, 0x20
je 0x406291
xor al, al
jmp 0x4062aa
cmp dword [ebp - 0xc], 0
je 0x4062a0
mov dword [ebp - 4], 1
jmp 0x4062a7
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4131e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524298
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x413220
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x41322c
mov al, 1
jmp 0x4133cf
mov dword [ebp - 0x48], 8
call fcn.00401630
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00401630
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004015b0
add esp, 8
movzx eax, al
test eax, eax
je 0x41326f
xor al, al
jmp 0x4133cf
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00407700
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00407380
mov ecx, eax
call fcn.0040cb70
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00407190
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407380
mov ecx, eax
call fcn.0040cb70
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.00413790
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4132ea
cmp dword [ebp - 0x38], 1
je 0x4132f1
cmp dword [ebp - 0x38], 3
je 0x41338b
jmp 0x4133a3
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407380
mov ecx, eax
call fcn.0040cb70
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x413354
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407380
mov ecx, eax
call fcn.0040cb70
push eax
call fcn.00509fcb
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x413354
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407540
mov al, byte [ebp - 0x2d]
jmp 0x4133cf
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x413377
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407540
mov al, byte [ebp - 0x2e]
jmp 0x4133cf
cmp dword [ebp - 0x34], 0
jne 0x413389
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0040a910
jmp 0x4133bb
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407540
mov al, byte [ebp - 0x2f]
jmp 0x4133cf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407540
mov al, byte [ebp - 0x30]
jmp 0x4133cf
jmp 0x413282
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret
Function at 0x417240
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x592bb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], ecx
movzx eax, byte [0x5985dc]
test eax, eax
je 0x41726b
mov al, 1
jmp 0x417300
mov byte [0x5985dc], 1
mov ecx, 0x202
mov word [ebp - 0x198], cx
lea edx, [ebp - 0x194]
push edx
movzx eax, word [ebp - 0x198]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x4172ba
mov ecx, dword [ebp - 0x19c]
push ecx
push str.WSAStartup_failed_with_error:__d_n
call fcn.00417200
add esp, 8
xor al, al
jmp 0x417300
movzx edx, word [ebp - 0x194]
and edx, 0xff
movzx eax, dl
cmp eax, 2
jne 0x4172e7
movzx ecx, word [ebp - 0x194]
shr ecx, 8
and ecx, 0xff
movzx edx, cl
cmp edx, 2
je 0x4172fe
push str.Could_not_find_a_usable_version_of_Winsock.dll_n
call fcn.00417200
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x417300
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6445
mov esp, ebp
pop ebp
ret
Function at 0x418980
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4189b3
mov dword [ebp - 8], 1
jmp 0x4189ba
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4