joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a735
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.00432450
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x46a892
push ebx
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push str.___s
push eax
call fcn.004241a8
lea eax, [ebp - 0x10004]
push eax
call fcn.0042370c
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x46a7ad
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x46a7ad
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46a7c7
cmp byte [ebp + 0x10], al
je 0x46a883
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46a87a
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.004238f0
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
mov eax, dword [ebp - 0x4fff6]
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.00424bcb
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x46a887
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x46a890
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push edi
xor ebp, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov esi, 1
mov dword [esp + 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x10], eax
je 0x401064
push eax
call fcn.0040209d
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebx, eax
push ebx
push ecx
push ebp
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401064
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0x40917c
push ebx
call sub.VERSION.dll_VerQueryValueA
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x10], eax
je 0x4010b5
push eax
call fcn.0040209d
mov edx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
push ebp
push edx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4010b5
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x40917c
push ebp
call sub.VERSION.dll_VerQueryValueA
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4010e3
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4010e3
mov eax, dword [edi + 8]
mov ecx, dword [edx + 8]
cmp ecx, eax
jne 0x4010dd
mov eax, dword [edi + 0xc]
mov ecx, dword [edx + 0xc]
cmp ecx, eax
jne 0x4010dd
xor esi, esi
jmp 0x4010e3
sbb esi, esi
and esi, 2
dec esi
test ebx, ebx
je 0x4010f0
push ebx
call fcn.00402098
add esp, 4
test ebp, ebp
je 0x4010fd
push ebp
call fcn.00402098
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x401110
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov word [esp + 0x44], ax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x60]
test eax, eax
pop edi
je 0x40118e
mov ecx, dword [esp]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 0x54
ret
Function at 0x4018b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push 0x4092e4
push 0x85
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401938
push ebx
push ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401936
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40192e
mov eax, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40192e
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x403333
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x409628
call fcn.00404184
mov edi, 0x94
mov eax, edi
call fcn.00402da0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40ba8c], ecx
mov eax, dword [esi + 4]
mov dword [0x40ba98], eax
mov edx, dword [esi + 8]
mov dword [0x40ba9c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40ba90], esi
cmp ecx, 2
je 0x403393
or esi, 0x8000
mov dword [0x40ba90], esi
shl eax, 8
add eax, edx
mov dword [0x40ba94], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4033ce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4033ce
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4033e6
cmp eax, 0x20b
je 0x4033d3
mov dword [ebp - 0x1c], esi
jmp 0x4033fa
cmp dword [ecx + 0x84], 0xe
jbe 0x4033ce
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4033f4
cmp dword [ecx + 0x74], 0xe
jbe 0x4033ce
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00405c2c
pop ecx
test eax, eax
jne 0x403426
cmp dword [0x40b99c], 1
jne 0x403413
call fcn.004053e1
push 0x1c
call fcn.00405269
push 0xff
call fcn.004050ce
pop ecx
pop ecx
call fcn.00405b8a
mov dword [ebp - 4], esi
call fcn.004059df
test eax, eax
jge 0x40343f
push 0x1b
call fcn.0040330e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d034], eax
call fcn.004058bd
mov dword [0x40b994], eax
call fcn.0040581b
test eax, eax
jge 0x403465
push 8
call fcn.0040330e
pop ecx
call fcn.004055e8
test eax, eax
jge 0x403476
push 9
call fcn.0040330e
pop ecx
push 1
call fcn.004050fe
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40348c
push eax
call fcn.0040330e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040558b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4034ad
movzx eax, word [ebp - 0x40]
jmp 0x4034b0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401940
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4034ce
push edi
call fcn.00405229
call fcn.0040524b
jmp 0x403500
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004041bf
ret
Function at 0x40409e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402da0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404139
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40ba8c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404139
cmp eax, 1
je 0x40415a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404139
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404106
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404135
xor eax, eax
inc eax
jmp 0x404179
cmp edi, eax
jae 0x40413d
xor eax, eax
jmp 0x404179
cmp eax, esi
jae 0x404144
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40ba8c]
jmp 0x40415d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405168
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40bacc], esi
push edi
jne 0x405188
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40bac8], esi
mov byte [0x40bac4], al
jne 0x4051ee
mov ecx, dword [0x40d028]
test ecx, ecx
je 0x4051cf
mov eax, dword [0x40d024]
sub eax, 4
cmp eax, ecx
jmp 0x4051c8
mov eax, dword [eax]
test eax, eax
je 0x4051ba
call eax
mov eax, dword [0x40d024]
sub eax, 4
cmp eax, dword [0x40d028]
mov dword [0x40d024], eax
jae 0x4051b2
mov eax, 0x40b020
mov esi, 0x40b028
cmp eax, esi
mov edi, eax
jae 0x4051ee
mov eax, dword [edi]
test eax, eax
je 0x4051e7
call eax
add edi, 4
cmp edi, esi
jb 0x4051df
mov eax, 0x40b02c
mov esi, 0x40b030
cmp eax, esi
mov edi, eax
jae 0x40520d
mov eax, dword [edi]
test eax, eax
je 0x405206
call eax
add edi, 4
cmp edi, esi
jb 0x4051fe
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405227
push dword [ebp + 8]
mov dword [0x40bacc], 1
call fcn.004050ce
pop ebp
ret
Function at 0x405269
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40b0fc]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40b248]
je 0x4052a0
inc eax
cmp eax, 0x13
jb 0x405291
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b248]
jne 0x4053c3
mov eax, dword [0x40b99c]
cmp eax, 1
je 0x40539e
cmp eax, edx
jne 0x4052d0
cmp dword [0x40b104], 1
je 0x40539e
cmp ecx, 0xfc
je 0x4053c3
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405306
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004035d0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004036d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40533a
mov eax, edi
push eax
call fcn.004036d0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x409c2c
push edi
call fcn.004067c0
add esp, 0x10
push edi
call fcn.004036d0
push dword [esi + 0x40b24c]
mov ebx, eax
call fcn.004036d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402da0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004035d0
push edi
push ebx
call fcn.004035e0
push 0x409c28
push ebx
call fcn.004035e0
push dword [esi + 0x40b24c]
push ebx
call fcn.004035e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407195
add esp, 0x2c
jmp 0x4053c3
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40b24c]
push dword [esi]
call fcn.004036d0
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00402d89
add ebp, 0x90
leave
ret
Function at 0x406aea
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406b18
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406b1f
cmp ebx, dword [eax + 4]
jae 0x406b1f
xor eax, eax
jmp 0x406d0f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406b30
xor eax, eax
inc eax
jmp 0x406d0e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406b46
cmp ecx, edx
jae 0x406c8b
cmp dword [eax + 4], 0
je 0x406b4f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406b37
cmp dword [ebp + 8], 0
je 0x406b71
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406c8b
cmp eax, esi
jae 0x406c8b
mov eax, dword [0x40bc10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406b96
cmp dword [esi*4 + 0x40bc18], edi
je 0x406c8f
inc esi
cmp esi, eax
jl 0x406b84
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406d0b
cmp dword [ebp - 8], 0x1000000
jne 0x406d0b
test byte [ebp - 0xc], 0xcc
je 0x406c14
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406d0b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406d0b
cmp word [eax + 0x18], 0x10b
jne 0x406d0b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406d0b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406c14
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406c14
test byte [ecx + 0x27], 0x80
jne 0x406c8b
push 1
push 0x40bc58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406b28
mov ecx, dword [0x40bc10]
test ecx, ecx
mov edx, ecx
jle 0x406c48
lea eax, [ecx*4 + 0x40bc14]
cmp dword [eax], edi
je 0x406c48
dec edx
sub eax, 4
test edx, edx
jg 0x406c3c
test edx, edx
jne 0x406c79
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406c55
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406c6d
lea eax, [edx*4 + 0x40bc18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406c5b
cmp ecx, 0x10
jge 0x406c79
inc ecx
mov dword [0x40bc10], ecx
push 0
push 0x40bc58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406b28
xor eax, eax
jmp 0x406d0e
test esi, esi
jle 0x406b28
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40bc58
call ebx
test eax, eax
jne 0x406b28
cmp dword [esi*4 + 0x40bc18], edi
je 0x406ce5
mov eax, dword [0x40bc10]
lea esi, [eax - 1]
test esi, esi
jl 0x406cd3
cmp dword [esi*4 + 0x40bc18], edi
je 0x406ccf
dec esi
jns 0x406cc3
test esi, esi
jge 0x406ce3
cmp eax, 0x10
jge 0x406cde
inc eax
mov dword [0x40bc10], eax
lea esi, [eax - 1]
jmp 0x406ce5
je 0x406cfd
xor ecx, ecx
test esi, esi
jl 0x406cfd
lea eax, [ecx*4 + 0x40bc18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406ceb
push 0
push 0x40bc58
call ebx
jmp 0x406b28
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d9f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x40b0fc]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x40cf08]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x406f41
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40cf20]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x406f41
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x406e15
xor eax, eax
jmp 0x406f55
test al, 0x20
je 0x406e28
push 2
push 0
push 0
push ecx
call fcn.00407ba5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406ebd
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x406f1e
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x406e82
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406e73
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x406e55
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406ee2
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x406eeb
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x406e4a
jmp 0x406eeb
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406ee2
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x406eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x406f3c
cmp dword [ebp - 0x68], eax
je 0x406f1b
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x406f10
mov dword [0x40ba80], 9
mov dword [0x40ba84], eax
jmp 0x406f52
push dword [ebp - 0x68]
call fcn.00407a90
pop ecx
jmp 0x406f52
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x406f30
cmp byte [edi], 0x1a
je 0x406e0e
mov dword [0x40ba80], 0x1c
jmp 0x406f4b
sub eax, dword [ebp - 0x7c]
jmp 0x406f55
mov dword [0x40ba80], 9
and dword [0x40ba84], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d89
add ebp, 0x3a4
leave
ret
Function at 0x407195
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40bc60], ebx
push esi
push edi
jne 0x407215
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407250
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40bc60], eax
je 0x407250
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40bc64], eax
call esi
cmp dword [0x40ba8c], 2
mov dword [0x40bc68], eax
jne 0x407215
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40bc70], eax
je 0x407215
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40bc6c], eax
mov eax, dword [0x40bc6c]
test eax, eax
je 0x40725a
call eax
test eax, eax
je 0x407241
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40bc70]
test eax, eax
je 0x407241
test byte [ebp - 8], 1
jne 0x40725a
cmp dword [0x40ba98], 4
jb 0x407254
or byte [ebp + 0x12], 0x20
jmp 0x407279
xor eax, eax
jmp 0x407289
or byte [ebp + 0x12], 4
jmp 0x407279
mov eax, dword [0x40bc64]
test eax, eax
je 0x407279
call eax
mov ebx, eax
test ebx, ebx
je 0x407279
mov eax, dword [0x40bc68]
test eax, eax
je 0x407279
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40bc60]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408a9a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x408ab3
or eax, 0xffffffff
jmp 0x408b14
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x408b10
push 0x3d
push esi
call fcn.00408d48
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x408b10
cmp esi, eax
je 0x408b10
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x40baac]
sete cl
cmp eax, dword [0x40bab0]
mov dword [ebp - 4], ecx
jne 0x408af6
mov edi, eax
call fcn.00408a39
mov dword [0x40baac], eax
cmp eax, ebx
jne 0x408b4f
cmp dword [ebp + 0xc], ebx
je 0x408b18
cmp dword [0x40bab4], ebx
je 0x408b18
call fcn.00407a00
test eax, eax
je 0x408b4f
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x408b21
xor eax, eax
jmp 0x408b13
push 4
call fcn.004035b9
cmp eax, ebx
pop ecx
mov dword [0x40baac], eax
je 0x408b10
mov dword [eax], ebx
cmp dword [0x40bab4], ebx
jne 0x408b4f
push 4
call fcn.004035b9
cmp eax, ebx
pop ecx
mov dword [0x40bab4], eax
je 0x408b10
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x40baac]
sub edi, esi
push esi
call fcn.004089ec
mov edi, eax
test edi, edi
pop ecx
jl 0x408bb6
cmp dword [ebx], 0
je 0x408bb6
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040350f
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x408b96
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x408bf7
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x408b8d
mov eax, edi
shl eax, 2
push eax
push dword [0x40baac]
call fcn.004084a6
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x408bf7
jmp 0x408bf2
cmp dword [ebp - 4], 0
jne 0x408c5e
test edi, edi
jge 0x408bc6
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x40baac]
call fcn.004084a6
test eax, eax
pop ecx
pop ecx
je 0x408b10
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x40baac], eax
cmp dword [ebp + 0xc], 0
je 0x408c49
push esi
call fcn.004036d0
inc eax
inc eax
push eax
call fcn.004035b9
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x408c49
push esi
push edi
call fcn.004035d0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x408c42
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0040350f
pop ecx
cmp dword [ebp - 4], 0
je 0x408c56
push esi
call fcn.0040350f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x408b13
push esi
call fcn.0040350f
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x408b1d
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x505668
Capabilities:
Parse pe header

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