joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049240
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1020f198]
test bl, bl
je 0x10049289
push ebp
or ebp, 0xffffffff
nop dword [eax]
cmp bl, 0x23
jne 0x1004926f
cmp byte [esi], bl
jne 0x1004926f
cmp byte [esi + 1], bl
cmove eax, ebp
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x101ef4a0]
test bl, bl
jne 0x10049260
pop ebp
mov ecx, dword [edi + 0x5dd0]
not eax
mov edx, dword [edi + 0x5dd8]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x100492b0
cmp dword [edx + 4], eax
je 0x100492b3
add edx, 0x24
cmp edx, ecx
jne 0x100492a4
xor eax, eax
ret
mov eax, edx
ret

Function at 0x1004b030
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013d930
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10200e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x2c
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.1010cde0
lea edi, [esi + 0x3c]
add esp, 0xc
mov dword [ebp - 0x14], edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov ecx, dword [edi + 0x14]
test ecx, ecx
jns 0x1004b15c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0x14]
jle 0x1004b15c
lea eax, [ecx*4]
push eax
call fcn.1012189d
mov edx, dword [edi + 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
test edx, edx
je 0x1004b153
mov ecx, dword [edi + 0x10]
shl ecx, 2
push ecx
push edx
push eax
call fcn.1010c860
push dword [edi + 0x18]
call fcn.1011b2ad
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], 0
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov eax, esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x84], 0
movups xmmword [esi + 0x74], xmm0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004da40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1004da67
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.1011b2ad
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004da8c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.1011b2ad
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1004dab1
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.1011b2ad
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1004daf2
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.1011b2ad
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1004db17
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.1011b2ad
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1004db3c
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.1011b2ad
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10050460
Function at 0x10050e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
push edi
cmp byte [ecx + 0x3c], 0
lea ebp, [ebx + 0x3c]
jne 0x10050e6e
push 0x60
call fcn.1012189d
add esp, 4
test eax, eax
je 0x10050e5c
mov ecx, eax
call fcn.10051ab0
jmp 0x10050e5e
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, ebp
lea eax, [esp + 0x10]
push eax
call fcn.1004a1e0
mov ecx, dword [ebx + 0x58]
push esi
mov esi, dword [ebx + 0x54]
cmp esi, ecx
jne 0x10050ecc
inc esi
test ecx, ecx
je 0x10050e89
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10050e8e
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x10050ecc
imul eax, esi, 0x7c
push eax
call fcn.1012189d
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x10050ec3
imul ecx, dword [ebx + 0x54], 0x7c
push ecx
push eax
push edi
call fcn.1010c860
push dword [ebx + 0x5c]
call fcn.1011b2ad
add esp, 0x10
mov dword [ebx + 0x5c], edi
lea ebp, [ebx + 0x3c]
mov dword [ebx + 0x58], esi
imul edi, dword [ebx + 0x54], 0x7c
mov ecx, 0x1f
mov edx, dword [esp + 0x1c]
mov esi, edx
add edi, dword [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x54]
imul edi, dword [ebx + 0x54], 0x7c
add edi, dword [ebx + 0x5c]
cmp dword [edi - 4], 0
jne 0x10050efd
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi - 4], eax
cmp byte [edi - 0x74], 0
jne 0x10050f28
push dword [edi - 0x78]
call fcn.1012189d
mov ecx, dword [esp + 0x20]
push dword [edi - 0x78]
mov dword [edi - 0x7c], eax
mov byte [edi - 0x74], 1
push dword [ecx]
push eax
call fcn.1010c860
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [edi - 4]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x10050f3e
mov ax, word [edx + 0x4c]
mov word [ecx + 0x3c], ax
imul esi, dword [ebx + 0x54], 0x7c
mov eax, dword [ebx + 0x5c]
add esi, eax
cmp eax, esi
je 0x10050f6e
nop dword [eax + eax]
cmp byte [eax + 0x3c], 0
mov edx, dword [eax + 0x78]
lea ecx, [edx + 0x38]
jne 0x10050f64
mov dword [edx + 0x34], eax
xor edx, edx
mov word [ecx], dx
inc word [ecx]
add eax, 0x7c
cmp eax, esi
jne 0x10050f50
mov eax, dword [ebx + 0x1c]
mov byte [ebx + 0x18], 0
pop esi
test eax, eax
je 0x10050f83
push eax
call fcn.1011b2ad
add esp, 4
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10050f93
push eax
call fcn.1011b2ad
add esp, 4
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x19], 0
mov eax, dword [edi - 4]
pop edi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x10051170
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x14], ecx
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
push ebx
call fcn.1012189d
movzx edx, byte [esi]
add esp, 4
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
mov dword [esp + 0xc], eax
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x10051265
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x10051265
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
mov edx, dword [esp + 0xc]
movzx edi, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov dword [0x1020f1b8], esi
movzx eax, byte [esi + 0xa]
add esi, 0x10
shl ecx, 8
add ecx, eax
mov dword [0x1020f1b4], edx
shl ecx, 8
add ecx, edx
mov dword [0x1020f1bc], edx
add edi, ecx
mov ecx, esi
mov dword [0x1020f1b0], edi
call fcn.10053360
cmp eax, esi
je 0x10051265
nop
cmp dword [0x1020f1bc], edi
ja 0x10051265
mov ecx, eax
mov esi, eax
call fcn.10053360
cmp eax, esi
jne 0x10051250
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x100512b7
push 0x7c
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.1010cde0
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 1
lea esi, [esp + 0x18]
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov word [esp + 0x64], ax
movss xmm0, dword [esp + 0x10]
lea edi, [esp + 0x98]
comiss xmm0, dword [0x101f4e98]
mov eax, dword [esp + 0xc]
mov ecx, 0x1f
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1f
lea esi, [esp + 0x98]
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1f
mov byte [esp + 0x120], 1
lea esi, [esp + 0x118]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jbe 0x10051315
movss dword [esp + 0x28], xmm0
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.10050e30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1006e200
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0xc], 0x100000
push esi
mov esi, edx
je 0x1006e270
mov cl, byte [esi]
or eax, 0xffffffff
inc esi
test cl, cl
je 0x1006e249
push edi
or edi, 0xffffffff
nop word [eax + eax]
cmp cl, 0x23
jne 0x1006e22f
cmp byte [esi], cl
jne 0x1006e22f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x101ef4a0]
test cl, cl
jne 0x1006e220
pop edi
mov ecx, dword [0x1020f198]
not eax
cmp dword [ecx + 0x3fdc], eax
jne 0x1006e25f
mov dword [ecx + 0x3fe0], eax
cmp dword [ecx + 0x4004], eax
jne 0x1006e297
mov byte [ecx + 0x4008], 1
pop esi
ret
mov eax, dword [0x1020f198]
xor edx, edx
mov eax, dword [eax + 0x3f8c]
mov ecx, dword [eax + 0xec]
mov eax, dword [eax + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, esi
call fcn.10033cd0
add esp, 4
pop esi
ret
Function at 0x10078a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x10078a38
cmp eax, edi
jge 0x10078a28
call fcn.10078350
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
xor ecx, ecx
mov edi, eax
test eax, eax
jle 0x10078a60
mov edx, dword [esi + 0xc]
push ebx
mov bl, dl
mov byte [esp + ecx + 0xc], bl
lea eax, [edi - 8]
shr edx, 8
inc ecx
mov dword [esi + 0xc], edx
mov edi, eax
mov bl, dl
test eax, eax
jg 0x10078a46
pop ebx
mov dword [esi + 8], edi
jns 0x10078a81
mov ecx, dword [0x10203278]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp ecx, 4
jge 0x10078aa9
mov edi, dword [esi + 4]
nop dword [eax]
mov eax, dword [esi]
cmp eax, edi
jb 0x10078a9a
xor dl, dl
jmp 0x10078a9f
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [esp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x10078a90
movzx edi, byte [esp + 9]
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0xb]
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [esp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x10078a62
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x10078afa
mov ecx, dword [0x10203278]
mov eax, dword fs:[0x2c]
pop edi
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.read_past_buffer
xor eax, eax
pop ecx
ret
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x10078b18
push edi
mov ecx, esi
call fcn.10078470
add esp, 4
test eax, eax
je 0x10078a7b
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.1010c860
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x100834f0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10200e40]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, dword [0x1020f198]
lea eax, [esp + 0xc]
push edi
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100835db
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100835db
push 0x28
call fcn.1012189d
mov edx, eax
add esp, 4
test edx, edx
je 0x1008354f
xorps xmm0, xmm0
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
movq qword [edx + 0x20], xmm0
jmp 0x10083551
xor edx, edx
or dword [esi + 0xc], 6
mov dword [esi + 0x74], edx
mov dword [esi + 0x6c], str.imgui_impl_win32
mov esi, dword [0x1020f198]
mov dword [edx], edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov dword [edx + 0x20], 9
test esi, esi
je 0x10083593
mov esi, dword [esi + 0x74]
jmp 0x10083595
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x100835b8
mov dword [esi], eax
mov eax, dword [0x1020f198]
mov eax, dword [eax + 0x4a34]
mov eax, dword [eax]
mov dword [eax + 0x28], edi
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10109e3a
add esp, 0x1c
ret
mov ecx, dword [esp + 0x20]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10109e3a
add esp, 0x1c
ret
Function at 0x10085df0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10085e05
xor eax, eax
jmp 0x10085e74
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x10085e32
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x10085e6f
imul edx, dword [ebp - 0x10], 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x10085e6d
imul ecx, dword [ebp - 0x10], 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x10085e69
imul ecx, dword [ebp - 0x10], 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x10085e6d
xor eax, eax
jmp 0x10085e74
jmp 0x10085e29
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1008d970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x1008d995
push dword [edi + 0x74]
call eax
add esp, 4
push ebx
push esi
mov esi, dword [edi + 0x54]
test esi, esi
je 0x1008d9fb
nop
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x1008d9f4
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x1008d9c7
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x1008d9b6
jmp 0x1008d9f4
test edx, edx
jne 0x1008d9d0
mov dword [ebx + 0x54], ecx
jmp 0x1008d9d3
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1008d9e0
push esi
call eax
add esp, 4
push esi
call fcn.1008dd90
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x1008d9a0
lea eax, [edi + 0x6c]
test eax, eax
je 0x1008da7e
test ebp, ebp
je 0x1008da7e
mov ebx, dword [eax]
test ebx, ebx
je 0x1008da71
nop dword [eax]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1008da27
push esi
call eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x1008da3b
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1008da4c
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
push esi
push ebp
call eax
mov eax, dword [ebp + 8]
push ebx
push ebp
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x1008da10
lea eax, [edi + 0x6c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x1008da92
push edi
call eax
add esp, 4
push ebp
push edi
call fcn.1008d8f0
mov eax, dword [esp + 0x18]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1008daad
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test esi, esi
je 0x1008dadf
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x1008dacb
push esi
call eax
add esp, 4
test dword [esp + 0x20], 0x400
jne 0x1008dadf
mov eax, dword [ebx + 8]
push esi
push ebx
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
pop esi
pop ebx
test eax, eax
je 0x1008db06
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebp + 8]
push edi
push ebp
call eax
add esp, 8
pop edi
pop ebp
pop ecx
ret
Function at 0x100909d0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x100909e4
lea eax, [esi + 0x28]
pop esi
add esp, 0xc
ret
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10090a13
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
push ebp
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10090b25
mov ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x10090b25
mov eax, dword [esp + 0x14]
jl 0x10090a4c
cmp eax, 0x7fffffff
ja 0x10090b25
or eax, ecx
je 0x10090b25
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x10090b25
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call ebp
cmp dword [esi], 0
je 0x10090a9d
mov eax, 0x10090b80
jmp 0x10090aed
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10090b25
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call ebp
test eax, eax
je 0x10090b10
add edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
jne 0x10090ac0
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10090b50
push ebx
mov dword [esi + 0x18], eax
call ebp
mov eax, dword [esi]
pop edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
pop ebp
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
add esp, 0xc
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call ebp
pop edi
pop ebp
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
add esp, 0xc
ret
Function at 0x100dd410
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
xorps xmm0, xmm0
push ebx
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [ebp + 0x33c]
movups xmmword [ebx], xmm0
push esi
movq qword [ebx + 0x10], xmm0
movzx ecx, word [ebp + 0x98]
mov eax, dword [ebp + 0x9c]
shl ecx, 4
add ecx, eax
push edi
cmp eax, ecx
jae 0x100dd5fd
cmp dword [eax], 0x42444620
jne 0x100dd455
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x100dd469
add eax, 0x10
cmp eax, ecx
jb 0x100dd446
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x14
ret
push dword [eax + 8]
mov edi, dword [esp + 0x30]
push edi
call fcn.1008cd70
add esp, 8
test eax, eax
jne 0x100dd5fd
cmp esi, 8
jb 0x100dd5fd
push ebx
push esi
push edi
call fcn.1008c3e0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100dd5fd
mov eax, dword [ebx]
lea ecx, [eax + esi]
mov dword [ebp + 0x340], ecx
mov ecx, eax
movzx edi, byte [ecx + 2]
movzx eax, byte [ecx + 3]
movzx edx, byte [ecx + 5]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 6]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 7]
movzx ecx, byte [ecx + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebx]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
cmp ecx, 1
jne 0x100dd5e5
cmp edx, 8
jb 0x100dd5e5
lea eax, [edx - 8]
shr eax, 2
cmp eax, edi
jb 0x100dd5e5
lea eax, [edx + 1]
cmp eax, esi
ja 0x100dd5e5
mov eax, dword [ebx]
sub esi, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [ebp + 0x34c], edi
mov dword [ebp + 0x348], esi
lea ecx, [eax + edx]
mov dword [ebp + 0x344], ecx
lea edx, [eax + 8]
lea eax, [edx + edi*4]
mov dword [esp + 0x10], eax
cmp edi, 2
jb 0x100dd5a1
lea esi, [edi - 2]
xor ebx, ebx
shr esi, 1
inc esi
xor ebp, ebp
movzx ecx, byte [edx + 2]
sub edi, 2
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
movzx ecx, byte [edx + 6]
lea ebx, [ebx + eax*2]
shl ecx, 8
movzx eax, byte [edx + 7]
add edx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea ebp, [ebp + eax*2]
sub esi, 1
jne 0x100dd555
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov esi, dword [ebp + 0x344]
lea ebx, [ebp + 0x33c]
jmp 0x100dd5a3
mov esi, ecx
test edi, edi
je 0x100dd5c0
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea edx, [edx + eax*2]
jmp 0x100dd5c4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
add eax, edx
cmp eax, esi
ja 0x100dd5e5
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov byte [ebp + 0x350], 1
pop ebp
pop ebx
add esp, 0x14
ret
push ebx
push dword [esp + 0x30]
call fcn.1008cd30
xorps xmm0, xmm0
add esp, 8
movups xmmword [ebx], xmm0
movq qword [ebx + 0x10], xmm0
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10104150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, 1
push esi
push edi
mov ecx, 0x3020100
mov edx, dword [ebx + 0x10c]
mov dword [ebx + 0x114], 0x3020100
add ecx, 0x4040404
mov dword [ebx + eax*4 + 0x114], ecx
inc eax
cmp eax, edx
jbe 0x10104171
xor esi, esi
xor edi, edi
cmp dword [esp + 0x14], esi
je 0x101041cd
push ebp
mov ebp, dword [esp + 0x14]
movzx eax, byte [esi + ebp]
mov edx, dword [esp + 0x1c]
or edi, eax
mov ebx, edx
mov cl, byte [eax + edx + 0x114]
mov byte [esi + ebp], cl
mov byte [edx + 0x113], cl
nop
mov cl, byte [eax + ebx + 0x113]
mov edx, eax
sub eax, 1
mov byte [edx + ebx + 0x114], cl
jns 0x101041b0
inc esi
cmp esi, dword [esp + 0x18]
jb 0x10104192
pop ebp
mov eax, dword [esp + 0x18]
shr edi, 2
mov dword [eax + 0x10c], edi
pop edi
pop esi
pop ebx
ret