joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0530
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [0x54a51c], 0
jne 0x4b069a
push esi
push edi
push 0x104
lea eax, [esp + 0x10]
push eax
mov dword [0x54a51c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [0x54a134], 0
je 0x4b059d
push 0x5244f4
call fcn.00404690
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b0585
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b0593
jmp 0x4b05c8
push 0x5244e0
call fcn.00404690
add esp, 4
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b05b0
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b05c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4b0698
push 0x5244c8
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
push 0x5244a0
mov dword [0x54a508], eax
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
push 0x52448c
mov dword [0x54a50c], eax
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
push 0x524478
mov dword [0x54a510], eax
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
push 0x524464
mov dword [0x54a514], eax
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
cmp dword [0x54a508], 0
mov dword [0x54a518], eax
je 0x4b0698
cmp dword [0x54a50c], 0
je 0x4b0698
cmp dword [0x54a510], 0
je 0x4b0698
cmp dword [0x54a514], 0
je 0x4b0698
test eax, eax
je 0x4b0698
inc dword [0x54a51c]
pop edi
pop esi
cmp dword [0x54a51c], 2
jae 0x4b06ba
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004b6da3
add esp, 0x10c
ret
mov edx, dword [0x52b660]
mov dword [edx], 0
mov eax, dword [0x52b660]
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0
mov dword [eax + 4], 0
call fcn.004b0480
mov eax, dword [0x52b660]
add esp, 4
cmp dword [eax + 4], 1
jne 0x4b075f
mov edx, dword [eax + 0x2f]
movzx ecx, word [eax + 0x24]
push edx
movzx edx, word [eax + 0x22]
movzx eax, word [eax + 0x20]
push ecx
push edx
push eax
push 0x524440
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov ecx, dword [0x527d88]
add esp, 0x18
push 0
push 0
push ecx
push 0x50d930
call fcn.00404690
add esp, 4
push eax
mov eax, dword [0x52b660]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
push 0x50d147
push edx
mov edx, dword [eax + 0x10]
push 0
push ecx
push edx
push 4
call fcn.0043c0b0
mov eax, dword [0x52b660]
add esp, 0x28
mov ecx, dword [esp + 0x108]
mov eax, dword [eax + 4]
xor ecx, esp
call fcn.004b6da3
add esp, 0x10c
ret
Function at 0x4b0790
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ff68b
mov eax, dword fs:[0]
push eax
mov eax, 0x2070
call fcn.004b7ac0
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x206c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x2084]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2094]
push 0xfff
mov ebp, ecx
lea ecx, [esp + 0x85]
push 0
push ecx
mov dword [esp + 0x30], eax
mov byte [esp + 0x8c], 0
call fcn.004b6dc0
push 0xfff
lea edx, [esp + 0x1091]
push 0
push edx
mov byte [esp + 0x1098], 0
call fcn.004b6dc0
mov eax, dword [ebp]
add esp, 0x18
test eax, eax
je 0x4b0a08
push 0
push 0
push eax
call fcn.004b821d
add esp, 0xc
test eax, eax
jne 0x4b0a08
mov eax, dword [ebp]
push eax
push 0x1000
lea ecx, [esp + 0x88]
push 1
push ecx
call fcn.004b8542
add esp, 0x10
test eax, eax
je 0x4b0a08
mov edx, 0x5a4d
cmp word [esp + 0x80], dx
jne 0x4b0a08
mov esi, dword [esp + 0xbc]
cmp dword [esp + esi + 0x80], 0x4550
lea esi, [esp + esi + 0x80]
mov dword [esp + 0x1c], esi
jne 0x4b0a08
movzx eax, word [esi + 0x14]
mov edi, dword [esi + 0x28]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
lea ebx, [eax + esi + 0x18]
mov dword [esp + 0x14], 0
call fcn.00403e40
lea ecx, [esp + 0x28]
mov dword [esp + 0x208c], 0
call fcn.00403d40
xor ecx, ecx
mov dword [esp + 0x18], 0
cmp cx, word [esi + 6]
jae 0x4b09f4
add ebx, 8
cmp dword [ebx + 4], edi
ja 0x4b08eb
cmp edi, dword [ebx]
jae 0x4b08eb
mov eax, 1
jmp 0x4b08ed
xor eax, eax
test dword [ebx + 0x1c], 0x20000000
jne 0x4b08fe
test eax, eax
je 0x4b0987
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp]
inc dword [esp + 0x14]
mov edi, dword [ebx + 8]
push 0
push eax
push edx
call fcn.004b821d
add esp, 0xc
test eax, eax
jne 0x4b09f4
mov eax, dword [ebp]
push eax
push 0x1000
lea ecx, [esp + 0x1088]
push 1
push ecx
call fcn.004b8542
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b097f
cmp esi, edi
jle 0x4b0946
mov esi, edi
test esi, esi
jle 0x4b097f
push esi
lea edx, [esp + 0x1084]
push edx
lea ecx, [esp + 0x30]
call section..text
mov eax, dword [ebp]
push eax
push 0x1000
lea ecx, [esp + 0x1088]
push 1
push ecx
sub edi, esi
call fcn.004b8542
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4b0940
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
movzx edx, word [esi + 6]
inc eax
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x4b08db
cmp dword [esp + 0x14], 0
je 0x4b09f4
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.004010d0
lea ecx, [esp + 0x28]
mov dword [esp + 0x208c], 0xffffffff
call fcn.004011c0
mov al, 1
mov ecx, dword [esp + 0x2084]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x206c]
xor ecx, esp
call fcn.004b6da3
add esp, 0x207c
ret 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x208c], 0xffffffff
call fcn.004011c0
xor al, al
jmp 0x4b09ca
Function at 0x4b0a70
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ff6cb
mov eax, dword fs:[0]
push eax
mov eax, 0x1060
call fcn.004b7ac0
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x105c], eax
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x1070]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1080]
push 0xfff
lea eax, [esp + 0x71]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x78], 0
call fcn.004b6dc0
add esp, 0xc
cmp dword [esi], 0
jne 0x4b0adc
xor al, al
jmp 0x4b0b89
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004034d0
test al, al
je 0x4b0ad5
mov edx, dword [esi]
push 0
push 0
push edx
call fcn.004b821d
add esp, 0xc
test eax, eax
jne 0x4b0ad5
lea ecx, [esp + 0x14]
xor edi, edi
call fcn.00403e40
lea ecx, [esp + 0x14]
mov dword [esp + 0x1078], edi
call fcn.00403d40
mov eax, dword [esi]
push eax
push 0x1000
lea ecx, [esp + 0x74]
push 1
push ecx
call fcn.004b8542
add esp, 0x10
test eax, eax
je 0x4b0b69
add edi, eax
cmp edi, 0x6400000
ja 0x4b0b69
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
call section..text
mov eax, dword [esi]
push eax
push 0x1000
lea ecx, [esp + 0x74]
push 1
push ecx
call fcn.004b8542
add esp, 0x10
test eax, eax
jne 0x4b0b35
push ebp
lea ecx, [esp + 0x18]
call fcn.004010d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1078], 0xffffffff
call fcn.004011c0
mov al, 1
mov ecx, dword [esp + 0x1070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x105c]
xor ecx, esp
call fcn.004b6da3
add esp, 0x106c
ret 4

Function at 0x4b0dc0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
mov ecx, dword [eax]
lea edx, [esp]
push edx
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret

Function at 0x4b0e10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x5e0
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x5dc], eax
mov eax, dword [esp + 0x5e4]
mov edx, dword [eax]
push esi
push 0
push 0
push 0
push 0x5dc
lea ecx, [esp + 0x14]
push ecx
push edx
or esi, 0xffffffff
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x4b0e78
mov ecx, dword [esp + 0x5ec]
push ecx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.004b0d20
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x5dc]
xor ecx, esp
call fcn.004b6da3
add esp, 0x5e0
ret
mov ecx, dword [esp + 0x5e0]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004b6da3
add esp, 0x5e0
ret
Function at 0x4b0e90
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
mov edi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x4b0ec3
mov dword [esi + 4], eax
mov eax, 2
mov word [esi], ax
pop edi
xor eax, eax
pop esi
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x4b0ef3
movsx ecx, word [edi + 0xa]
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esi + 4]
push ecx
call fcn.004b6e40
mov dx, word [edi + 8]
add esp, 0xc
pop edi
mov word [esi], dx
xor eax, eax
pop esi
ret
pop edi
or eax, 0xffffffff
pop esi
ret
Function at 0x4b4370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4b437b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x4b4459
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5019c0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5019c0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5019c0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5019c0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5019c0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5019c0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5019c0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5019c0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4b4395
pop edi
test edx, edx
je 0x4b447b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5019c0]
inc ecx
sub edx, 1
jne 0x4b4460
not eax
pop esi
ret
Function at 0x4b4600
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4b461e
mov eax, 0x1000000
pop esi
add esp, 0x48
ret
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4b4638
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x4b464b
mov ebp, 1
test al, 2
je 0x4b4652
or ebp, 2
test al, 4
je 0x4b4659
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x4b4663
or ebp, 0x10
test al, 0x20
je 0x4b466a
or ebp, 0x20
test ecx, ecx
je 0x4b4676
or ebp, 0x40000000
jmp 0x4b467c
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x4b468c
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0x28
jbe 0x4b473e
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x4b473c
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x14], ecx
jbe 0x4b473c
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x4b4736
cmp eax, 0x454e
je 0x4b4736
cmp eax, 0x454c
je 0x4b4736
cmp eax, 0x4550
jne 0x4b473c
or ebp, 0x400000
pop edi
pop ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4b4748
mov dword [eax], ebp
mov eax, dword [esp + 0x5c]
pop ebp
test eax, eax
je 0x4b4757
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4b47a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.004b4550
mov ecx, dword [esp + 0x38]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x34]
push ecx
push edx
mov dword [esi], eax
call fcn.004b4550
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
push eax
push ecx
mov dword [esi + 0xc], edx
call fcn.004b4550
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x60]
test esi, esi
je 0x4b47ce
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx edx, word [esp + 4]
movzx eax, word [esp + 8]
shl edx, 0x10
or edx, eax
mov dword [esi], edx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x4b4950
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4b4993
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [esp + 0x10]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x20]
jb 0x4b4978
pop edi
mov dword [esi + 0xc], 0x30000
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0xc]
push edi
push edx
add eax, ecx
push eax
call fcn.004b6e40
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop esi
ret 8
mov eax, dword [esi]
test eax, eax
je 0x4b49b9
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
pop esi
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop esi
ret 8

Function at 0x4b4cc0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x64]
push edi
test ecx, ecx
je 0x4b4d13
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp eax, edi
jae 0x4b4d5d
mov edx, dword [esp + 0x14]
sub edi, eax
cmp edi, edx
jbe 0x4b4ce6
mov edi, edx
mov ebx, dword [esp + 0x10]
push edi
add eax, ecx
push eax
push ebx
call fcn.004b6e40
mov eax, dword [esi + 0x58]
add dword [esi + 0x6c], edi
add dword [esi + 0x54], edi
push edi
push ebx
push eax
call fcn.004b4370
add esp, 0x18
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4b4d56
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b4d5d
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x58]
add dword [esi + 0x54], edi
push edi
push ebx
push eax
call fcn.004b4370
add esp, 0xc
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov dword [esi + 0xc], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x4b5db0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
lea ebp, [ebx + 1]
cmp dword [esi + 0x6af90], ebx
je 0x4b5fd2
cmp dword [esi + 0x6af90], 3
jb 0x4b5e29
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x4b5e69
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x4b5e69
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4b5e51
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.004b3710
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x4b5e69
mov edi, eax
cmp edi, 3
jb 0x4b5f4e
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.004b30f0
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov edx, eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x4b5f07
cmp eax, 3
jb 0x4b5f07
sub edi, ebp
lea esp, [esp]
add dword [esi + 0x6af84], ebp
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor eax, ebx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
sub edi, ebp
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x4b5eb0
jmp 0x4b5f70
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea ecx, [eax + esi]
movzx eax, byte [ecx + 0x1af70]
mov dword [esi + 0x6af7c], eax
movzx ecx, byte [ecx + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, 0x7fff
push ebp
push esi
xor edi, edi
mov dword [esi + 0x6af7c], ecx
call fcn.004b2c50
add esp, 0xc
jmp 0x4b5f76
mov edx, dword [esi + 0x6af84]
movzx eax, byte [edx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.004b30f0
add esp, 0xc
dec dword [esi + 0x6af90]
mov edx, eax
add dword [esi + 0x6af84], ebp
test edx, edx
je 0x4b5fb0
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x4b5f8d
lea ecx, [eax + esi + 0x1af70]
jmp 0x4b5f8f
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.004b5bf0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4b5fc5
push esi
call fcn.004b38f0
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x4b5dd5
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x4b5fe5
lea ecx, [eax + esi + 0x1af70]
jmp 0x4b5fe7
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.004b5bf0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4b6da3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52e144]
jne 0x4b6dad
repz ret
jmp fcn.004bd562
Function at 0x4ba48d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4ba4be
call fcn.004bd52c
mov dword [eax], esi
call fcn.004bd519
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b7c22
add esp, 0x14
push 0x16
pop eax
jmp 0x4ba513
test dword [ebp + 0xc], 0xfffffff9
jne 0x4ba49a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ba4eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bd53f
pop ecx
call fcn.004bd519
mov eax, dword [eax]
jmp 0x4ba513
test al, 0x10
jne 0x4ba511
test al, 1
je 0x4ba511
test byte [ebp + 0xc], 2
je 0x4ba511
call fcn.004bd52c
mov dword [eax], 5
call fcn.004bd519
mov dword [eax], 0xd
jmp 0x4ba4e2
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4ba564
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4ba595
call fcn.004bd52c
mov dword [eax], esi
call fcn.004bd519
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b7c22
add esp, 0x14
push 0x16
pop eax
jmp 0x4ba5ea
test dword [ebp + 0xc], 0xfffffff9
jne 0x4ba571
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ba5c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bd53f
pop ecx
call fcn.004bd519
mov eax, dword [eax]
jmp 0x4ba5ea
test al, 0x10
jne 0x4ba5e8
test al, 1
je 0x4ba5e8
test byte [ebp + 0xc], 2
je 0x4ba5e8
call fcn.004bd52c
mov dword [eax], 5
call fcn.004bd519
mov dword [eax], 0xd
jmp 0x4ba5b9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ca556
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004bcfac
and dword [ebp - 4], 0
cmp dword [0x54b030], 0
mov ebx, eax
jne 0x4ca607
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ca6b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5039b4
push edi
call esi
test eax, eax
je 0x4ca6b8
push eax
call fcn.004bcf3a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x54b030], eax
call esi
push eax
call fcn.004bcf3a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x54b034], eax
call esi
push eax
call fcn.004bcf3a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x54b038], eax
call esi
push eax
call fcn.004bcf3a
pop ecx
mov dword [0x54b040], eax
test eax, eax
je 0x4ca607
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004bcf3a
pop ecx
mov dword [0x54b03c], eax
mov eax, dword [0x54b03c]
cmp eax, ebx
je 0x4ca65f
cmp dword [0x54b040], ebx
je 0x4ca65f
push eax
call fcn.004bcfb5
push dword [0x54b040]
mov esi, eax
call fcn.004bcfb5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ca65f
test edi, edi
je 0x4ca65f
call esi
test eax, eax
je 0x4ca656
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ca656
test byte [ebp - 0xc], 1
jne 0x4ca65f
or dword [ebp + 0x10], 0x200000
jmp 0x4ca698
mov eax, dword [0x54b034]
cmp eax, ebx
je 0x4ca698
push eax
call fcn.004bcfb5
pop ecx
test eax, eax
je 0x4ca698
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ca698
mov eax, dword [0x54b038]
cmp eax, ebx
je 0x4ca698
push eax
call fcn.004bcfb5
pop ecx
test eax, eax
je 0x4ca698
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54b030]
call fcn.004bcfb5
pop ecx
test eax, eax
je 0x4ca6b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ca6ba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d2bfd
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov byte [ebp - 4], 0x61
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0xc]
mov dword [0x54c0a4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0xc]
mov dword [0x54c0a0], edx
stosb byte es:[edi], al
xor ax, 0x9b
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx + 0x488b0845], cl
or al, 0x89
invalid