joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
xor esi, esi
cmp dword [0x2818bc4], 0x400
push edi
jne 0x40155e
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push str.nihunigufemakulidoyudu
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
push esi
call fcn.004020ee
push esi
push esi
call fcn.00401859
push esi
call fcn.00402089
push esi
call fcn.00402357
fldz
add esp, 8
fst qword [esp + 8]
fstp qword [esp]
call fcn.00401620
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00401640
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00401d80
fstp st(0)
push esi
push esi
call fcn.00401ed4
push esi
call fcn.004023cb
push esi
push esi
call fcn.0040175d
push esi
call fcn.0040219b
add esp, 0x20
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor edi, edi
cmp edi, 0xacc
jge 0x401592
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be411
jg 0x4015ac
inc edi
cmp edi, 0x3330601
jl 0x401566
xor edi, edi
cmp edi, 0x16d2a
jge 0x4015bd
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e82fe
jg 0x4015e1
inc edi
cmp edi, 0x3011b
jl 0x4015ae
mov eax, dword [0x42ac54]
mov dword [0x2818bc4], eax
call fcn.00401204
mov edi, 0x2ec37
cmp dword [0x2818bc4], 0x51f
jne 0x40160f
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x4015f5
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x408467
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4277d0]
jne 0x408471
repz ret
jmp fcn.0040b07b
Function at 0x40a07c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4277d0]
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.00406531
and dword [ebp - 0x14], 0
cmp dword [0x435888], 0
mov dword [ebp - 0x18], eax
jne 0x40a12f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a1d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a1d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x435888], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43588c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x435890], eax
call edi
push eax
call esi
mov dword [0x435898], eax
test eax, eax
je 0x40a12f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x435894], eax
mov eax, dword [0x435894]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a188
cmp dword [0x435898], ecx
je 0x40a188
push eax
call esi
push dword [0x435898]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a188
test ebx, ebx
je 0x40a188
call edi
test eax, eax
je 0x40a17f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a17f
test byte [ebp - 8], 1
jne 0x40a188
or dword [ebp + 0x10], 0x200000
jmp 0x40a1bb
mov eax, dword [0x43588c]
cmp eax, dword [ebp - 0x18]
je 0x40a1bb
push eax
call esi
test eax, eax
je 0x40a1bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a1bb
mov eax, dword [0x435890]
cmp eax, dword [ebp - 0x18]
je 0x40a1bb
push eax
call esi
test eax, eax
je 0x40a1bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x435888]
call esi
test eax, eax
je 0x40a1d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a1d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408467
leave
ret
Function at 0x409b5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00407303
mov esi, eax
test esi, esi
jns 0x409b92
push str.Failed_to_format_variable_string.
push esi
call fcn.0043fb09
pop ecx
pop ecx
jmp 0x409c1d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409bb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409bdd
movzx esi, si
or esi, 0x80070000
jmp 0x409bdd
test al, 0x10
je 0x409bd8
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.0040821a
mov esi, eax
test esi, esi
jns 0x409bdd
push str.Failed_to_set_directory_search_path_variable.
jmp 0x409b85
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x409c06
cmp esi, 0x80070003
je 0x409c06
test esi, esi
jns 0x409c1d
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0043fb09
add esp, 0x10
jmp 0x409c1d
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.0043fff0
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.0040287d
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x409c2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00407303
mov esi, eax
test esi, esi
jns 0x409c5b
push str.Failed_to_format_variable_string.
jmp 0x409cf9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x409cb8
cmp esi, 3
je 0x409cb8
test esi, esi
je 0x409ccc
jle 0x409c8e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x409c95
mov esi, 0x80004005
push esi
push 0x28b
push str.c:_agent_work66_s_src_burnengine_search.cpp
call fcn.004038ba
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0043fb09
add esp, 0xc
jmp 0x409d01
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0043fff0
add esp, 0x10
xor eax, eax
jmp 0x409cdd
xor eax, eax
xor ecx, ecx
test edx, 0x10
jne 0x409cdf
inc eax
xor ecx, ecx
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408274
mov esi, eax
test esi, esi
jns 0x409d01
invalid
invalid
Function at 0x40b1d7
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x40b22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40b202
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x40b209
mov edi, 0x80004005
push edi
push 0x140
push str.c:_agent_work66_s_src_burnengine_section.cpp
call fcn.004038ba
push str.Failed_to_get_module_handle_to_process.
push edi
call fcn.0043fb09
pop ecx
pop ecx
jmp 0x40b378
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x40b254
mov esi, 0x8007000d
push esi
push 0x14a
push str.c:_agent_work66_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038ba
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
jmp 0x40b21f
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x40b27e
mov esi, 0x8007000d
push esi
push 0x155
push str.c:_agent_work66_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038ba
push str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x40b251
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x44e178
push ebx
call fcn.0042f8c3
add esp, 0xc
test eax, eax
je 0x40b2c3
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40b2ea
invalid
Function at 0x4148b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
and dword [ebp - 0xc], esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
xor ebx, ebx
push edi
push 0
lea eax, [ebp - 4]
push eax
push 8
pop eax
sub eax, ebx
ret
push eax
lea eax, [ebp - 0xc]
add eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x41491b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xea
jne 0x414905
xor esi, esi
jmp 0x41491b
cmp esi, 0x6d
je 0x414980
test esi, esi
jle 0x414919
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414961
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x4148cf
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x4149e2
push 0
push eax
call fcn.004039df
mov dword [edi + 0xc], eax
test eax, eax
jne 0x41498f
mov esi, 0x8007000e
push esi
push 0x323
push str.c:_agent_work66_s_src_burnenginepipe.cpp
call fcn.004038ba
push str.Failed_to_allocate_data_for_message.
jmp 0x414976
push esi
push 0x318
push str.c:_agent_work66_s_src_burnenginepipe.cpp
call fcn.004038ba
push str.Failed_to_read_message_from_pipe.
push esi
call fcn.0043fb09
pop ecx
pop ecx
jmp 0x4149e2
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x414929
push 0
lea ecx, [ebp - 4]
push ecx
push dword [edi + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4149db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4149bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4149c4
mov esi, 0x80004005
push esi
push 0x327
push str.c:_agent_work66_s_src_burnenginepipe.cpp
call fcn.004038ba
push str.Failed_to_read_data_for_message.
jmp 0x414976
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x4149f6
cmp dword [edi + 0xc], 0
je 0x4149f6
push dword [edi + 0xc]
call fcn.00403aa4
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x43f58a
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5b8
push str.AdvApi32.dll
call fcn.004038bd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43f5cd
push str.SystemFunction040
push dword [0x46b5b8]
call edi
push str.SystemFunction041
push dword [0x46b5b8]
mov dword [0x46b5a8], eax
call edi
mov dword [0x46b5ac], eax
jmp 0x43f5d2
mov eax, dword [0x46b5ac]
cmp dword [0x46b5a8], 0
je 0x43f5e3
test eax, eax
jne 0x43f68a
push 0x46b5bc
push str.Crypt32.dll
call fcn.004038bd
mov esi, eax
test esi, esi
js 0x43f694
push str.CryptProtectMemory
push dword [0x46b5bc]
call edi
cmp dword [0x46b5a8], 0
mov dword [0x46b5b0], eax
jne 0x43f648
test eax, eax
jne 0x43f648
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43f632
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43f639
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work66_s_srclibsdutilcryputil.cpp
call fcn.004038ba
jmp 0x43f694
push str.CryptUnprotectMemory
push dword [0x46b5bc]
call edi
cmp dword [0x46b5ac], 0
mov dword [0x46b5b4], eax
jne 0x43f68a
test eax, eax
jne 0x43f68a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43f67e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43f685
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43f63c
mov dword [0x46b5c0], 1
pop edi
mov eax, esi
pop esi
Function at 0x401211
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x1714]
mov eax, 0x1794
call 0x40e330
mov eax, dword [0x42f920]
xor eax, ebp
mov dword [ebp + 0x1710], eax
mov eax, dword [ebp + 0x171c]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1720]
xor edi, edi
cmp dword [ebp + 0x1728], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], ebx
jl 0x40131a
jg 0x401266
cmp dword [ebp + 0x1724], ebx
jbe 0x40131a
mov ecx, dword [ebp + 0x1724]
sub ecx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0x1728]
sbb eax, edi
js 0x40128d
jg 0x401283
cmp ecx, 0x1770
jbe 0x40128d
mov ecx, 0x1770
mov dword [ebp - 0x7c], ebx
jmp 0x401290
mov dword [ebp - 0x7c], eax
push ebx
lea eax, [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x74]
call dword [0x427068]
test eax, eax
je 0x401353
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x401353
cmp byte [ebp + 0x172c], bl
je 0x4012ce
xor ecx, ecx
cmp eax, ebx
jbe 0x4012ce
xor byte [ebp + ecx - 0x60], 0x88
inc ecx
cmp ecx, eax
jb 0x4012c4
xor esi, esi
cmp eax, ebx
jbe 0x4012f8
push ebx
lea ecx, [ebp - 0x70]
push ecx
sub eax, esi
push eax
lea eax, [ebp + esi - 0x60]
push eax
push dword [ebp - 0x78]
call dword [0x427064]
test eax, eax
je 0x401334
add esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
cmp esi, eax
jb 0x4012d4
add dword [ebp - 0x6c], eax
adc edi, ebx
cmp edi, dword [ebp + 0x1728]
jl 0x401266
jg 0x40131a
mov eax, dword [ebp + 0x1724]
cmp dword [ebp - 0x6c], eax
jb 0x401266
xor eax, eax
mov ecx, dword [ebp + 0x1710]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e318
add ebp, 0x1714
leave
ret
call dword [0x427060]
push eax
mov eax, dword [ebp - 0x64]
sub eax, esi
push eax
push 0x427440
call fcn.0040b7b6
add esp, 0xc
push 2
pop eax
jmp 0x40131c
push edi
push dword [ebp - 0x6c]
call dword [0x427060]
push eax
push dword [ebp - 0x64]
push 0x427408
call fcn.0040b7b6
xor eax, eax
add esp, 0x14
inc eax
jmp 0x40131c

Function at 0x40b01e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4310c4]
mov dword [ebp - 4], 0x4310c4
jmp 0x40b080
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push edi
call fcn.0040e950
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040e7fb
pop ecx
pop ecx
test esi, esi
jle 0x40b062
mov ecx, eax
sub edi, eax
mov edx, esi
mov bl, byte [edi + ecx]
xor bl, 0xbb
mov byte [ecx], bl
inc ecx
dec edx
jne 0x40b056
push esi
push eax
push dword [ebp + 8]
mov byte [eax + esi], 0
call fcn.0040f841
add esp, 0xc
test eax, eax
je 0x40b091
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.0040e950
pop ecx
test eax, eax
ja 0x40b034
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x40b08c

Function at 0x40b1dc
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x40b20c
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edi
movsx edi, byte [edx]
mov eax, dword [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4310c8]
inc edx
dec esi
mov dword [ecx], eax
jne 0x40b1ee
pop edi
pop esi
ret
Function at 0x420562
Capabilities:
Read file on windows

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

Function at 0x42056d
Capabilities:
Read file on windows

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

Function at 0x420967
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d9f0
mov eax, dword [0x481e00]
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.0041e133
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4209a9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420b05
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429400
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 + 0x484850]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421706
mov ecx, dword [esi*4 + 0x484850]
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 0x420afe
cmp eax, dword [edi + ecx + 0x24]
jne 0x420afe
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 0x420afe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421706
add esp, 0x14
test edx, edx
jl 0x420afe
jg 0x420a74
test eax, eax
jb 0x420afe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420afe
jl 0x420a8e
cmp dword [ebp - 0x1008], eax
ja 0x420afe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420aac
test ebx, ebx
je 0x420ae5
cmp ecx, edi
jae 0x420ae5
mov al, byte [ecx]
cmp al, 0xd
jne 0x420ac6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420ad2
cmp byte [ecx + 1], 0xa
jne 0x420ad2
inc ecx
jmp 0x420ad2
movzx eax, al
movsx eax, byte [eax + 0x4820c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420aac
cmp edx, ebx
jne 0x420aac
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420b03
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cde2
leave
ret
Function at 0x420ba4
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 + 0x484850]
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 0x420be4
cmp byte [ebx], 0xa
jne 0x420be4
or byte [eax + edi + 0x28], 4
jmp 0x420be9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420ce7
mov al, byte [edx]
cmp al, 0x1a
je 0x420cc9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420c18
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420c3d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420c47
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 0x420bfa
jmp 0x420ce7
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 0x420cc4
cmp dword [ebp - 0xc], 0
je 0x420cc4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x484850]
test byte [eax + edi + 0x28], 0x48
je 0x420c9e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420c89
mov byte [esi], dl
jmp 0x420c9a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x484850]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420ce7
cmp byte [ebp - 1], 0xa
jne 0x420cad
cmp esi, ebx
jne 0x420cad
mov byte [esi], 0xa
jmp 0x420ce6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421724
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420ce7
mov byte [esi], 0xd
jmp 0x420ce6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x484850]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420ce3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420ce7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420cf0
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 + 0x484850]
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 0x420d33
cmp word [esi], dx
jne 0x420d33
or byte [edi + eax + 0x28], 4
jmp 0x420d38
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 0x420e8b
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 0x420e6b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420d7a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420db0
cmp eax, edx
jae 0x420dbc
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 0x420d52
jmp 0x420e8b
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 0x420e67
cmp dword [ebp - 0x14], 0
je 0x420e67
mov eax, dword [ebx*4 + 0x484850]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420e3f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420e08
mov word [esi], cx
jmp 0x420e3b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x484850]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x484850]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x484850]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420e8b
pop ebx
cmp word [ebp - 4], bx
jne 0x420e50
cmp esi, dword [ebp + 0xc]
jne 0x420e50
mov word [esi], bx
jmp 0x420e88
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421724
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420e8b
push 0xd
jmp 0x420e84
mov ecx, dword [ebx*4 + 0x484850]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420e82
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420e8b
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