joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028860
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a7cc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x58], 0
mov byte [esi + 0x48], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
mov dword [esi + 0x60], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x64]
call fcn.100222a0
lea eax, [ebp + 0x18]
push eax
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 7
call fcn.100222a0
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 8
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x24]
push eax
call fcn.10022e90
mov dword [esi + 0xa8], 0xf
mov dword [esi + 0xa4], 0
mov byte [esi + 0x94], 0
mov eax, dword [ebp + 0x3c]
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xcc], 0xf
mov dword [esi + 0xc8], 0
mov byte [esi + 0xb8], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov byte [esi + 0xdc], 0
mov dword [esi + 0xf4], 0xf
mov dword [esi + 0xf0], 0
mov byte [esi + 0xe0], 0
mov dword [esi + 0x10c], 0xf
mov dword [esi + 0x108], 0
mov byte [esi + 0xf8], 0
mov dword [esi + 0x110], eax
mov dword [esi + 0x118], 0xffffffff
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], 0
mov dword [esi + 0x138], 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
push 0x41
call dword [sym.imp.USER32.dll_IsCharLowerA]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10028a6c
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10028a91
push eax
call fcn.100852d7
add esp, 4
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
cmp dword [ebp + 0x38], 8
jb 0x10028aa2
push dword [ebp + 0x24]
call fcn.100852d7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x1002f210
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1002f21b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x1002f2e5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
add edx, 8
sub esi, 8
dec edi
jne 0x1002f230
pop edi
test esi, esi
je 0x1002f30a
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x100c25b8]
lea edx, [edx + 1]
dec esi
jne 0x1002f2f0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x1002f320
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x100c25b8]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x100c25b8]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x1002f370
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov bl, dl
mov edx, ecx
mov edi, dword [edx + 8]
mov ecx, dword [edx]
mov esi, edi
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x100c25b8]
xor eax, ecx
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, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x100c25b8]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x1002fae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 4], eax
je 0x1002fb23
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002fb15
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x1002fb34
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.10088b90
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002fb60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp byte [esi], 0
push edi
mov dword [ebp - 8], ebx
mov edi, 1
je 0x1002fb9b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002fb96
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x1002fbc8
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x1002fbac
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.10088b90
lea eax, [ebx + edi]
mov ebx, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x1002fbdc
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x1002fbd3
cmp byte [esi + 8], 0
je 0x1002fbd3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002fd00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x1002fd35
cmp byte [edi + 1], 0
je 0x1002fd2d
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1002fd3b
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
je 0x1002fd5a
cmp byte [edi + 1], 0
je 0x1002fd56
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x1002fd5d
xor eax, eax
jmp 0x1002fd5d
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, 0xffff
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], ebx
call fcn.10085dc2
mov esi, eax
add esp, 4
test esi, esi
jne 0x1002fd8c
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 4], 0xffffffff
cmp ebx, eax
jbe 0x1002fe87
mov ecx, dword [ebp - 8]
add eax, 0x400
cmp eax, ebx
mov edx, eax
cmova edx, ebx
mov ebx, dword [ebp - 8]
sub ecx, edx
sub ebx, ecx
cmp ebx, 0x404
mov eax, 0x404
cmova ebx, eax
cmp byte [edi], 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
je 0x1002fdee
cmp byte [edi + 1], 0
je 0x1002fe87
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1002fdf1
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x1002fe19
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002fe14
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x1002fe42
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x1002fe2c
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.10088b90
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x1002fe87
lea eax, [ebx - 3]
test eax, eax
js 0x1002fe72
dec eax
cmp byte [eax + esi], 0x50
jne 0x1002fe6e
cmp byte [eax + esi + 1], 0x4b
jne 0x1002fe6e
cmp byte [eax + esi + 2], 5
jne 0x1002fe6e
cmp byte [eax + esi + 3], 6
je 0x1002fe9a
test eax, eax
jns 0x1002fe52
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1002fe87
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp eax, ebx
jb 0x1002fda0
push esi
call fcn.10085c14
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x1002fe75
Function at 0x10030b90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x10030c2a
cmp dword [edi + 4], 0xffffffff
jne 0x10030c2a
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10030bc0
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x10030bec
cmp eax, 0x2f
je 0x10030bec
mov dword [edi + esi*2 + 0x244], 0x2f
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.1002fa40
add esp, 8
test eax, eax
jne 0x10030c0b
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.1002feb0
xor ecx, ecx
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov dword [edi], eax
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10031230
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x100312af
push 0x104
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.10087991
lea ecx, [ebp - 0x208]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031261
sub ecx, edx
sar ecx, 1
je 0x1003128e
movzx eax, word [ebp + ecx*2 - 0x20a]
cmp eax, 0x2f
je 0x10031284
cmp eax, 0x5c
jne 0x1003128e
xor eax, eax
mov word [ebp + ecx*2 - 0x20a], ax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100312af
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x10031394
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x100312cc
cmp ax, 0x5c
jne 0x100312ce
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x100312c0
cmp esi, edi
je 0x1003130b
sub esi, edi
and esi, 0xfffffffe
push esi
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.10088b90
xor eax, eax
add esp, 0xc
lea edx, [ebp - 0x208]
mov ecx, ebx
mov word [ebp + esi - 0x208], ax
call fcn.10031230
xor eax, eax
mov word [ebp - 0x410], ax
pop esi
test ebx, ebx
je 0x1003132e
push 0x104
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.10087991
add esp, 0xc
lea ecx, [ebp - 0x410]
xor eax, eax
mov word [ebp - 0x20a], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031340
sub ecx, edx
sar ecx, 1
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x410]
push edi
lea eax, [eax + ecx*2]
push eax
call fcn.10087991
xor eax, eax
add esp, 0xc
mov word [ebp - 0x20a], ax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10031394
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100374c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a82a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0
mov dword [edi], 0x100c68ac
mov dword [ebp - 0x14], edi
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call fcn.10003ba0
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.10004720
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x100dcee8]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10037b50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a824e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.10037e20
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10037e20
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x10037c5a
test dl, 0x10
jne 0x10037c5a
mov eax, 1
jmp 0x10037c5c
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.10037c90
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1003a9f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov edx, 0x811c9dc5
mov ecx, 0
sub esi, edi
je 0x1003aa21
lea esp, [esp]
movzx eax, byte [ecx + edi]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, esi
jb 0x1003aa10
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x10040280
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a824e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.10037e20
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10037e20
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x1004039e
test dl, 0x10
jne 0x1004039e
mov eax, 1
jmp 0x100403a0
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.10037c90
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1004b020
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5e88
push 0x100a3c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x19]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004c390
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1004c3e5
mov eax, dword [esp]
cmp al, 2
jne 0x1004c3df
shr eax, 8
cmp al, 2
jne 0x1004c3df
call fcn.1004ebd0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10088aee
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.10088aee
add esp, 0x194
ret
Function at 0x10059200
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10059232
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x10059370
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2d8], 0
push edi
je case.default.0x100593d0
test eax, eax
je case.default.0x100593d0
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x100593d0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x100593d0
jmp dword [edx*4 + 0x100594ec]
mov ecx, str.Header
mov edx, str.from
jmp 0x100593ed
mov ecx, str.Header
mov edx, 0x100aec6c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.1004e010
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10059410
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10059465
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x100594d0
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10059493
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x100594d0
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x100aec48
call fcn.1008689d
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.1008689d
add esp, 0x20
jmp case.default.0x100593d0
test ebx, ebx
js 0x100594ce
cmp ebx, 2
jg 0x100594ce
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x100aec48]
push 2
push ecx
call fcn.1008689d
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.1008689d
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10088aee
add esp, 0xa4
ret
Function at 0x10059590
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x5bc]
push 0x4000
push ebx
call fcn.1004dfb0
mov eax, dword [esi + 0x138]
add esp, 0x10
test eax, eax
je 0x100595f0
cmp dword [esi + 0x85e8], 0
jne 0x100595f0
push ebx
push 0x100aec88
push 0x100
push eax
call fcn.1004e010
add esp, 0x10
mov dword [esi + 0x85e8], 1
cmp dword [esi + 0x324], 0
je 0x10059677
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10059600
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x10059624
mov byte [esi + edi + 0x5bc], 0xa
inc edi
mov byte [esi + edi + 0x5bc], cl
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1005964e
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.10088aee
pop ecx
ret
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x100aec48
call fcn.1008689d
mov ecx, dword [esi + 0x130]
push ecx
push 1
push edi
push ebx
call fcn.1008689d
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.10088aee
pop ecx
ret