joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444a60
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x444ae0
push edi
call dword [0x5a44a8]
add esp, 4
test eax, eax
jbe 0x444ae0
test esi, esi
je 0x444a9e
cmp esi, 0xffffffff
je 0x444a9e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x444b22
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x444acc
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x444ae0
jmp 0x444adb
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x444ae0
mov ebp, 1
test esi, esi
je 0x444b22
cmp esi, 0xffffffff
je 0x444b22
test ebp, ebp
jne 0x444b59
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x444b2f
call edi
test eax, eax
je 0x444b22
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x444b59
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x444b0a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x444b22
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x444b59
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x444b3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x5a44a8]
inc eax
push eax
call fcn.00441ea0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x444bc0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x4452a0
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 0x445332
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x445324
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 0x44531c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4452e5
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 0x4454c0
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 0x445529
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.00441ea0
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 0x44711c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x447148
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0044d067
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x447159
push ebx
call fcn.0044d061
add esp, 4
pop eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4471c1
mov ecx, dword [eax + 4]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4471c1
mov edx, ebx
mov esp, ecx
or bh, bl
cmp edx, 0xff
cmovbe edx, ebx
mov ebx, edx
and esp, 0xfffffffc
shl ebx, 0x10
sub ecx, esp
or bx, dx
cmp edx, 0xffff
cmovbe edx, ebx
lea ebx, [eax + 8]
test esp, esp
je 0x4471a2
add esp, ebx
xor dword [ebx], edx
add ebx, 4
cmp esp, ebx
jne 0x447199
test ecx, ecx
je 0x4471c1
xor byte [ebx], dl
test ecx, 2
je 0x4471c1
xor byte [ebx + 1], dh
test ecx, 1
je 0x4471c1
shr edx, 0x10
xor byte [ebx + 2], dl
leave
ret 8

Function at 0x4471fc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x7fff
push 1
mov ebx, 0x184
call fcn.0044d8b1
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x447248
push ebx
call fcn.0044d061
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x7fff
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x447282
push 0x4f
push 0x402e875
push 6
call fcn.0044d06d
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x447299
mov eax, 0
jmp 0x4472f2
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4472b6
mov eax, 0x5a47c6
push eax
push 2
mov ebx, 0x134
call fcn.0044d8f1
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4472e2
push ebx
call fcn.0044d061
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 1
jmp 0x4472f2
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x447303
push ebx
call fcn.0044d061
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44ba8b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
inc eax
push dword [eax]
pop word [ebp - 4]
cmp dword [ebp - 4], 0xc25e
je 0x44bac0
cmp dword [ebp - 4], 0xc35e
je 0x44bac0
jmp 0x44bac3
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44baa5
cmp dword [ebp - 4], 0xc25e
jne 0x44bb63
push eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x44bb16
push 0x1c8
push 0x40100a7
push 6
call fcn.0044d06d
add esp, 0xc
pop eax
push 0x9090c35e
pop dword [eax]
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 4
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x44bb63
push 0x261
push 0x40100a7
push 6
call fcn.0044d06d
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x44e520
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46d1e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5a6778]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0x41
mov dword [esp + 0x2c], 0x1a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x5a5258
push edx
call fcn.004675a4
mov esi, dword [esp + 0x34]
add esp, 0xc
test esi, esi
jne 0x44e598
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x44e591
jmp dword [eax*4 + 0x44e61c]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
jne case.default.0x44e591
push 3
call fcn.0044f21c
mov edi, dword [esp + 0x14]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
add ebx, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jne 0x44e55f
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00468370
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x459f85
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a5960]
jne 0x459f8f
repz ret
jmp fcn.00460416
Function at 0x45ae3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a5960]
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.00451893
and dword [ebp - 0x14], 0
cmp dword [0x5c33fc], 0
mov dword [ebp - 0x18], eax
jne 0x45aeee
push 0x4734a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45af96
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47349c
push ebx
call edi
test eax, eax
je 0x45af96
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47348c
push ebx
mov dword [0x5c33fc], eax
call edi
push eax
call esi
push 0x473478
push ebx
mov dword [0x5c3400], eax
call edi
push eax
call esi
push 0x47345c
push ebx
mov dword [0x5c3404], eax
call edi
push eax
call esi
mov dword [0x5c340c], eax
test eax, eax
je 0x45aeee
push 0x473444
push ebx
call edi
push eax
call esi
mov dword [0x5c3408], eax
mov eax, dword [0x5c3408]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45af47
cmp dword [0x5c340c], ecx
je 0x45af47
push eax
call esi
push dword [0x5c340c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45af47
test ebx, ebx
je 0x45af47
call edi
test eax, eax
je 0x45af3e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45af3e
test byte [ebp - 8], 1
jne 0x45af47
or dword [ebp + 0x10], 0x200000
jmp 0x45af7a
mov eax, dword [0x5c3400]
cmp eax, dword [ebp - 0x18]
je 0x45af7a
push eax
call esi
test eax, eax
je 0x45af7a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45af7a
mov eax, dword [0x5c3404]
cmp eax, dword [ebp - 0x18]
je 0x45af7a
push eax
call esi
test eax, eax
je 0x45af7a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c33fc]
call esi
test eax, eax
je 0x45af96
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45af98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459f85
leave
ret
Function at 0x464b46
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x46d547
call fcn.004603ab
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x464c3d
cmp byte [esi + 0x4a], bl
je 0x464c3d
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x464b82
xor al, al
jmp 0x464c3f
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0046490c
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464be0
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x464be5
dec eax
je 0x464be9
dec eax
dec eax
je 0x464c39
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00463e7c
mov al, bl
jmp 0x464c3f
mov edx, dword [ebp - 0x2c]
jmp 0x464bab
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464bf5
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x464c1b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464c08
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0044f8de
add esp, 0x10
cmp edi, eax
jne 0x464bce
cmp byte [esi + 0x4a], 0
je 0x464c39
test edi, edi
jne 0x464b9d
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0046485e
jmp 0x464b9d
mov bl, 1
jmp 0x464bd0
mov al, 1
call fcn.004603f5
ret
Function at 0x464c45
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x46d574
call fcn.004603ab
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x464c67
xor eax, eax
jmp 0x464dda
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x464c95
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x464c95
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x464dda
cmp dword [esi + 0x54], ebx
je 0x464dd5
mov ecx, esi
call fcn.00463c60
cmp dword [esi + 0x44], ebx
jne 0x464cc5
push dword [esi + 0x54]
push edi
call fcn.00464100
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x464dda
jmp 0x464dd5
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0046490c
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464d82
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x464dca
cmp eax, ebx
jg 0x464d8a
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464d34
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x464d59
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x464d47
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.0044f8de
add esp, 0x10
cmp edi, eax
jne 0x464dca
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x464db9
test edi, edi
jne 0x464ce6
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x464dcf
push 8
call fcn.0046485e
jmp 0x464ce6
mov edx, dword [ebp - 0x2c]
jmp 0x464cf8
cmp eax, 3
jne 0x464dca
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.00464100
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x464da9
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00463e7c
mov ax, si
jmp 0x464dda
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00463e7c
mov ax, word [ebp + 8]
jmp 0x464dda
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00463e7c
mov eax, 0xffff
call fcn.004603f5
ret 4
Function at 0x10001250
Capabilities:
Encode data using xor

Disassembly:
mov dword [ecx], ebx
mov ebp, 0x5d2b515a
and cl, ch
mov al, byte [0x403b2d20]
cmp dword [edi + ecx*4 - 0x6c0cba1], edx
invalid
pop edi
xor al, 0x3f
stc

Function at 0x1046e580
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1046e6d0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1046e5a6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046e592
add dl, dl
jne 0x1046e5b1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046e604
xor eax, eax
add dl, dl
jne 0x1046e5be
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046e6a5
add dl, dl
jne 0x1046e5cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046e5d8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046e5e3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046e5ee
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1046e5fa
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1046e59d
mov eax, 1
add dl, dl
jne 0x1046e612
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046e61d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046e609
sub eax, ebx
mov ebx, 1
jne 0x1046e650
mov ecx, 1
add dl, dl
jne 0x1046e636
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1046e641
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046e62d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046e59d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1046e667
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1046e672
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046e65e
cmp eax, 0x7d00
jae 0x1046e695
cmp eax, 0x500
jb 0x1046e690
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046e59d
cmp eax, 0x7f
ja 0x1046e698
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046e59d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1046e6c6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1046e59d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4727e0
Capabilities:
Read file on windows

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

Function at 0x4727eb
Capabilities:
Read file on windows

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

Function at 0x472d0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042f620
mov eax, dword [0x49f100]
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.004701bf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x472d50
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x472eac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00485160
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 + 0x4ec918]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004742a1
mov ecx, dword [esi*4 + 0x4ec918]
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 0x472ea5
cmp eax, dword [edi + ecx + 0x24]
jne 0x472ea5
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 0x472ea5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004742a1
add esp, 0x14
test edx, edx
jl 0x472ea5
jg 0x472e1b
test eax, eax
jb 0x472ea5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x472ea5
jl 0x472e35
cmp dword [ebp - 0x1008], eax
ja 0x472ea5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x472e53
test ebx, ebx
je 0x472e8c
cmp ecx, edi
jae 0x472e8c
mov al, byte [ecx]
cmp al, 0xd
jne 0x472e6d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x472e79
cmp byte [ecx + 1], 0xa
jne 0x472e79
inc ecx
jmp 0x472e79
movzx eax, al
movsx eax, byte [eax + 0x49f3f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x472e53
cmp edx, ebx
jne 0x472e53
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x472eaa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042e0ad
leave
ret
Function at 0x47342a
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 + 0x4ec918]
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 0x47346a
cmp byte [ebx], 0xa
jne 0x47346a
or byte [eax + edi + 0x28], 4
jmp 0x47346f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x47356d
mov al, byte [edx]
cmp al, 0x1a
je 0x47354f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x47349e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4734c3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4734cd
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 0x473480
jmp 0x47356d
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 0x47354a
cmp dword [ebp - 0xc], 0
je 0x47354a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ec918]
test byte [eax + edi + 0x28], 0x48
je 0x473524
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47350f
mov byte [esi], dl
jmp 0x473520
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ec918]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47356d
cmp byte [ebp - 1], 0xa
jne 0x473533
cmp esi, ebx
jne 0x473533
mov byte [esi], 0xa
jmp 0x47356c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004742bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47356d
mov byte [esi], 0xd
jmp 0x47356c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ec918]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473569
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47356d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret