joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3260
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.004e1610
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x4e32b7
push ebx
push edi
call fcn.004e1720
push esi
mov ebx, esi
call fcn.004e1610
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x4e328e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4e3300
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4e3392
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4e3384
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4e337c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4e3345
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4f57f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f5833
call fcn.004f88c0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4f5833
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4f582a
xor eax, eax
jmp 0x4f583b
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f5841
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f6543
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4fa184
call fcn.004e81b4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004f88c0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4f6582
call fcn.004f88c0
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4f6590
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4f659e
or eax, 0xffffffff
jmp 0x4f6686
mov ecx, esi
call fcn.004f64b9
mov dword [ebp - 0x14], eax
call fcn.004f3e38
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4f65d5
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x4f65d5
push edi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004f3dec
push dword [ebp - 0x14]
call fcn.004f391e
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004f6251
cmp eax, edi
je 0x4f6648
test byte [esi + 0x24], 0x10
je 0x4f6616
push 4
mov ecx, esi
pop ebx
call fcn.004f331e
test ah, 1
je 0x4f660e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004f5943
cmp dword [esi + 0x1c], edi
je 0x4f6648
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004f3352
jmp 0x4f6648
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4f665c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4f6675
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4f6675
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004f64f3
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4fd000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x649e68]
xor edx, edx
cmp eax, edx
jne 0x4fd026
xor eax, eax
mov byte [eax + 0x649d68], al
inc eax
cmp eax, 0x100
jl 0x4fd00e
mov dword [0x649e68], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x649d68
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4fd0b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4fd08a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4fd058
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4fd130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4fd183
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4fd16a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x503b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x533f0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00504450
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5b7584
call fcn.00522fdf
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x503bc3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00522fdf
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x503bbc
push 0
mov ecx, eax
call fcn.004fac30
mov dword [esi + 0xc], eax
jmp 0x503bc5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x503bc5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x525682
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5256ba
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA_1]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005236f9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005236d1
jmp 0x5256c6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x526d79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x526dbb
call fcn.0052cb81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x526dbb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x526db2
xor eax, eax
jmp 0x526dc3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00526dc9
pop edi
pop esi
pop ebx
ret 4

Function at 0x52d0b1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x52d0df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x52d0fd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0052d017
jmp 0x52d0fd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x52d0fd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0052d017
test edi, edi
mov eax, edi
jne 0x52d0e7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x10027150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x1002717b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10027164
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x7167b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2ae000]
push edi
jmp 0x7167ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7167d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7167c0
mov eax, 1
add ebx, ebx
jne 0x7167e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7167f4
jne 0x716813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x716813
dec eax
add ebx, ebx
jne 0x716800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7167d8
add ebx, ebx
jne 0x71680f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x716865
xor ecx, ecx
sub eax, 3
jb 0x71682b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x71689a
sar eax, 1
mov ebp, eax
jmp 0x716836
add ebx, ebx
jne 0x716836
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x716804
inc ecx
add ebx, ebx
jne 0x716844
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x716804
add ebx, ebx
jne 0x716851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x716846
jne 0x716862
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x716846
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x716884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x716876
jmp 0x7167c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x716884
add edi, ecx
jmp 0x7167c6
pop esi
mov edi, esi
mov ecx, 0x617
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7168a2
cmp byte [edi], 0x11
jne 0x7168a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7168a7
lea edi, [esi + 0x311000]
mov eax, dword [edi]
or eax, eax
je 0x71691f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x317838]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x317930]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7168d4
mov ecx, edi
jns 0x716903
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x317938]
or eax, eax
je 0x716919
mov dword [ebx], eax
add ebx, 4
jmp 0x7168f1
call dword [esi + 0x317934]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x716950
cmp al, 0xef
ja 0x716943
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x716925
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x716932
mov ebp, dword [esi + 0x31793c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x716984
sub esp, 0xffffff80
jmp 0x406c72
Function at 0x403043
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x449b33
call fcn.00433846
mov eax, dword [esi + 0xa0]
cmp eax, 1
jge 0x403079
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.004078b5
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x466540
jmp fcn.004047cd
lea edi, [esi + 0x98]
dec eax
mov ecx, edi
call fcn.00403fdd
mov ebx, str.CFinishedPage
push ebx
mov ecx, eax
call fcn.00401e56
test eax, eax
je 0x4030a3
push ebx
push dword [edi + 8]
mov ecx, edi
call fcn.004252c2
mov eax, dword [esi + 0xa0]
dec eax
lea ecx, [esi + 0x90]
cmp dword [ecx], eax
je 0x4030d6
mov dword [ecx], eax
mov ecx, edi
call fcn.00403fdd
push dword [eax]
call fcn.0042f932
pop ecx
push eax
push 0
push 0x8002
push dword [esi + 0x20]
call dword [0x44b5ac]
call fcn.004338e5
ret

Function at 0x4030ff
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x449b33
call fcn.00433846
mov ebx, ecx
lea esi, [ebx + 0xa0]
mov eax, dword [esi]
cmp eax, 1
jne 0x403128
cmp dword [ebx + 0x90], 0
jne 0x403128
call fcn.00403296
mov esi, dword [esi]
cmp esi, 1
jge 0x40314e
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.004078b5
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x466540
jmp fcn.004047cd
dec esi
cmp dword [ebx + 0x90], esi
je 0x403169
push 0
push 0
push 0x8002
push dword [ebx + 0x20]
call dword [0x44b5ac]
call fcn.004338e5
ret

Function at 0x403296
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x449b0e
call fcn.00433846
lea ecx, [ebp - 0x10]
call fcn.00401b37
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push str.PageOrder
mov ecx, 0x4666bc
call fcn.004230ba
test eax, eax
jne 0x4032e4
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.004078b5
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
mov ecx, 0x466540
jmp fcn.004047cd
lea ecx, [ebp - 0x38]
call fcn.00424faa
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4517ac
lea edi, [ebp - 0x38]
call fcn.00401555
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402e23
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0040afab
mov edi, dword [ebp - 0x30]
xor esi, esi
inc esi
cmp edi, esi
pop ecx
pop ecx
jbe 0x4033a3
test esi, esi
jl 0x4033c1
cmp esi, dword [ebp - 0x30]
jge 0x4033c1
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x40339e
push str.CProgressPage
push eax
call fcn.00403ca3
test al, al
pop ecx
pop ecx
je 0x403367
push ebx
call fcn.00403508
jmp 0x403383
cmp esi, dword [ebp - 0x30]
jge 0x4033c1
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
push str.CBackupOfferPage
push eax
call fcn.00403ca3
test al, al
pop ecx
pop ecx
jne 0x40339e
cmp esi, dword [ebp - 0x30]
jge 0x4033c1
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
lea ecx, [ebx + 0x98]
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.00425272
inc esi
cmp esi, edi
jb 0x40332f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0042515b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401b6e
call fcn.004338e5
ret
jmp fcn.00423fc7
Function at 0x41c580
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
mov ebp, dword [esi + 0x268]
push edi
mov edi, dword [esi + 0x44]
cmp edi, 0x2710
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x10], edx
jge 0x41c5c0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ebp
push edi
push ecx
push eax
mov eax, edx
jmp 0x41c693
lea edx, [edi + 0x22]
test dl, 1
je 0x41c5cb
add edx, 1
add edx, ecx
cmp eax, 1
mov dword [esp + 0xc], edx
jge 0x41c5dd
mov eax, 1
jmp 0x41c5e7
cmp eax, 0x64
jle 0x41c5e7
mov eax, 0x64
lea edx, [eax - 1]
mov eax, 0x55555556
imul edx
mov eax, edx
push ebx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0x14]
imul ebx, edi
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push ebp
push edi
push eax
push edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], ebx
call fcn.0041be90
add esp, 0x14
cmp ebp, 3
jl 0x41c662
test edi, edi
mov dword [esp + 0x10], 1
je 0x41c634
mov dword [esp + 0x10], edi
sub ebx, dword [esp + 0x24]
sub esp, 8
mov dword [esp + 0x24], ebx
fild dword [esp + 0x24]
fidiv dword [esp + 0x18]
fstp qword [esp]
push edi
push ebx
push str._______d_work___d_block__ratio__5.2f_n
call fcn.00432e2b
add eax, 0x40
push eax
call fcn.00432ffb
add esp, 0x18
cmp dword [esp + 0x24], 0
pop ebx
jge 0x41c69b
cmp ebp, 2
jl 0x41c685
push str.____too_repetitive__using_fallback_sorting_algorithm_n
call fcn.00432e2b
add eax, 0x40
push eax
call fcn.00432ffb
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push ebp
push edi
push eax
mov eax, dword [esp + 0x1c]
push ecx
call fcn.0041b100
add esp, 0x10
or ecx, 0xffffffff
xor eax, eax
cmp dword [esi + 0x44], eax
mov dword [esi + 0x1c], ecx
jle 0x41c6c3
mov edx, dword [esp + 0x14]
lea esp, [esp]
cmp dword [edx + eax*4], 0
je 0x41c6c0
add eax, 1
cmp eax, dword [esi + 0x44]
jl 0x41c6b0
jmp 0x41c6c3
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebp
jne 0x41c6db
add esp, 0x10
mov dword [esp + 4], 0x3eb
jmp fcn.00415e20
add esp, 0x10
ret
Function at 0x43314a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x433187
cmp dword [ebp + 0x14], edi
je 0x433187
cmp ecx, edi
jne 0x43318e
call fcn.00433bc6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043686b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4331a2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4331c3
cmp ebx, 0xffffffff
je 0x4331b2
push ebx
push edi
push ecx
call fcn.0042f3b0
add esp, 0xc
cmp esi, edi
je 0x43316f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43316f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4331df
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4331e6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4332d7
test word [esi + 0xc], 0x10c
je 0x43323a
mov eax, dword [esi + 4]
test eax, eax
je 0x43323a
jl 0x433338
cmp ebx, eax
mov edi, ebx
jb 0x43320b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4332df
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042f320
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4332cf
cmp ebx, dword [ebp - 0xc]
jb 0x4332a7
cmp dword [ebp - 0xc], 0
je 0x433264
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x433259
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x433260
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43326f
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x43326f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43330b
push eax
push dword [ebp - 8]
push esi
call fcn.0043462d
pop ecx
push eax
call fcn.0043df7e
add esp, 0xc
test eax, eax
je 0x43334a
cmp eax, 0xffffffff
je 0x433338
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4332cf
push esi
call fcn.0043c10a
cmp eax, 0xffffffff
pop ecx
je 0x43333c
cmp dword [ebp - 4], 0
je 0x43330b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4331ee
mov eax, dword [ebp + 0x14]
jmp 0x433189
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4332f6
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042f3b0
add esp, 0xc
call fcn.00433bc6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43317f
cmp dword [ebp + 0xc], 0xffffffff
je 0x433321
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042f3b0
add esp, 0xc
call fcn.00433bc6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43317f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x433189
or dword [esi + 0xc], 0x10
jmp 0x43333c
Function at 0x10001070
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100010e8
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x41
jl 0x100010c1
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x5a
jg 0x100010c1
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
lea eax, [eax + edx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x100010d3
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x1000108b
mov eax, dword [ebp - 0xc]
and eax, 0x7fffffff
mov esp, ebp
pop ebp
ret

Function at 0x10001100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 1
jmp 0x10001136
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x10001194
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
push edx
call fcn.10001070
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x10001192
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
mov cx, word [edx + eax*2]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
mov eax, edx
jmp 0x10001196
jmp 0x1000112d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100011a0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0
push ebx
push ecx
mov ebx, dword fs:[0x30]
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
pop ecx
pop ebx
push 0x3777cccb
mov eax, dword [ebp - 0x14]
push eax
call fcn.10001100
add esp, 8
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
call dword [ebp - 0x18]
pop ebx
mov esp, ebp
pop ebp
ret