joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026e80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100824e7
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x100a7070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1a4], esi
mov dword [esi + 4], 0x1009d0a0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x1bc], esi
mov dword [esi], 0x1009c47c
mov dword [esi + 4], 0x1009c478
mov dword [esi + 8], 1
call fcn.1003a0a0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x70]
mov dword [esi + 0x6c], 0
call fcn.10022730
mov dword [esi + 0x7c], 0x1009d0a4
mov dword [esi + 0x80], 0
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 2
call fcn.10022bd0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
push 0x190
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.1005d9b0
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [esi + 0x80]
test eax, eax
je 0x10026f6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x80], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x80], eax
call fcn.10031b90
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], esi
push eax
lea edx, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], 0x100285f0
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x1ac], 0
call fcn.1002f8b0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call fcn.1002f8f0
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x10026fdf
push 0x10
push eax
call fcn.10044cd3
add esp, 8
cmp dword [esi + 0x94], 0
je 0x10026fed
call fcn.1006b008
mov ecx, dword [ebp - 0x1b8]
mov eax, esi
mov dword [esi + 0x90], ecx
mov ecx, dword [ebp - 0x1b4]
mov dword [esi + 0x94], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004450b
mov esp, ebp
pop ebp
ret

Function at 0x1002e050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081a66
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100a7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x1009c3b4
call fcn.10044970
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10042848
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100304b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082efb
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.10045860
mov eax, dword [0x100a7070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2010]
push 0x2000
push 0
push eax
call fcn.1005d9b0
add esp, 0xc
mov dword [ebp - 0x2024], 0
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x201c], 0
lea eax, [ebp - 0x2014]
mov dword [ebp - 4], 0
push eax
call fcn.10031b90
mov ecx, eax
call fcn.10031c50
sub esp, 8
push 0x20019
sub esp, 8
push dword [eax]
push ecx
lea ecx, [ebp - 0x2024]
call fcn.1002fea0
mov edx, dword [ebp - 0x2014]
mov edi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10030585
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x10030583
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10030585
call esi
test edi, edi
mov edi, dword [ebp - 0x2024]
jne 0x10030614
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2014], 0x40
push eax
push 0
lea eax, [ebp - 0x2018]
push eax
push 0
push str.info_cache
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10030614
mov eax, dword [ebp - 0x2018]
cmp eax, 1
je 0x100305cf
cmp eax, 2
jne 0x10030614
mov eax, dword [ebp - 0x2014]
lea ecx, [ebp - 0x2024]
shr eax, 1
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0x2010]
push eax
push str.info_cache
call fcn.10031520
test eax, eax
jne 0x10030614
lea eax, [ebp - 0x2010]
mov ecx, ebx
push eax
call fcn.100189b0
mov esi, 1
jmp 0x10030616
xor esi, esi
test edi, edi
je 0x10030621
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004450b
mov esp, ebp
pop ebp
ret 4
Function at 0x10030650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100a7070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.1005d9b0
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
call fcn.10031b90
mov ecx, eax
call fcn.10031c50
sub esp, 8
push 0x20019
sub esp, 8
push dword [eax]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.1002fea0
mov edx, dword [ebp - 0x21c]
mov edi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10030721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003071f
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10030721
call esi
mov esi, dword [ebp - 0x22c]
test edi, edi
jne 0x100307a5
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x40
push eax
push 0
lea eax, [ebp - 0x220]
push eax
push 0
push str.uuid
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100307a5
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x10030767
cmp eax, 2
jne 0x100307a5
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
shr eax, 1
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push str.uuid
call fcn.10031520
test eax, eax
jne 0x100307a5
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.100189b0
test esi, esi
je 0x100307b0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004450b
mov esp, ebp
pop ebp
ret 4
Function at 0x100310d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x100a7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.10031b90
mov ecx, eax
call fcn.10031c50
sub esp, 8
push 0x20019
sub esp, 8
push dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.1002fea0
mov edx, dword [ebp - 0x10]
mov edi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1003116f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003116d
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003116f
call esi
test edi, edi
mov edi, dword [ebp - 0x20]
jne 0x100311b1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push str.uuid
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100311b1
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x100311a6
cmp eax, 2
jne 0x100311b1
mov eax, dword [ebp - 0x10]
shr eax, 1
je 0x100311b1
xor esi, esi
jmp 0x100311b6
mov esi, 1
test edi, edi
je 0x100311c1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100311e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083008
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100a7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.10031b90
mov ecx, eax
call fcn.10031c50
sub esp, 8
push 0x2001f
sub esp, 8
push dword [eax]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1002fea0
mov edx, dword [ebp - 0x10]
mov edi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1003127f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003127d
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003127f
call esi
mov esi, dword [ebp - 0x1c]
test edi, edi
jne 0x100312bc
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x100312bc
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031294
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.uuid
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x100312c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100312e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083038
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100a7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.10031b90
mov ecx, eax
call fcn.10031c50
sub esp, 8
push 0x2001f
sub esp, 8
push dword [eax]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1002fea0
mov edx, dword [ebp - 0x10]
mov edi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10031380
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003137e
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10031380
call esi
mov esi, dword [ebp - 0x1c]
test edi, edi
jne 0x100313ca
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
jne 0x10031395
lea edi, [edx + 0xd]
jmp 0x100313ca
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100313a0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.info_cache
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100313dd
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor ebx, ebx
test edi, edi
sete bl
test esi, esi
je 0x100313eb
push esi
call eax
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

Function at 0x10031520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10031591
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1003155f
cmp eax, 2
jne 0x1003157b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1003158b
test ecx, ecx
je 0x10031586
test cl, 1
jne 0x1003157b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1003158b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10031f90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x100a7070]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
movups xmmword [ebp - 0x48], xmm0
push esi
movups xmm0, xmmword [0x1009d360]
mov esi, edx
mov dword [ebp - 0x60], eax
mov al, byte [0x1009d390]
mov edx, ecx
movups xmmword [ebp - 0x38], xmm0
push edi
movups xmm0, xmmword [0x1009d370]
xor edi, edi
mov dword [ebp - 0x58], esi
xor ecx, ecx
mov dword [ebp - 0x50], edx
mov byte [ebp - 8], al
mov dword [ebp - 0x4c], edi
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [0x1009d380]
movups xmmword [ebp - 0x18], xmm0
test edx, edx
je 0x1003214d
test ebx, ebx
je 0x1003214d
lea edx, [esi + 2]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
cmp dword [ebp + 0xc], eax
jl 0x1003214d
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x5c], eax
test eax, eax
jle 0x100320a7
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
movzx edx, byte [eax + edi]
movzx esi, byte [eax + edi + 1]
movzx edi, byte [eax + edi + 2]
add eax, 3
mov dword [ebp - 0x4c], eax
mov eax, edx
shr eax, 2
and edx, 3
shl edx, 4
movzx eax, byte [ebp + eax - 0x48]
mov byte [ebx + ecx], al
mov eax, esi
shr eax, 4
and esi, 0xf
or eax, edx
shl esi, 2
movzx eax, byte [ebp + eax - 0x48]
mov byte [ebx + ecx + 1], al
mov eax, edi
shr eax, 6
and edi, 0x3f
or eax, esi
movzx eax, byte [ebp + eax - 0x48]
mov byte [ebx + ecx + 2], al
movzx eax, byte [ebp + edi - 0x48]
mov byte [ebx + ecx + 3], al
add ecx, 4
sub dword [ebp - 0x54], 1
jne 0x10032036
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x5c]
lea eax, [eax + eax*2]
sub esi, eax
sub esi, 0
je 0x10032129
sub esi, 1
je 0x100320fd
sub esi, 1
jne 0x10032129
mov eax, dword [ebp - 0x50]
movzx edx, byte [edi + eax]
movzx esi, byte [edi + eax + 1]
mov eax, edx
shr eax, 2
and edx, 3
shl edx, 4
movzx eax, byte [ebp + eax - 0x48]
mov byte [ebx + ecx], al
mov eax, esi
shr eax, 4
or eax, edx
and esi, 0xf
movzx eax, byte [ebp + eax - 0x48]
mov byte [ebx + ecx + 1], al
movzx eax, byte [ebp + esi*4 - 0x48]
mov byte [ebx + ecx + 2], al
mov byte [ebx + ecx + 3], 0x3d
jmp 0x10032126
mov eax, dword [ebp - 0x50]
movzx edx, byte [edi + eax]
mov eax, edx
and edx, 3
shr eax, 2
add edx, edx
movzx eax, byte [ebp + eax - 0x48]
mov byte [ebx + ecx], al
movzx eax, byte [ebp + edx*8 - 0x48]
mov byte [ebx + ecx + 1], al
mov word [ebx + ecx + 2], 0x3d3d
add ecx, 4
mov eax, dword [ebp - 0x60]
mov dword [eax], ecx
cmp ecx, dword [ebp + 0xc]
jge 0x10032137
mov byte [ebx + ecx], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004450b
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004450b
mov esp, ebp
pop ebp
ret
Function at 0x100321b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x100321d6
call fcn.1002ff90
test eax, eax
js 0x100321e3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10032e30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100832b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100a7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10032e7b
mov eax, 0x80004003
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
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
push edi
push 0x80
push 3
push edi
push 5
push SysReAllocStringLen
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10032eb2
call fcn.1002ff90
mov esi, eax
test esi, esi
jns 0x10032eb7
jmp 0x10032f55
mov edi, eax
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x10032eda
call fcn.1002ff90
mov esi, eax
test esi, esi
js 0x10032f55
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0
ja 0x10032f53
cmp esi, 0xffffffff
jae 0x10032f53
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push ecx
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.100335b0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
cmp esi, eax
jne 0x10032f3f
cmp dword [ebp - 0x14], 0
jne 0x10032f3f
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.10032160
mov esi, eax
test esi, esi
js 0x10032f44
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.10032f80
mov esi, eax
jmp 0x10032f44
mov esi, 0x8007000e
test ebx, ebx
je 0x10032f55
push ebx
call fcn.100637f8
add esp, 4
jmp 0x10032f55
xor esi, esi
test edi, edi
je 0x10032f60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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
Function at 0x10036d10
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x10036d90
test edx, edx
je 0x10036d90
push esi
mov esi, edx
xor eax, eax
shr esi, 2
test esi, esi
je 0x10036d7c
cmp esi, 8
jb 0x10036d65
movaps xmm2, xmmword [0x1009e1c0]
push edi
mov edi, esi
and edi, 0xfffffff8
nop word [eax + eax]
movups xmm0, xmmword [ecx + eax*4]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ecx + eax*4], xmm1
movups xmm0, xmmword [ecx + eax*4 + 0x10]
pxor xmm0, xmm2
movups xmmword [ecx + eax*4 + 0x10], xmm0
add eax, 8
cmp eax, edi
jb 0x10036d40
pop edi
cmp eax, esi
jae 0x10036d7c
nop dword [eax]
xor dword [ecx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, esi
jb 0x10036d70
shl eax, 2
pop esi
cmp eax, edx
jae 0x10036d8d
xor byte [eax + ecx], 0xd8
inc eax
cmp eax, edx
jb 0x10036d84
xor eax, eax
ret
mov eax, 0x80004005
ret

Function at 0x10036da0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, ecx
mov ebx, edx
push esi
xor esi, esi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebx], esi
mov dword [ebx + 4], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10036e37
push edi
push eax
call fcn.10044ce6
mov edi, eax
add esp, 4
test edi, edi
je 0x10036e2e
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10036e25
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10097a00
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10036e25
cmp dword [ebp - 8], esi
jbe 0x10036e20
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 8]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov esi, 1
push edi
call fcn.10044ce1
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10036fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10037074
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [ebp - 8], ebx
jne 0x1003706c
cmp esi, 0x200000
ja 0x1003706c
lea eax, [esi + 2]
push eax
call fcn.10044ce6
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
push ebx
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003706c
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x1003706c
mov ecx, dword [ebp - 0xc]
mov byte [eax + ecx], bl
mov eax, dword [ebp - 4]
mov byte [eax + ecx + 1], bl
mov ebx, 1
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [eax], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100395d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x100a7070]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
push 0x58
lea eax, [esp + 0xc]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.1005d9b0
push dword [ebp + 8]
mov edx, esi
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.10039660
add esp, 0x10
lea ecx, [esp + 8]
mov edx, edi
call fcn.10039710
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.1004450b
mov esp, ebp
pop ebp
ret