joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12f4a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x131b010]
push edi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x850375
nop
push eax
call 0x770be026
nop
mov ebx, eax
push 0x13249e8
mov dword [ebp - 4], ebx
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
mov byte [ebx + edi], 0
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x12f4b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
call 0x755443d3
nop
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x13249e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x12f4b06
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
push 0x13249e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x85037a
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x12f6ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x12f6f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x75539910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x12f6fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x12f6fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x12f6f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
call 0x75539910
nop
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x12f6fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x12f6fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x12f6fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.015290f4]
push eax
call dword [fcn.01529088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x12f6f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.012f7590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x17f2af0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x15290e0]
test esi, esi
jne 0x17f2b08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x17f2b01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x17f2b01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x17f2b6a
jmp 0x17f2b50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x1528bf0]
add eax, esi
call fcn.017f0610
test eax, eax
je 0x17f2b73
inc edi
cmp edi, dword [ebp - 4]
jb 0x17f2b50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401050
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4010c4
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call edi
add esp, 8
test eax, eax
je 0x4010de
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4010a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011db
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011db
mov esp, ebp
pop ebp
ret

Function at 0x401100
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.LOCALAPPDATA
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
push eax
push str._sProgramsZaperonZaperon.exe
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401010
add esp, 0x18
mov ecx, str.Health_Check.exe
call fcn.00401050
test eax, eax
je 0x4011a4
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4011cd
mov ecx, 0x402130
call fcn.00401050
test eax, eax
jne 0x40118f
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call esi
push 0x1388
call ebx
mov ecx, str.Health_Check.exe
call fcn.00401050
test eax, eax
jne 0x401160
push 0x10
push str.Process_Monitor
push str.Monitor_process_not_found._Exiting.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011db
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Process_Monitor
push str.Application_path_does_not_exist._Exiting.
jmp 0x4011b0

Function at 0x401557
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x40158c
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x401589
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x401595
add edx, 0x28
cmp edx, esi
jne 0x401577
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401592
Function at 0x401a04
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a43
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a43
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a43
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a43
cmp dword [ecx + 0x74], 0xe
jbe 0x401a43
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x1692e53
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x19146d9
jmp 0x19147ed
push edi
mov edi, esp
add edi, 4
sub edi, 4
xchg dword [esp], edi
mov esp, dword [esp]
mov dword [esp], esi
mov dword [esp], edx
mov dword [esp], ebp
jmp 0x191480d
jmp 0x194dca9
jmp fcn.0194dd61
Function at 0x1401b60
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 0x1401c28
nop dword [eax]
cmp edi, dword [0x158a40c]
jb 0x1401ba8
cmp edi, dword [0x158a410]
ja 0x1401ba8
sub edi, 0x8000000
jmp 0x1401c20
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 0x1401c28
cmp dword [ebp - 0xc], 0x10000
jne 0x1401c0b
cmp dword [ebp - 0x10], 0x10000
jb 0x1401c0b
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x1401cda
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1401c28
sub edi, 0x10000
jmp 0x1401c20
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 0x1401b90
movzx eax, si
test eax, eax
je 0x1401c37
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x1401cd8
cmp esi, dword [0x158a40c]
jb 0x1401c5a
cmp esi, dword [0x158a410]
ja 0x1401c5a
add esi, 0x8000000
jmp 0x1401cd0
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 0x1401cd8
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x1401cbb
cmp ecx, 0x10000
jb 0x1401cbb
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x1401cda
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1401cd8
add esi, 0x10000
jmp 0x1401cd0
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1401cd0
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1401c42
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1402000
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x15b5fa0], eax
je 0x14025fc
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x15b5fa4]
test eax, eax
jne 0x1402711
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x140261b
lea eax, [ebx + 0x57]
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1402638
cmp dword [edi], 0
jne 0x1402645
mov dword [0x15b5fa4], 6
mov dword [0x15b5fa8], edi
pop edi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push 0x18
call fcn.01420bee
mov esi, eax
add esp, 4
test esi, esi
jne 0x140265e
lea ebx, [eax + 8]
jmp 0x14026f1
push 0
push dword [edi]
call fcn.01402550
push 0
push ebx
mov dword [ebp + 0xc], eax
call fcn.01402550
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 0x14026e3
cmp ecx, 0x1e
ja 0x14026e3
cmp dword [ebx + 0x44], edx
jne 0x14026e3
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 0x14026b2
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x14026f1
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 [0x15b5fb0]
mov dword [esi], eax
xor eax, eax
mov dword [0x15b5fb0], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x15b5f98], 0
mov ebx, 9
jne 0x14026fb
mov dword [0x15b5fa4], ebx
test esi, esi
je 0x1402706
push 0x18
push esi
call fcn.01420932
add esp, 8
pop esi
mov dword [0x15b5fa8], edi
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1402720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x15b5fa0], 0
jne 0x1402797
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x15b5fa0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1402797
push esi
mov esi, dword [0x15b5f90]
mov dword [0x15b5fb0], eax
mov dword [0x15b5fac], eax
mov dword [0x15b5fa8], eax
test esi, esi
je 0x140277c
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1402788
mov esi, dword [esi + 4]
test esi, esi
jne 0x1402760
xor eax, eax
mov dword [0x15b5fa4], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x15b5fa4], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x1403e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov ecx, 0x44
mov dword [ebp - 4], eax
mov dl, 0x57
push edi
mov edi, dword [ebp + 8]
cmp esi, ecx
jbe 0x1403e91
nop dword [eax]
xor byte [ecx + edi], dl
lea eax, [ecx + edi]
mov al, byte [eax]
inc ecx
add al, 0x57
add dl, al
cmp ecx, esi
jb 0x1403e80
xor dword [edi + 0x4c], 0x7a32bc85
xor dword [edi + 0x50], 0x49c042d1
add dword [edi + 0x54], 0xfffffff4
xor dword [edi + 0x58], 0x872c3d47
xor ebx, ebx
movups xmm0, xmmword [edi + 0x44]
movups xmmword [0x35b69e8], xmm0
movq xmm0, qword [edi + 0x54]
movq qword [0x35b69f8], xmm0
movzx eax, bx
lea eax, [eax + eax*4]
cmp dword [edi + eax*4 + 0x6c], 0
lea esi, [edi + eax*4]
je 0x1403eda
mov eax, dword [esi + 0x68]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
cmp eax, ecx
jbe 0x1403efa
sub eax, ecx
push eax
mov eax, dword [esi + 0x5c]
add eax, ecx
push 0
push eax
call fcn.014229e0
mov ecx, dword [esi + 0x64]
add esp, 0xc
mov eax, dword [esi + 0x68]
push ecx
add eax, edi
push eax
push dword [esi + 0x5c]
call fcn.01422460
inc ebx
add esp, 0xc
cmp bx, word [edi + 0x48]
jbe 0x1403ec4
mov ecx, dword [edi + 0x58]
add ecx, 0xc
mov dword [ebp + 0x14], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x1403f74
mov eax, dword [edi + 0x50]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 4]
add eax, 0x14
add esi, dword [edi + 0x50]
mov dword [ebp + 0x14], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1403f6e
mov eax, ecx
and eax, 0x7fffffff
test ecx, ecx
js 0x1403f58
mov ecx, dword [edi + 0x50]
add ecx, 2
add eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
jne 0x1403f45
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
jne 0x1403f22
mov ecx, dword [edi + 0x54]
push 0
push 1
push 0
call ecx
push dword [ebp + 0x10]
mov ecx, dword [edi + 0x4c]
call ecx
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1404ca0
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x1404d1f
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 0x1404d1f
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 0x1404ce7
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 4]
je 0x1404cf2
inc ecx
cmp cx, di
jae 0x1404d1f
mov esi, dword [ebp - 4]
jmp 0x1404cd0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 4]
test esi, esi
je 0x1404d0e
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 0x14053a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.01420ba0
push 0x1000
lea eax, [ebp - 0x1000]
push 0
push eax
call fcn.014229e0
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.01401ae0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0142939a
mov eax, dword [0x35b6a60]
add esp, 0x1c
mov byte [ebp - 1], 0
test eax, eax
je 0x140540c
mov eax, dword [eax + 0x50]
test eax, eax
je 0x140540c
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 0x1406f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1443480
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.01420bee
mov esi, eax
add esp, 4
test esi, esi
je 0x1406f6f
push 1
mov dword [ebp - 4], 0
call fcn.01421a5b
add esp, 4
mov dword [esi + 4], eax
jmp 0x1406f71
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 0x14071b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x144352f
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.014216de
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 0x140723b
push eax
push esi
call fcn.01421b5b
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.014218a5
int3
Function at 0x1408dc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp eax, 2
jne 0x1408e03
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x35b6a84
push 0x40
mov edi, dword [eax + 4]
push 4
push edi
call ebx
test eax, eax
je 0x1408e4b
mov eax, dword [esi + 8]
push 0x35b6a84
mov dword [edi], eax
push dword [0x35b6a84]
push 4
push edi
call ebx
jmp 0x1408e4b
cmp eax, 3
jne 0x1408e3a
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x35b6a84
push 0x40
mov edi, dword [eax]
push 4
push edi
call ebx
test eax, eax
je 0x1408e4b
mov eax, dword [esi + 8]
push 0x35b6a84
mov dword [edi], eax
push dword [0x35b6a84]
push 4
push edi
call ebx
jmp 0x1408e4b
cmp eax, 1
jne 0x1408e4b
push dword [esi + 0xc]
lea eax, [esi + 8]
push eax
call fcn.014025e0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1408e64
push 0
push eax
call fcn.01420932
add esp, 8
mov dword [esi + 0x30], 0
push 0x34
push esi
call fcn.01420932
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x140ef50
Capabilities:
Query or enumerate registry value

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

Function at 0x140efa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x35b6ad0], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x140efe4
lea eax, [ebp - 4]
push eax
push 0x35b6ad0
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 0x140efe4
cmp dword [ebp - 8], 1
mov eax, 0x35b6ad0
je 0x140efe7
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8