joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1401258
nop dword [eax]
cmp edi, dword [section..data]
jb 0x14011d8
cmp edi, dword [0x158b004]
ja 0x14011d8
sub edi, 0x8000000
jmp 0x1401250
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x1401258
cmp dword [ebp - 0xc], 0x10000
jne 0x140123b
cmp dword [ebp - 0x10], 0x10000
jb 0x140123b
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x140130a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1401258
sub edi, 0x10000
jmp 0x1401250
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x14011c0
movzx eax, si
test eax, eax
je 0x1401267
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x1401308
cmp esi, dword [section..data]
jb 0x140128a
cmp esi, dword [0x158b004]
ja 0x140128a
add esi, 0x8000000
jmp 0x1401300
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x1401308
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x14012eb
cmp ecx, 0x10000
jb 0x14012eb
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x140130a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1401308
add esi, 0x10000
jmp 0x1401300
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1401300
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1401272
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1401620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1588a38
push 0x14264e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x14016c3
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x14016c3
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x14016c3
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x14016c3
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1401bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x15b71e4], eax
je 0x1401bec
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x15b71e8]
test eax, eax
jne 0x1401d06
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x1401c0b
lea eax, [esi + 0x57]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1401c28
cmp dword [ebx], 0
jne 0x1401c35
mov dword [0x15b71e8], 6
mov dword [0x15b71ec], ebx
pop ebx
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
push 0x157fa15
push 0x18
call fcn.01424556
mov edi, eax
add esp, 8
test edi, edi
jne 0x1401c53
lea esi, [eax + 8]
jmp 0x1401ce6
push 0
push dword [ebx]
call fcn.01401b40
push 0
push esi
mov dword [ebp + 0xc], eax
call fcn.01401b40
mov esi, dword [ebp + 0xc]
mov edx, eax
movzx ecx, byte [esi + 0x36]
mov eax, dword [esi + 0x40]
sub eax, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x1401cd8
cmp ecx, 0x1e
ja 0x1401cd8
cmp dword [esi + 0x44], edx
jne 0x1401cd8
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push ecx
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1401ca7
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x1401ce6
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 8], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 4], 1
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [0x15b71f4]
mov dword [edi], eax
xor eax, eax
mov dword [0x15b71f4], edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x15b71dc], 0
mov esi, 9
jne 0x1401cf0
mov dword [0x15b71e8], esi
test edi, edi
je 0x1401cfb
push 0x18
push edi
call fcn.01424548
add esp, 8
pop edi
mov dword [0x15b71ec], ebx
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x15b71e4], 0
jne 0x1401d87
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x15b71e4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1401d87
push esi
mov esi, dword [0x15b71d4]
mov dword [0x15b71f4], eax
mov dword [0x15b71f0], eax
mov dword [0x15b71ec], eax
test esi, esi
je 0x1401d6c
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1401d78
mov esi, dword [esi + 4]
test esi, esi
jne 0x1401d50
xor eax, eax
mov dword [0x15b71e8], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x15b71e8], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x1405830
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 0x1405867
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 0x1405990
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 0x14059d1
push esi
push dword [ebp + 0xc]
push edi
call fcn.01426600
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 0x1406110
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.01404b00
add esp, 4
test eax, eax
je 0x140613b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.01404de0
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x1406189
movzx ecx, word [eax + 0x14]
movzx esi, 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, si
jae 0x1406189
mov edi, 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 [edi]
jne 0x1406183
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8 + 4]
cmp eax, dword [edi + 4]
je 0x1406192
inc ecx
cmp cx, si
jb 0x1406167
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
test esi, esi
je 0x14061ab
mov ecx, dword [edi + edx*8 + 0x28]
cmp ecx, dword [edi + edx*8 + 0x20]
cmovbe ecx, dword [edi + edx*8 + 0x20]
mov dword [esi], ecx
mov eax, dword [edi + edx*8 + 0x24]
pop edi
pop esi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1406860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.01424810
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0xfff
push eax
call fcn.014035b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0142db9a
mov eax, dword [0x15b8b1c]
add esp, 0x1c
mov byte [ebp - 1], 0
test eax, eax
je 0x14068b6
mov eax, dword [eax + 0x50]
test eax, eax
je 0x14068b6
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 0x1409060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1447120
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0142485e
mov edi, eax
add esp, 4
test edi, edi
je 0x14090fc
push 1
mov dword [ebp - 4], 0
call fcn.01425a44
add esp, 4
mov dword [edi + 4], eax
jmp 0x14090fe
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.0140e9f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x14093a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x14471cf
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.01425837
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 0x140942b
push eax
push esi
call fcn.01425b42
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.01425455
int3
Function at 0x140a070
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 0x140a081
cmp al, 0xe9
jne 0x140a0d1
mov eax, dword [ebp + 0x10]
push edi
add eax, esi
lea edi, [esi + 1]
add eax, dword [edi]
cmp eax, dword [0x15b7a90]
jne 0x140a0d0
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 0x140a0ca
mov eax, 0x140b030
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 0x140a0e5
xor eax, eax
cmp cl, 0x90
sete al
pop ebp
ret 0x18
mov eax, 1
pop ebp
ret 0x18

Function at 0x140af60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 3
call fcn.0140df80
mov esi, eax
add esp, 4
test esi, esi
jne 0x140af7a
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x20]
push 0x40
push dword [ebp + 0x10]
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x24]
push eax
mov dword [esi + 0x20], ecx
call fcn.014320d0
push 0x100
push dword [ebp + 0x14]
lea eax, [esi + 0x64]
mov byte [esi + 0x63], 0
push eax
call fcn.014320d0
mov eax, dword [ebp + 0x1c]
add esp, 0x18
mov byte [esi + 0x163], 0
mov dword [esi + 0x10], eax
cmp byte [0x15b7ad9], 0
je 0x140afdf
xor al, al
mov byte [esi + 4], al
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [esi + 0x20]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140b012
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
pop edi
test eax, eax
je 0x140b01f
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov al, 1
mov byte [esi + 4], al
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x140e460
Capabilities:
Set environment variable

Disassembly:
push 0x15b7210
call fcn.01425475
mov eax, dword [0x15b7204]
add esp, 4
cmp eax, dword [0x15b7208]
je 0x1403a8f
mov dword [0x15b7208], eax
push 0x15b7210
call fcn.01425491
pop ecx
ret
push esi
push edi
call fcn.01403f50
mov edi, dword [0x15b8b00]
test edi, edi
je 0x140e546
mov esi, edi
mov edi, dword [edi + 0x40]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x140e498
mov eax, dword [esi + 0x3c]
sub eax, 2
je 0x140e493
sub eax, 1
je 0x140e493
sub eax, 1
jne 0x140e498
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esi + 0x30]
call fcn.014010c0
mov ecx, dword [esi + 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x140e4d7
mov eax, dword [esi + 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x140e4cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140e5e7
mov eax, edx
push ecx
push eax
call fcn.01424548
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, 0xf
jbe 0x140e51c
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x140e512
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140e5e7
mov eax, edx
push ecx
push eax
call fcn.01424548
add esp, 8
push 0x44
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.01424548
add esp, 8
test edi, edi
jne 0x140e475
mov dword [0x15b8b00], edi
mov eax, dword [0x15b8b18]
test eax, eax
je 0x140e567
push 0xac
push eax
call fcn.01424548
add esp, 8
mov dword [0x15b8b18], 0
mov eax, dword [0x15b8b1c]
test eax, eax
je 0x140e588
push 0x218
push eax
call fcn.01424548
add esp, 8
mov dword [0x15b8b1c], 0
mov edi, dword [0x15b8b28]
mov esi, dword [0x15b8b24]
mov dword [0x15b7a74], 0
cmp esi, edi
je 0x140e5cb
push 0xc
push dword [esi]
call fcn.01424548
add esi, 4
add esp, 8
cmp esi, edi
jne 0x140e5a2
mov edi, dword [0x15b8b28]
mov esi, dword [0x15b8b24]
cmp esi, edi
je 0x140e5cb
mov dword [0x15b8b28], esi
call fcn.0140e340
push 0x15b7ae0
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
pop esi
jmp 0x1403a70
call fcn.01432077
int3
Function at 0x140e600
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x15b7ac4]
test esi, esi
je 0x140e744
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
cmp byte [esi + 4], 0
jne 0x140e737
mov eax, dword [esi]
cmp eax, 1
jne 0x140e659
call fcn.01401d10
push dword [esi + 0xc]
lea ebx, [esi + 0x18]
push ebx
call fcn.014016e0
call fcn.01401d90
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140e733
mov eax, dword [ebx]
jmp 0x140e731
cmp eax, 2
jne 0x140e694
mov ebx, dword [esi + 0x28]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
call edi
test eax, eax
je 0x140e727
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
jmp 0x140e725
cmp eax, 3
jne 0x140e6c8
mov ebx, dword [esi + 0x20]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
call edi
test eax, eax
je 0x140e727
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
jmp 0x140e725
cmp eax, 4
jne 0x140e733
push 1
push dword [esi + 0x18]
call fcn.014051f0
push dword [esi + 0x1c]
mov dword [esi + 8], eax
lea eax, [esi + 0x20]
push dword [esi + 0x18]
push eax
call fcn.01426600
mov ebx, dword [esi + 0x1c]
lea ecx, [ebp - 4]
mov eax, dword [esi + 0x18]
add esp, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push ecx
push 0x40
push ebx
push eax
call edi
test eax, eax
je 0x140e727
push ebx
lea eax, [esi + 0x28]
push eax
push dword [ebp - 8]
call fcn.01426600
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
call edi
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140e733
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov byte [esi + 4], 1
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x140e620
pop edi
pop ebx
mov byte [0x15b7ad9], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1412300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
je 0x141233a
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 0x141233a
cmp dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
je 0x141233d
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x1412350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x15b8b70], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x141239c
lea eax, [ebp - 4]
push eax
push 0x15b8b70
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 0x141239c
cmp dword [ebp - 8], 1
mov eax, 0x15b8b70
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 0x1424e83
Capabilities:
Parse pe header

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

Function at 0x1437966
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x15833c0
push 0x15833b8
push str.FlsAlloc
push 0x1f
call fcn.0143782e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143799a
push dword [ebp + 8]
mov ecx, esi
call dword [0x14481c8]
call esi
jmp 0x14379a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x14379e4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x15833d0
push 0x15833c8
push str.FlsGetValue
push 0x21
call fcn.0143782e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1437a1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x14481c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1437a23
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x15833d8
push 0x15833d0
push str.FlsSetValue
push 0x22
call fcn.0143782e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1437a5d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x14481c8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x143b28e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.01424810
mov eax, dword [0x15b6080]
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.01437f99
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x143b2d0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x143b42c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.01446b10
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 + 0x15b9e30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0143c28b
mov ecx, dword [esi*4 + 0x15b9e30]
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 0x143b425
cmp eax, dword [ecx + edi + 0x24]
jne 0x143b425
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 0x143b425
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0143c28b
add esp, 0x14
test edx, edx
jl 0x143b425
jg 0x143b39b
test eax, eax
jb 0x143b425
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x143b425
jl 0x143b3b5
cmp dword [ebp - 0x1008], eax
ja 0x143b425
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x143b3d3
test ebx, ebx
je 0x143b40c
cmp ecx, edi
jae 0x143b40c
mov al, byte [ecx]
cmp al, 0xd
jne 0x143b3ed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x143b3f9
cmp byte [ecx + 1], 0xa
jne 0x143b3f9
inc ecx
jmp 0x143b3f9
movzx eax, al
movsx eax, byte [eax + 0x15b63a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x143b3d3
cmp edx, ebx
jne 0x143b3d3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x143b42a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01424ad9
leave
ret