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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
not eax
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x1000860d
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10075030]
sub edx, 1
jne 0x100085f3
not eax
pop esi
pop ebp
ret

Function at 0x10008650
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057d7b
mov eax, dword fs:[0]
push eax
mov eax, 0x28d8
call fcn.10033be0
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28e4], esi
mov dword [ebp - 0x28b8], 0
mov dword [ebp - 0x28b4], 0xf
mov byte [ebp - 0x28c8], 0
lea eax, [ebp - 0x28e4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28b0]
mov dword [ebp - 0x28e4], 0x2880
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x100086ea
lea eax, [ebp - 0x28b0]
cmp dword [eax + 0x1a0], 6
jne 0x100086e4
cmp dword [eax + 0x190], 6
je 0x10008717
mov eax, dword [eax]
test eax, eax
jne 0x100086d2
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
lea eax, [ebp - 0x30]
push str._02x_02x_02x_02x_02x_02x
push eax
call fcn.10008620
add esp, 0x20
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x28e0]
push eax
call fcn.10003680
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x28cc]
cmp edx, 0x10
jb 0x100086fb
mov ecx, dword [ebp - 0x28e0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100087c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100087d5
push edx
push ecx
call fcn.10033b8a
add esp, 8
jmp 0x100086fb
call fcn.100392dc
int3
Function at 0x10008ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057e08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 0x1005b528
mov dword [ebp - 0x2c], esi
call fcn.10003680
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008bf6
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 2
push str.MachineGuid
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x10008bed
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x10008b8c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x10008b99
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10008c50
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 2
push str.MachineGuid
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x10008bed
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
dec ecx
cmp ecx, eax
ja 0x10008be0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x10008bed
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10008c50
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret

Function at 0x10009430
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10009471
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.1000add0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10009490
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x1000c650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.1000ce30
cmp dword [ebp + 8], 0
je 0x1000c69e
push edi
lea edi, [esi + 0x100]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xac], 0
je 0x1000c696
add esi, 0x9c
cmp dword [esi + 0x14], 8
jb 0x1000c686
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000c696
call fcn.1000b900
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x14

Function at 0x1000c6c0
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
mov esi, ecx
push 0
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1000c702
call fcn.1000b900
test eax, eax
js 0x1000c7a8
mov eax, dword [ebp - 4]
cmp eax, 0x197
jne 0x1000c71a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x191
jne 0x1000c72f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xc8
je 0x1000c761
cmp eax, 0xce
je 0x1000c761
push 0x2f79
mov dword [esi + 0x11c], 1
mov dword [esi + 0x118], eax
call fcn.1000b920
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0x118], eax
mov ecx, esi
lea eax, [esi + 0x120]
mov dword [esi + 0x11c], 1
push eax
call fcn.1000cc10
push 0
push dword [esi + 0xd4]
push dword [esi + 0xd0]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1000c7a6
call fcn.1000b900
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000c870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100580d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100754f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x100]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
mov ecx, dword [ebp + 0xc]
add dword [esi + 0x138], ecx
mov eax, dword [esi + 0xd8]
adc dword [esi + 0x13c], ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x1000c8ed
push ebx
lea edx, [ebp + 0xc]
push edx
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000c8e9
call fcn.1000b900
mov ebx, eax
jmp 0x1000c94f
xor ebx, ebx
jmp 0x1000c94f
mov eax, dword [esi + 0xb8]
lea edi, [esi + 0xb4]
mov edx, dword [edi]
sub eax, edx
jne 0x1000c935
mov ecx, dword [esi + 0x120]
mov eax, ecx
and eax, dword [esi + 0x124]
cmp eax, 0xffffffff
mov eax, dword [edi + 8]
je 0x1000c925
sub eax, edx
cmp ecx, eax
jbe 0x1000c935
cmp ecx, 0x7fffffff
ja 0x1000c979
jmp 0x1000c92d
mov ecx, dword [esi + 0xd4]
jmp 0x1000c915
push ecx
mov ecx, edi
call fcn.1000dc10
push dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push ecx
push dword [esi + 0xb8]
mov ecx, edi
call fcn.1000b0c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
lea eax, [esi + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10006570
int3
Function at 0x1000cab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x100]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x1000cb6a
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [esi + 0xe4]
push dword [esi + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000cb07
call fcn.1000b900
mov edi, eax
test edi, edi
js 0x1000cb9a
push 0
push dword [ebp - 4]
push dword [esi + 0xe0]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x1000cb2a
call fcn.1000b900
mov edi, eax
test edi, edi
js 0x1000cb9a
mov eax, dword [ebp - 4]
add dword [esi + 0xf8], eax
mov ecx, dword [esi + 0xf8]
adc dword [esi + 0xfc], 0
mov eax, dword [esi + 0xfc]
cmp eax, dword [esi + 0xf4]
jb 0x1000cb58
ja 0x1000cb95
cmp ecx, dword [esi + 0xf0]
jae 0x1000cb95
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x1000cb95
push 0
push eax
push dword [esi + 0xc0]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x1000cb95
call fcn.1000b900
mov edi, eax
test edi, edi
js 0x1000cb9a
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000cc10
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058108
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100754f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.1000bf40
mov ecx, eax
test ecx, ecx
je 0x1000cd37
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov dword [ebp - 0x10], 0x20
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x20
or eax, ecx
mov dword [ebp - 4], 0
jge 0x1000cc8f
push 0x20
lea ecx, [ebp + 8]
call fcn.1000cbb0
mov esi, dword [ebp + 8]
cmp dword [esi - 8], 0x20
jl 0x1000cd2d
xor eax, eax
mov dword [esi - 0xc], 0x20
push eax
mov word [esi + 0x40], ax
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 5
push dword [ebx + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1000ccc6
call fcn.1000b900
mov ebx, eax
jmp 0x1000ccc8
xor ebx, ebx
push dword [esi - 8]
push esi
call fcn.1003e5db
add esp, 8
test eax, eax
js 0x1000cd2d
cmp eax, dword [esi - 8]
jg 0x1000cd2d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
js 0x1000ccf8
push esi
call fcn.1003e46f
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000cd17
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.1000b940
push 0x80004005
call fcn.1000b940
int3
Function at 0x1000e0a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000e0d4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000e0d4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x1000e1cc
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x1000e0f3
cmp dx, 0x5c
jne 0x1000e0f5
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x1000e0e7
cmp edi, ebx
je 0x1000e143
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.10035aa0
add esp, 0xc
cmp edi, 0x208
jae 0x1000e1dc
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.1000e0a0
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x1000e170
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x1000e160
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1000e172
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1000e190
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x1000e1cc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
call fcn.10034718
int3
Function at 0x1000e900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x1000eaac
cmp dword [ebx + 4], 0xffffffff
jne 0x1000eaac
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e937
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x1000e973
cmp eax, 0x2f
je 0x1000e973
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x1000e960
mov eax, dword [0x1005b4f8]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x1000e99e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000e9b9
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x1000e9b6
cmp edi, 3
je 0x1000e9b6
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x1000e9ff
cmp edi, 2
jne 0x1000ea1b
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000e9f9
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x1000ea05
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.10033b5a
add esp, 4
mov esi, eax
cmp edi, 1
je 0x1000ea56
cmp edi, 2
je 0x1000ea56
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x1000ea87
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x1000ea87
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.10011b00
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000f200
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x1005d168]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1005d168]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x100116c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x100116fe
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100116f2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call fcn.10035aa0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10011730
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1001173e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x100117fd
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
sub edi, 1
jne 0x10011756
pop edi
test esi, esi
je 0x1001181b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1005d168]
sub esi, 1
jne 0x10011801
not eax
pop esi
pop ebp
ret
Function at 0x100125f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
cmp byte [esi], 0
je 0x10012624
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xb]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001261f
mov byte [esi + 8], 1
mov edi, dword [ebp - 4]
jmp 0x10012650
mov ecx, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x10012636
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp + 0xb]
push eax
call fcn.10035aa0
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x1c], eax
pop ebx
cmp edi, 1
jne 0x10012666
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0xb]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x1001265e
cmp byte [esi + 8], 0
je 0x1001265e
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100133d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
nop word [eax + eax]
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jb 0x100133e0
xor bh, bh
mov word [esi + 0x100], 0
xor edi, edi
mov eax, edi
mov bl, byte [edi + esi]
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov byte [ecx + esi], bl
cmp edi, 0x100
jb 0x100133f8
pop edi
mov byte [esi + 0x102], 1
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10013eea
shr eax, 4
not eax
and eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10013f3d
cmp eax, 3
je 0x10013f3d
cmp eax, 0x7b
je 0x10013f3d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10013f3d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
shr eax, 4
not eax
and eax, 1
je 0x10013f3d
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
Function at 0x10014550
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100584c6
mov eax, dword fs:[0]
push eax
mov eax, 0x29b8
call fcn.10033be0
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x29c4], edi
mov dword [ebp - 0x2998], 0
mov dword [ebp - 0x2994], 0xf
mov byte [ebp - 0x29a8], 0
lea eax, [ebp - 0x29c4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2990]
mov dword [ebp - 0x29c4], 0x2880
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x100146a3
lea esi, [ebp - 0x2990]
nop word [eax + eax]
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02x_02x_02x_02x_02x_02x
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x29c0]
push 0x1005db6c
push eax
call fcn.10014300
add esp, 0x30
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov byte [ebp - 4], 1
jb 0x10014650
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x29a8]
call fcn.10006b10
mov edx, dword [ebp - 0x29ac]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10014699
mov ecx, dword [ebp - 0x29c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001468f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100146e5
push edx
push ecx
call fcn.10033b8a
add esp, 8
mov esi, dword [esi]
test esi, esi
jne 0x100145e0
movups xmm0, xmmword [ebp - 0x29a8]
mov dword [edi + 0x10], 0
mov eax, edi
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x2998]
movq qword [edi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
call fcn.100392dc
int3