joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc24d90
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0xc57104]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x834], ecx
mov ecx, dword [ebp - 0x834]
call fcn.00c25330
test eax, eax
je 0xc24feb
mov ecx, dword [ebp - 0x834]
call fcn.00c24c40
mov dword [ebp - 4], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x818]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplicationsList
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
jne 0xc24e41
mov dword [ebp - 0x820], 0
cmp dword [ebp - 4], 0
je 0xc24e2c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x820], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x820]
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x818]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x81c], 0
jne 0xc24fb2
push 0x400
push 0
lea ecx, [ebp - 0x808]
push ecx
call fcn.00c33270
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x408]
push edx
call fcn.00c33270
add esp, 0xc
mov eax, dword [ebp - 0x834]
add eax, 0x310
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00c33974
add esp, 8
lea edx, [ebp - 0x808]
push edx
call fcn.00c332d0
add esp, 4
test eax, eax
je 0xc24edb
lea eax, [ebp - 0x808]
sub eax, 1
push eax
call fcn.00c332d0
add esp, 4
movsx ecx, byte [ebp + eax - 0x808]
cmp ecx, 0x5c
je 0xc24edb
push 0xc4b60c
lea edx, [ebp - 0x808]
push edx
call fcn.00c33c10
add esp, 8
push 0xc4ca88
lea eax, [ebp - 0x808]
push eax
call fcn.00c33c10
add esp, 8
push 0xc4ca6c
lea ecx, [ebp - 0x808]
push ecx
push str._s::Enabled:_s
lea edx, [ebp - 0x408]
push edx
call fcn.00c33974
add esp, 0x10
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [ebp - 0x408]
push ecx
push 1
push 0
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0xc24f79
mov dword [ebp - 0x80c], 1
mov dword [ebp - 0x824], 0
cmp dword [ebp - 4], 0
je 0xc24f71
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x824], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x80c]
jmp 0xc24ff0
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x828], 0
cmp dword [ebp - 4], 0
je 0xc24faa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x828], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x810]
jmp 0xc24ff0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x82c], 0
cmp dword [ebp - 4], 0
je 0xc24fe3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x82c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x814]
jmp 0xc24ff0
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00c32666
mov esp, ebp
pop ebp
ret
Function at 0xc25330
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0xc57104]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
jne 0xc25398
cmp dword [ebp - 0x98], 1
jne 0xc25398
lea ecx, [ebp - 0x8c]
push ecx
push str.Service_Pack_2
call fcn.00c35057
add esp, 8
test eax, eax
jne 0xc25398
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00c32666
mov esp, ebp
pop ebp
ret

Function at 0xc253b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0xc253e6
xor eax, eax
jmp 0xc25418
lea eax, [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], 0
sete al
mov esp, ebp
pop ebp
ret 0x14

Function at 0xc25570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0xc57104]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
push 0
push 0x10
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00c33270
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.00c332d0
add esp, 4
test eax, eax
jbe 0xc255db
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x110]
push ecx
push str._s_s.lnk
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0xc255ee
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00c33c00
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00c32666
mov esp, ebp
pop ebp
ret 8
Function at 0xc25600
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0xc57104]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00c33270
add esp, 0xc
push 0
push 2
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xc4b588
lea edx, [ebp - 0x110]
push edx
call fcn.00c33c10
add esp, 8
push str.PMANG
lea eax, [ebp - 0x110]
push eax
call fcn.00c33c10
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyA]
test eax, eax
jne 0xc2569c
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
call fcn.00c27f20
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00c33270
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.00c332d0
add esp, 4
test eax, eax
jbe 0xc256db
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x110]
push ecx
push str._s_s.lnk
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0xc256ee
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00c33c00
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00c32666
mov esp, ebp
pop ebp
ret 8
Function at 0xc25a80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0xc57104]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00c33270
add esp, 0xc
push 0
push 2
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xc4b588
lea edx, [ebp - 0x110]
push edx
call fcn.00c33c10
add esp, 8
push str.PMANG
lea eax, [ebp - 0x110]
push eax
call fcn.00c33c10
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyA]
test eax, eax
jne 0xc25b0a
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
call fcn.00c27f20
push 0
mov ecx, dword [ebp - 0x114]
call fcn.00c25b40
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00c32666
mov esp, ebp
pop ebp
ret
Function at 0xc28360
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc496c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
mov eax, dword [0xc57104]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x380], ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x380]
call fcn.00c25420
test eax, eax
jne 0xc283fd
mov dword [ebp - 0x330], 0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00c01f20
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0x24]
call fcn.00c01f20
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.00c01f20
mov eax, dword [ebp - 0x330]
jmp 0xc28587
lea ecx, [ebp - 0x120]
push ecx
push 0xc4d99c
push 1
push 0
push 0xc4d9bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0xc28544
mov dword [ebp - 0x124], 0
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x120]
push edx
call dword [ecx + 0x50]
cmp dword [ebp + 0x3c], 0x10
jb 0xc28454
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x384], eax
jmp 0xc2845d
lea ecx, [ebp + 0x28]
mov dword [ebp - 0x384], ecx
mov edx, dword [ebp - 0x384]
push edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x120]
push edx
call dword [ecx + 0x2c]
cmp dword [ebp + 0x58], 0x10
jb 0xc28487
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x388], eax
jmp 0xc28490
lea ecx, [ebp + 0x44]
mov dword [ebp - 0x388], ecx
push 0
mov edx, dword [ebp - 0x388]
push edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x120]
push edx
call dword [ecx + 0x44]
lea eax, [ebp - 0x124]
push eax
push 0xc4d9cc
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x120]
push eax
call dword [edx]
test eax, eax
jl 0xc28532
cmp dword [ebp + 0x20], 0x10
jb 0xc284dd
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38c], ecx
jmp 0xc284e6
lea edx, [ebp + 0xc]
mov dword [ebp - 0x38c], edx
push 0x104
lea eax, [ebp - 0x32c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x38c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
lea edx, [ebp - 0x32c]
push edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x124]
push edx
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x124]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x120]
push edx
call dword [ecx + 8]
mov dword [ebp - 0x334], 1
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00c01f20
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0x24]
call fcn.00c01f20
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.00c01f20
mov eax, dword [ebp - 0x334]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00c32666
mov esp, ebp
pop ebp
ret 0x54
Function at 0xc285b0
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc496f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
mov eax, dword [0xc57104]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xb4], ecx
push 0xc4b588
lea ecx, [ebp - 0x48]
call fcn.00c01920
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0xf18
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00c02840
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 1
push 0xc4b518
mov ecx, dword [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00c1cb70
add esp, 0xc
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00c01f20
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00c01f20
cmp dword [ebp - 0x14], 0x10
jb 0xc2866e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc0], eax
jmp 0xc28677
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc0], ecx
push 0
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0xb4]
add eax, 0x1250
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0xc2873e
cmp dword [ebp - 0x14], 0x10
jb 0xc286ab
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc4], ecx
jmp 0xc286b4
lea edx, [ebp - 0x28]
mov dword [ebp - 0xc4], edx
push 0x80
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x14], 0x10
jb 0xc286d7
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc8], ecx
jmp 0xc286e0
lea edx, [ebp - 0x28]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x14], 0x10
jb 0xc286fe
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xcc], ecx
jmp 0xc28707
lea edx, [ebp - 0x28]
mov dword [ebp - 0xcc], edx
push 0
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x1250
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00c01f20
mov eax, dword [ebp - 0x68]
jmp 0xc2875b
mov dword [ebp - 0x6c], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00c01f20
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00c32666
mov esp, ebp
pop ebp
ret

Function at 0xc28780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [0xc59114]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0xc2c1be
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 8]
mov al, byte [ebx]
or edx, 0xffffffff
xor ecx, ecx
test al, al
je 0xc2c219
cmp al, 0x5c
jne 0xc2c1dc
mov edx, ecx
inc ecx
mov al, byte [ecx + ebx]
test al, al
jne 0xc2c1d6
test edx, edx
jle 0xc2c219
push esi
push edi
mov ecx, edx
mov eax, ecx
shr ecx, 2
mov esi, ebx
lea edi, [ebp - 0x100]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [ebp - 0x100]
pop esi
push eax
mov byte [ebp + edx - 0x100], 0
call fcn.00c2c1be
pop ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebx
leave
ret

Function at 0xc2c297
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xc4d3d0
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], eax
je 0xc2c390
cmp byte [ebp - 0x21c], 0x2e
jne 0xc2c30a
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0xc2c378
lea eax, [ebp - 0x21c]
push str.Replay
push eax
call fcn.00c35057
test eax, eax
pop ecx
pop ecx
je 0xc2c378
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call edi
push 0xc4b588
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call esi
test byte [ebp - 0x248], 0x10
lea eax, [ebp - 0x108]
je 0xc2c363
push eax
call fcn.00c2c297
pop ecx
jmp 0xc2c378
push 0x80
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0xc2c2ef
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push dword [ebp + 8]
call ebx
push 0xc4d3c4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0xc2c3e8
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
ret
Function at 0xc2d02e
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0xc49ac3
call fcn.00c35038
mov eax, 0x4014
call fcn.00c347f0
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00c309be
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
je 0xc2d081
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0xc2d0a4
call fcn.00c2c225
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0xc2d0b8
push esi
call fcn.00c2ce9b
pop ecx
push 0xa
pop edi
call fcn.00c2cf1e
mov esi, eax
jmp 0xc2d171
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call edi
lea eax, [ebp - 0x10]
push eax
push 0xc5ab50
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00c309f5
test eax, eax
jne 0xc2d0e3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00c2ce9b
pop ecx
jmp 0xc2d152
cmp dword [ebp - 0x10], esi
jne 0xc2d0f0
push esi
push esi
push esi
push dword [ebp + 0xc]
call edi
mov dword [0xc5ab4c], esi
mov ebx, 0x4000
jmp 0xc2d12c
je 0xc2d159
add dword [0xc5ab4c], edi
add dword [0xc5ab60], edi
add dword [0xc5ab64], edi
call fcn.00c2cec9
push esi
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x4020]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x4020]
push ebx
lea ecx, [ebp - 0x1c]
push eax
call fcn.00c30b67
mov edi, eax
cmp edi, esi
jge 0xc2d0fd
push esi
call fcn.00c2ce9b
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 6
jmp 0xc2d097
call fcn.00c2cec9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00c2ce9b
xor esi, esi
pop ecx
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00c309cb
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0xc2d23c
Capabilities:
Check internet connectivity via wininet
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0xc2d25a
xor eax, eax
inc eax
leave
ret
push ebx
push edi
push str.211.234.121.173
call sub.WSOCK32.dll_inet_addr
push str.iphlpapi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0xc2d2b4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetBestInterface
push edi
call esi
test eax, eax
jne 0xc2d298
push str.GetBestInterfaceA
push edi
call esi
test eax, eax
je 0xc2d2a8
lea ecx, [ebp - 8]
push ecx
push ebx
call eax
test eax, eax
jne 0xc2d2a8
xor esi, esi
inc esi
jmp 0xc2d2aa
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0xc2d4a6
Capabilities:
Terminate thread

Disassembly:
inc dword [0xc5a800]
push edi
xor edi, edi
cmp dword [0xc5a7dc], edi
je 0xc2d51e
push esi
mov esi, 0x36c
push esi
push edi
push 0xc5a810
call fcn.00c33270
push esi
push edi
push 0xc5ab80
call fcn.00c33270
push edi
call fcn.00c2ce9b
add esp, 0x1c
push 0x1388
push dword [0xc5a7dc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
pop esi
je 0xc2d501
push edi
push dword [0xc5a7dc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xc5988c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0xc5a7dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xc5a7dc], edi
pop edi
ret

Function at 0xc2d7d9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
call fcn.00c2cf1e
lea eax, [ebp - 0x10]
push eax
push 1
push 0xc2cff5
push 0xc2cfe8
push 0xc2cfc1
push 0xc2cf9a
push 0xc2cf69
push 0xc2cf5e
xor esi, esi
push 0xc2cf51
mov dword [0xc59884], esi
call fcn.00c432d3
add esp, 0x24
cmp eax, esi
push 4
mov dword [ebp - 4], eax
pop edi
jne 0xc2d830
call fcn.00c2cf1e
push ebx
push esi
push 0x80
push 3
push esi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0xc2d8bd
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 4]
call fcn.00c43363
add esp, 0xc
test eax, eax
je 0xc2d906
movzx eax, word [ebp - 0x22]
push esi
push ebx
mov dword [0xc5ab38], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [0xc5ab40], eax
mov dword [0xc5ab34], esi
mov dword [0xc5ab3c], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push 0xc2d645
push esi
push 0xc4b60c
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00c442be
add esp, 0x1c
cmp eax, 1
je 0xc2d8c2
cmp dword [0xc5a2cc], esi
jne 0xc2d8c2
push 5
pop edi
call fcn.00c2cf1e
push dword [ebp - 4]
call fcn.00c43b54
cmp eax, 1
pop ecx
pop ebx
je 0xc2d8e1
cmp dword [0xc5a2cc], esi
jne 0xc2d8e1
push 5
pop edi
call fcn.00c2cf1e
mov eax, dword [0xc5ab40]
add dword [0xc5ab74], eax
add dword [0xc5ab78], eax
call fcn.00c2cec9
xor eax, eax
cmp dword [0xc5a2cc], esi
pop edi
sete al
pop esi
leave
ret
push 5
pop edi
call fcn.00c2cf1e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xc2d8c2
Function at 0xc2d917
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
call fcn.00c2cf1e
lea eax, [ebp - 0x10]
push eax
push 1
push 0xc2cff5
push 0xc2cfe8
push 0xc2cfc1
push 0xc2cf9a
push 0xc2cf69
push 0xc2cf5e
xor esi, esi
push 0xc2cf51
mov dword [0xc59884], esi
call fcn.00c432d3
add esp, 0x24
cmp eax, esi
push 4
mov dword [ebp - 4], eax
pop edi
jne 0xc2d96e
call fcn.00c2cf1e
push ebx
push esi
push 0x80
push 3
push esi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0xc2d9fa
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 4]
call fcn.00c43363
add esp, 0xc
test eax, eax
je 0xc2da43
movzx eax, word [ebp - 0x22]
push esi
push ebx
mov dword [0xc5ab38], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [0xc5ab40], eax
mov dword [0xc5ab34], esi
mov dword [0xc5ab3c], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push 0xc2d645
push esi
push 0xc4b60c
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00c442be
add esp, 0x1c
test eax, eax
jne 0xc2d9ff
cmp dword [0xc5a2cc], esi
jne 0xc2d9ff
push 5
pop edi
call fcn.00c2cf1e
push dword [ebp - 4]
call fcn.00c43b54
cmp eax, 1
pop ecx
pop ebx
je 0xc2da1e
cmp dword [0xc5a2cc], esi
jne 0xc2da1e
push 5
pop edi
call fcn.00c2cf1e
mov eax, dword [0xc5ab40]
add dword [0xc5ab74], eax
add dword [0xc5ab78], eax
call fcn.00c2cec9
xor eax, eax
cmp dword [0xc5a2cc], esi
pop edi
sete al
pop esi
leave
ret
push 5
pop edi
call fcn.00c2cf1e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xc2d9ff