joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14044b0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x14045cc
mov esi, dword [eax + 0x80]
mov ebx, dword [ebp + 0xc]
add esi, edi
cmp dword [esi + 0xc], 0
je 0x14044fc
nop word [eax + eax]
mov eax, dword [esi + 0xc]
add eax, edi
push ebx
push eax
call fcn.014303f9
add esp, 8
test eax, eax
je 0x14044fc
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x14044e0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x14045cc
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x14045cc
mov esi, dword [esi + 0x10]
add esi, edi
mov ecx, dword [esi]
cmp ecx, edx
je 0x1404542
mov eax, ecx
nop dword [eax]
mov ecx, eax
test eax, eax
je 0x1404542
mov ecx, dword [esi + 4]
add esi, 4
mov eax, ecx
cmp ecx, edx
jne 0x1404530
test ecx, ecx
je 0x14045cc
push 4
call fcn.014234e2
push 3
mov dword [ebp - 4], eax
mov dword [eax], esi
call fcn.0140c060
mov ecx, dword [esi]
mov ebx, eax
mov eax, dword [ebp + 0x14]
add esp, 8
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x10], eax
cmp byte [0x15b6969], 0
je 0x140459f
xor eax, eax
pop edi
mov dword [ebx + 4], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp + 0x14]
push eax
push dword [ecx]
call fcn.01404880
mov eax, dword [ebx + 0x10]
add esp, 0xc
test eax, eax
je 0x14045bb
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov eax, 1
pop edi
mov dword [ebx + 4], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1404720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1404757
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1404880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14048c1
push esi
push dword [ebp + 0xc]
push edi
call fcn.01425130
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1405000
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x15b6940]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x1405039
push eax
call fcn.01404000
add esp, 4
cmp eax, esi
jne 0x1405039
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x15b6940]
call fcn.01404020
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x15b6944]
test eax, eax
je 0x1405068
push eax
call fcn.01404000
add esp, 4
cmp eax, esi
jne 0x1405068
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x15b6944]
call fcn.01404020
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x14050b6
movzx ecx, word [eax + 0x14]
movzx edi, word [eax + 6]
add ecx, eax
mov dword [ebp - 8], ecx
xor eax, eax
add ecx, 0x18
mov dword [ebp - 4], ecx
xor ecx, ecx
cmp ax, di
jae 0x14050b6
mov ebx, dword [ebp + 0xc]
movzx eax, cx
lea edx, [eax + eax*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8]
cmp eax, dword [ebx]
jne 0x14050b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8 + 4]
cmp eax, dword [ebx + 4]
je 0x14050bf
inc ecx
cmp cx, di
jb 0x1405094
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
test edi, edi
je 0x14050d8
mov ecx, dword [ebx + edx*8 + 0x28]
cmp ecx, dword [ebx + edx*8 + 0x20]
cmovbe ecx, dword [ebx + edx*8 + 0x20]
mov dword [edi], ecx
mov eax, dword [ebx + edx*8 + 0x24]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x14057a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.01423780
push 0x1000
lea eax, [ebp - 0x1000]
push 0
push eax
call fcn.014256b0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0xfff
push eax
call fcn.01403560
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0142c6da
mov eax, dword [0x15b8988]
add esp, 0x1c
mov byte [ebp - 1], 0
test eax, eax
je 0x140580c
mov eax, dword [eax + 0x50]
test eax, eax
je 0x140580c
push str.escape_n
call eax
add esp, 4
push 0x10
push str.Fatal_Error
lea eax, [ebp - 0x1000]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esp, ebp
pop ebp
ret

Function at 0x14072d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1445a6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebp - 0x10], 0
je 0x1407340
mov dword [ebx], 0x1447ce0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea edi, [ebx + 0x10]
mov ecx, ebx
push 0
push edi
mov dword [ebp + 8], edi
call fcn.01407450
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.014234e2
mov esi, eax
add esp, 4
test esi, esi
je 0x140739d
push 1
mov byte [ebp - 4], 2
call fcn.0142464a
add esp, 4
mov dword [esi + 4], eax
jmp 0x140739f
xor esi, esi
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0140cfa0
mov eax, dword [ebp + 8]
lea ebx, [edi + 4]
mov dword [edi + 0xc], ebx
lea esi, [edi + 8]
mov dword [edi + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea edx, [eax + 0x24]
mov byte [edi + 0x48], 0
mov byte [edi + 0x3d], 0
add edi, 0x14
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [edx + 0x4c], 0
mov eax, dword [0x15b89bc]
mov ecx, dword [0x15b89c0]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x38], 0
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1407860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1445b5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.014242cd
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x14078eb
push eax
push esi
call fcn.01424747
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.01424499
int3

Function at 0x1408b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [esi]
cmp al, 0xe8
je 0x1408b51
cmp al, 0xe9
jne 0x1408ba1
mov eax, dword [ebp + 0x10]
push edi
add eax, esi
lea edi, [esi + 1]
add eax, dword [edi]
cmp eax, dword [0x15b6924]
jne 0x1408ba0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1408b9a
mov eax, 0x14095c0
sub eax, esi
sub eax, 5
mov dword [edi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0x1c]
mov byte [eax], 1
pop edi
mov cl, byte [esi]
pop esi
cmp cl, 0xcc
je 0x1408bb5
xor eax, eax
cmp cl, 0x90
sete al
pop ebp
ret 0x18
mov eax, 1
pop ebp
ret 0x18

Function at 0x1409640
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
je 0x14096bf
mov eax, dword [esi]
push edi
cmp eax, 2
jne 0x140968c
mov eax, dword [esi + 0x30]
mov dword [ebp + 8], 0
mov edi, dword [eax + 4]
lea eax, [ebp + 8]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14096b7
mov eax, dword [esi + 8]
mov dword [edi], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x14096b7
cmp eax, 3
jne 0x14096a6
push 4
lea eax, [esi + 8]
push eax
mov eax, dword [esi + 0x30]
push dword [eax]
call fcn.01404880
add esp, 0xc
jmp 0x14096b7
cmp eax, 1
jne 0x14096b7
push dword [esi + 0xc]
lea eax, [esi + 8]
push eax
call fcn.01401b90
mov dword [esi + 4], 0
pop edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x14096d8
push 0
push eax
call fcn.01423512
add esp, 8
mov dword [esi + 0x30], 0
push 0x34
push esi
call fcn.01423512
add esp, 8
pop esi
pop ebp
ret
Function at 0x140c500
Capabilities:
Set environment variable

Disassembly:
cmp dword [0x15b6954], 0
push esi
je 0x140c541
call fcn.01401cd0
mov eax, dword [0x15b6954]
test eax, eax
je 0x140c532
nop dword [eax + eax]
mov esi, dword [eax + 0x2c]
push eax
call fcn.01409640
add esp, 4
mov eax, esi
test esi, esi
jne 0x140c520
mov dword [0x15b6954], 0
call fcn.01401d50
push edi
mov edi, dword [0x15b8970]
test edi, edi
je 0x140c623
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
mov edi, dword [edi + 0x40]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x140c57a
mov eax, dword [esi + 0x3c]
sub eax, 2
je 0x140c575
sub eax, 1
je 0x140c575
sub eax, 1
jne 0x140c57a
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esi + 0x30]
call ebx
mov ecx, dword [esi + 0x2c]
cmp ecx, 0x10
jb 0x140c5b3
mov eax, dword [esi + 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x140c5a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140c6d0
mov eax, edx
push ecx
push eax
call fcn.01423512
add esp, 8
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x140c5f8
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x140c5ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140c6d0
mov eax, edx
push ecx
push eax
call fcn.01423512
add esp, 8
push 0x44
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.01423512
add esp, 8
test edi, edi
jne 0x140c557
pop ebx
mov dword [0x15b8970], edi
mov eax, dword [0x15b8984]
test eax, eax
je 0x140c644
push 0xac
push eax
call fcn.01423512
add esp, 8
mov dword [0x15b8984], 0
mov eax, dword [0x15b8988]
test eax, eax
je 0x140c665
push 0x218
push eax
call fcn.01423512
add esp, 8
mov dword [0x15b8988], 0
mov edi, dword [0x15b8990]
mov esi, dword [0x15b898c]
mov dword [0x15b690c], 0
cmp esi, edi
je 0x140c6a1
nop
push 0xc
push dword [esi]
call fcn.01423512
add esi, 4
add esp, 8
cmp esi, edi
jne 0x140c680
mov edi, dword [0x15b8990]
mov esi, dword [0x15b898c]
cmp esi, edi
pop edi
je 0x140c6aa
mov dword [0x15b8990], esi
mov eax, dword [0x15b6908]
pop esi
test eax, eax
je 0x140c6ba
mov dword [eax], 0
call fcn.0140c410
push 0x15b6970
push 0x1447ce8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
ret
call fcn.01430d04
int3
Function at 0x140c6e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x15b6954]
mov byte [0x15b6969], 0
test esi, esi
je 0x140c7b5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov eax, dword [esi]
cmp eax, 1
jne 0x140c736
cmp dword [esi + 4], 0
jne 0x140c7a8
call fcn.01401cd0
push dword [esi + 0xc]
lea edi, [esi + 8]
push edi
call fcn.014016a0
call fcn.01401d50
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140c7a1
mov eax, dword [edi]
mov dword [ecx], eax
jmp 0x140c7a1
cmp eax, 2
jne 0x140c75a
cmp dword [esi + 4], 0
jne 0x140c7a8
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 0x10]
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 8], eax
test ecx, ecx
je 0x140c755
mov dword [ecx], eax
mov edi, dword [edi + 4]
jmp 0x140c77a
cmp eax, 3
jne 0x140c7a8
cmp dword [esi + 4], 0
jne 0x140c7a8
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 0x10]
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [esi + 8], eax
test ecx, ecx
je 0x140c778
mov dword [ecx], eax
mov edi, dword [edi]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x40
push 4
push edi
call ebx
test eax, eax
je 0x140c7a1
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call ebx
mov dword [esi + 4], 1
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x140c702
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1410cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
je 0x1410cea
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1410cea
cmp dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
je 0x1410ced
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x1410d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x15b89d8], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x1410d4c
lea eax, [ebp - 4]
push eax
push 0x15b89d8
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1410d4c
cmp dword [ebp - 8], 1
mov eax, 0x15b89d8
cmovne eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x1423e4e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1423e8d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1423e8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1423e8d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1423e8d
cmp dword [ecx + 0x74], 0xe
jbe 0x1423e8d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1436476
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x15821a0
push 0x1582198
push str.FlsAlloc
push 0x1f
call fcn.0143633e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x14364aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x14471c0]
call esi
jmp 0x14364b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x14364f4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x15821b0
push 0x15821a8
push str.FlsGetValue
push 0x21
call fcn.0143633e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143652b
push dword [ebp + 8]
mov ecx, esi
call dword [0x14471c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1436533
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x15821b8
push 0x15821b0
push str.FlsSetValue
push 0x22
call fcn.0143633e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143656d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x14471c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1439d9e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.01423780
mov eax, dword [0x15b4fe8]
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.01436aa9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1439de0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1439f3c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.01445560
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 + 0x15b9eb0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0143ad9b
mov ecx, dword [esi*4 + 0x15b9eb0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1439f35
cmp eax, dword [ecx + edi + 0x24]
jne 0x1439f35
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1439f35
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0143ad9b
add esp, 0x14
test edx, edx
jl 0x1439f35
jg 0x1439eab
test eax, eax
jb 0x1439f35
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1439f35
jl 0x1439ec5
cmp dword [ebp - 0x1008], eax
ja 0x1439f35
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1439ee3
test ebx, ebx
je 0x1439f1c
cmp ecx, edi
jae 0x1439f1c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1439efd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1439f09
cmp byte [ecx + 1], 0xa
jne 0x1439f09
inc ecx
jmp 0x1439f09
movzx eax, al
movsx eax, byte [eax + 0x15b52c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1439ee3
cmp edx, ebx
jne 0x1439ee3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1439f3a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01423a6e
leave
ret
Function at 0x143a233
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x15b9eb0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x143a273
cmp byte [ebx], 0xa
jne 0x143a273
or byte [edi + eax + 0x28], 4
jmp 0x143a278
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x143a377
mov dl, byte [eax]
cmp dl, 0x1a
je 0x143a35a
inc eax
cmp dl, 0xd
je 0x143a2a4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x143a2ca
cmp eax, ecx
jae 0x143a2d8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x143a28c
jmp 0x143a377
push 0
lea eax, [ebp - 0x10]
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 0x143a355
cmp dword [ebp - 0x10], 0
je 0x143a355
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x15b9eb0]
test byte [eax + edi + 0x28], 0x48
je 0x143a32f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x143a31a
mov byte [esi], dl
jmp 0x143a32b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x15b9eb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x143a377
cmp byte [ebp - 1], 0xa
jne 0x143a33e
cmp esi, ebx
jne 0x143a33e
mov byte [esi], 0xa
jmp 0x143a376
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0143adb9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x143a377
mov byte [esi], 0xd
jmp 0x143a376
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x15b9eb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x143a374
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x143a377
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x143a380
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x15b9eb0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x143a3c6
cmp word [ebx], dx
jne 0x143a3c6
or byte [eax + edi + 0x28], 4
jmp 0x143a3cb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x143a52e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x143a50e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x143a40c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x143a442
cmp eax, edx
jae 0x143a450
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x143a3e7
jmp 0x143a52e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x143a509
cmp dword [ebp - 0x18], 0
je 0x143a509
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x15b9eb0]
test byte [eax + edi + 0x28], 0x48
je 0x143a4df
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x143a4a3
mov word [esi], cx
jmp 0x143a4da
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x15b9eb0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x15b9eb0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x15b9eb0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x143a52e
pop eax
cmp word [ebp - 4], ax
jne 0x143a4ef
cmp esi, ebx
jne 0x143a4ef
mov word [esi], ax
jmp 0x143a52b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0143adb9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x143a52e
push 0xd
pop eax
jmp 0x143a4ea
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x15b9eb0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x143a528
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x143a52e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret