joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b769
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b806
push ebx
push esi
call fcn.0041b732
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a3b7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b7b3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b805
push edi
push eax
call fcn.00415136
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b7d3
call fcn.00414f0c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b804
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a3b7
add esp, 0x20
test eax, eax
jne 0x41b7f2
push edi
call fcn.00414f0c
jmp 0x41b7fa
push ebx
call fcn.00414f0c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x423300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x65ac38
mov ebx, ecx
call fcn.00401160
push eax
call fcn.00401e70
push 8
call fcn.00407197
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424062
push 4
call fcn.00407197
add esp, 4
test eax, eax
je 0x424040
mov dword [eax], 0x424bb0
jmp 0x424042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401e50
push 0
push 0
call fcn.0040e516
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42409d
jmp 0x424064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4240aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4240b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.004050d5
add esp, 0xc
test eax, eax
jne 0x4240b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004071c7
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.0040528b
push 1
call fcn.0040528b
push 5
call fcn.0040528b
push 2
call fcn.0040528b
int3
Function at 0x402ce0
Capabilities:
Read .ini file

Disassembly:
push 0x800
lea eax, [ebp - 0xa18]
push eax
push 0x427598
push str.ServiceVersion
push str.ServerLoadInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x427598
lea eax, [ebp - 0xa18]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402d36
test dx, dx
je 0x402d32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402d36
add eax, 4
add ecx, 4
test dx, dx
jne 0x402d10
xor eax, eax
jmp 0x402d3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x403217
xor eax, eax
mov dword [ebp - 0xa98], 0
mov dword [ebp - 0xa94], 0
mov dword [ebp - 0xa94], 7
mov dword [ebp - 0xa98], 0
mov word [ebp - 0xaa8], ax
cmp word [ebp - 0x218], ax
jne 0x402d81
xor ecx, ecx
jmp 0x402d9f
push ds
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xa30]
call fcn.00403980
xor ecx, ecx
mov dword [edi + 0x14], 7
push 0xffffffffffffffff
push ecx
mov dword [edi + 0x10], 0
mov word [edi], cx
mov ecx, edi
push eax
call fcn.00403bc0
mov dword [ebp - 0xac4], 1
Function at 0x405bc0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x41ff1c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x1c]
push 0x427b34
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00402f20
mov dword [esp + 0x50], 0
mov eax, dword [0x42d80c]
test al, 1
jne 0x405c5f
or eax, 1
mov dword [0x42d80c], eax
mov byte [esp + 0x50], 1
mov dword [0x42d808], 0
call fcn.0040a850
push 0x421040
call fcn.004109ac
add esp, 4
mov byte [esp + 0x50], 0
lea eax, [esp + 0x18]
mov ecx, 0x42d808
push eax
call fcn.0040a990
mov edi, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x405c8b
push dword [esp + 0x18]
call fcn.00410b18
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push 0xb
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
push str.crypt32.dll
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
call fcn.00402f20
mov dword [esp + 0x50], 2
mov eax, dword [0x42d80c]
test al, 1
jne 0x405d0a
or eax, 1
mov dword [0x42d80c], eax
mov byte [esp + 0x50], 3
mov dword [0x42d808], 0
call fcn.0040a850
push 0x421040
call fcn.004109ac
add esp, 4
mov byte [esp + 0x50], 2
lea eax, [esp + 0x30]
mov ecx, 0x42d808
push eax
call fcn.0040a990
mov ebp, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x405d36
push dword [esp + 0x30]
call fcn.00410b18
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
test edi, edi
je 0x405dc9
test ebp, ebp
je 0x405dc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
jnp 0x405db4
add byte [edi - 0x77], dl
inc ebx
or bh, bh
salc
Function at 0x406320
Capabilities:
Get file size

Disassembly:
sub esp, 0x2e0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2dc], eax
mov eax, dword [esp + 0x2e8]
push ebx
mov ebx, dword [esp + 0x2e8]
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x1c], eax
mov edi, ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], ebx
push 0
push eax
mov dword [esp + 0x1c], 0x800b0100
mov dword [esp + 0x30], 0
call fcn.00411fb0
add esp, 8
mov dword [esp + 0x58], 0
xorps xmm0, xmm0
mov dword [esp + 0x7c], 0xf750e6c3
mov edx, 0x80000000
mov dword [esp + 0x80], 0x11d138ee
movdqu xmmword [esp + 0x5c], xmm0
push 0
push 3
push ecx
push 1
mov ecx, ebx
mov dword [esp + 0x94], 0xc000e585
movdqu xmmword [esp + 0x7c], xmm0
mov dword [esp + 0x98], 0xee95c24f
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.0040b2c0
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x4066c7
test ebx, ebx
je 0x4066c7
lea eax, [esp + 0x88]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4066c0
cmp dword [esp + 0x8c], 0
jg 0x4066c0
jl 0x406438
cmp dword [esp + 0x88], 0x2000000
ja 0x4066c0
push 0x100
mov dword [esp + 0x20], 0x100
call fcn.00411231
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push esi
push eax
mov eax, dword [edi + 4]
push ebx
call eax
test eax, eax
jne 0x40649f
push esi
call fcn.0041150d
add esp, 4
push dword [esp + 0x1c]
call fcn.00411231
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]

Function at 0x4074a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4200fe
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00402bc0
mov dword [esp + 0x18], 0
add byte [ebp - 0x3fcce7b1], cl
Function at 0x407690
Capabilities:
Delete file
Get number of processors
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420235
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x578]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], ebx
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
je 0x408862
mov edi, dword [eax]
mov edx, dword [eax + 4]
cmp edi, edx
je 0x408862
sub edx, edi
mov eax, 0x4ec4ec4f
imul edx
xor ecx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x408862
xor eax, eax
lea esp, [esp]
cmp byte [edi + eax + 0x64], 0
jne 0x407734
inc ecx
add eax, 0x68
cmp ecx, esi
jb 0x407720
jmp 0x408862
push ebx
lea eax, [esp + 0x45c]
push eax
call fcn.00408f90
mov dword [esp + 0x580], 0
xorps xmm0, xmm0
movq qword [esp + 0x42c], xmm0
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov byte [esp + 0x580], 1
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x430]
call fcn.0040baf0
xorps xmm0, xmm0
lea eax, [esp + 0x42c]
movq qword [esp + 0x470], xmm0
mov dword [esp + 0x470], eax
mov eax, dword [esp + 0x42c]
mov byte [esp + 0x474], 0
test eax, eax
jne 0x4077bb
xor al, al
jmp 0x4077dd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4077d3
cmp eax, 0x80
je 0x4077d3
xor al, al
jmp 0x4077dd
mov byte [esp + 0x430], 1
mov al, 1
mov byte [esp + 0x16], al
mov byte [esp + 0x474], al
mov byte [esp + 0x580], 2
xorps xmm0, xmm0
movq qword [esp + 0x434], xmm0
mov dword [esp + 0x43c], 0
mov dword [esp + 0x434], 0
mov dword [esp + 0x438], 0
mov dword [esp + 0x43c], 0
mov byte [esp + 0x580], 3
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x438]
mov byte [esp + 0x1b], 0
push eax
push ebx
call fcn.00408a20
test al, al
jne 0x407865
cmp byte [esp + 0x17], al
je 0x407865
cmp dword [ebx + 0x14], 8
jb 0x40785c
mov eax, dword [ebx]
jmp 0x40785e
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x24]
xor al, al
mov byte [esp + 0x17], al
xor ebx, ebx
mov eax, 0x4ec4ec4f
mov dword [esp + 0x28], ebx
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4086d5
mov ebx, dword [esp + 0x438]
mov edi, dword [esp + 0x434]
Function at 0x40baf0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4209a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x40bb3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [esp + 0x14]
mov word [edi + 4], 0
mov dword [esp + 0x14], 0
call fcn.0040da00
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x40bb67
lea eax, [esi + 8]
jmp 0x40bb69
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x40bb79
cmp dword [ebx + 0x14], 8
jb 0x40bb7b
mov ebx, dword [ebx]
jmp 0x40bb7b
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40bb9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bb9c
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40bbc6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40bbdb
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push esi
call fcn.00410b18
add esp, 4
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040ff65
add esp, 0x18
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x420bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40cc2c
mov eax, dword [esi]
jmp 0x40cc2e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ccc3
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0040cdf0
test al, al
je 0x40cc91
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40ccac
push dword [esp + 0xc]
call fcn.00410b18
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040ff65
add esp, 0x28
ret
Function at 0x40ccf0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x420bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40cd2c
mov eax, dword [esi]
jmp 0x40cd2e
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cd42
mov al, 1
jmp 0x40cdd1
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0040cdf0
test al, al
je 0x40cd9b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cd9b
mov bl, 1
jmp 0x40cd9d
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40cdb8
push dword [esp + 0xc]
call fcn.00410b18
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040ff65
add esp, 0x28
ret
Function at 0x10001080
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001090
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000109c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x100010a6
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x100010b0
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x100010ba
or eax, 8
shr ecx, 1
test cl, 1
je 0x100010c4
or eax, 4
shr ecx, 1
test cl, 1
je 0x100010ce
or eax, 2
test cl, 2
je 0x100010d6
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x10001190
test al, 1
je 0x1000119d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001190
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001084
pop edi
pop ebx
ret

Function at 0x100011c0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x10015648
push eax
lea eax, [ebp - 0x408]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10001212
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x1000125a
mov edi, edi
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x10001240
cmp eax, 0x400
je 0x10001214
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop ebx
xor ecx, ebp
not eax
pop esi
call fcn.10012706
mov esp, ebp
pop ebp
ret 8
Function at 0x10001290
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10015650
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x100012c2
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x100012f0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001353
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10001339
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10001318
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10001310
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x10001380
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10015648
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x100013b2
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x100013e0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001443
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10001429
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10001408
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10001400
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x100014b0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100014e9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1001fe74], eax
cmp eax, 0xffffffff
je 0x100014d9
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x1001fe78], eax
test eax, eax
je 0x100014d9
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1011fe84], 0x10002fd0
mov al, 1
call fcn.10012706
mov esp, ebp
pop ebp
ret

Function at 0x10001530
Capabilities:
Connect socket
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x1001fe74], 0xffffffff
push esi
mov esi, ecx
jne 0x1000157c
push 0x1001f060
call fcn.1000f600
add esp, 4
push eax
push 0
mov ecx, 0x10120080
call fcn.10006f20
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x100015c4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100015c4
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [0x1001fe74]
push 0x10
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10001628
call esi
cmp eax, 0x2733
je 0x10001628
call esi
push eax
push 0x1001f160
call fcn.1000f600
add esp, 4
push eax
push 0
mov ecx, 0x10120080
call fcn.10006f20
add esp, 0xc
mov esi, 0x1001fe70
call fcn.100016c0
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x1001fe78]
mov eax, dword [0x1001fe74]
push 0x23
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1000164c
call esi
push eax
push 0x1001f260
jmp 0x100015f3
push 0x80000
push 0
push 0x1001fe7c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x1009fe80
mov dword [0x1009fe7c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1012b0dc
push 0
push 0x1001fe70
push 0x10001bf0
push 0
push 0
mov dword [0x1011fe80], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x1011fea4], eax
mov al, 1
xor ecx, ebp
mov byte [0x1011fea8], al
pop esi
call fcn.10012706
mov esp, ebp
pop ebp
ret 4