joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b2c0b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100b2b87
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100b2d7a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100b2d7a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100b2d2f
jg 0x100b2c67
test eax, eax
je 0x100b2d25
push 1
push 0x1000
call fcn.100a614e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100b2c8a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100b2d1c
push 0x8000
push ebx
call fcn.100b2ab8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100b2cb3
jg 0x100b2cae
cmp ecx, 0x1000
jb 0x100b2cb3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100aa192
add esp, 0x10
cmp eax, 0xffffffff
je 0x100b2cf8
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100b2cae
jl 0x100b2cdf
test ecx, ecx
jne 0x100b2ca0
push dword [ebp - 0xc]
push ebx
call fcn.100b2ab8
push esi
call fcn.100a305a
add esp, 0xc
xor ebx, ebx
jmp 0x100b2d88
cmp byte [edi + 0x24], 0
je 0x100b2d0f
cmp dword [edi + 0x20], 5
jne 0x100b2d0f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100b2d1a
mov ebx, dword [edi + 0x18]
jmp 0x100b2d1c
xor ebx, ebx
push esi
call fcn.100a305a
pop ecx
jmp 0x100b2d88
test ecx, ecx
jg 0x100b2cf1
jl 0x100b2d2f
test eax, eax
jae 0x100b2cf1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100a8dab
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100b2d4f
cmp byte [edi + 0x1c], 0
je 0x100b2cf1
jmp 0x100b2d80
push ebx
call fcn.100b0f38
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100b2cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100b2d88
cmp byte [edi + 0x1c], 0
je 0x100b2d85
mov ebx, dword [edi + 0x18]
jmp 0x100b2d88
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100a8dab
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100b45b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100b45dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100b45dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430004]
jne 0x40100a
repz ret
jmp fcn.0040129c

Function at 0x40324b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x430004]
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.0040223e
and dword [ebp - 0x14], 0
cmp dword [0x432ab0], 0
mov dword [ebp - 0x18], eax
jne 0x4032fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4033a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4033a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x432ab0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x432ab4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x432ab8], eax
call edi
push eax
call esi
mov dword [0x432ac0], eax
test eax, eax
je 0x4032fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x432abc], eax
mov eax, dword [0x432abc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403357
cmp dword [0x432ac0], ecx
je 0x403357
push eax
call esi
push dword [0x432ac0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403357
test ebx, ebx
je 0x403357
call edi
test eax, eax
je 0x40334e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40334e
test byte [ebp - 8], 1
jne 0x403357
or dword [ebp + 0x10], 0x200000
jmp 0x40338a
mov eax, dword [0x432ab4]
cmp eax, dword [ebp - 0x18]
je 0x40338a
push eax
call esi
test eax, eax
je 0x40338a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40338a
mov eax, dword [0x432ab8]
cmp eax, dword [ebp - 0x18]
je 0x40338a
push eax
call esi
test eax, eax
je 0x40338a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x432ab0]
call esi
test eax, eax
je 0x4033a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4033a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4054f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x430b10]
sub esp, 0x10
push esi
mov esi, dword [0x477e78]
push edi
mov edi, dword [0x478154]
push eax
call fcn.004053e0
add esp, 4
cmp dword [0x478154], 0x2f
jne 0x405550
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Bihux_nivew_zuziduzaz_winojego_roli
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00405430
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405800
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x478154]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x405822
push 0
push 0
call edi
mov eax, dword [0x478154]
cmp esi, 0x845013
jne 0x405839
mov eax, dword [0x431930]
add eax, 0xa231
mov dword [0x478154], eax
cmp eax, 0x141
jne 0x405854
mov dword [0x432ff0], 0xec58acac
mov dword [0x432ff4], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x405810
call fcn.00405560
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40c090], 1
mov dword [0x40c08c], 1
mov dword [0x40c088], 1
mov dword [0x40c080], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40c014], eax
mov eax, dword [0x40c09c]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.unk_124
call sym.unk_111
mov edx, dword [0x40c0b0]
mov dword [eax], edx
call sym.unk_143
mov edx, dword [0x40c098]
mov dword [eax], edx
call sym.unk_20
cmp dword [0x409020], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.unk_124
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], sym.unk_24
call sym.unk_31
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x401600
Capabilities:
Delete file

Disassembly:
push ebx
sub esp, 0x28
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x1c], eax
xor eax, eax
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x4016a0
mov edx, dword [0x409008]
test edx, edx
jne 0x401640
mov eax, dword [esp + 0x1c]
sub eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x4016bf
add esp, 0x28
pop ebx
ret
lea eax, [esp + 0x18]
mov dword [esp + 8], 0x40a054
mov dword [esp + 4], str.c:_nmap_log.txt
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fopen_s]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401625
lea eax, [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym.unk_46
mov eax, dword [esp + 0x18]
mov dword [esp + 4], 0x40a056
mov dword [esp], eax
call sym._fprintf
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym._fclose
jmp 0x401625
mov dword [0x409008], 0
mov dword [esp], str.c:_nmap_log.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
jmp 0x40161b
call sym.unk_115
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x402340
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.unk_93
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.unk_93
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.unk_142
call sym._abort
lea esi, [esi]

Function at 0x4023a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40c0a4]
test esi, esi
jle 0x4024c0
mov eax, dword [0x40c0a8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4023d4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402457
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4023c0
mov dword [esp], ebx
call sym.unk_40
mov edi, eax
test eax, eax
je 0x4024e7
mov eax, dword [0x40c0a8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.unk_43
mov edx, dword [0x40c0a8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4024c7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402450
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402460
add dword [0x40c0a4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40c0a8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402450
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.unk_27
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4023de
mov eax, dword [0x40c0a8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.unk_27
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.unk_27
lea esi, [esi]
nop
Function at 0x4029a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40c0c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c0b8]
sub esp, 4
test ebx, ebx
je 0x4029f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4029ee
test esi, esi
je 0x4029ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4029d0
mov dword [esp], 0x40c0c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402d20
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402d45
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402d50
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402d45
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x402d98
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402d8e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402d9a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402d80
xor eax, eax
pop ebx
pop esi
ret
Function at 0x100010e0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
mov byte [ebp - 1], 0xe9
push eax
push 1
lea eax, [ebp - 1]
push eax
push 0x502127
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call esi
mov eax, 0x10001dd0
sub eax, 0x50212c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x502128
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push 0x50212c
call esi
mov eax, 0x50212c
mov byte [eax], 0x90
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push 1
push 0x50212c
call esi
push 0
push 0
push dword [ebp + 8]
push 0x10001180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001e10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x144]
push ebx
push esi
push edi
push ecx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001e61
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x10001e77
lea eax, [ebp - 0x144]
inc esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10001e43
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 0x10013170
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100021b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100021b1
mov esp, ebp
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x407237
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.0040717b
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add ebx, 0x23f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov esi, dword [ebp - 8]
mov eax, esi
mov ecx, dword [0x723eb4]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4072c2
push 0x401128
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x723eb4]
mov edx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x723ef8]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x723ef8], eax
mov eax, dword [0x723f00]
cmove eax, dword [ebp - 0x24]
mov dword [0x723f00], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x723efc], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
shl eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
mov dword [ebp - 0x14], ebx
dec edi
jne 0x407287
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4073a1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x4073dd
cmp dword [0x723eb4], 0x959
jne 0x4073cd
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00407237
add edi, 8
dec esi
jne 0x4073b1
pop edi
pop esi
pop ebp
ret 4
Function at 0x4103ff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4454a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a613
mov dword [ebp - 0x14], eax
cmp dword [0x724c94], esi
jne 0x4104f2
push 0x800
push esi
push 0x40512c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41047f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4105d2
push esi
push esi
push 0x40512c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4105d2
push 0x405144
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4105d2
push eax
call ebx
push 0x405150
push edi
mov dword [0x724c94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405160
push edi
mov dword [0x724c98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405174
push edi
mov dword [0x724c9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x724ca4], eax
test eax, eax
je 0x4104ef
push 0x405190
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x724ca0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410517
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41050a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41052c
push 4
pop eax
jmp 0x4105d4
cmp dword [ebp - 0x14], esi
je 0x41052c
push dword [0x724c94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410511
mov eax, dword [0x724ca0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41058a
cmp dword [0x724ca4], edi
je 0x41058a
push eax
call ebx
push dword [0x724ca4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41058a
test eax, eax
je 0x41058a
call ecx
test eax, eax
je 0x41057f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41057f
test byte [ebp - 8], 1
jne 0x41058a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4105ba
mov eax, dword [0x724c98]
cmp eax, edi
je 0x4105b7
push eax
call ebx
test eax, eax
je 0x4105b7
call eax
mov esi, eax
test esi, esi
je 0x4105b7
mov eax, dword [0x724c9c]
cmp eax, edi
je 0x4105b7
push eax
call ebx
test eax, eax
je 0x4105b7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x724c94]
call ebx
test eax, eax
je 0x4105d2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4105d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409c4e
mov esp, ebp
pop ebp
ret
Function at 0x401513
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x402028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x402004]
lea eax, [ebp - 0x48]
push edi
lea edi, [ebp - 0x48]
push 0x402018
lea esi, [esi - 0x10]
movsd dword es:[edi], dword [esi]
push section..data
push 0x401490
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [0x402020], esi
mov dword [0x402024], esi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x401581
mov ecx, dword [0x402004]
movzx eax, word [ecx]
push eax
push ecx
push 2
push dword [0x40201c]
push dword [0x402018]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
xor edi, edi
inc edi
cmp dword [section..data], 5
jbe 0x40164d
mov ecx, dword [0x40200c]
mov edx, 0x20000
and ecx, edx
mov eax, esi
or eax, ecx
je 0x40164d
mov ecx, dword [0x402014]
mov eax, ecx
and eax, edx
cmp esi, dword [0x402010]
jne 0x40164d
cmp eax, ecx
jne 0x40164d
mov dword [ebp - 0x18], 0x4010f0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x12
mov dword [ebp - 0xc], esi
mov al, byte [0x401208]
mov ecx, 0x401199
movzx eax, word [0x40119a]
sub ecx, 0x401188
mov dword [ebp - 0x54], eax
or ecx, 0xb000000
mov eax, dword [0x402004]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x34], esi
movzx eax, word [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push 3
push esi
push esi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], 2
push eax
push dword [0x40201c]
mov dword [ebp - 0x28], 0x4011a4
push dword [0x402018]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x2a
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
push edi
push esi
push esi
push 0x401104
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401680
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401ba4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401e80
call fcn.00401dc0
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401c04
cmp eax, 0xffffffff
je 0x401c04
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401bfd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401bfd
cmp edx, 0x10000000
jae 0x401bfd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401bfa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00401e05
ret 4