joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404530
Capabilities:
Query environment variable

Disassembly:
push ebx
mov eax, 0x4018
call fcn.0040a620
sub esp, eax
mov eax, dword [esp + 0x4020]
lea ebx, [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405290
mov dword [esp + 8], 0x2000
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x404590
add esp, 0x4018
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x2010]
mov dword [esp + 8], 0x2000
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004050f0
test eax, eax
je 0x40457c
cmp byte [eax], 0
je 0x40457c
mov dword [esp], eax
call sub.msvcrt.dll__strdup
add esp, 0x4018
pop ebx
ret

Function at 0x4045e0
Capabilities:
Set environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405290
mov esi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405290
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret

Function at 0x404650
Capabilities:
Set environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405290
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret

Function at 0x4046a0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
push edi
mov eax, 0x203c
push esi
push ebx
call fcn.0040a620
mov ebx, 5
sub esp, eax
lea edi, [esp + 0x30]
mov dword [esp], 0x1000
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
lea esi, [esp + 0x10]
call sub.msvcrt.dll__getpid
mov dword [esp + 8], str._MEI_d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00404500
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__wtempnam]
mov ebp, eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x404730
mov dword [esp], ebp
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x4046f2
add esp, 0x203c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2050]
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x1000
mov dword [esp], eax
call fcn.004050f0
mov dword [esp], ebp
call sub.msvcrt.dll_free
add esp, 0x203c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4047d0
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov eax, 0x445c
push esi
push ebx
call fcn.0040a620
sub esp, eax
mov eax, dword [esp + 0x4470]
mov dword [esp + 8], 0x1000
lea ebp, [esp + 0x44c]
mov dword [esp + 4], eax
lea eax, [esp + 0x244e]
mov dword [esp], eax
call fcn.00405290
lea eax, [esp + 0x244e]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp], ebp
call sub.msvcrt.dll_wcslen
mov dword [esp + 0x22c], eax
movzx eax, word [esp + eax*2 + 0x44a]
cmp ax, 0x5c
je 0x404843
cmp ax, 0x2f
jne 0x4048f0
lea ebx, [esp + 0x230]
mov dword [esp + 4], 0x40d2a4
mov dword [esp], ebp
call sub.msvcrt.dll_wcscat
mov dword [esp + 4], ebx
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll__wfindfirst]
cmp eax, 0xffffffff
mov dword [esp + 0x228], eax
je 0x4048d1
mov edi, esp
mov esi, ebx
mov ecx, 0x87
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x22c]
call fcn.00404910
jmp 0x4048a9
mov edi, esp
mov esi, ebx
mov ecx, 0x87
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x22c]
call fcn.00404910
mov eax, dword [esp + 0x228]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfindnext]
test eax, eax
je 0x404890
mov eax, dword [esp + 0x228]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
lea eax, [esp + 0x244e]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrmdir]
add esp, 0x445c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x40d2a0
mov dword [esp], ebp
call sub.msvcrt.dll_wcscat
add dword [esp + 0x22c], 1
jmp 0x404843

Function at 0x404910
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.0040a620
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
lea ebx, [esp + 0x1044]
mov dword [esp + 4], 0x40d2a8
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x404950
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x40d2ac
mov dword [esp], ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x404942
xor eax, eax
mov dword [esp + 4], ebx
mov dword [esp], esi
mov word [esi + edi*2], ax
call sub.msvcrt.dll_wcscat
test byte [esp + 0x1030], 0x10
jne 0x4049b0
mov dword [esp], esi
mov ebx, dword [sym.imp.msvcrt.dll__wremove]
call ebx
test eax, eax
je 0x404942
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], esi
call ebx
jmp 0x404942
lea ebx, [esp + 0x1f]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004050f0
mov dword [esp], ebx
call fcn.004047d0
jmp 0x404942
Function at 0x404a00
Capabilities:
Create directory

Disassembly:
push ebp
push edi
mov eax, 0x405c
push esi
push ebx
call fcn.0040a620
sub esp, eax
mov eax, dword [esp + 0x4070]
lea ebx, [esp + 0x50]
lea esi, [esp + 0x1050]
lea ebp, [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [esp + 0x4074]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
mov dword [esp + 4], 0x40d2b2
lea esi, [esp + 0x2050]
call sub.msvcrt.dll_strtok
mov edi, eax
mov eax, dword [sym.imp.msvcrt.dll__wstat]
test edi, edi
mov dword [esp + 0x1c], eax
je 0x404b10
nop
mov ecx, ebx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x404a72
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ecx + 2]
cmove ecx, eax
add dl, dl
sbb ecx, 3
sub ecx, ebx
lea eax, [ebx + ecx + 1]
mov byte [ebx + ecx], 0x5c
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x40d2b2
mov dword [esp], 0
call sub.msvcrt.dll_strtok
test eax, eax
mov edi, eax
je 0x404b10
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00405290
mov dword [esp + 4], ebp
mov dword [esp], esi
mov eax, dword [esp + 0x1c]
call eax
test eax, eax
jns 0x404a70
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__wmkdir]
jmp 0x404a70
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00405290
mov dword [esp + 4], ebp
mov dword [esp], esi
mov eax, dword [esp + 0x1c]
call eax
test eax, eax
je 0x404b50
mov dword [esp], ebx
mov dword [esp + 4], 0x40d2e5
call fcn.00402f00
add esp, 0x405c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.00401e30
jmp 0x404b35
Function at 0x404b70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
push esi
mov eax, 0x1010
push ebx
call fcn.0040a620
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x40d2e8
mov dword [esp], eax
call fcn.00402f00
mov ebx, eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1024]
mov dword [esp], eax
call fcn.00404a00
test eax, eax
mov edi, eax
je 0x404c84
test ebx, ebx
je 0x404c84
lea esi, [esp + 0x10]
nop
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x404c80
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call sub.msvcrt.dll_fread
cmp eax, 0xffffffff
je 0x404c60
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test eax, eax
jle 0x404c2d
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404bd0
mov dword [esp], edi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, esi
add esp, 0x1010
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404bd0
mov dword [esp], ebx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x404c3a
xor esi, esi
jmp 0x404c3a
mov eax, 0xffffffff
jmp 0x404c4c
Function at 0x404d00
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push edi
push esi
mov eax, 0x20a0
push ebx
call fcn.0040a620
sub esp, eax
mov eax, dword [esp + 0x20b0]
lea esi, [esp + 0xa0]
mov dword [esp + 8], 0x1000
mov dword [esp + 0x3c], 0
lea edi, [esp + 0x5c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00405290
mov dword [esp + 4], 1
mov dword [esp], 0x16
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0xf
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0x15
call sub.msvcrt.dll_signal
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
sub esp, 4
mov word [esp + 0x8c], ax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], 0x101
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov ebx, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call ebx
mov dword [esp + 0x94], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x98], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x4c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x404eb0
mov dword [esp], str.Error_creating_child_process__n
call fcn.00401e30
add esp, 0x20a0
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov eax, dword [esp + 0x3c]
add esp, 0x20a0
pop ebx
pop esi
pop edi
ret
Function at 0x409a60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00409ac0

Function at 0x409ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x41d2f0]
test eax, eax
jle 0x409bc3
mov edx, dword [0x41d2f4]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x409af1
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x409b66
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x409ae0
mov dword [esp], esi
call fcn.0040a400
test eax, eax
mov edi, eax
je 0x409bea
lea esi, [ebx + ebx*2]
mov ebx, dword [0x41d2f4]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.0040a4f0
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x41d2f4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x409bca
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x409b70
add dword [0x41d2f0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x409b5f
cmp eax, 0x80
je 0x409b5f
cmp eax, 8
je 0x409b5f
mov eax, dword [ebp - 0x28]
add esi, dword [0x41d2f4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x409b5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00409a60
xor ebx, ebx
jmp 0x409afb
mov eax, dword [0x41d2f4]
mov eax, dword [eax + esi + 4]
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 fcn.00409a60
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00409a60
lea esi, [esi]

Function at 0x40a320
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40a358
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40a34e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40a35a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40a340
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401cd0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x401ce0
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401cdd
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x401cdd
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret

Function at 0x403420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x40343e
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4034da
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x403475
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x4034da
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x4034c1
cmp dl, byte [eax]
jne 0x4034c1
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x4034b4
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x4034e5
test ecx, ecx
jle 0x4034d4
lea ebx, [esi + 4]
jmp 0x4034d6
mov edi, esi
cmp ebx, edi
jne 0x403490
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407540
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b2d3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x57f430], 0
je 0x407581
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x30
call fcn.00405f2d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4075b3
push 0x30
push 0
push esi
call fcn.004f9050
add esp, 0xc
mov ecx, esi
push 0
call fcn.00407610
jmp 0x4075b5
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x57f430], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.004076f0
mov ecx, dword [0x57f430]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 1
call fcn.004079b0
cmp dword [ebp - 0x14], 8
jb 0x4075f7
push dword [ebp - 0x28]
call fcn.004085be
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4079b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b348
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
push ecx
push 3
push eax
call fcn.00407a80
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x407a4a
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 4], 0
push esi
push dword [ebp - 0x14]
mov ecx, edi
call fcn.004080e0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 8
jb 0x407a5b
push dword [ebp - 0x2c]
call fcn.004085be
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret 4
Function at 0x40a3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x220], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x21c], 0
call fcn.004f9050
mov di, word [ebp + 0x10]
lea eax, [ebp - 0x20c]
xor ebx, ebx
mov dword [ebp - 0x214], 0
add esp, 0xc
mov dword [ebp - 0x210], 0
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x218], 4
sete bl
test di, di
je 0x40a476
push str.SoftwareAdobeAcrobat_ReaderDCFeatureState
jmp 0x40a47b
push str.SoftwareAdobeAdobe_AcrobatDCFeatureState
push 0x104
push eax
call fcn.00403897
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a543
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a512
cmp dword [ebp - 0x214], 4
jne 0x40a512
push dword [ebp - 0x21c]
xor ebx, ebx
cmp dword [ebp - 0x210], ebx
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
test di, di
je 0x40a523
test esi, esi
je 0x40a523
mov eax, 1
mov word [esi], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
test di, di
je 0x40a554
test esi, esi
je 0x40a554
mov eax, 1
mov word [esi], ax
mov ecx, dword [ebp - 4]
mov ax, bx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401590
mov esp, ebp
pop ebp
ret
Function at 0x40bc90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor bl, bl
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x818], edx
push 0x400
push eax
call fcn.0040bd80
add esp, 0x14
test eax, eax
js 0x40bd6a
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0
push eax
push 1
push 0
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bd6a
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x810], 4
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push dword [ebp - 0x818]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bd5e
cmp dword [ebp - 0x80c], 4
jne 0x40bd5e
cmp dword [ebp - 0x808], eax
mov bl, 1
setne al
mov dword [esi], eax
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401590
mov esp, ebp
pop ebp
ret

Function at 0x40ceb0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ba48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov dword [ebp - 0x10], edi
mov word [edi], ax
call fcn.00407d00
xor eax, eax
mov dword [edi + 0x2c], 7
push 0xffffffffffffffff
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 0
lea edx, [esi + 0x18]
mov dword [ecx + 0x10], 0
push eax
push edx
mov word [ecx], ax
call fcn.00407d00
mov dword [edi + 0x30], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc