joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415334
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 0x4154fa
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42c600]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4154fa
test cl, 0x48
je 0x41539a
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41539a
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 0x4153ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4153d4
call fcn.00419203
mov dword [eax], 9
call fcn.0041920c
mov dword [eax], esi
jmp 0x4153e4
cmp eax, 0x6d
je 0x4154fa
push eax
call fcn.00419215
pop ecx
or eax, 0xffffffff
jmp 0x4154fc
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 0x4154f5
test edx, edx
je 0x41540f
cmp byte [ebx], 0xa
jne 0x41540f
or al, 4
jmp 0x415411
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 0x4154ef
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4154df
cmp al, 0xd
je 0x415445
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4154d1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41545f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41545a
add dword [ebp + 0x10], 2
jmp 0x4154b3
mov dword [ebp + 0x10], eax
jmp 0x4154cd
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 0x415487
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4154cd
cmp dword [ebp - 0xc], 0
je 0x4154cd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4154a8
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4154b3
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4154d0
cmp ebx, dword [ebp + 0xc]
jne 0x4154b8
cmp byte [ebp - 1], 0xa
jne 0x4154b8
mov byte [ebx], 0xa
jmp 0x4154d0
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041571d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4154d1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x415429
jmp 0x4154ef
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4154ef
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4154fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41583c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x427354]
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 0x415865
xor eax, eax
jmp 0x4159d3
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 + 0x42c600]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x415898
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004192fe
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41596a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4159a5
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 0x4158f3
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4158e4
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 0x4158c7
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 0x415933
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x41593c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4158b8
jmp 0x41593e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4159ce
cmp dword [ebp - 8], edi
je 0x4159a5
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x415997
call fcn.00419203
mov dword [eax], 9
call fcn.0041920c
mov dword [eax], esi
jmp 0x4159a0
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 0x41598c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x41593e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41593e
push dword [ebp - 8]
call fcn.00419215
pop ecx
or eax, 0xffffffff
jmp 0x4159d1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4159ba
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4159ba
xor eax, eax
jmp 0x4159d1
call fcn.00419203
mov dword [eax], 0x1c
call fcn.0041920c
mov dword [eax], edi
jmp 0x4159a0
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00416fe5
leave
ret
Function at 0x4160b4
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4160d0
call fcn.00419203
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x416142
push esi
push 0x88
push 1
call fcn.0041a05d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x416128
push esi
call fcn.00419a30
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x416014
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x416120
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x41613f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00414a18
test ebx, ebx
pop ecx
je 0x41613a
push ebx
call fcn.00419215
pop ecx
or eax, 0xffffffff
jmp 0x416141
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4167fb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0041800b
xor esi, esi
inc esi
cmp dword [0x429540], esi
pop ecx
jne 0x416823
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 [0x42953c], esi
mov byte [0x429538], al
jne 0x416889
mov ecx, dword [0x42c730]
test ecx, ecx
je 0x41686a
mov eax, dword [0x42c72c]
sub eax, 4
cmp eax, ecx
jmp 0x416863
mov eax, dword [eax]
test eax, eax
je 0x416855
call eax
mov eax, dword [0x42c72c]
sub eax, 4
cmp eax, dword [0x42c730]
mov dword [0x42c72c], eax
jae 0x41684d
mov eax, 0x427064
mov esi, 0x427070
cmp eax, esi
mov edi, eax
jae 0x416889
mov eax, dword [edi]
test eax, eax
je 0x416882
call eax
add edi, 4
cmp edi, esi
jb 0x41687a
mov eax, 0x427074
mov esi, 0x42707c
cmp eax, esi
mov edi, eax
jae 0x4168a8
mov eax, dword [edi]
test eax, eax
je 0x4168a1
call eax
add edi, 4
cmp edi, esi
jb 0x416899
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4168b9
push 8
call fcn.00417f77
jmp 0x4168cb
push dword [ebp + 8]
mov dword [0x429540], 1
call fcn.00416754
pop ecx
pop ebp
ret
Function at 0x416957
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x422740
call fcn.00418b60
mov edi, 0x94
mov eax, edi
call fcn.00417160
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 [0x429500], ecx
mov eax, dword [esi + 4]
mov dword [0x42950c], eax
mov edx, dword [esi + 8]
mov dword [0x429510], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x429504], esi
cmp ecx, 2
je 0x4169b7
or esi, 0x8000
mov dword [0x429504], esi
shl eax, 8
add eax, edx
mov dword [0x429508], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4169f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4169f2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x416a0a
cmp eax, 0x20b
je 0x4169f7
mov dword [ebp - 0x1c], esi
jmp 0x416a1e
cmp dword [ecx + 0x84], 0xe
jbe 0x4169f2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x416a18
cmp dword [ecx + 0x74], 0xe
jbe 0x4169f2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00417e88
pop ecx
test eax, eax
jne 0x416a32
push 0x1c
call fcn.00416933
pop ecx
call fcn.00419c1f
test eax, eax
jne 0x416a43
push 0x10
call fcn.00416933
pop ecx
call fcn.0041a7c8
mov dword [ebp - 4], esi
call fcn.00418ce7
test eax, eax
jge 0x416a5c
push 0x1b
call fcn.0041690e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42c724], eax
call fcn.0041ad3e
mov dword [0x429544], eax
call fcn.0041ac9c
test eax, eax
jge 0x416a82
push 8
call fcn.0041690e
pop ecx
call fcn.0041aa69
test eax, eax
jge 0x416a93
push 9
call fcn.0041690e
pop ecx
call fcn.00416796
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x416aa6
push eax
call fcn.0041690e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041aa00
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x416ac7
movzx eax, word [ebp - 0x34]
jmp 0x416aca
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004080af
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x416ae8
push edi
call fcn.004168ce
call fcn.004168f0
jmp 0x416b1a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00418b9b
ret
Function at 0x418bac
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00417160
mov eax, dword [0x427354]
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.0041571d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x418cd6
push 2
push esi
push dword [ebp + 8]
call fcn.0041571d
add esp, 0xc
cmp eax, ebx
je 0x418cd6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x418c79
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004155b0
push 0x8000
push dword [ebp + 8]
call fcn.0041c120
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x418c32
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0041583c
add esp, 0xc
cmp eax, 0xffffffff
je 0x418c52
sub edi, eax
test edi, edi
jg 0x418c2a
jmp 0x418c6a
call fcn.0041920c
cmp dword [eax], 5
jne 0x418c67
call fcn.00419203
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0041c120
pop ecx
pop ecx
jmp 0x418cc1
jge 0x418cc1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041571d
push dword [ebp + 8]
call fcn.00418fe0
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 0x418cc1
call fcn.00419203
mov dword [eax], 0xd
call fcn.0041920c
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.0041571d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x418cd8
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00416fe5
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x419e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00419215
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x419e36
test byte [esp + 8], 2
je 0x419e36
call fcn.00419203
mov dword [eax], 0xd
call fcn.0041920c
mov dword [eax], 5
jmp 0x419e0f
xor eax, eax
ret
Function at 0x41a850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x427354]
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 + 0x427ae8]
je 0x41a87d
inc eax
cmp eax, 0x12
jb 0x41a86e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x427ae8]
jne 0x41a9b1
mov eax, dword [0x42954c]
cmp eax, 1
je 0x41a98c
cmp eax, edx
jne 0x41a8ad
cmp dword [0x42733c], 1
je 0x41a98c
cmp ecx, 0xfc
je 0x41a9b1
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 0x41a8e6
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00414f70
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00414ee0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41a928
lea eax, [ebp - 0x10c]
push eax
call fcn.00414ee0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x422dc0
push edi
call fcn.00415210
add esp, 0x10
push edi
call fcn.00414ee0
push dword [esi + 0x427aec]
mov ebx, eax
call fcn.00414ee0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417160
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414f70
push edi
push ebx
call fcn.00414f80
push 0x422da0
push ebx
call fcn.00414f80
push dword [esi + 0x427aec]
push ebx
call fcn.00414f80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041d0ed
add esp, 0x2c
jmp 0x41a9b1
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x427aec]
push dword [esi]
call fcn.00414ee0
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.00416fe5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c39a
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.00417160
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41c42f
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 [0x429500]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41c42f
cmp eax, 1
je 0x41c447
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 0x41c42f
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41c404
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41c42b
xor eax, eax
inc eax
jmp 0x41c463
cmp esi, ebx
jae 0x41c433
xor eax, eax
jmp 0x41c463
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x429500]
jmp 0x41c449
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 0x41d0ed
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x429950], ebx
push esi
push edi
jne 0x41d16d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d1a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4236b4
push edi
call esi
test eax, eax
mov dword [0x429950], eax
je 0x41d1a8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x429954], eax
call esi
cmp dword [0x429500], 2
mov dword [0x429958], eax
jne 0x41d16d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x429960], eax
je 0x41d16d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42995c], eax
mov eax, dword [0x42995c]
test eax, eax
je 0x41d1b2
call eax
test eax, eax
je 0x41d199
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x429960]
test eax, eax
je 0x41d199
test byte [ebp - 8], 1
jne 0x41d1b2
cmp dword [0x42950c], 4
jb 0x41d1ac
or byte [ebp + 0x12], 0x20
jmp 0x41d1d1
xor eax, eax
jmp 0x41d1e1
or byte [ebp + 0x12], 4
jmp 0x41d1d1
mov eax, dword [0x429954]
test eax, eax
je 0x41d1d1
call eax
mov ebx, eax
test ebx, ebx
je 0x41d1d1
mov eax, dword [0x429958]
test eax, eax
je 0x41d1d1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x429950]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ddf2
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 0x41de5d
push 0x3d
push dword [ebp + 8]
call fcn.0041ea6c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41de5d
cmp dword [ebp + 8], esi
je 0x41de5d
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x429520]
cmp eax, dword [0x429524]
jne 0x41de43
mov edi, eax
call fcn.0041dd91
mov dword [0x429520], eax
cmp eax, ebx
jne 0x41de9c
cmp dword [ebp + 0xc], ebx
je 0x41de65
cmp dword [0x429528], ebx
je 0x41de65
call fcn.0041cf2b
test eax, eax
je 0x41de9c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41dfa0
push 4
call fcn.00414ec1
cmp eax, ebx
pop ecx
mov dword [0x429520], eax
je 0x41de5d
mov dword [eax], ebx
cmp dword [0x429528], ebx
jne 0x41de9c
push 4
call fcn.00414ec1
cmp eax, ebx
pop ecx
mov dword [0x429528], eax
je 0x41de5d
mov dword [eax], ebx
mov ebx, dword [0x429520]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041dd44
mov edi, eax
test edi, edi
pop ecx
jl 0x41def5
cmp dword [ebx], 0
je 0x41def5
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00414a18
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41dedd
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41df2b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41ded4
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004172d7
test eax, eax
pop ecx
pop ecx
je 0x41df2b
jmp 0x41df26
cmp dword [ebp - 4], 0
jne 0x41df99
test edi, edi
jge 0x41df05
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004172d7
test eax, eax
pop ecx
pop ecx
je 0x41de5d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x429520], eax
cmp dword [ebp + 0xc], 0
je 0x41df82
push dword [ebp + 8]
call fcn.00414ee0
inc eax
inc eax
push eax
call fcn.00414ec1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41df82
push dword [ebp + 8]
push esi
call fcn.00414f70
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 0x41df7b
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00414a18
pop ecx
cmp dword [ebp - 4], 0
je 0x41df91
push dword [ebp + 8]
call fcn.00414a18
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41de60
push esi
call fcn.00414a18
pop ecx
xor eax, eax
jmp 0x41de60
Function at 0x9be900
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d4000]
push edi
jmp 0x9be91a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9be921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9be910
mov eax, 1
add ebx, ebx
jne 0x9be933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9be944
jne 0x9be963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9be963
dec eax
add ebx, ebx
jne 0x9be950
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9be928
add ebx, ebx
jne 0x9be95f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9be9b5
xor ecx, ecx
sub eax, 3
jb 0x9be97b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9be9ea
sar eax, 1
mov ebp, eax
jmp 0x9be986
add ebx, ebx
jne 0x9be986
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9be954
inc ecx
add ebx, ebx
jne 0x9be994
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9be954
add ebx, ebx
jne 0x9be9a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9be996
jne 0x9be9b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9be996
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9be9d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9be9c6
jmp 0x9be916
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9be9d4
add edi, ecx
jmp 0x9be916
pop esi
mov edi, esi
mov ecx, 0x85f9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9be9f2
cmp byte [edi], 0x24
jne 0x9be9f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9be9f7
lea edi, [esi + 0x5bb000]
mov eax, dword [edi]
or eax, eax
je 0x9bea6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5bfed8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c0018]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9bea24
mov ecx, edi
jns 0x9bea53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c001c]
or eax, eax
je 0x9bea69
mov dword [ebx], eax
add ebx, 4
jmp 0x9bea41
call dword [esi + 0x5c002c]
mov ebp, dword [esi + 0x5c0020]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9beaa3
sub esp, 0xffffff80
jmp 0x5209ac

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx