joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a04a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x414880
call fcn.0040af10
mov edi, 0x94
mov eax, edi
call fcn.0040c4a0
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 [0x41abb0], ecx
mov eax, dword [esi + 4]
mov dword [0x41abbc], eax
mov edx, dword [esi + 8]
mov dword [0x41abc0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41abb4], esi
cmp ecx, 2
je 0x40a0aa
or esi, 0x8000
mov dword [0x41abb4], esi
shl eax, 8
add eax, edx
mov dword [0x41abb8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40a0e5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a0e5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40a0fd
cmp eax, 0x20b
je 0x40a0ea
mov dword [ebp - 0x1c], esi
jmp 0x40a111
cmp dword [ecx + 0x84], 0xe
jbe 0x40a0e5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40a10b
cmp dword [ecx + 0x74], 0xe
jbe 0x40a0e5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040a236
pop ecx
test eax, eax
jne 0x40a125
push 0x1c
call fcn.0040a026
pop ecx
call fcn.0040c429
test eax, eax
jne 0x40a136
push 0x10
call fcn.0040a026
pop ecx
call fcn.00410233
mov dword [ebp - 4], esi
call fcn.0040d292
test eax, eax
jge 0x40a14f
push 0x1b
call fcn.0040a001
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43e8a8], eax
call fcn.00410111
mov dword [0x41aa34], eax
call fcn.0041006f
test eax, eax
jge 0x40a175
push 8
call fcn.0040a001
pop ecx
call fcn.0040fe3c
test eax, eax
jge 0x40a186
push 9
call fcn.0040a001
pop ecx
call fcn.0040e1e0
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40a199
push eax
call fcn.0040a001
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040fdd3
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40a1ba
movzx eax, word [ebp - 0x34]
jmp 0x40a1bd
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00407d40
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40a1db
push edi
call fcn.0040e318
call fcn.0040e33a
jmp 0x40a20d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040af4b
ret
Function at 0x40bbc8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c4a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bc5d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x41abb0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40bc5d
cmp eax, 1
je 0x40bc75
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bc5d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40bc32
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40bc59
xor eax, eax
inc eax
jmp 0x40bc91
cmp esi, ebx
jae 0x40bc61
xor eax, eax
jmp 0x40bc91
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41abb0]
jmp 0x40bc77
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c6ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x419acc]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x40c6d6
xor eax, eax
jmp 0x40c844
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43d760]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40c709
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00411629
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40c7db
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x40c816
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40c764
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40c755
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x40c738
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c7a4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x40c7ad
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40c729
jmp 0x40c7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x40c83f
cmp dword [ebp - 8], edi
je 0x40c816
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x40c808
call fcn.0040959e
mov dword [eax], 9
call fcn.004095a7
mov dword [eax], esi
jmp 0x40c811
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c7fd
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x40c7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x40c7af
push dword [ebp - 8]
call fcn.004095b0
pop ecx
or eax, 0xffffffff
jmp 0x40c842
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40c82b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40c82b
xor eax, eax
jmp 0x40c842
call fcn.0040959e
mov dword [eax], 0x1c
call fcn.004095a7
mov dword [eax], edi
jmp 0x40c811
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040ef87
leave
ret
Function at 0x40cfef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40d1b5
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43d760]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40d1b5
test cl, 0x48
je 0x40d055
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40d055
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d0a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40d08f
call fcn.0040959e
mov dword [eax], 9
call fcn.004095a7
mov dword [eax], esi
jmp 0x40d09f
cmp eax, 0x6d
je 0x40d1b5
push eax
call fcn.004095b0
pop ecx
or eax, 0xffffffff
jmp 0x40d1b7
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x40d1b0
test edx, edx
je 0x40d0ca
cmp byte [ebx], 0xa
jne 0x40d0ca
or al, 4
jmp 0x40d0cc
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40d1aa
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40d19a
cmp al, 0xd
je 0x40d100
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40d18c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40d11a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40d115
add dword [ebp + 0x10], 2
jmp 0x40d16e
mov dword [ebp + 0x10], eax
jmp 0x40d188
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d142
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40d188
cmp dword [ebp - 0xc], 0
je 0x40d188
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40d163
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40d16e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40d18b
cmp ebx, dword [ebp + 0xc]
jne 0x40d173
cmp byte [ebp - 1], 0xa
jne 0x40d173
mov byte [ebx], 0xa
jmp 0x40d18b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040d490
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40d18c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40d0e4
jmp 0x40d1aa
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40d1aa
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40d1b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e245
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040a3b9
xor esi, esi
inc esi
cmp dword [0x41abf0], esi
pop ecx
jne 0x40e26d
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 [0x41abec], esi
mov byte [0x41abe8], al
jne 0x40e2d3
mov ecx, dword [0x43d754]
test ecx, ecx
je 0x40e2b4
mov eax, dword [0x43d750]
sub eax, 4
cmp eax, ecx
jmp 0x40e2ad
mov eax, dword [eax]
test eax, eax
je 0x40e29f
call eax
mov eax, dword [0x43d750]
sub eax, 4
cmp eax, dword [0x43d754]
mov dword [0x43d750], eax
jae 0x40e297
mov eax, 0x417020
mov esi, 0x417028
cmp eax, esi
mov edi, eax
jae 0x40e2d3
mov eax, dword [edi]
test eax, eax
je 0x40e2cc
call eax
add edi, 4
cmp edi, esi
jb 0x40e2c4
mov eax, 0x41702c
mov esi, 0x417030
cmp eax, esi
mov edi, eax
jae 0x40e2f2
mov eax, dword [edi]
test eax, eax
je 0x40e2eb
call eax
add edi, 4
cmp edi, esi
jb 0x40e2e3
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x40e303
push 8
call fcn.0040a325
jmp 0x40e315
push dword [ebp + 8]
mov dword [0x41abf0], 1
call fcn.0040e19e
pop ecx
pop ebp
ret

Function at 0x40e895
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040c4a0
mov eax, dword [0x419acc]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040d490
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40e9bf
push 2
push esi
push dword [ebp + 8]
call fcn.0040d490
add esp, 0xc
cmp eax, ebx
je 0x40e9bf
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40e962
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00410650
push 0x8000
push dword [ebp + 8]
call fcn.00411a17
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x40e91b
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040c6ad
add esp, 0xc
cmp eax, 0xffffffff
je 0x40e93b
sub edi, eax
test edi, edi
jg 0x40e913
jmp 0x40e953
call fcn.004095a7
cmp dword [eax], 5
jne 0x40e950
call fcn.0040959e
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00411a17
pop ecx
pop ecx
jmp 0x40e9aa
jge 0x40e9aa
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d490
push dword [ebp + 8]
call fcn.0040e672
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40e9aa
call fcn.0040959e
mov dword [eax], 0xd
call fcn.004095a7
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040d490
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40e9c1
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040ef87
leave
ret
Function at 0x40fc23
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x419acc]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x419b98]
je 0x40fc50
inc eax
cmp eax, 0x12
jb 0x40fc41
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x419b98]
jne 0x40fd84
mov eax, dword [0x41aa3c]
cmp eax, 1
je 0x40fd5f
cmp eax, edx
jne 0x40fc80
cmp dword [0x419414], 1
je 0x40fd5f
cmp ecx, 0xfc
je 0x40fd84
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fcb9
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040bad0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040ba40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40fcfb
lea eax, [ebp - 0x10c]
push eax
call fcn.0040ba40
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x415298
push edi
call fcn.00408040
add esp, 0x10
push edi
call fcn.0040ba40
push dword [esi + 0x419b9c]
mov ebx, eax
call fcn.0040ba40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040c4a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040bad0
push edi
push ebx
call fcn.0040bae0
push 0x415278
push ebx
call fcn.0040bae0
push dword [esi + 0x419b9c]
push ebx
call fcn.0040bae0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041266e
add esp, 0x2c
jmp 0x40fd84
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x419b9c]
push dword [esi]
call fcn.0040ba40
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040ef87
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411b54
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x419acc]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x411bcf
push ebx
call fcn.00411b1d
test eax, eax
pop ecx
jne 0x411ba1
call fcn.004095a7
mov dword [eax], 0xf
call fcn.0040959e
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0040ef87
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x411be1
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x411b91
inc eax
cmp eax, 0x104
ja 0x411b91
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x411c19
cmp eax, dword [ebp + 0x10]
jg 0x411bfc
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040802c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x411c2e
call fcn.0040959e
mov dword [eax], 0xc
jmp 0x411b91
cmp eax, dword [ebp + 0x10]
jle 0x411c2e
call fcn.0040959e
mov dword [eax], 0x22
jmp 0x411b91
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0040bad0
pop ecx
pop ecx
jmp 0x411b93

Function at 0x41266e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41ae70], ebx
push esi
push edi
jne 0x4126ee
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x412729
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x415adc
push edi
call esi
test eax, eax
mov dword [0x41ae70], eax
je 0x412729
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41ae74], eax
call esi
cmp dword [0x41abb0], 2
mov dword [0x41ae78], eax
jne 0x4126ee
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41ae80], eax
je 0x4126ee
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41ae7c], eax
mov eax, dword [0x41ae7c]
test eax, eax
je 0x412733
call eax
test eax, eax
je 0x41271a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41ae80]
test eax, eax
je 0x41271a
test byte [ebp - 8], 1
jne 0x412733
cmp dword [0x41abbc], 4
jb 0x41272d
or byte [ebp + 0x12], 0x20
jmp 0x412752
xor eax, eax
jmp 0x412762
or byte [ebp + 0x12], 4
jmp 0x412752
mov eax, dword [0x41ae74]
test eax, eax
je 0x412752
call eax
mov ebx, eax
test ebx, ebx
je 0x412752
mov eax, dword [0x41ae78]
test eax, eax
je 0x412752
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41ae70]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413825
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x413890
push 0x3d
push dword [ebp + 8]
call fcn.00413cc9
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x413890
cmp dword [ebp + 8], esi
je 0x413890
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x41abd0]
cmp eax, dword [0x41abd4]
jne 0x413876
mov edi, eax
call fcn.004137c4
mov dword [0x41abd0], eax
cmp eax, ebx
jne 0x4138cf
cmp dword [ebp + 0xc], ebx
je 0x413898
cmp dword [0x41abd8], ebx
je 0x413898
call fcn.00412a6f
test eax, eax
je 0x4138cf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4139d3
push 4
call fcn.0040802c
cmp eax, ebx
pop ecx
mov dword [0x41abd0], eax
je 0x413890
mov dword [eax], ebx
cmp dword [0x41abd8], ebx
jne 0x4138cf
push 4
call fcn.0040802c
cmp eax, ebx
pop ecx
mov dword [0x41abd8], eax
je 0x413890
mov dword [eax], ebx
mov ebx, dword [0x41abd0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00413777
mov edi, eax
test edi, edi
pop ecx
jl 0x413928
cmp dword [ebx], 0
je 0x413928
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00407f14
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x413910
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41395e
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x413907
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004127fe
test eax, eax
pop ecx
pop ecx
je 0x41395e
jmp 0x413959
cmp dword [ebp - 4], 0
jne 0x4139cc
test edi, edi
jge 0x413938
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004127fe
test eax, eax
pop ecx
pop ecx
je 0x413890
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x41abd0], eax
cmp dword [ebp + 0xc], 0
je 0x4139b5
push dword [ebp + 8]
call fcn.0040ba40
inc eax
inc eax
push eax
call fcn.0040802c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4139b5
push dword [ebp + 8]
push esi
call fcn.0040bad0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4139ae
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00407f14
pop ecx
cmp dword [ebp - 4], 0
je 0x4139c4
push dword [ebp + 8]
call fcn.00407f14
pop ecx
mov eax, dword [ebp - 8]
jmp 0x413893
push esi
call fcn.00407f14
pop ecx
xor eax, eax
jmp 0x413893
Function at 0x42aac0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8d3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004dc4cb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42ab42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004d9111
mov eax, dword [eax]
push 0x549274
push eax
call fcn.004b8894
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004dc756
test bl, bl
je 0x42ab42
push 0x549274
lea ecx, [esp + 0xc]
call fcn.004dcae6
push 0x54cdfc
lea ecx, [esp + 0xc]
call fcn.004dcae6
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42ab7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004dc756
jmp 0x42ac49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42ac02
lea edx, [esp + 0x7c]
push 0x54cdf8
push edx
call fcn.004b8894
add esp, 8
test eax, eax
je 0x42ac02
lea eax, [esp + 0x7c]
push 0x54cdf4
push eax
call fcn.004b8894
add esp, 8
test eax, eax
je 0x42ac02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42ab92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004dc756
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42b440
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42b4a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc