joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4565b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4565ce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4565c3
pop esi
ret

Function at 0x4565d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x456639
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004526b0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x456a40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x456a81.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x456a81.2
jmp dword [eax*4 + 0x456b0c]
mov word [esp + 0x48], di
jmp 0x456aba
mov word [esp + 0x48], 2
jmp 0x456aba
mov word [esp + 0x48], 3
jmp 0x456aba
mov word [esp + 0x48], 4
jmp 0x456aba
mov word [esp + 0x48], 7
jmp 0x456aba
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x456b04
cmp dword [esp + 0x70], edi
je 0x456af0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x456ba0
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 0x456c32
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x456c24
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 0x456c1c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x456be5
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 0x456f50
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x456f66
mov eax, 1
pop edi
add esp, 0x10
ret
push edi
call fcn.00459710
add esp, 4
test eax, eax
jne 0x456f7d
mov eax, 1
pop edi
add esp, 0x10
ret
mov eax, dword [edi]
push ebx
push ebp
mov ebp, 1
cmp eax, ebp
push esi
mov dword [esp + 0x10], ebp
je 0x457021
cmp eax, 3
je 0x457021
cmp eax, 2
jne 0x4570c5
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.00459b80
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x4570c5
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4570c5
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4570c5
mov edx, dword [esi]
lea eax, [esp + 0x28]
push ebp
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebx, eax
call dword [edx + 0x18]
test ebx, ebx
je 0x4570c5
mov al, byte [esp + 0x28]
test al, al
je 0x457013
cmp al, 0x1a
jne 0x4570c5
mov dword [esp + 0x10], ebp
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
mov esi, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push esi
mov dword [esp + 0x24], eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4570c5
cmp ebx, dword [esp + 0x14]
jae 0x4570c5
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4570c5
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4570c5
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x30]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push ebx
push esi
mov dword [esp + 0x24], eax
call ebp
cmp dword [edi], 3
jne 0x4570a9
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x10]
push eax
add edi, 0x34
push ecx
push edi
lea edx, [esp + 0x34]
push 1
push edx
push ebx
call fcn.00458fc0
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4570c5
mov al, byte [esp + 0x28]
test al, al
je 0x4570bd
cmp al, 0x1a
jne 0x4570c5
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
Function at 0x458740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x458761
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x4587bb
inc edi
cmp edi, esi
jl 0x458755
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4587f0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x4587aa
cmp byte [eax], bl
je 0x4587c5
cmp byte [eax + 1], bl
je 0x4587ce
cmp byte [eax + 2], bl
je 0x4587d8
cmp byte [eax + 3], bl
je 0x4587e4
add eax, 4
cmp eax, edi
jb 0x458781
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x458dd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x458e02
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x458e62
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x458e39
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x458f10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x458fac
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x458f3b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x46a6f6
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 0x46a738
call fcn.0046da4d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46a738
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46a72f
xor eax, eax
jmp 0x46a740
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046a746
pop edi
pop esi
pop ebx
ret 4
Function at 0x46b6d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46f2e0
call fcn.0045dd40
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.0046da4d
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x46b713
call fcn.0046da4d
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 0x46b721
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46b72f
or eax, 0xffffffff
jmp 0x46b817
mov ecx, esi
call fcn.0046b64a
mov dword [ebp - 0x14], eax
call fcn.00468d41
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x46b766
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46b766
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.00468cf5
push dword [ebp - 0x14]
call fcn.00468826
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0046b3e2
cmp eax, edi
je 0x46b7d9
test byte [esi + 0x24], 0x10
je 0x46b7a7
push 4
mov ecx, esi
pop ebx
call fcn.00468226
test ah, 1
je 0x46b79f
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046a848
cmp dword [esi + 0x1c], edi
je 0x46b7d9
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046825a
jmp 0x46b7d9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x46b7ed
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x46b806
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x46b806
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.0046b684
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 0x46d5ba
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]
cmp dword [esp + 0x10], 0
jne 0x46d5e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d606
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d520
jmp 0x46d606
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d606
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d520
test edi, edi
mov eax, edi
jne 0x46d5f0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422770
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x432050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xa
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4011a4
xor al, al
jmp 0x40125f
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4011c0
xor al, al
jmp 0x40125f
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
push 1
push 0x40
push 0x20
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402a30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.00407460
movzx ecx, al
test ecx, ecx
jne 0x401225
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.00404740
mov al, byte [ebp - 0xd]
jmp 0x40125f
mov edx, dword [ebp - 0x1c]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.004087b0
lea ecx, [ebp - 0xd0]
call fcn.00406b00
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.00404740
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x401380
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x432050]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1d]
call fcn.00402990
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f10
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406810
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401800
push 3
lea ecx, [ebp - 0x1c]
call fcn.00406900
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea ecx, [ebp - 0x1c]
call fcn.00403ef0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409b62
mov esp, ebp
pop ebp
ret

Function at 0x40a55c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a59b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a59b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a59b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a59b
cmp dword [ecx + 0x74], 0xe
jbe 0x40a59b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x414c46
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4274f8
push 0x4274f0
push str.FlsAlloc
push 0x1e
call fcn.00414ab3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414c7a
push dword [ebp + 8]
mov ecx, esi
call dword [0x424184]
call esi
jmp 0x414c80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414cc4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427508
push 0x427500
push str.FlsGetValue
push 0x20
call fcn.00414ab3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414cfb
push dword [ebp + 8]
mov ecx, esi
call dword [0x424184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4163a5
Capabilities:
Read file on windows

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

Function at 0x41679f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a890
mov eax, dword [0x432050]
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.00415279
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4167e1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41693d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422450
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 + 0x433950]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041777c
mov ecx, dword [esi*4 + 0x433950]
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 0x416936
cmp eax, dword [edi + ecx + 0x24]
jne 0x416936
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 0x416936
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041777c
add esp, 0x14
test edx, edx
jl 0x416936
jg 0x4168ac
test eax, eax
jb 0x416936
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416936
jl 0x4168c6
cmp dword [ebp - 0x1008], eax
ja 0x416936
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4168e4
test ebx, ebx
je 0x41691d
cmp ecx, edi
jae 0x41691d
mov al, byte [ecx]
cmp al, 0xd
jne 0x4168fe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41690a
cmp byte [ecx + 1], 0xa
jne 0x41690a
inc ecx
jmp 0x41690a
movzx eax, al
movsx eax, byte [eax + 0x4322d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4168e4
cmp edx, ebx
jne 0x4168e4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41693b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409b62
leave
ret
Function at 0x416c34
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 + 0x433950]
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 0x416c74
cmp byte [ebx], 0xa
jne 0x416c74
or byte [eax + edi + 0x28], 4
jmp 0x416c79
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416d77
mov al, byte [edx]
cmp al, 0x1a
je 0x416d59
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416ca8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416ccd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416cd7
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 0x416c8a
jmp 0x416d77
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 0x416d54
cmp dword [ebp - 0xc], 0
je 0x416d54
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x433950]
test byte [eax + edi + 0x28], 0x48
je 0x416d2e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416d19
mov byte [esi], dl
jmp 0x416d2a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416d77
cmp byte [ebp - 1], 0xa
jne 0x416d3d
cmp esi, ebx
jne 0x416d3d
mov byte [esi], 0xa
jmp 0x416d76
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041779a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416d77
mov byte [esi], 0xd
jmp 0x416d76
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x433950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416d73
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416d77
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416d80
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 + 0x433950]
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 0x416dc3
cmp word [esi], dx
jne 0x416dc3
or byte [edi + eax + 0x28], 4
jmp 0x416dc8
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 0x416f01
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 0x416ee1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x416e0a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416e40
cmp eax, edx
jae 0x416e4c
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 0x416de2
jmp 0x416f01
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 0x416edd
cmp dword [ebp - 0x14], 0
je 0x416edd
mov eax, dword [ebx*4 + 0x433950]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416eb5
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x416efb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x433950]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x433950]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x433950]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x416efe
pop ebx
cmp word [ebp - 4], bx
jne 0x416ec6
cmp esi, dword [ebp + 0xc]
jne 0x416ec6
mov word [esi], bx
jmp 0x416efe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041779a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416f01
push 0xd
jmp 0x416efa
mov ecx, dword [ebx*4 + 0x433950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416ef8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416f01
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