joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eac0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x438cf4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.0041e040
lea edi, [esi + 0x7bc]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi], fcn.0041e730
call fcn.0041e980
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea ecx, [esi + 0x7c8]
mov byte [esp + 0x18], 1
call fcn.00418180
cmp byte [esi + 0x263], bl
mov byte [esp + 0x18], 2
mov dword [esi + 0x7b8], ebx
je 0x41eb60
push 0x19
lea edx, [esi + 0x25a]
push edx
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutA]
test eax, eax
jne 0x41eb60
mov eax, dword [0x443c18]
push 0x10
push eax
push str.Error_loading_specified_keyboard_layout
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0042e8b5
cmp byte [esi + 8], bl
je 0x41eb92
push ebx
push str.VNCviewer_Daemon
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x41eb92
push str.In_listening_mode___staring_daemons_n
push 3
push 0x445ec8
call fcn.00403360
add esp, 0xc
mov ecx, esi
call fcn.0041e730
jmp 0x41eb95
mov byte [esi + 8], bl
mov ecx, esi
call fcn.0041e7e0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x41ece5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ed3d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x43d00c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41ed30
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41ed3f
xor eax, eax
pop esi
leave
ret 4
Function at 0x420ca0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x420cd0
push esi
call fcn.00422940
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x420cc9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x420d47
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x420d37
mov eax, dword [esi + 8]
test eax, eax
je 0x420cf4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x420d33
cmp eax, 2
je 0x420d37
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x420ce7
cmp eax, 3
je 0x420d1a
cmp eax, 1
jne 0x420ce7
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x420ce7
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x420ce7
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.00420b30
pop esi
ret
cmp eax, 0xcc
je 0x420d67
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 4
call fcn.00420b30
pop esi
ret
Function at 0x42e581
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x42e59e
call fcn.004332cd
mov dword [eax], 0x16
xor eax, eax
jmp 0x42e608
push esi
push 0x8c
push 1
call fcn.0042efb4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42e5f3
push esi
call fcn.0042fd4f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x42e5d1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x42e4ec
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42e607
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0042dc44
test ebx, ebx
pop ecx
je 0x42e605
push ebx
call fcn.004332df
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42e7f2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43ef10
call fcn.004303dc
push 8
call fcn.004303ab
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x445f60], esi
jne 0x42e826
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x445f5c], esi
mov al, byte [ebp + 0x10]
mov byte [0x445f58], al
cmp dword [ebp + 0xc], edi
jne 0x42e870
cmp dword [0x447790], edi
je 0x42e860
mov eax, dword [0x44778c]
sub eax, 4
mov dword [0x44778c], eax
cmp eax, dword [0x447790]
jb 0x42e860
mov eax, dword [eax]
cmp eax, edi
je 0x42e841
call eax
jmp 0x42e841
push 0x4430b4
mov eax, 0x4430ac
call fcn.0042e770
pop ecx
push 0x4430c0
mov eax, 0x4430b8
call fcn.0042e770
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42e8a1
cmp dword [ebp + 0x10], edi
jne 0x42e8af
mov dword [0x445f60], esi
push dword [ebp + 8]
call fcn.0042e72e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42e8ae
push 8
call fcn.004302f6
pop ecx
ret
call fcn.00430417
ret

Function at 0x42e8f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42e915
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004332df
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42e938
test byte [esp + 8], 2
je 0x42e938
call fcn.004332cd
mov dword [eax], 0xd
call fcn.004332d6
mov dword [eax], 5
jmp 0x42e911
xor eax, eax
ret

Function at 0x433516
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x433544
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x433549
cmp eax, 1
je 0x433549
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43354d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4450a4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4335c5
push ebx
call fcn.00433516
test eax, eax
pop ecx
jne 0x433594
call fcn.004332d6
mov dword [eax], 0xf
call fcn.004332cd
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00434fbb
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
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
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4335d7
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x433587
inc eax
cmp eax, 0x104
ja 0x433587
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x43360f
cmp eax, dword [ebp + 0x10]
jg 0x4335f2
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042e6b3
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x433624
call fcn.004332cd
mov dword [eax], 0xc
jmp 0x433587
cmp eax, dword [ebp + 0x10]
jle 0x433624
call fcn.004332cd
mov dword [eax], 0x22
jmp 0x433587
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00430160
pop ecx
pop ecx
jmp 0x433589
Function at 0x43367e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4450a4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x445580]
je 0x4336b3
inc eax
cmp eax, 0x13
jb 0x4336a4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x445580]
jne 0x4337d9
mov eax, dword [0x445f70]
cmp eax, 1
je 0x4337b1
cmp eax, edx
jne 0x4336e3
cmp dword [0x444e14], 1
je 0x4337b1
cmp ecx, 0xfc
je 0x4337d9
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433719
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00430160
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042f090
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43374d
mov eax, edi
push eax
call fcn.0042f090
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43f6d0
push edi
call fcn.0042db20
add esp, 0x10
push edi
call fcn.0042f090
push dword [esi + 0x445584]
mov ebx, eax
call fcn.0042f090
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042de80
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00430160
push edi
push ebx
call fcn.00430170
push 0x43f6b0
push ebx
call fcn.00430170
push dword [esi + 0x445584]
push ebx
call fcn.00430170
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00436408
add esp, 0x2c
jmp 0x4337d9
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x445584]
push dword [esi]
call fcn.0042f090
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]
mov ecx, dword [ebp + 0x88]
call fcn.00434fbb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4348d4
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 0x434902
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 0x434909
cmp ebx, dword [eax + 4]
jae 0x434909
xor eax, eax
jmp 0x434af9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43491a
xor eax, eax
inc eax
jmp 0x434af8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x434930
cmp ecx, edx
jae 0x434a75
cmp dword [eax + 4], 0
je 0x434939
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x434921
cmp dword [ebp + 8], 0
je 0x43495b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x434a75
cmp eax, esi
jae 0x434a75
mov eax, dword [0x446218]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x434980
cmp dword [esi*4 + 0x446220], edi
je 0x434a79
inc esi
cmp esi, eax
jl 0x43496e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x434af5
cmp dword [ebp - 8], 0x1000000
jne 0x434af5
test byte [ebp - 0xc], 0xcc
je 0x4349fe
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x434af5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x434af5
cmp word [eax + 0x18], 0x10b
jne 0x434af5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x434af5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4349fe
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4349fe
test byte [ecx + 0x27], 0x80
jne 0x434a75
push 1
push 0x446260
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x434912
mov ecx, dword [0x446218]
test ecx, ecx
mov edx, ecx
jle 0x434a32
lea eax, [ecx*4 + 0x44621c]
cmp dword [eax], edi
je 0x434a32
dec edx
sub eax, 4
test edx, edx
jg 0x434a26
test edx, edx
jne 0x434a63
push 0xf
pop ebx
cmp ecx, ebx
jg 0x434a3f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x434a57
lea eax, [edx*4 + 0x446220]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x434a45
cmp ecx, 0x10
jge 0x434a63
inc ecx
mov dword [0x446218], ecx
push 0
push 0x446260
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x434912
xor eax, eax
jmp 0x434af8
test esi, esi
jle 0x434912
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x446260
call ebx
test eax, eax
jne 0x434912
cmp dword [esi*4 + 0x446220], edi
je 0x434acf
mov eax, dword [0x446218]
lea esi, [eax - 1]
test esi, esi
jl 0x434abd
cmp dword [esi*4 + 0x446220], edi
je 0x434ab9
dec esi
jns 0x434aad
test esi, esi
jge 0x434acd
cmp eax, 0x10
jge 0x434ac8
inc eax
mov dword [0x446218], eax
lea esi, [eax - 1]
jmp 0x434acf
je 0x434ae7
xor ecx, ecx
test esi, esi
jl 0x434ae7
lea eax, [ecx*4 + 0x446220]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x434ad5
push 0
push 0x446260
call ebx
jmp 0x434912
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434c1c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4450a4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x434c4d
xor eax, eax
jmp 0x434dd6
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x446640]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x434c89
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00436fea
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x434d64
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x434da2
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x434ced
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x434cde
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x434cbe
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434d2d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x434d36
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x434caf
jmp 0x434d38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x434dd1
cmp dword [ebp - 0x6c], edi
je 0x434da2
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x434d97
call fcn.004332cd
mov dword [eax], 9
call fcn.004332d6
mov dword [eax], esi
jmp 0x434dcc
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434d8c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x434d38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x434d38
push dword [ebp - 0x6c]
call fcn.004332df
pop ecx
jmp 0x434dcc
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x434dba
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x434dba
xor eax, eax
jmp 0x434dd4
call fcn.004332cd
mov dword [eax], 0x1c
call fcn.004332d6
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x434dd4
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00434fbb
add ebp, 0x3a0
leave
ret
Function at 0x43529d
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.0042de80
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435338
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 [0x445f20]
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 0x435338
cmp eax, 1
je 0x435359
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 0x435338
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x435305
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x435334
xor eax, eax
inc eax
jmp 0x435378
cmp edi, eax
jae 0x43533c
xor eax, eax
jmp 0x435378
cmp eax, esi
jae 0x435343
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 [0x445f20]
jmp 0x43535c
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 0x436408
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4462e0], ebx
push esi
push edi
jne 0x436488
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4364c3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43fe5c
push edi
call esi
test eax, eax
mov dword [0x4462e0], eax
je 0x4364c3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4462e4], eax
call esi
cmp dword [0x445f20], 2
mov dword [0x4462e8], eax
jne 0x436488
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4462f0], eax
je 0x436488
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4462ec], eax
mov eax, dword [0x4462ec]
test eax, eax
je 0x4364cd
call eax
test eax, eax
je 0x4364b4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4462f0]
test eax, eax
je 0x4364b4
test byte [ebp - 8], 1
jne 0x4364cd
cmp dword [0x445f2c], 4
jb 0x4364c7
or byte [ebp + 0x12], 0x20
jmp 0x4364ec
xor eax, eax
jmp 0x4364fc
or byte [ebp + 0x12], 4
jmp 0x4364ec
mov eax, dword [0x4462e4]
test eax, eax
je 0x4364ec
call eax
mov ebx, eax
test ebx, ebx
je 0x4364ec
mov eax, dword [0x4462e8]
test eax, eax
je 0x4364ec
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4462e0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436aec
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 0x436b05
or eax, 0xffffffff
jmp 0x436b66
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x436b62
push 0x3d
push esi
call fcn.00438103
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x436b62
cmp esi, eax
je 0x436b62
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x445f40]
sete cl
cmp eax, dword [0x445f44]
mov dword [ebp - 8], ecx
jne 0x436b48
mov edi, eax
call fcn.00436a8b
mov dword [0x445f40], eax
cmp eax, ebx
jne 0x436ba1
cmp dword [ebp + 0xc], ebx
je 0x436b6a
cmp dword [0x445f48], ebx
je 0x436b6a
call fcn.00434184
test eax, eax
je 0x436ba1
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x436b73
xor eax, eax
jmp 0x436b65
push 4
call fcn.0042e6b3
cmp eax, ebx
pop ecx
mov dword [0x445f40], eax
je 0x436b62
mov dword [eax], ebx
cmp dword [0x445f48], ebx
jne 0x436ba1
push 4
call fcn.0042e6b3
cmp eax, ebx
pop ecx
mov dword [0x445f48], eax
je 0x436b62
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x445f40]
call fcn.00436a3e
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x436c02
cmp dword [esi], ebx
je 0x436c02
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042dc44
cmp dword [ebp - 8], ebx
pop ecx
jne 0x436be5
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x436c43
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x436bdc
mov eax, edi
shl eax, 2
push eax
push dword [0x445f40]
call fcn.00432f46
cmp eax, ebx
pop ecx
pop ecx
je 0x436c43
jmp 0x436c3e
cmp dword [ebp - 8], ebx
jne 0x436cae
cmp edi, ebx
jge 0x436c11
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x445f40]
call fcn.00432f46
cmp eax, ebx
pop ecx
pop ecx
je 0x436b62
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x445f40], eax
cmp dword [ebp + 0xc], ebx
je 0x436c98
push dword [ebp - 4]
call fcn.0042f090
inc eax
inc eax
push eax
call fcn.0042e6b3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x436c98
push dword [ebp - 4]
push esi
call fcn.00430160
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
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 0x436c91
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042dc44
pop ecx
cmp dword [ebp - 8], ebx
je 0x436ca6
push dword [ebp - 4]
call fcn.0042dc44
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x436b65
push dword [ebp - 4]
call fcn.0042dc44
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x436b6f