joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034b6
Capabilities:
Delete directory
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.0040ab30
cmp dword [0x2a9f348], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x4034f6
push 0x402bc4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x402c88
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x42af28]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42af2c]
xor ebx, ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004034af
mov eax, dword [0x42af30]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x42af34]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x403536
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2a9f348], 0xc
mov dword [ebp - 4], eax
jne 0x40357e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push ebx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosw word es:[edi], ax
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x2a9f348]
cmp eax, 0xfa9
jne 0x40359a
mov dword [0x2a9e8e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4035a7
mov dword [0x2a9e294], 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 [0x2a9e8e0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2a9f348], 0x213
mov dword [ebp - 0x18], edx
jne 0x4035f0
push ebx
push 0x402c90
push ebx
push 0x402cc8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2a9f348], 0xc
jne 0x40362d
push ebx
lea eax, [ebp - 0x830]
push eax
push 0x402cf8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push ebx
lea eax, [ebp - 0x1030]
push eax
push 0x402d54
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov esi, eax
shr esi, cl
lea edx, [edi + eax]
xor dword [ebp - 4], edx
add esi, dword [ebp - 0x28]
cmp dword [0x2a9f348], 0x121
jne 0x40366b
push 0x402d74
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 8]
xor dword [ebp - 4], esi
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x14], ecx
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x403533
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
leave
ret 4
Function at 0x403696
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2a9f348]
mov ecx, dword [0x2a9e298]
sub esp, 0xc00
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x403771
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2a9f348], 0x959
jne 0x40375f
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push 0x402dc8
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push 0x402e08
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x402e7c
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402eb4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push 0x402ebc
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x402ef0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.004034b6
add edi, 8
dec ebx
jne 0x4036be
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403ac7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_CharUpperW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
cmp esi, 0x2710
jge 0x403af8
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
inc esi
cmp esi, 0x5d744c
jl 0x403ad3
push ebx
push edi
xor esi, esi
mov edi, 0x2b259d
mov ebx, 0x785074d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, edi
jle 0x403b1e
cmp dword [ebp - 4], ebx
jne 0x403b27
inc esi
cmp esi, 0x1c1b
jl 0x403b0f
xor esi, esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x403b4e
inc esi
cmp esi, 0x4f6a4
jl 0x403b29
cmp dword [0x2a9f348], 0x400
jne 0x403b7b
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
xor esi, esi
push esi
push esi
call fcn.00403e92
push esi
call fcn.00403ffd
push esi
push esi
call fcn.00403d86
add esp, 0x14
jmp 0x403b7d
xor esi, esi
mov eax, dword [0x42b2fc]
mov dword [0x2a9f348], eax
mov eax, dword [0x42b2d0]
mov dword [0x2a9f34c], eax
call fcn.00403843
push 0x403134
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp esi, edi
jle 0x403baa
cmp dword [ebp - 4], ebx
jne 0x403bb3
inc esi
cmp esi, 0x11915
jl 0x403b96
pop edi
mov esi, 0x3078f
pop ebx
cmp dword [0x2a9f348], 0x51f
jne 0x403be9
push 0x403158
push 0
lea eax, [ebp - 0x808]
push eax
push 0x4031b8
push 0x40313c
push 0x403220
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec esi
jne 0x403bba
mov eax, dword [0x2a9e298]
mov dword [0x2a9e8dc], eax
call eax
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x408c93
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a684]
jne 0x408c9d
repz ret
jmp fcn.0040ab5b
Function at 0x409f49
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405b9e
and dword [ebp - 4], 0
cmp dword [0x42bc18], 0
mov ebx, eax
jne 0x409ffa
push 0x40215c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a0ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402150
push edi
call esi
test eax, eax
je 0x40a0ab
push eax
call fcn.00405b2c
mov dword [esp], 0x402140
push edi
mov dword [0x42bc18], eax
call esi
push eax
call fcn.00405b2c
mov dword [esp], 0x40212c
push edi
mov dword [0x42bc1c], eax
call esi
push eax
call fcn.00405b2c
mov dword [esp], 0x402110
push edi
mov dword [0x42bc20], eax
call esi
push eax
call fcn.00405b2c
pop ecx
mov dword [0x42bc28], eax
test eax, eax
je 0x409ffa
push 0x4020f8
push edi
call esi
push eax
call fcn.00405b2c
pop ecx
mov dword [0x42bc24], eax
mov eax, dword [0x42bc24]
cmp eax, ebx
je 0x40a052
cmp dword [0x42bc28], ebx
je 0x40a052
push eax
call fcn.00405ba7
push dword [0x42bc28]
mov esi, eax
call fcn.00405ba7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a052
test edi, edi
je 0x40a052
call esi
test eax, eax
je 0x40a049
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a049
test byte [ebp - 0xc], 1
jne 0x40a052
or dword [ebp + 0x10], 0x200000
jmp 0x40a08b
mov eax, dword [0x42bc1c]
cmp eax, ebx
je 0x40a08b
push eax
call fcn.00405ba7
pop ecx
test eax, eax
je 0x40a08b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a08b
mov eax, dword [0x42bc20]
cmp eax, ebx
je 0x40a08b
push eax
call fcn.00405ba7
pop ecx
test eax, eax
je 0x40a08b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bc18]
call fcn.00405ba7
pop ecx
test eax, eax
je 0x40a0ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a0ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x863448
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00863598
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x86346e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86345a
add dl, dl
jne 0x863479
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8634cc
xor eax, eax
add dl, dl
jne 0x863486
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86356d
add dl, dl
jne 0x863495
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8634a0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8634ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8634b6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8634c2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x863465
mov eax, 1
add dl, dl
jne 0x8634da
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8634e5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8634d1
sub eax, ebx
mov ebx, 1
jne 0x863518
mov ecx, 1
add dl, dl
jne 0x8634fe
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x863509
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8634f5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863465
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x86352f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86353a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x863526
cmp eax, 0x7d00
jae 0x86355d
cmp eax, 0x500
jb 0x863558
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863465
cmp eax, 0x7f
ja 0x863560
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x863465
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x86358e
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 0x863465
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x43d760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
or ebp, 0xffffffff
jmp 0x43d782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43d789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43d778
mov eax, 1
add ebx, ebx
jne 0x43d79b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43d790
jne 0x43d7ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43d790
xor ecx, ecx
sub eax, 3
jb 0x43d7c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43d832
mov ebp, eax
add ebx, ebx
jne 0x43d7cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43d7d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43d7fc
inc ecx
add ebx, ebx
jne 0x43d7e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43d7dd
jne 0x43d7f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43d7dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43d81c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43d80d
jmp 0x43d77e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43d81c
add edi, ecx
jmp 0x43d77e
pop esi
mov edi, esi
mov ecx, 0x230
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43d83a
cmp byte [edi], 5
jne 0x43d83a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43d83f
lea edi, [esi + 0x3b000]
mov eax, dword [edi]
or eax, eax
je 0x43d8b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3f1f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3f234]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43d86c
mov ecx, edi
jns 0x43d89b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3f238]
or eax, eax
je 0x43d8b1
mov dword [ebx], eax
add ebx, 4
jmp 0x43d889
call dword [esi + 0x3f23c]
popal
jmp 0x4020b4
Function at 0x401465
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418f56
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x419021
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.1110
mov ebp, 0x7512a8
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x4c
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xd7
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x86
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x12
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xc9
push ebx
push ebp
call fcn.004032a6
add esp, 0x44
push eax
call fcn.00406ff5
add byte [esi + edi], 0xdd
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xbf
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x26
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x58
add esp, 0x28
inc esi
cmp esi, dword [esp + 0x18]
jb 0x418f74
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x403c7e
Capabilities:
Terminate process

Disassembly:
jmp 0x45aa49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45aa5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040665e
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 0x403e09
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a45a2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a45b3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a4489
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040488b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a45db
push ebx
push esi
push edi
call fcn.004063fc
add esp, 0xc
push 0
call fcn.00407185
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4064d3
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x41966d
sub esp, 0x20
mov eax, dword [0x74d3c0]
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 0x4196e5
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040209f
test esi, esi
je 0x4196d2
cmp dword [esp + 0x38], 3
jbe 0x4196d2
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004031f2
pop ecx
pop ecx
test eax, eax
je 0x4196d2
cmp eax, dword [esp + 0x38]
je 0x4196fd
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402de7
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x41969e
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.004035df
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.00402de7
jmp 0x4196e7
Function at 0x49ae95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040201d
mov eax, dword [0x74d3c0]
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.00406cd0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49aed7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49b033
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406e5b
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 + 0x7528e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403855
mov ecx, dword [esi*4 + 0x7528e8]
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 0x49b02c
cmp eax, dword [edi + ecx + 0x24]
jne 0x49b02c
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 0x49b02c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403855
add esp, 0x14
test edx, edx
jl 0x49b02c
jg 0x49afa2
test eax, eax
jb 0x49b02c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49b02c
jl 0x49afbc
cmp dword [ebp - 0x1008], eax
ja 0x49b02c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49afda
test ebx, ebx
je 0x49b013
cmp ecx, edi
jae 0x49b013
mov al, byte [ecx]
cmp al, 0xd
jne 0x49aff4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49b000
cmp byte [ecx + 1], 0xa
jne 0x49b000
inc ecx
jmp 0x49b000
movzx eax, al
movsx eax, byte [eax + 0x74d6d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49afda
cmp edx, ebx
jne 0x49afda
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49b031
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035df
leave
ret
Function at 0x49b238
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 + 0x7528e8]
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 0x49b278
cmp byte [ebx], 0xa
jne 0x49b278
or byte [eax + edi + 0x28], 4
jmp 0x49b27d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49b37b
mov al, byte [edx]
cmp al, 0x1a
je 0x49b35d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49b2ac
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49b2d1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49b2db
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 0x49b28e
jmp 0x49b37b
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 0x49b358
cmp dword [ebp - 0xc], 0
je 0x49b358
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7528e8]
test byte [eax + edi + 0x28], 0x48
je 0x49b332
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49b31d
mov byte [esi], dl
jmp 0x49b32e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7528e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49b37b
cmp byte [ebp - 1], 0xa
jne 0x49b341
cmp esi, ebx
jne 0x49b341
mov byte [esi], 0xa
jmp 0x49b37a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401af5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49b37b
mov byte [esi], 0xd
jmp 0x49b37a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7528e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b377
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b37b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret