joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40468f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
push ebx
push esi
push edi
push 0xa
push ecx
pop edi
push edx
pop ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
pop esi
cmp esi, dword [ebp + 8]
ja 0x4046fb
test ebx, ebx
je 0x4046fb
test esi, esi
je 0x4046f9
push 0xa
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
pop edi
or edi, edi
je 0x4046f9
push esi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
pop eax
jmp 0x4046fb
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40476d
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call 0x4066ae
test eax, eax
jne 0x40477e
inc eax
pop esi
ret
cmp dword [0x4091dc], 0
push edi
jne 0x4047cc
test byte [0x408a38], 1
jne 0x4047cc
push 6
xor edi, edi
mov dword [0x409404], esi
push edi
push 0x403450
push dword [0x408584]
mov edx, 0x7d3
call fcn.00406517
sub eax, 6
je 0x4047cc
sub eax, 1
je 0x4047db
sub eax, 0x832
jne 0x4047cc
mov dword [0x4091dc], 1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
ret

Function at 0x40490c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push edi
push ecx
pop edi
mov cl, byte [edi]
test cl, cl
je 0x404973
mov al, byte [edi + 1]
push ebx
xor ebx, ebx
push esi
lea esi, [edi + 2]
cmp al, 0x3a
jne 0x40492f
cmp byte [esi], 0x5c
jne 0x40492f
lea esi, [edi + 3]
jmp 0x40496b
cmp cl, 0x5c
jne 0x40493d
cmp al, cl
jne 0x40493d
push 2
pop ebx
jmp 0x40496b
lea esi, [edi + 1]
jmp 0x40496d
cmp al, 0x5c
jne 0x404962
cmp byte [esi - 1], 0x3a
je 0x404962
test ebx, ebx
je 0x404953
dec ebx
jmp 0x404962
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
push eax
pop esi
mov al, byte [esi]
test al, al
jne 0x404942
pop esi
pop ebx
pop edi
ret
Function at 0x404fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
pop edi
push ebx
push esi
sub ebx, ebx
mov esi, 0x40134c
push ebx
sub edx, edx
push esi
pop ecx
call fcn.0040468f
push 0xa
push esi
push ebx
mov dword [0x409144], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x409140], eax
or eax, eax
je 0x405161
mov eax, dword [0x408584]
test eax, eax
je 0x405057
push ebx
push 0x842
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x841
push dword [0x408584]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call 0x404efd
or eax, eax
jne 0x40507c
mov ecx, dword [0x408584]
mov edx, 0x4ba
push ebx
push 0x10
push ebx
push ebx
call fcn.004044b9
push ebx
pop esi
jmp 0x405107
push edi
push 0x409148
push 1
push 0x404bc0
push fcn.00404b60
push 0x404ad0
push 0x404a50
push fcn.00404980
push 0x404cc0
push 0x404ca0
call dword [sym.imp.Cabinet.dll_FDICreate]
push eax
pop edi
add esp, 0x24
test edi, edi
je 0x4050e8
push 0x409140
push ebx
push 0x404cd0
push ebx
push 0x401140
push str.MEMCAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
mov esi, eax
add esp, 0x1c
or esi, esi
je 0x405106
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
pop ecx
or eax, eax
jne 0x405106
mov edx, dword [0x409148]
mov ecx, dword [0x408584]
push ebx
push 0x10
push ebx
push ebx
lea edx, [edx + 0x514]
call fcn.004044b9
mov esi, ebx
pop edi
mov eax, dword [0x409140]
or eax, eax
je 0x40511d
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x409140], ebx
test esi, esi
jne 0x40513a
cmp dword [0x4091d8], ebx
jne 0x40513a
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4f8
xor ecx, ecx
call fcn.004044b9
test byte [0x408a38], 1
jne 0x40515f
test byte [0x409a34], 1
jne 0x40515f
push ebx
push esi
push 0xfa1
push dword [0x408584]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4052b6
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4091e0]
test esi, esi
je 0x405317
push edi
cmp dword [0x408a24], 0
mov edi, esi
jne 0x405300
cmp dword [0x409a30], 0
jne 0x405300
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
or esi, esi
jne 0x4052d7
pop edi
mov eax, dword [0x408a20]
pop esi
test eax, eax
je 0x405379
cmp dword [0x408a24], 0
jne 0x405379
cmp dword [0x409a30], 0
jne 0x405379
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
test byte [0x409a34], 0x20
je 0x40535e
lea ecx, [ebp - 0x108]
call fcn.004065e8
push 0x4011fc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
call fcn.00402390
mov eax, dword [0x408a20]
cmp word [0x409a40], 1
je 0x40538c
test eax, eax
je 0x40538c
call 0x401fe1
mov ecx, dword [ebp - 4]
and dword [0x408a20], 0
xor ecx, ebp
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret

Function at 0x4053a1
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
push esi
pop esi
push ebp
push esp
pop ebp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sub edi, edi
push edi
push 0x401378
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040171e
add esp, 0x10
mov edx, 0x104
push esi
pop ecx
inc edi
push ebx
call fcn.00401680
lea eax, [ebp - 0x108]
mov edx, 0x104
push eax
push esi
pop ecx
call fcn.0040658a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40544f
cmp edi, 0x190
jl 0x4053bf
push esi
sub edi, edi
push edi
push 0x401384
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
or eax, eax
je 0x40543a
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
or eax, eax
je 0x405415
xor edi, edi
inc edi
mov dword [0x408a20], edi
jmp 0x40543a
Function at 0x4058c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push ecx
pop edi
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4058d8
sub edx, ecx
lea esi, [edx + 0x14]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x405919
xor esi, esi
mov edx, 0x4b5
push esi
push 0x10
push esi
push esi
xor ecx, ecx
call fcn.004044b9
call fcn.00406285
mov dword [0x409124], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edx, esi
push ebx
pop ecx
call fcn.00401680
push 0x4013b8
mov edx, esi
push ebx
pop ecx
call fcn.0040658a
xor esi, esi
push esi
push 0x4000080
push 1
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x405906
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405906
test al, 0x10
je 0x405906
xor eax, eax
mov dword [0x409124], esi
inc eax
jmp 0x405912
Function at 0x40621e
Capabilities:
Get common file path

Disassembly:
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or eax, eax
jne 0x406268
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
sub ecx, ecx
call fcn.004044b9
call fcn.00406285
mov dword [0x409124], eax
sub eax, eax
jmp 0x406277
push 2
pop edx
push edx
lea ecx, [ebp - 0x108]
call fcn.0040597d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

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

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
mov edi, 0x4011d8
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406501
test al, 0x10
jne 0x406501
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x406508
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret

Function at 0x40681f
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0xb4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xac], esi
cmp edi, 0xfffffffe
jne 0x406940
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
or eax, eax
je 0x40693a
sub edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x40693a
cmp dword [ebp - 0xa0], 4
jne 0x40693a
cmp dword [ebp - 0x9c], 0xa
jae 0x40693a
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40693a
lea eax, [ebp - 0xa8]
push eax
push 0x20019
push esi
push 0x4013e0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x40693a
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401140
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, esi
jne 0x40693a
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x10]
call 0x4066f9
test eax, eax
je 0x40693a
mov eax, dword [ebp - 0xac]
and eax, 0x3ff
cmp eax, edi
je 0x406932
cmp eax, 0xd
jne 0x40693a
mov dword [0x4081d8], edi
jmp 0x406940
mov edi, dword [0x4081d8]
mov ecx, dword [ebp - 4]
push edi
pop eax
pop edi
xor ecx, ebp
pop esi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x406952
Capabilities:
Get disk size

Disassembly:
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x4069a1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
or eax, eax
je 0x4069a1
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, esi
pop esi
push ebp
pop esp
pop ebp
ret

Function at 0x406a60
Capabilities:
Terminate process

Disassembly:
call fcn.00407155
jmp 0x406a6a
push 0x58
push 0x4072b8
call fcn.00407208
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4088ac
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
or eax, eax
je 0x406abc
cmp eax, esi
jne 0x406aaf
xor esi, esi
inc esi
push esi
pop edi
jmp 0x406abf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406a93
sub esi, esi
inc esi
cmp dword [0x4088b0], esi
jne 0x406ad1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406b0b
cmp dword [0x4088b0], ebx
jne 0x406b05
mov dword [0x4088b0], esi
push 0x4010c4
push 0x4010b8
call fcn.00406c3f
pop ecx
pop ecx
test eax, eax
je 0x406b0b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406c39
mov dword [0x4081e4], esi
cmp dword [0x4088b0], esi
jne 0x406b2e
push 0x4010b4
push 0x4010ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
or edi, edi
jne 0x406b3b
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406b67
push 0x4088b4
call fcn.00407060
pop ecx
test eax, eax
je 0x406b67
push ebx
push 2
push ebx
mov esi, dword [0x4088b4]
push esi
pop ecx
call dword [0x40a288]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406bc5
test cl, cl
je 0x406b94
or edi, edi
jne 0x406bc5
test cl, cl
je 0x406b94
cmp cl, 0x20
ja 0x406b94
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x406b83
test byte [ebp - 0x3c], 1
je 0x406ba0
movzx eax, word [ebp - 0x38]
jmp 0x406ba3
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406c1e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406bd6
xor eax, eax
or edi, edi
sete al
push eax
pop edi
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
or eax, eax
je 0x406be9
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x406b74
cmp dword [0x4081e4], 0
jne 0x406c32
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040724d
ret
Function at 0x406c70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x406cd3
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
jne 0x406cd3
movzx eax, word [ecx + 0x400018]
mov edx, 0x10b
cmp ax, dx
je 0x406cc0
mov edx, 0x20b
cmp ax, dx
jne 0x406cd3
cmp dword [ecx + 0x400084], 0xe
jbe 0x406cd3
xor eax, eax
cmp dword [ecx + 0x4000f8], eax
setne al
ret
cmp dword [ecx + 0x400074], 0xe
jbe 0x406cd3
sub eax, eax
cmp dword [ecx + 0x4000e8], eax
jmp 0x406cbc
sub eax, eax
ret

Function at 0x406f54
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4072d8
call fcn.00407208
sub ecx, ecx
mov eax, dword [ebp + 8]
or eax, eax
je 0x406fb4
cmp eax, 0xffffffff
je 0x406fb4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x406fad
mov edx, dword [eax + 0x3c]
or edx, edx
js 0x406fad
cmp edx, 0x10000000
jae 0x406fad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x406faa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040724d
ret 4

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
push edx
pop edx
push 1
pop eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001100
Capabilities:
Hash data using crc32b

Disassembly:
push 0x400
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001120
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000112c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001136
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001140
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000114a
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001154
or eax, 4
shr ecx, 1
test cl, 1
je 0x1000115e
or eax, 2
test cl, 2
je 0x10001166
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 0x10001220
test al, 1
je 0x1000122d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001220
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001114
pop edi
pop ebx
ret

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

Disassembly:
sub esp, 0x408
mov eax, dword [0x1000401c]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x40c]
push ebx
push esi
push 0x10003198
push eax
or esi, 0xffffffff
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, eax
add esp, 8
mov dword [esp + 8], ebx
test ebx, ebx
jne 0x1000128e
or eax, 0xffffffff
jmp 0x100012e3
push ebp
nop
push ebx
push 0x400
lea eax, [esp + 0x18]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [esp + 0x10]
test eax, eax
je 0x100012cd
movzx ebp, byte [edx]
mov ebx, esi
and ebx, 0xff
xor ebx, ebp
shr esi, 8
xor esi, dword [edi + ebx*4]
dec ecx
inc edx
test ecx, ecx
jne 0x100012b0
mov ebx, dword [esp + 0xc]
cmp eax, 0x400
je 0x10001290
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, esi
not eax
pop ebp
mov ecx, dword [esp + 0x40c]
pop esi
pop ebx
xor ecx, esp
call fcn.10002375
add esp, 0x408
ret 4
Function at 0x10001610
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x24
mov eax, dword [0x1000401c]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, 1
cmp dword [0x10006b88], eax
je 0x100017ae
push ebx
push ebp
push esi
mov dword [0x10006b88], eax
mov byte [esp + 0x19], al
mov al, 0x90
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x14
xor ebx, ebx
push 0x60c269
mov byte [esp + 0x2c], 0x6a
mov byte [esp + 0x2e], 0xff
mov byte [esp + 0x2f], 0x15
mov byte [esp + 0x30], 0x38
mov byte [esp + 0x31], 0x11
mov byte [esp + 0x32], 0x66
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], 0xeb
mov byte [esp + 0x35], 0xdb
mov dword [esp + 0x20], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100016fa
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, 0x60c269
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push 0x14
push 0x60c269
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x100016fc
call ebp
mov esi, 0x5bf8b6
call fcn.10001e30
mov esi, 0x5bf8f2
call fcn.10001e30
mov esi, 0x5c25d9
call fcn.10001e30
lea ecx, [esp + 0x14]
push ecx
push 0x40
push 4
push 0x5f6ee7
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0x94
mov byte [esp + 0x22], 0x35
mov byte [esp + 0x23], 0x77
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x1000176b
mov eax, dword [esp + 0x10]
mov edx, 0x5f6ee7
mov dword [edx], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
push 4
push 0x5f6ee7
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x1000176d
call ebp
mov esi, 5
mov ebx, 0x4f77cf
call fcn.10001db0
push 0x100017c0
mov cl, 0xe8
mov esi, ebx
call fcn.10001e90
mov esi, 5
mov ebx, 0x5dea45
call fcn.10001db0
push 0x100017c0
mov cl, 0xe8
mov esi, ebx
call fcn.10001e90
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10002375
add esp, 0x24
ret

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

Disassembly:
call fcn.100019e0
mov dl, byte [ecx]
xor eax, eax
cmp dl, 0xc1
je 0x10001ae4
cmp dl, 0xc3
je 0x10001ae4
cmp dl, 0xc2
je 0x10001add
cmp dl, 0xc4
jne 0x10001ae9
mov eax, 4
jmp 0x10001ae9
mov eax, 3
cmp eax, esi
jge 0x10001b12
lea ecx, [ecx]
mov edx, eax
and edx, 0x8000001f
jns 0x10001aff
dec edx
or edx, 0xffffffe0
inc edx
mov dl, byte [edx + 0x10004434]
xor dl, byte [eax + ecx - 1]
inc eax
xor byte [eax + ecx - 1], dl
cmp eax, esi
jl 0x10001af0
mov eax, dword [0x66ff04]
push 0
push esi
push ecx
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_send]
ret
Function at 0x10001b30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x158
mov eax, dword [0x1000401c]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
push edi
push 0x3d
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x14], 0xc2
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0xd0
mov byte [esp + 0x17], 0xfd
mov byte [esp + 0x18], 0
call sub.MSVCR90.dll_memset
push 0x7c
lea ecx, [esp + 0x5a]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0x18
lea edx, [esp + 0xd8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x10001ba8
mov ecx, 0xf
lea esi, [esp + 0xdc]
lea edi, [esp + 0xd]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x10006b78]
mov ecx, 7
mov esi, str.main.exe
lea edi, [esp + 0x4a]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0xc8], eax
mov ecx, 7
mov esi, str.DarksTeam.dll
lea edi, [esp + 0x69]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x10006b7c]
mov edx, dword [0x10006b80]
movsw word es:[edi], word [esi]
mov dword [esp + 0xcc], ecx
mov eax, dword [0x10006b84]
mov ecx, 7
mov esi, str.PS.dll
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0xd0], edx
mov ecx, 7
mov esi, str.wz_min.dll
lea edi, [esp + 0xa7]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0xd4], eax
call fcn.100019e0
mov cl, byte [esp + 8]
xor eax, eax
cmp cl, 0xc1
je 0x10001c4e
cmp cl, 0xc3
je 0x10001c4e
cmp cl, 0xc2
je 0x10001c47
cmp cl, 0xc4
jne 0x10001c53
mov eax, 4
jmp 0x10001c53
mov eax, 3
cmp eax, 0xd0
jge 0x10001c85
lea ebx, [ebx]
mov ecx, eax
and ecx, 0x8000001f
jns 0x10001c6f
dec ecx
or ecx, 0xffffffe0
inc ecx
mov dl, byte [ecx + 0x10004434]
xor dl, byte [esp + eax + 7]
inc eax
xor byte [esp + eax + 7], dl
cmp eax, 0xd0
jl 0x10001c60
mov ecx, dword [0x66ff04]
mov edx, dword [ecx + 0xc]
push 0
push 0xd0
lea eax, [esp + 0x10]
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.10002375
mov esp, ebp
pop ebp
ret