joyce8/EMBER2024-capa huggingface dataset:
Function at 0x82dd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x82dd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x82dd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x82dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x82dd94
push eax
push esi
call fcn.0083020b
add esp, 8
pop esi
ret 0x10

Function at 0x82dda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x82de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x82de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x846320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0082fdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x82ddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x82de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x82dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x82deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x846320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0082fdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x82deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x82de6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x82e000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x82e131
push esi
call fcn.00831145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00820080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x82e131
push 0
push ebp
call fcn.008203a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00820260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x82e08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008202f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x82e121
push 0x846918
push edi
call fcn.0082f3f0
push eax
push ebx
push esi
call fcn.0082df60
push 0x8468f8
push edi
call fcn.0082f3f0
push eax
push ebx
push esi
call fcn.0082df60
push 0x8468d8
push edi
call fcn.0082f3f0
push eax
push ebx
push esi
call fcn.0082df60
push 0x8468c0
push edi
call fcn.0082f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0082df60
push 0x8468a0
push edi
call fcn.0082f3f0
push eax
push ebx
push esi
call fcn.0082df60
push 0x846888
push edi
call fcn.0082f3f0
push eax
push ebx
push esi
call fcn.0082df60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x82f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0082f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0082f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0082f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0082f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x82fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x82fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x84187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x82fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x82fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402d74
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0040dff0
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x431b78], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x402dc4
push 0x4026c8
push 0x4026d8
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x4026f4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4274a8]
mov dword [ebp - 0x28], eax
mov eax, dword [str.6_e]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00402d6d
mov eax, dword [0x4274b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4274b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x402e03
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x431b78], 0xc
mov dword [ebp - 4], eax
jne 0x402e65
push ebx
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x104c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x431b78]
cmp eax, 0xfa9
jne 0x402e81
mov dword [0x431114], 0xedeb2e40
cmp eax, 0x3eb
jne 0x402e8e
mov dword [0x430ac0], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x431110], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x431b78], 0x213
mov dword [ebp - 0x18], edx
jne 0x402ece
push 0x402710
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402d67
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x402e00
cmp dword [0x431b78], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x402f38
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x405d6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x405d79
pop dword [ebp - 8]
mov eax, 0x4332ccfe
sub eax, 0x42f26f85
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xeee4a820
add dword [ebp - 0x18], 0x5f6d9d2b
mov dword [ebp - 0x14], 0x7337f96
add dword [ebp - 0x14], 0x2affccaf
mov dword [ebp - 0x10], 0xd929a78c
sub dword [ebp - 0x10], 0x8cdd635e
mov dword [ebp - 0xc], 0xb32d8303
sub dword [ebp - 0xc], 0xb32d8303
lea eax, [ebp - 0x18]
push eax
mov eax, 0xbe982afd
sub eax, 0xbe57bae1
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xf1179288
add dword [ebp - 0x18], 0x835ad6ce
mov dword [ebp - 0x14], 0x7bf6649e
sub dword [ebp - 0x14], 0x3a8a0329
mov dword [ebp - 0x10], 0x7858b8da
sub dword [ebp - 0x10], 0x14e94c6e
mov dword [ebp - 0xc], 0x51c498c8
add dword [ebp - 0xc], 0xae3b6738
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x598fa71a
add eax, 0xa6b0c906
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x33953
push 0
call eax
mov ecx, 0x3779
mov ebx, eax
mov esi, 0x9fe2832f
add esi, 0x605e44d1
add esi, dword [ebp - 8]
mov edx, 0x151b1ea4
sub edx, 0xce4a17ff
xor dword [ebp - 4], 0xdec77a3d
mov edi, dword [esi]
add dword [ebp - 4], ebx
add edi, edx
xor dword [ebp - 4], 0x6cad3237
mov dword [ebx], edi
sub dword [ebp - 4], edi
add ebx, 4
add esi, 0xbc96abca
add esi, 0x4369543a
loop 0x405e95
add eax, 0xd0b7
xor ebx, ebx
add ebx, eax
add eax, 0xe80e8ccd
add eax, 0x17f17338
mov ecx, 0x105f674c
add ecx, 0xefe098b4
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x40146f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x419030
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x41917c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
add byte [esi + edi], 0x1b
call ebx
add byte [esi + edi], 0x23
call ebx
xor byte [esi + edi], 0x25
call ebx
add byte [esi + edi], 0xf5
call ebx
add byte [esi + edi], 0xb2
call ebx
add byte [esi + edi], 0xd5
call ebx
add byte [esi + edi], 0xef
call ebx
xor byte [esi + edi], 0x17
call ebx
add byte [esi + edi], 0x29
call ebx
add byte [esi + edi], 0xd8
call ebx
xor byte [esi + edi], 0x4b
call ebx
add byte [esi + edi], 9
call ebx
add byte [esi + edi], 0x1e
call ebx
add byte [esi + edi], 0x38
call ebx
add byte [esi + edi], 0xc9
call ebx
add byte [esi + edi], 0x54
call ebx
xor byte [esi + edi], 0x4a
call ebx
add byte [esi + edi], 0x8e
call ebx
add byte [esi + edi], 7
call ebx
add byte [esi + edi], 0x41
call ebx
add byte [esi + edi], 0x56
call ebx
add byte [esi + edi], 0x84
call ebx
add byte [esi + edi], 0xcf
call ebx
sub byte [esi + edi], 0x80
call ebx
add byte [esi + edi], 0x74
call ebx
xor byte [esi + edi], 0x45
call ebx
add byte [esi + edi], 0x89
call ebx
add byte [esi + edi], 0xda
call ebx
add byte [esi + edi], 0x4b
call ebx
add byte [esi + edi], 0xd6
call ebx
add byte [esi + edi], 0x82
call ebx
xor byte [esi + edi], 0x4b
call ebx
xor byte [esi + edi], 0xfb
call ebx
xor byte [esi + edi], 0xdc
call ebx
add byte [esi + edi], 0xe1
call ebx
add byte [esi + edi], 0x5e
call ebx
xor byte [esi + edi], 0xcb
call ebx
add byte [esi + edi], 0x40
call ebx
add byte [esi + edi], 0xfc
call ebx
xor byte [esi + edi], 5
call ebx
add byte [esi + edi], 3
call ebx
xor byte [esi + edi], 0xd9
call ebx
add byte [esi + edi], 0x6e
call ebx
xor byte [esi + edi], 0xc3
call ebx
add byte [esi + edi], 0xdc
call ebx
xor byte [esi + edi], 8
call ebx
add byte [esi + edi], 0x54
call ebx
add byte [esi + edi], 0xb
call ebx
add byte [esi + edi], 0x53
inc esi
cmp esi, dword [esp + 0x14]
jb 0x419049
pop edi
pop ebx
pop esi
ret

Function at 0x4026e9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x419d11
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipCursor]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x61bd70], eax
pop edi
pop esi
ret
Function at 0x40320b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x419bc8
push ecx
push ebx
push esi
push edi
push str.Dont_afraid
push 0x61c228
call fcn.004032bf
push eax
call fcn.0040701d
mov edi, dword [esp + 0x20]
add esp, 0xc
lea eax, [edi + 0x10]
mov esi, dword [eax]
mov ebx, esi
xor ebx, dword [esp + 0x18]
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0xc], eax
jb 0x419c03
mov edi, dword [edi]
mov dword [esp + 0x14], edi
push edi
shr esi, 2
push esi
push str._x_and__p
call fcn.00402577
add esp, 0xc
test esi, esi
je 0x419c5c
push ebp
mov ebp, edi
mov edi, esi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00406415
imul ecx, dword [esp + 0x28], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub edi, 1
jne 0x419c1e
mov edi, dword [esp + 0x18]
pop ebp
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x419c88
sub eax, 1
je 0x419c7e
sub eax, 1
jne 0x419c96
movsx ecx, byte [edi + esi*4 + 2]
shl ecx, 0x10
movsx eax, byte [edi + esi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [edi + esi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret

Function at 0x403c97
Capabilities:
Terminate process

Disassembly:
jmp 0x45ac49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45ac5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00406681
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403e22
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a47e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a47f3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a46c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004048b3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a481b
push ebx
push esi
push edi
call fcn.00406415
add esp, 0xc
push 0
call fcn.004071ad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4064f1
Capabilities:
Parse pe header

Disassembly:
jmp 0x449a6f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x449aae
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449aae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449aae
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x449aae
cmp dword [ecx + 0x74], 0xe
jbe 0x449aae
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4075bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x41981a
sub esp, 0x20
mov eax, dword [0x618328]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x419883
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004020ae
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.0040320b
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x41989b
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e05
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x41984b
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035f8
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e05
jmp 0x419885
Function at 0x49c7f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040202c
mov eax, dword [0x618328]
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.00406cf8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49c83b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49c997
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406e83
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 + 0x61d858]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040386e
mov ecx, dword [esi*4 + 0x61d858]
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 0x49c990
cmp eax, dword [edi + ecx + 0x24]
jne 0x49c990
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 0x49c990
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040386e
add esp, 0x14
test edx, edx
jl 0x49c990
jg 0x49c906
test eax, eax
jb 0x49c990
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49c990
jl 0x49c920
cmp dword [ebp - 0x1008], eax
ja 0x49c990
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49c93e
test ebx, ebx
je 0x49c977
cmp ecx, edi
jae 0x49c977
mov al, byte [ecx]
cmp al, 0xd
jne 0x49c958
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49c964
cmp byte [ecx + 1], 0xa
jne 0x49c964
inc ecx
jmp 0x49c964
movzx eax, al
movsx eax, byte [eax + 0x618640]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49c93e
cmp edx, ebx
jne 0x49c93e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49c995
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035f8
leave
ret
Function at 0x49cb9c
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 + 0x61d858]
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 0x49cbdc
cmp byte [ebx], 0xa
jne 0x49cbdc
or byte [eax + edi + 0x28], 4
jmp 0x49cbe1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49ccdf
mov al, byte [edx]
cmp al, 0x1a
je 0x49ccc1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49cc10
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49cc35
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49cc3f
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 0x49cbf2
jmp 0x49ccdf
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 0x49ccbc
cmp dword [ebp - 0xc], 0
je 0x49ccbc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x61d858]
test byte [eax + edi + 0x28], 0x48
je 0x49cc96
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49cc81
mov byte [esi], dl
jmp 0x49cc92
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x61d858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49ccdf
cmp byte [ebp - 1], 0xa
jne 0x49cca5
cmp esi, ebx
jne 0x49cca5
mov byte [esi], 0xa
jmp 0x49ccde
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401aff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49ccdf
mov byte [esi], 0xd
jmp 0x49ccde
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x61d858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49ccdb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49ccdf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49cd3b
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 + 0x61d858]
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 0x49cd7e
cmp word [esi], dx
jne 0x49cd7e
or byte [edi + eax + 0x28], 4
jmp 0x49cd83
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 0x49ced6
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 0x49ceb6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49cdc5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49cdfb
cmp eax, edx
jae 0x49ce07
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 0x49cd9d
jmp 0x49ced6
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 0x49ceb2
cmp dword [ebp - 0x14], 0
je 0x49ceb2
mov eax, dword [ebx*4 + 0x61d858]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49ce8a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49ce53
mov word [esi], cx
jmp 0x49ce86
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x61d858]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x61d858]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x61d858]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49ced6
pop ebx
cmp word [ebp - 4], bx
jne 0x49ce9b
cmp esi, dword [ebp + 0xc]
jne 0x49ce9b
mov word [esi], bx
jmp 0x49ced3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401aff
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49ced6
push 0xd
jmp 0x49cecf
mov ecx, dword [ebx*4 + 0x61d858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49cecd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49ced6
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