joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100819af
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008a750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10074bb8
mov dword [ebp - 0x14], eax
cmp dword [0x1008cc14], esi
jne 0x10081aa2
push 0x800
push esi
push 0x1000675c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10081a2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10081b82
push esi
push esi
push 0x1000675c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10081b82
push 0x10006774
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10081b82
push eax
call ebx
push 0x10006780
push edi
mov dword [0x1008cc14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10006790
push edi
mov dword [0x1008cc18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100067a4
push edi
mov dword [0x1008cc1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1008cc24], eax
test eax, eax
je 0x10081a9f
push 0x100067c0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1008cc20], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10081ac7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10081aba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10081adc
push 4
pop eax
jmp 0x10081b84
cmp dword [ebp - 0x14], esi
je 0x10081adc
push dword [0x1008cc14]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10081ac1
mov eax, dword [0x1008cc20]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10081b3a
cmp dword [0x1008cc24], edi
je 0x10081b3a
push eax
call ebx
push dword [0x1008cc24]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10081b3a
test eax, eax
je 0x10081b3a
call ecx
test eax, eax
je 0x10081b2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10081b2f
test byte [ebp - 8], 1
jne 0x10081b3a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10081b6a
mov eax, dword [0x1008cc18]
cmp eax, edi
je 0x10081b67
push eax
call ebx
test eax, eax
je 0x10081b67
call eax
mov esi, eax
test esi, esi
je 0x10081b67
mov eax, dword [0x1008cc1c]
cmp eax, edi
je 0x10081b67
push eax
call ebx
test eax, eax
je 0x10081b67
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1008cc14]
call ebx
test eax, eax
je 0x10081b82
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10081b84
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100720ca
mov esp, ebp
pop ebp
ret
Function at 0x406e16
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push edi
push ebx
mov dword [eax], 0x1571
mov dword [eax + 0x9c0], 1
mov edi, 0x270
push esi
mov edx, dword [eax + 0x9c0]
lea ecx, [eax + edx*4]
mov esi, dword [ecx - 4]
mov ebx, esi
shr ebx, 0x1e
xor ebx, esi
imul ebx, ebx, 0x6c078965
add ebx, edx
mov dword [ecx], ebx
inc dword [eax + 0x9c0]
cmp dword [eax + 0x9c0], edi
jb 0x406e2e
mov ecx, dword [eax + 0x9bc]
xor ecx, dword [eax + 0x630]
mov edx, 0x80000000
test edx, ecx
je 0x406e7b
xor ecx, 0x1908b0df
add ecx, ecx
or ecx, 1
jmp 0x406e7d
add ecx, ecx
mov esi, dword [eax]
xor esi, ecx
and esi, 0x7fffffff
xor dword [eax], esi
pop esi
xor ecx, ecx
pop ebx
cmp dword [eax + ecx*4], 0
jne 0x406e9a
inc ecx
cmp ecx, edi
jb 0x406e8d
mov dword [eax], edx
pop edi
ret

Function at 0x407066
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
push edi
lea ecx, [edx + 4]
mov edi, 0xde
mov esi, 0x7ffffffe
mov eax, dword [ecx]
mov ebx, dword [ecx - 4]
xor ebx, eax
and eax, 1
imul eax, eax, 0x9908b0df
and ebx, esi
xor ebx, dword [ecx - 4]
add ecx, 4
shr ebx, 1
xor ebx, eax
xor ebx, dword [ecx + 0x62c]
dec edi
mov dword [ecx - 8], ebx
jne 0x407076
push 5
lea ecx, [edx + 0x37c]
pop edi
mov eax, dword [ecx]
mov ebx, dword [ecx - 4]
xor ebx, eax
and eax, 1
imul eax, eax, 0x9908b0df
and ebx, esi
xor ebx, dword [ecx - 4]
add ecx, 4
shr ebx, 1
xor ebx, eax
xor ebx, dword [ecx + 0x62c]
dec edi
mov dword [ecx - 8], ebx
jne 0x4070a7
lea ecx, [edx + 0x390]
mov edi, 0x18c
mov eax, dword [ecx]
mov ebx, dword [ecx - 4]
xor ebx, eax
and eax, 1
imul eax, eax, 0x9908b0df
and ebx, esi
xor ebx, dword [ecx - 4]
add ecx, 4
shr ebx, 1
xor ebx, eax
xor ebx, dword [ecx - 0x394]
dec edi
mov dword [ecx - 8], ebx
jne 0x4070da
mov eax, dword [edx]
mov ecx, dword [edx + 0x9bc]
and dword [edx + 0x9c0], 0
xor ecx, eax
and eax, 1
and ecx, esi
imul eax, eax, 0x9908b0df
xor ecx, dword [edx + 0x9bc]
pop edi
shr ecx, 1
xor ecx, eax
xor ecx, dword [edx + 0x630]
pop esi
mov dword [edx + 0x9bc], ecx
pop ebx
ret

Function at 0x4071c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419014]
jne 0x4071d2
repz ret
jmp fcn.00407609
Function at 0x40c3c1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409383
xor ebx, ebx
cmp dword [0x41f094], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40c496
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40c401
xor eax, eax
jmp 0x40c55a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c3fa
push eax
call fcn.00409320
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f094], eax
call esi
push eax
call fcn.00409320
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f098], eax
call esi
push eax
call fcn.00409320
mov dword [0x41f09c], eax
lea eax, [ebp - 8]
push eax
call fcn.004085d9
test eax, eax
pop ecx
pop ecx
je 0x40c464
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040bcd5
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40c496
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00409320
cmp eax, ebx
pop ecx
mov dword [0x41f0a4], eax
je 0x40c496
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409320
pop ecx
mov dword [0x41f0a0], eax
mov eax, dword [0x41f0a0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40c50f
cmp dword [0x41f0a4], esi
je 0x40c50f
push eax
call fcn.0040938c
pop ecx
call eax
cmp eax, ebx
je 0x40c4dc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41f0a4]
call fcn.0040938c
pop ecx
call eax
test eax, eax
je 0x40c4dc
test byte [ebp - 0x18], 1
jne 0x40c50f
lea eax, [ebp - 0xc]
push eax
call fcn.00408610
test eax, eax
pop ecx
je 0x40c4f7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040bcd5
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40c506
or dword [ebp + 0x10], 0x200000
jmp 0x40c540
or dword [ebp + 0x10], 0x40000
jmp 0x40c540
mov eax, dword [0x41f098]
cmp eax, esi
je 0x40c540
push eax
call fcn.0040938c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c540
mov eax, dword [0x41f09c]
cmp eax, esi
je 0x40c540
push dword [ebp - 4]
push eax
call fcn.0040938c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41f094]
call fcn.0040938c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100026c2
jl 0x100026b5
test ecx, ecx
jne 0x100026c2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10002782
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10003bc0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000272e
jg 0x100026ed
test esi, esi
je 0x1000272e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10002705
mov eax, dword [esp + 0x10]
jl 0x100026ff
cmp eax, esi
jae 0x10002705
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10048db0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000274f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000276b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x100026d4
jl 0x1000276b
test ecx, ecx
jne 0x100026d4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100027c6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100027c6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10048db0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10002837
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100027ec
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10002822
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1004d34c
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10002837
cmp edi, eax
ja 0x10002800
test edi, edi
je 0x10002837
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1004d34c
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003f70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ed590
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101c6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 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
call fcn.10047242
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100461c3
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10003f10
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 0x100091e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eda85
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101c6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x101d3bbc]
xor edi, edi
movss xmm0, dword [0x101d3bac]
addss xmm0, dword [0x101b98b4]
mov eax, dword [esi + 0x3e78]
movss dword [0x101d3bac], xmm0
movss xmm1, dword [eax + 0x1c]
mulss xmm1, dword [0x101b98e0]
movss xmm2, dword [eax + 0x20]
mulss xmm2, dword [0x101b98e0]
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x20], xmm0
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x28], xmm0
nop word [eax + eax]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x101b98e4]
movss dword [ebp - 0x18], xmm0
cvtps2pd xmm0, xmm0
call fcn.100ea8a0
mulsd xmm0, qword [0x101b9958]
movss xmm1, dword [ebp - 0x18]
addsd xmm0, qword [ebp - 0x20]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x14], xmm0
cvtps2pd xmm0, xmm1
call fcn.100eb5b0
mulsd xmm0, qword [0x101b9958]
movss xmm1, dword [ebp - 0x14]
movss dword [ebp - 0x38], xmm1
addsd xmm0, qword [ebp - 0x28]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [0x101d3bac]
movss dword [ebp - 0x18], xmm0
cvtps2pd xmm0, xmm0
call fcn.100ea8a0
mulsd xmm0, qword [0x101b9958]
movss xmm1, dword [ebp - 0x18]
addsd xmm0, qword [ebp - 0x20]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x14], xmm0
cvtps2pd xmm0, xmm1
call fcn.100eb5b0
mulsd xmm0, qword [0x101b9958]
mov eax, dword [esi + 0x3e78]
movss xmm1, dword [ebp - 0x14]
push ecx
mov dword [esp], 0x40000000
lea ecx, [ebp - 0x30]
addsd xmm0, qword [ebp - 0x28]
mov byte [eax + 0xac], 1
mov eax, dword [esi + 0x3e78]
push 0xffffffffffffffff
push ecx
cvtsd2ss xmm0, xmm0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [eax + 0x264]
movss dword [ebp - 0x30], xmm1
movss dword [ebp - 0x2c], xmm0
call fcn.10031130
inc edi
cmp edi, 0xc
jge 0x1000935d
mov esi, dword [0x101d3bbc]
jmp 0x10009260
cmp byte [0x101d3be4], 0
jne 0x100093c2
push 4
mov byte [0x101d3be4], 1
call fcn.10047242
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x10007da0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x10009180
push 0
push 0
call fcn.10050d66
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100093f7
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100093f0
push ecx
push eax
call fcn.10046985
add esp, 8
test eax, eax
jne 0x100093f0
cmp byte [0x101d3ba8], 0
je 0x100093d5
mov dword [0x101d3be0], 1
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.10046e60
mov esp, ebp
pop ebp
ret
push 1
call fcn.100468a0
push 6
mov dword [ebp - 0x1c], 0
call fcn.100468a0
int3
Function at 0x1000bc00
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1000bc37
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x1000b820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x101d3bb8], eax
mov eax, 1
pop ebp
ret 0xc
test eax, eax
jne 0x1000bc48
push eax
push dword [0x101d3bb8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100116e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10011741
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10011724
cmp edi, 2
jb 0x10011724
cmp byte [esi], cl
jne 0x10011724
cmp byte [esi + 1], cl
jne 0x10011724
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101b3eb0]
jmp 0x100116f5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101b3eb0]
test edi, edi
jne 0x100116f5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10011770
cmp cl, 0x23
jne 0x10011757
cmp byte [esi], cl
jne 0x10011757
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x101b3eb0]
test cl, cl
jne 0x10011748
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10011880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10011893
mov dword [ebx], 0
mov edx, 0x101b945c
call fcn.10011780
mov esi, eax
test esi, esi
je 0x10011970
push esi
call fcn.10051528
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10011967
push 2
push 0
push esi
call fcn.1004d7aa
add esp, 0xc
test eax, eax
jne 0x10011967
push esi
call fcn.10051528
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10011967
push 0
push dword [ebp + 8]
push esi
call fcn.1004d7aa
add esp, 0xc
test eax, eax
jne 0x10011967
mov eax, dword [0x101d3bbc]
test eax, eax
je 0x10011906
inc dword [eax + 0xac]
push edi
call fcn.10050e33
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10011967
push esi
push edi
push 1
push eax
call fcn.1004d34c
add esp, 0x10
push esi
cmp eax, edi
je 0x10011951
call fcn.1004c747
mov eax, dword [0x101d3bbc]
add esp, 4
test eax, eax
je 0x1001193f
dec dword [eax + 0xac]
push dword [ebp + 8]
call fcn.1004cfb6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.1004c747
add esp, 4
test ebx, ebx
je 0x1001195f
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.1004c747
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10014160
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101c6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x101b3eb0]
sub esi, 1
jne 0x100141a0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3eac], ebx
jne 0x100141d7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.100257e0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10046e60
mov esp, ebp
pop ebp
ret 4

Function at 0x10017470
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x100174ad
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10017493
cmp byte [esi], bl
jne 0x10017493
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x101b3eb0]
test bl, bl
jne 0x10017484
pop edi
pop esi
not ecx
pop ebx
jmp fcn.10017410
Function at 0x100246b0
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 [0x101d3bbc]
test bl, bl
je 0x100246f6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100246d7
cmp byte [esi], bl
jne 0x100246d7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x101b3eb0]
test bl, bl
jne 0x100246c8
mov edi, dword [0x101d3bbc]
mov esi, dword [edi + 0x5a94]
xor ecx, ecx
not eax
test esi, esi
jle 0x1002471c
mov edi, dword [edi + 0x5a9c]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x10024722
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x10024710
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x1002ed10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002ed46
mov eax, dword [0x101d3bbc]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002ed36
dec dword [eax + 0xac]
push ecx
call fcn.1004cfb6
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002ed7a
mov eax, dword [0x101d3bbc]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002ed6a
dec dword [eax + 0xac]
push ecx
call fcn.1004cfb6
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002edae
mov eax, dword [0x101d3bbc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002ed9e
dec dword [eax + 0xac]
push ecx
call fcn.1004cfb6
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 ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1002edfe
mov eax, dword [0x101d3bbc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002edee
dec dword [eax + 0xac]
push ecx
call fcn.1004cfb6
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1002ee32
mov eax, dword [0x101d3bbc]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1002ee22
dec dword [eax + 0xac]
push ecx
call fcn.1004cfb6
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1002ee66
mov eax, dword [0x101d3bbc]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1002ee56
dec dword [eax + 0xac]
push ecx
call fcn.1004cfb6
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100327c0
Function at 0x100512eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10048200
mov eax, dword [0x101c6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1005b69f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005132d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10051489
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100479e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x101ca048]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10060108
mov ecx, dword [esi*4 + 0x101ca048]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10051482
cmp eax, dword [ecx + edi + 0x24]
jne 0x10051482
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10051482
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10060108
add esp, 0x14
test edx, edx
jl 0x10051482
jg 0x100513f8
test eax, eax
jb 0x10051482
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10051482
jl 0x10051412
cmp dword [ebp - 0x1008], eax
ja 0x10051482
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10051430
test ebx, ebx
je 0x10051469
cmp ecx, edi
jae 0x10051469
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005144a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10051456
cmp byte [ecx + 1], 0xa
jne 0x10051456
inc ecx
jmp 0x10051456
movzx eax, al
movsx eax, byte [eax + 0x101c62f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10051430
cmp edx, ebx
jne 0x10051430
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10051487
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10046e60
leave
ret

Function at 0x10059b8f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10059bce
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10059bce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10059bce
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10059bce
cmp dword [ecx + 0x74], 0xe
jbe 0x10059bce
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret