joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032d60
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x28
mov eax, dword [0x1017a974]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov edx, dword [ebp + 0x30]
sub edx, 6
push esi
push edi
test edx, edx
jle 0x10032d8c
mov esi, dword [esp + 0x40]
mov ecx, edx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor ecx, ecx
xor eax, eax
test edx, edx
jle 0x10032dc5
cmp esi, dword [ebp + 0x30]
ja 0x10032eec
cmp eax, edx
jge 0x10032db9
cmp ecx, 4
jge 0x10032dbc
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [ecx + esi*4]
inc eax
inc ecx
cmp eax, edx
mov dword [ebp + edi*4 + 0x34], ebx
jl 0x10032da3
cmp ecx, 4
jne 0x10032dc1
inc esi
xor ecx, ecx
cmp eax, edx
jl 0x10032d96
cmp esi, dword [ebp + 0x30]
ja 0x10032eec
mov dword [esp + 0x10], 0x10181610
jmp 0x10032de0
movzx edi, byte [esp + edx*4 + 0x11]
mov al, byte [esp + 0x14]
xor al, byte [edi + str.cw]
mov byte [esp + 0x14], al
movzx edi, byte [esp + edx*4 + 0x12]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x15], bl
movzx edi, byte [esp + edx*4 + 0x13]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x16], bl
movzx edi, byte [esp + edx*4 + 0x10]
movzx ebx, byte [edi + str.cw]
mov edi, dword [esp + 0x10]
xor al, byte [edi]
xor byte [esp + 0x17], bl
add edi, 4
mov byte [esp + 0x14], al
mov dword [esp + 0x10], edi
mov eax, 1
cmp edx, 8
je 0x10032e51
cmp edx, eax
jle 0x10032eb2
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
inc eax
cmp eax, edx
jl 0x10032e42
jmp 0x10032eb2
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
inc eax
cmp eax, 4
jl 0x10032e51
movzx eax, byte [esp + 0x20]
movzx eax, byte [eax + str.cw]
xor byte [esp + 0x24], al
movzx eax, byte [esp + 0x21]
movzx eax, byte [eax + str.cw]
xor byte [esp + 0x25], al
movzx eax, byte [esp + 0x22]
movzx eax, byte [eax + str.cw]
xor byte [esp + 0x26], al
movzx eax, byte [esp + 0x23]
movzx eax, byte [eax + str.cw]
xor byte [esp + 0x27], al
mov eax, 5
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
inc eax
cmp eax, 8
jl 0x10032ea4
xor eax, eax
test edx, edx
jle 0x10032ee3
cmp esi, dword [ebp + 0x30]
ja 0x10032eec
cmp eax, edx
jge 0x10032ed7
cmp ecx, 4
jge 0x10032eda
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [ecx + esi*4]
inc eax
inc ecx
cmp eax, edx
mov dword [ebp + edi*4 + 0x34], ebx
jl 0x10032ec1
cmp ecx, 4
jne 0x10032edf
inc esi
xor ecx, ecx
cmp eax, edx
jl 0x10032eb8
cmp esi, dword [ebp + 0x30]
jbe 0x10032de0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d5eaf
add esp, 0x28
ret 8
Function at 0x10032f10
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 1
cmp dword [edx + 0x30], ecx
jbe 0x10032ffa
push esi
lea eax, [edx + 0x46]
push edi
jmp 0x10032f30
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x10181210]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x10180a10]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x10180e10]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x10180610]
inc ecx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x10181210]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x10180e10]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x10180a10]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x10180610]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x10181210]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x10180e10]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x10180a10]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x10180610]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x10181210]
xor esi, dword [edi*4 + 0x10180e10]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x10180a10]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x10180610]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x30]
jb 0x10032f30
pop edi
pop esi
ret
Function at 0x10033900
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x1017a974]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 4]
push ecx
push 0x10
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x22e4a8
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1003394b
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x18
ret
xor ecx, ecx
lea ecx, [ecx]
mov edx, ecx
and edx, 7
mov dl, byte [esp + edx + 0xc]
xor dl, cl
xor byte [esp + ecx + 4], dl
inc ecx
cmp ecx, 8
jb 0x10033950
test esi, esi
je 0x1003396f
mov ecx, dword [esp + 4]
mov dword [esi], ecx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x18
ret

Function at 0x10036080
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebp
push esi
push edi
xor esi, esi
xor edx, edx
xor eax, eax
mov ecx, ebx
mov edi, 0x100
mov dword [ecx], eax
inc eax
add ecx, 4
sub edi, 1
jne 0x10036091
mov ecx, ebx
mov dword [esp + 0xc], 0x100
jmp 0x100360b0
mov eax, dword [esp + 0x14]
movzx ax, byte [edx + eax]
add ax, word [ecx]
mov edi, dword [ecx]
add ax, si
mov esi, 0xff
and ax, si
movzx esi, ax
movzx eax, si
mov ebp, dword [ebx + eax*4]
lea eax, [ebx + eax*4]
mov dword [ecx], ebp
mov dword [eax], edi
lea eax, [edx + 1]
xor edx, edx
div dword [esp + 0x18]
add ecx, 4
sub dword [esp + 0xc], 1
jne 0x100360b0
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x10036100
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
cmp dword [esp + 0x14], ecx
jbe 0x10036148
push ebx
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4]
mov dword [eax + ecx*4], ebx
mov dword [eax + esi*4], edx
mov ebx, dword [eax + ecx*4]
add ebx, edx
and ebx, 0xff
mov dl, byte [eax + ebx*4]
xor byte [edi + ebp], dl
inc edi
cmp edi, dword [esp + 0x18]
jb 0x10036114
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10039980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10128cab
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov byte [eax + 8], cl
mov dword [eax + 0xc], ecx
mov dword [eax + 0x28], 0xf
mov dword [eax + 0x24], ecx
mov byte [eax + 0x14], cl
mov dword [esp + 0x10], ecx
mov byte [eax + 0x2c], cl
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x1003e5e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012945e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CUpdateAntiBot.0
mov dword [esp + 0x14], 1
lea ecx, [esi + 0x30]
call fcn.1003e4f0
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x14]
call fcn.1004a280
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.1003ee80
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x10049380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012b0a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x88]
mov ecx, ebx
mov dword [esp + 0x14], ebx
call fcn.1004a290
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x30]
add esi, 0x50
push esi
mov ecx, edi
call fcn.10048fa0
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x100493de
call fcn.100d63f7
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x100493f9
call fcn.100d63f7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push ebp
push edx
push ecx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.10048730
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 0xc]
sar esi, 3
mov dword [esp + 0x28], 0xffffffff
mov ecx, ebx
call fcn.1004a2a0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x10049490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1012b110
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x3c]
call fcn.100482a0
xor esi, esi
mov dword [esp + 0x78], esi
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.10049380
test eax, eax
jne 0x10049505
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.10048310
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x18], esi
sar eax, 3
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x1004967a
add edi, 0x68
jmp 0x10049529
mov esi, dword [esp + 0x14]
cmp esi, eax
jb 0x10049532
call fcn.100d63f7
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + esi*8]
call fcn.10043970
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
sar edx, 3
cmp esi, edx
jb 0x10049556
call fcn.100d63f7
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + esi*8]
call fcn.10043960
mov esi, eax
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.100464e0
mov ebp, dword [esp + 0x20]
mov ebx, dword [edi + 0x18]
mov eax, dword [edi]
test ebp, ebp
je 0x10049582
cmp ebp, eax
je 0x10049587
call fcn.100d63f7
cmp dword [esp + 0x24], ebx
je 0x10049609
mov ebx, 1
cmp dword [esp + 0x1c], ebx
jne 0x1004965e
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x48]
mov esi, dword [esp + 0x14]
sar edx, 3
cmp esi, edx
jb 0x100495b4
call fcn.100d63f7
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + esi*8]
call fcn.10043990
cmp eax, ebx
jne 0x100495f1
test ebp, ebp
jne 0x100495ec
call fcn.100d63f7
xor eax, eax
mov esi, dword [esp + 0x24]
cmp esi, dword [eax + 0x18]
jne 0x100495dd
call fcn.100d63f7
mov ecx, dword [esi + 0x1c]
call fcn.10043990
cmp eax, 2
je 0x1004965e
jmp 0x100495f5
mov eax, dword [ebp]
jmp 0x100495cf
mov esi, dword [esp + 0x24]
push esi
push ebp
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.100477b0
add dword [esp + 0x18], ebx
jmp 0x1004965e
cmp dword [esp + 0x1c], 0
jne 0x1004965e
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x14]
sar edx, 3
cmp ebx, edx
jb 0x10049628
call fcn.100d63f7
mov eax, dword [esp + 0x48]
lea eax, [eax + ebx*8]
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.10046560
mov byte [esp + 0x78], 1
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.100476c0
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x54]
call fcn.10045a40
inc dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
inc ecx
sar eax, 3
mov dword [esp + 0x14], ecx
cmp ecx, eax
jb 0x10049525
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.10048310
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10051010
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x74
mov eax, dword [0x1017a974]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x88]
push esi
mov esi, dword [esp + 0x88]
push edi
xor edi, edi
push ebp
push edi
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.100d6590
add esp, 0xc
cmp ebp, 0x10
jb 0x1005113a
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1005113a
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x10051108
push 4
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x10051108
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10051108
cmp dword [esp + 0x14], ebx
jne 0x10051108
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.10070290
push ebx
lea edx, [esp + 0x24]
push edi
push edx
call fcn.100702e0
lea eax, [esp + 0x2c]
push eax
call fcn.10070400
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
mov dword [esi], ecx
mov ecx, dword [esp + 0x94]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esp, 0x18
mov esi, 1
jmp 0x1005110c
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10051125
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x74
ret
mov ecx, dword [esp + 0x80]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d5eaf
add esp, 0x74
ret

Function at 0x10052740
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x16c], 0
jne 0x10052752
xor al, al
pop esi
ret 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x170]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1005274c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push 0
push edx
mov edx, dword [esi + 0x170]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
pop esi
ret 0x10
Function at 0x10055e00
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebx, ecx
cmp byte [ebx + 0x16c], 0
push esi
push edi
je 0x10055e1c
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp dword [ebx + 0x150], 0x10
jb 0x10055e2d
mov eax, dword [ebx + 0x13c]
jmp 0x10055e33
lea eax, [ebx + 0x13c]
push 0
push 0x80
push 3
push 0
push 7
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x170], eax
cmp eax, 0xffffffff
jne 0x10055e61
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebx + 0x170]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
mov dword [ebx + 0x174], eax
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push ecx
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x1005601e
cmp dword [esp + 0x10], 0x40
jne 0x1005601e
mov edx, 0x5a4d
cmp word [ebx], dx
jne 0x1005601e
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x170]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push ecx
call ebp
cmp eax, 0xffffffff
je 0x1005601e
mov eax, dword [ebx + 0x170]
push 0
lea edx, [esp + 0x14]
push edx
push pe_nt_image_headers32
lea esi, [ebx + 0x40]
push esi
push eax
call edi
test eax, eax
je 0x1005601e
cmp dword [esp + 0x10], 0xf8
jne 0x1005601e
cmp dword [esi], 0x4550
jne 0x1005601e
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x170]
push 0
push 0
add ecx, 0xf8
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x1005601e
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
movzx eax, word [ebx + 0x46]
sub esp, 0x28
mov edi, esp
mov ecx, 0xa
lea esi, [esp + 0x3c]
lea ebp, [ebx + 0x154]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebp
call fcn.10055960
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x10056017
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10055fcb
call fcn.100d63f7
mov eax, dword [ebp + 0xc]
push 0
lea edx, [esi + esi*4]
add edx, edx
lea ecx, [esp + 0x14]
push ecx
add edx, edx
add edx, edx
push edx
push eax
mov eax, dword [ebx + 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005601e
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
cmp dword [esp + 0x10], ecx
jne 0x1005601e
mov byte [ebx + 0x16c], 1
cmp byte [ebx + 0x16c], 0
jne 0x1005602e
mov ecx, ebx
call fcn.10054ed0
mov al, byte [ebx + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x1005f620
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x2c]
sub esp, 0x2c
push 0xffffffffffffffff
push 0x1012cc60
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x1017a974]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp + 0x14], esi
xor ebx, ebx
mov dword [ebp + 0x28], ebx
lea ecx, [ebp - 0x70]
call fcn.1005ee30
mov dword [ebp - 4], ebx
lea eax, [esi + 0x1c]
push eax
mov edi, dword [ebp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x18], eax
push ebx
push ebx
push ebx
push 0x1000002
push ebx
push edi
call int.102409bf
mov ebx, eax
mov dword [ebp + 0x24], ebx
test ebx, ebx
je 0x1005f7f5
push 0
push 0
push 0
push 4
push ebx
call fcn.10225eb7
mov dword [ebp + 0x20], eax
test eax, eax
je 0x1005f7e8
push eax
lea ecx, [ebp - 0x70]
call fcn.1005f540
test eax, eax
je 0x1005f7de
lea ecx, [ebp - 0x70]
call fcn.10057200
mov dword [esi + 0x10], eax
lea ecx, [ebp - 0x70]
call fcn.10056ba0
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x1005f7de
push 0
push 0
push 0
push 2
push 0
push edi
call int.102409bf
mov ebx, eax
mov dword [ebp + 0x18], ebx
test ebx, ebx
je 0x1005f7db
push 0
push 0
push 0
push 4
push ebx
call fcn.10225eb7
mov dword [ebp + 0x34], eax
test eax, eax
je 0x1005f7d4
xor ebx, ebx
push ebx
push edi
call fcn.10239367
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
je 0x1005f75e
mov ecx, dword [ebp + 0x34]
push ecx
lea ecx, [ebp]
call fcn.10052550
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.100526a0
mov ebx, eax
test ebx, ebx
je 0x1005f752
mov eax, dword [ebp + 0x34]
lea edx, [edi + eax]
cmp edx, ebx
jbe 0x1005f752
sub edi, ebx
add edi, eax
mov dword [esi + 0xc], edi
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10052370
push 4
push 0x1000
mov eax, dword [esi + 0xc]
mov edi, dword [ebp + 0x1c]
add eax, edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
test eax, eax
je 0x1005f7c7
mov byte [ebp - 4], 2
push edi
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [esi]
push edx
call fcn.100d6800
mov eax, dword [esi + 0xc]
push eax
push ebx
mov ecx, dword [esi]
add ecx, edi
push ecx
call fcn.100d6800
add esp, 0x18
mov dword [ebp - 4], 0
mov dword [esi + 8], edi
mov eax, 1
mov dword [esi + 4], eax
mov dword [ebp + 0x28], eax
jmp 0x1005f7c7
mov edx, dword [ebp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x28], 0
jne 0x1005f80e
mov eax, dword [esi]
test eax, eax
je 0x1005f80e
push 0x8000
push 0
push eax
call fcn.1020da61
mov dword [esi], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1005f4d0
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x2c
mov esp, ebp
pop ebp
ret 4
Function at 0x100610c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012d053
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.10065030
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esi], vtable.CPeImageNilsimsa.0
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov byte [esp + 0x14], 1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x1006dda0
Capabilities:
Enumerate threads

Disassembly:
push 0xffffffffffffffff
push 0x1012e3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x1006dde8
xor al, al
jmp 0x1006df84
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1006df79
mov esi, dword [esp + 0xc0]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi]
mov ebp, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x44], ecx
push eax
mov ecx, esi
mov dword [esp + 0x24], ebp
call fcn.1006af40
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x1006de58
cmp eax, ebx
je 0x1006de5d
call fcn.100d63f7
mov ecx, dword [esp + 0x40]
cmp dword [edi + 4], ecx
jne 0x1006defa
lea ecx, [esp + 0x98]
call fcn.1005bca0
mov dword [esp + 0xb8], 0
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], ebp
call fcn.1005be50
mov byte [esp + 0xb8], 2
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x74]
call fcn.1006cc00
mov byte [esp + 0xb8], 3
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.1006d9e0
mov byte [esp + 0xb8], 2
lea ecx, [esp + 0x74]
call fcn.10059ba0
mov byte [esp + 0xb8], 0
lea ecx, [esp + 0x48]
call fcn.10059ba0
mov dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x98]
call fcn.10059ba0
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.1006dca0
mov edi, eax
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x1006df1b
xor eax, eax
jmp 0x1006df23
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov ebp, dword [edi + 0x10]
mov edx, ebp
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x1006df3c
mov dword [ebp], ebx
add ebp, 4
mov dword [edi + 0x10], ebp
jmp 0x1006df5a
cmp ecx, ebp
jbe 0x1006df45
call fcn.100d63f7
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push ebp
push eax
lea edx, [esp + 0x6c]
push edx
mov ecx, edi
call fcn.10050170
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1006de24
mov esi, dword [esp + 0x18]
mov bl, 1
jmp 0x1006df7b
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret