joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011a0
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 0x1401268
nop dword [eax]
cmp edi, dword [section..data]
jb 0x14011e8
cmp edi, dword [0x4590004]
ja 0x14011e8
sub edi, 0x8000000
jmp 0x1401260
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 0x1401268
cmp dword [ebp - 0xc], 0x10000
jne 0x140124b
cmp dword [ebp - 0x10], 0x10000
jb 0x140124b
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x140131a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1401268
sub edi, 0x10000
jmp 0x1401260
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 0x14011d0
movzx eax, si
test eax, eax
je 0x1401277
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x1401318
cmp esi, dword [section..data]
jb 0x140129a
cmp esi, dword [0x4590004]
ja 0x140129a
add esi, 0x8000000
jmp 0x1401310
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 0x1401318
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x14012fb
cmp ecx, 0x10000
jb 0x14012fb
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x140131a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1401318
add esi, 0x10000
jmp 0x1401310
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1401310
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1401282
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1401640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458d578
push 0x1427130
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 0x14016e3
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x14016e3
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x14016e3
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x14016e3
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 0x1401c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x45bc244], eax
je 0x1401c5c
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x45bc248]
test eax, eax
jne 0x1401d76
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x1401c7b
lea eax, [ebx + 0x57]
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1401c98
cmp dword [edi], 0
jne 0x1401ca5
mov dword [0x45bc248], 6
mov dword [0x45bc24c], edi
pop edi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push 0x4580a35
push 0x18
call fcn.01424c76
mov esi, eax
add esp, 8
test esi, esi
jne 0x1401cc3
lea ebx, [eax + 8]
jmp 0x1401d56
push 0
push dword [edi]
call fcn.01401bb0
push 0
push ebx
mov dword [ebp + 0xc], eax
call fcn.01401bb0
mov ebx, dword [ebp + 0xc]
mov edx, eax
movzx ecx, byte [ebx + 0x36]
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x1401d48
cmp ecx, 0x1e
ja 0x1401d48
cmp dword [ebx + 0x44], edx
jne 0x1401d48
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 0x1401d17
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x1401d56
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 4], 1
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x45bc254]
mov dword [esi], eax
xor eax, eax
mov dword [0x45bc254], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x45bc23c], 0
mov ebx, 9
jne 0x1401d60
mov dword [0x45bc248], ebx
test esi, esi
je 0x1401d6b
push 0x18
push esi
call fcn.01424c68
add esp, 8
pop esi
mov dword [0x45bc24c], edi
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1401d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x45bc244], 0
jne 0x1401df7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x45bc244
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1401df7
push esi
mov esi, dword [0x45bc234]
mov dword [0x45bc254], eax
mov dword [0x45bc250], eax
mov dword [0x45bc24c], eax
test esi, esi
je 0x1401ddc
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1401de8
mov esi, dword [esi + 4]
test esi, esi
jne 0x1401dc0
xor eax, eax
mov dword [0x45bc248], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x45bc248], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x1406580
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 0x14065b7
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 0x14066e0
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 0x1406721
push esi
push dword [ebp + 0xc]
push edi
call fcn.01427250
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 0x1406e40
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.014051c0
add esp, 4
test eax, eax
je 0x1406e69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.014054b0
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 0x1406ee1
movzx esi, word [eax + 0x14]
xor ecx, ecx
movzx edi, word [eax + 6]
add esi, 0x18
add esi, eax
xor eax, eax
mov dword [ebp - 4], esi
cmp ax, di
jae 0x1406ee1
mov ebx, dword [ebp + 0xc]
movzx edx, cx
lea eax, [edx + edx*4]
lea esi, [esi + eax*8]
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x1406ea9
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 4]
je 0x1406eb4
inc ecx
cmp cx, di
jae 0x1406ee1
mov esi, dword [ebp - 4]
jmp 0x1406e92
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 4]
test esi, esi
je 0x1406ed0
lea eax, [edx + edx*4]
mov ecx, dword [edi + eax*8 + 0x10]
mov eax, dword [edi + eax*8 + 8]
cmp ecx, eax
cmovbe ecx, eax
mov dword [esi], ecx
lea eax, [edx + edx*4]
mov eax, dword [edi + eax*8 + 0xc]
add eax, dword [ebp + 8]
pop edi
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 0x14075c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.01424f30
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0xfff
push eax
call fcn.01403570
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0142e05a
mov eax, dword [0x45bdb7c]
add esp, 0x1c
mov byte [ebp - 1], 0
test eax, eax
je 0x1407616
mov eax, dword [eax + 0x50]
test eax, eax
je 0x1407616
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 0x14095d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x14483d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.01424f7e
mov esi, eax
add esp, 4
test esi, esi
je 0x140961f
push 1
mov dword [ebp - 4], 0
call fcn.014262e0
add esp, 4
mov dword [esi + 4], eax
jmp 0x1409621
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x14098f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x144847f
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.014260d3
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 0x140997b
push eax
push esi
call fcn.014263e0
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.01425b85
int3
Function at 0x140a610
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov cl, byte [esi]
cmp cl, 0xe8
je 0x140a623
cmp cl, 0xe9
jne 0x140a675
mov eax, dword [ebp + 0x10]
push edi
add eax, esi
lea edi, [esi + 1]
add eax, dword [edi]
cmp eax, dword [0x45bcaf0]
jne 0x140a674
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 0x140a66c
mov eax, 0x140b5e0
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
mov cl, byte [esi]
pop edi
pop esi
cmp cl, 0xcc
je 0x140a686
cmp cl, 0x90
je 0x140a686
xor eax, eax
pop ebp
ret 0x18
mov eax, 1
pop ebp
ret 0x18

Function at 0x140b510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 3
call fcn.0140e430
mov esi, eax
add esp, 4
test esi, esi
jne 0x140b52a
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.01432590
push 0x100
push dword [ebp + 0x14]
lea eax, [esi + 0x64]
mov byte [esi + 0x63], 0
push eax
call fcn.01432590
mov eax, dword [ebp + 0x1c]
add esp, 0x18
mov byte [esi + 0x163], 0
mov dword [esi + 0x10], eax
cmp byte [0x45bcb39], 0
je 0x140b58f
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 0x140b5c2
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 0x140b5cf
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 0x140b620
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x45bdb60]
push edi
test esi, esi
je 0x140b657
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
sub eax, 2
je 0x140b647
sub eax, 1
je 0x140b647
sub eax, 1
jne 0x140b650
mov ecx, dword [esi + 0x38]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x140b635
mov esi, dword [0x45bcb24]
test esi, esi
je 0x140b749
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
nop dword [eax]
cmp byte [esi + 4], 0
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0xc], ebx
je 0x140b72a
mov eax, dword [esi]
cmp eax, 1
jne 0x140b6a2
call fcn.01401d80
push dword [esi + 0xc]
lea eax, [esi + 0x18]
push eax
call fcn.01401c40
call fcn.01401e00
jmp 0x140b726
cmp eax, 2
jne 0x140b6ac
mov eax, dword [esi + 0x28]
jmp 0x140b6b4
cmp eax, 3
jne 0x140b6e3
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push 4
push eax
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x140b726
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 8]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ecx
call edi
jmp 0x140b726
cmp eax, 4
jne 0x140b726
mov ebx, dword [esi + 0x1c]
lea ecx, [ebp - 4]
mov eax, dword [esi + 0x18]
push ecx
push 0x40
push ebx
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x140b723
push ebx
lea eax, [esi + 0x20]
push eax
push dword [ebp - 8]
call fcn.01427250
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
call edi
mov ebx, dword [ebp - 0xc]
mov byte [esi + 4], 0
push 0x164
push esi
call fcn.01424c68
add esp, 8
mov esi, ebx
test ebx, ebx
jne 0x140b670
pop ebx
mov dword [0x45bcb24], esi
mov eax, dword [0x45bcad0]
pop edi
pop esi
test eax, eax
je 0x140b75a
mov dword [eax], 0
mov esp, ebp
pop ebp
ret
Function at 0x140e900
Capabilities:
Set environment variable

Disassembly:
push 0x45bc264
call fcn.01425ba5
mov eax, dword [0x45bc268]
push 0x45bc264
mov dword [0x45bc26c], eax
call fcn.01425bc1
add esp, 8
ret
push esi
push edi
call fcn.01403e80
mov edi, dword [0x45bdb60]
test edi, edi
je 0x140e9e6
mov esi, edi
mov edi, dword [edi + 0x40]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x140e938
mov eax, dword [esi + 0x3c]
sub eax, 2
je 0x140e933
sub eax, 1
je 0x140e933
sub eax, 1
jne 0x140e938
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esi + 0x30]
call fcn.014010d0
mov ecx, dword [esi + 0x2c]
add esp, 4
cmp ecx, 0x10
jb 0x140e977
mov eax, dword [esi + 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x140e96d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140ea7d
mov eax, edx
push ecx
push eax
call fcn.01424c68
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 0x140e9bc
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x140e9b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140ea7d
mov eax, edx
push ecx
push eax
call fcn.01424c68
add esp, 8
push 0x44
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.01424c68
add esp, 8
test edi, edi
jne 0x140e915
mov dword [0x45bdb60], edi
mov eax, dword [0x45bdb78]
test eax, eax
je 0x140ea07
push 0xac
push eax
call fcn.01424c68
add esp, 8
mov dword [0x45bdb78], 0
mov eax, dword [0x45bdb7c]
test eax, eax
je 0x140ea28
push 0x218
push eax
call fcn.01424c68
add esp, 8
mov dword [0x45bdb7c], 0
mov edi, dword [0x45bdb88]
mov esi, dword [0x45bdb84]
mov dword [0x45bcad4], 0
cmp esi, edi
je 0x140ea5b
push 0xc
push dword [esi]
call fcn.01424c68
add esi, 4
add esp, 8
cmp esi, edi
jne 0x140ea42
mov esi, dword [0x45bdb84]
mov dword [0x45bdb88], esi
call fcn.0140e7e0
push 0x45bcb40
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
pop esi
jmp 0x14039a0
call fcn.01432537
int3
Function at 0x140eaa0
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 [0x45bcb24]
test esi, esi
je 0x140ebe4
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
cmp byte [esi + 4], 0
jne 0x140ebd7
mov eax, dword [esi]
cmp eax, 1
jne 0x140eaf9
call fcn.01401d80
push dword [esi + 0xc]
lea ebx, [esi + 0x18]
push ebx
call fcn.01401700
call fcn.01401e00
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140ebd3
mov eax, dword [ebx]
jmp 0x140ebd1
cmp eax, 2
jne 0x140eb34
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 0x140ebc7
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
jmp 0x140ebc5
cmp eax, 3
jne 0x140eb68
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 0x140ebc7
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
jmp 0x140ebc5
cmp eax, 4
jne 0x140ebd3
push 1
push dword [esi + 0x18]
call fcn.01405f70
push dword [esi + 0x1c]
mov dword [esi + 8], eax
lea eax, [esi + 0x20]
push dword [esi + 0x18]
push eax
call fcn.01427250
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 0x140ebc7
push ebx
lea eax, [esi + 0x28]
push eax
push dword [ebp - 8]
call fcn.01427250
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 0x140ebd3
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov byte [esi + 4], 1
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x140eac0
pop edi
pop ebx
mov byte [0x45bcb39], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x14129d0
Capabilities:
Query or enumerate registry value

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

Function at 0x1412a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x45bdbd0], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x1412a64
lea eax, [ebp - 4]
push eax
push 0x45bdbd0
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 0x1412a64
cmp dword [ebp - 8], 1
mov eax, 0x45bdbd0
je 0x1412a67
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x143433b
Capabilities:
Parse pe header

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

Function at 0x1438087
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4584678
push 0x4584670
push str.FlsAlloc
push 0x1f
call fcn.01437f4f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x14380bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x44491cc]
call esi
jmp 0x14380c1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1438105
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4584688
push 0x4584680
push str.FlsGetValue
push 0x21
call fcn.01437f4f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143813c
push dword [ebp + 8]
mov ecx, esi
call dword [0x44491cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1438144
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4584690
push 0x4584688
push str.FlsSetValue
push 0x22
call fcn.01437f4f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143817e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44491cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x143b9b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.01424f30
mov eax, dword [0x45bb068]
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.014386ba
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x143b9f3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x143bb4f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.01447d80
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 + 0x45bef30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0143c9ae
mov ecx, dword [esi*4 + 0x45bef30]
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 0x143bb48
cmp eax, dword [ecx + edi + 0x24]
jne 0x143bb48
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 0x143bb48
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0143c9ae
add esp, 0x14
test edx, edx
jl 0x143bb48
jg 0x143babe
test eax, eax
jb 0x143bb48
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x143bb48
jl 0x143bad8
cmp dword [ebp - 0x1008], eax
ja 0x143bb48
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x143baf6
test ebx, ebx
je 0x143bb2f
cmp ecx, edi
jae 0x143bb2f
mov al, byte [ecx]
cmp al, 0xd
jne 0x143bb10
lea eax, [edi - 1]
cmp ecx, eax
jae 0x143bb1c
cmp byte [ecx + 1], 0xa
jne 0x143bb1c
inc ecx
jmp 0x143bb1c
movzx eax, al
movsx eax, byte [eax + 0x45bb338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x143baf6
cmp edx, ebx
jne 0x143baf6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x143bb4d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.014251f9
leave
ret