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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x159e0c0], eax
je 0x1402a05
pop edi
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x159e0bc]
test eax, eax
jne 0x1402bb6
test edi, edi
jne 0x1402a1f
lea eax, [edi + 0x57]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1402a38
cmp dword [ebx], 0
jne 0x1402a43
mov dword [0x159e0bc], 6
mov dword [0x159e0c8], ebx
pop edi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x18
call fcn.0141e475
mov esi, dword [ebx]
add esp, 4
mov dword [ebp - 8], eax
test esi, esi
je 0x1402aba
cmp byte [esi], 0xff
jne 0x1402a7a
cmp byte [esi + 1], 0x25
jne 0x1402a7a
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401bd0
test al, al
je 0x1402a7a
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1402aba
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov al, byte [esi]
cmp al, 0xff
jne 0x1402aae
cmp byte [esi + 1], 0x25
jne 0x1402aba
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401bd0
test al, al
je 0x1402aba
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
jmp 0x1402aba
cmp al, 0xe9
jne 0x1402aba
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
cmp byte [edi], 0xff
jne 0x1402add
cmp byte [edi + 1], 0x25
jne 0x1402add
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401bd0
test al, al
je 0x1402add
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x1402b1d
movsx eax, byte [edi + 1]
add edi, 2
add edi, eax
mov al, byte [edi]
cmp al, 0xff
jne 0x1402b11
cmp byte [edi + 1], 0x25
jne 0x1402b1d
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401bd0
test al, al
je 0x1402b1d
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
jmp 0x1402b1d
cmp al, 0xe9
jne 0x1402b1d
mov eax, dword [edi + 1]
add edi, 5
add edi, eax
movzx eax, byte [esi + 0x36]
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x1402b8c
cmp eax, 0x1e
ja 0x1402b8c
cmp dword [esi + 0x44], edi
jne 0x1402b8c
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1402b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1402b9a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0x10], esi
mov dword [ecx + 4], 1
mov eax, dword [ebp - 4]
pop esi
mov dword [ecx + 0x14], eax
mov eax, dword [0x159e0d4]
pop edi
mov dword [ecx], eax
xor eax, eax
mov dword [0x159e0d4], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x159e030], 0
mov esi, 9
jne 0x1402ba0
mov dword [0x159e0bc], esi
push 0x18
push dword [ebp - 8]
call fcn.0141e43b
add esp, 8
mov dword [0x159e0c8], ebx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1403ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 4], eax
mov ecx, 0x44
mov dl, 0x57
cmp esi, ecx
jbe 0x1403cd1
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 0x1403cc0
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 [0x159e044], xmm0
movq xmm0, qword [edi + 0x54]
movq qword [0x159e054], xmm0
movzx eax, bx
lea eax, [eax + eax*4]
cmp dword [edi + eax*4 + 0x6c], 0
lea esi, [edi + eax*4]
je 0x1403d1a
mov eax, dword [esi + 0x68]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
cmp eax, ecx
jbe 0x1403d3a
sub eax, ecx
push eax
mov eax, dword [esi + 0x5c]
add eax, ecx
push 0
push eax
call fcn.01420890
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.01420aa0
inc ebx
add esp, 0xc
cmp bx, word [edi + 0x48]
jbe 0x1403d04
mov ecx, dword [edi + 0x58]
add ecx, 0xc
mov dword [ebp + 0xc], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x1403db4
mov eax, dword [edi + 0x50]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
add eax, 0x14
add esi, dword [edi + 0x50]
mov dword [ebp + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1403dae
mov eax, ecx
and eax, 0x7fffffff
test ecx, ecx
js 0x1403d98
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 0x1403d85
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
jne 0x1403d62
mov ecx, dword [edi + 0x54]
push 0
push 1
push 0
call ecx
push dword [ebp + 8]
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 0x1404510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x143f2ef
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.0141eef2
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 0x140459b
push eax
push esi
call fcn.0141f310
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.0141f084
int3
Function at 0x1404a50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1000
call fcn.0143efc0
push 0x1000
lea eax, [esp + 4]
push 0
push eax
call fcn.01420890
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0x1000
push eax
call fcn.01401070
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.01425f64
mov eax, dword [0x159e084]
add esp, 0x1c
test eax, eax
je 0x1404ab3
mov eax, dword [eax + 0x50]
push str.escape_n
call eax
add esp, 4
push 0x10
push str.Fatal_Error
lea eax, [esp + 8]
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 0x1406a90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
je 0x1406ace
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x159f0a8
push 0x40
mov edi, dword [eax + 4]
push 4
push edi
call ebx
test eax, eax
je 0x1406b1b
mov eax, dword [esi + 8]
push 0x159f0a8
mov dword [edi], eax
push dword [0x159f0a8]
push 4
push edi
call ebx
jmp 0x1406b1b
cmp dword [esi + 0x20], 0
je 0x1406b06
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x159f0a8
push 0x40
mov edi, dword [eax]
push 4
push edi
call ebx
test eax, eax
je 0x1406b1b
mov eax, dword [esi + 8]
push 0x159f0a8
mov dword [edi], eax
push dword [0x159f0a8]
push 4
push edi
call ebx
jmp 0x1406b1b
call fcn.014020b0
mov edx, dword [esi + 0xc]
lea ecx, [esi + 8]
call fcn.014029e0
call fcn.01402140
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1406b2d
push 0
push eax
call fcn.0141e43b
add esp, 8
push 0x34
push esi
call fcn.0141e43b
add esp, 8
pop edi
pop esi
pop ebx
ret
Function at 0x14086d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x14087b6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x14087a5
jg 0x1408710
test edx, edx
je 0x14087a5
nop dword [eax]
call fcn.0140ae10
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1408764
jg 0x1408727
test esi, esi
je 0x1408764
cmp ebx, eax
jg 0x1408737
jl 0x1408731
cmp edi, esi
jae 0x1408737
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.01420aa0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1408789
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x140879f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x1408710
jl 0x140879f
test edi, edi
jne 0x1408710
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x14087d8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x14087da
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x1408858
jg 0x14087ed
test esi, esi
je 0x1408858
test eax, eax
jl 0x140883c
jg 0x14087f7
test ebx, ebx
je 0x140883c
cmp edi, eax
jg 0x1408807
jl 0x1408801
cmp esi, ebx
jae 0x1408807
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.01420aa0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x1408858
jg 0x140883f
test esi, esi
je 0x1408858
jmp 0x140883f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1408858
push eax
push esi
push 1
push edx
call fcn.0142a767
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1408dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1408ddc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1408e0e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1408e0e
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1408ee2
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1408e36
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1408e5f
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0142a003
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x1408eb5
sub eax, 1
je 0x1408eb5
sub eax, 2
jne 0x1408ee2
push dword [esi + 0x4c]
movsx eax, byte [ebp - 1]
push eax
call fcn.0142a003
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x1408ed2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0142a767
add esp, 0x10
cmp edi, eax
jne 0x1408ee2
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x1408e03
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x140ae50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x143f5ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
push 0
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x14], ebx
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.01404920
push 8
call fcn.0141e475
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.0141f210
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.0140bf70
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [esi]
mov byte [ebp + 0xb], al
call dword [edx + 8]
test eax, eax
je 0x140af66
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x140af82
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.01404920
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x140d700
Capabilities:
Query or enumerate registry value

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

Function at 0x140d780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x159f0b8], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x140d7c4
lea eax, [ebp - 4]
push eax
push 0x159f0b8
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 0x140d7c4
cmp dword [ebp - 8], 1
mov eax, 0x159f0b8
je 0x140d7c7
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x1430f88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01430dfe
Function at 0x4145af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422b70
cmp edx, dword [eax]
je 0x4145d1
add eax, 8
inc ecx
cmp eax, 0x422c00
jl 0x4145c2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422b70]
jne 0x4146ff
mov eax, dword [0x4296dc]
cmp eax, 1
je 0x4146d9
test eax, eax
jne 0x414602
cmp dword [0x420194], 1
je 0x4146d9
cmp edx, 0xfc
je 0x4146ff
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414639
lea eax, [ebp - 0x1a4]
push 0x41c1d8
push eax
call fcn.0040bb60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41467c
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c1ac
push edi
call fcn.0040ca50
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x41ca48
push eax
call fcn.0040bb60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bb70
lea eax, [ebp - 0xa0]
push 0x41c1a8
push eax
call fcn.0040bb70
push dword [esi + 0x422b74]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bb70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x41c1b0
push eax
call fcn.00412420
add esp, 0x2c
pop edi
jmp 0x4146ff
lea eax, [ebp + 8]
lea esi, [esi + 0x422b74]
push 0
push eax
push dword [esi]
call fcn.0040c050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406280
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4544ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40418c
call fcn.0040746b
push 4
mov dword [esp + 0x18], 0
call fcn.00408609
mov edi, eax
add esp, 4
test edi, edi
je 0x4062f4
push ebx
call fcn.00407266
mov dword [edi], eax
call fcn.00407025
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040742c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4062e8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00407454
pop ebx
jmp 0x4062f6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4091db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x457354]
jne 0x4091e5
repz ret
jmp fcn.0040d7cc
Function at 0x411717
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x457354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b403
and dword [ebp - 0x14], 0
cmp dword [0x45caa4], 0
mov dword [ebp - 0x18], eax
jne 0x4117ca
push 0x403e98
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411872
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e8c
push ebx
call edi
test eax, eax
je 0x411872
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e7c
push ebx
mov dword [0x45caa4], eax
call edi
push eax
call esi
push 0x403e68
push ebx
mov dword [0x45caa8], eax
call edi
push eax
call esi
push 0x403e4c
push ebx
mov dword [0x45caac], eax
call edi
push eax
call esi
mov dword [0x45cab4], eax
test eax, eax
je 0x4117ca
push 0x403e34
push ebx
call edi
push eax
call esi
mov dword [0x45cab0], eax
mov eax, dword [0x45cab0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411823
cmp dword [0x45cab4], ecx
je 0x411823
push eax
call esi
push dword [0x45cab4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411823
test ebx, ebx
je 0x411823
call edi
test eax, eax
je 0x41181a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41181a
test byte [ebp - 8], 1
jne 0x411823
or dword [ebp + 0x10], 0x200000
jmp 0x411856
mov eax, dword [0x45caa8]
cmp eax, dword [ebp - 0x18]
je 0x411856
push eax
call esi
test eax, eax
je 0x411856
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411856
mov eax, dword [0x45caac]
cmp eax, dword [ebp - 0x18]
je 0x411856
push eax
call esi
test eax, eax
je 0x411856
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45caa4]
call esi
test eax, eax
je 0x411872
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411874
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004091db
leave
ret
Function at 0x44e7c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xd38
cmp dword [0x7e080c], 0x37
jne 0x44e856
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 0x53c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x7e1800]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x7e0774]
mov byte [edx + esi], cl
add esp, 0xd38
ret