joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41689c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x429364]
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 0x4168c5
xor eax, eax
jmp 0x416a33
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 + 0x42e660]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4168f8
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041a35e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4169ca
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x416a05
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 0x416953
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x416944
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 0x416927
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 0x416993
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x41699c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x416918
jmp 0x41699e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x416a2e
cmp dword [ebp - 8], edi
je 0x416a05
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4169f7
call fcn.0041a263
mov dword [eax], 9
call fcn.0041a26c
mov dword [eax], esi
jmp 0x416a00
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 0x4169ec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x41699e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41699e
push dword [ebp - 8]
call fcn.0041a275
pop ecx
or eax, 0xffffffff
jmp 0x416a31
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x416a1a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x416a1a
xor eax, eax
jmp 0x416a31
call fcn.0041a263
mov dword [eax], 0x1c
call fcn.0041a26c
mov dword [eax], edi
jmp 0x416a00
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00418047
leave
ret
Function at 0x417114
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x417130
call fcn.0041a263
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4171a2
push esi
push 0x88
push 1
call fcn.0041b0bd
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x417188
push esi
call fcn.0041aa90
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x417074
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 0x417180
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x41719f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00415a78
test ebx, ebx
pop ecx
je 0x41719a
push ebx
call fcn.0041a275
pop ecx
or eax, 0xffffffff
jmp 0x4171a1
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x41785b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0041906b
xor esi, esi
inc esi
cmp dword [0x42b580], esi
pop ecx
jne 0x417883
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 [0x42b57c], esi
mov byte [0x42b578], al
jne 0x4178e9
mov ecx, dword [0x42e790]
test ecx, ecx
je 0x4178ca
mov eax, dword [0x42e78c]
sub eax, 4
cmp eax, ecx
jmp 0x4178c3
mov eax, dword [eax]
test eax, eax
je 0x4178b5
call eax
mov eax, dword [0x42e78c]
sub eax, 4
cmp eax, dword [0x42e790]
mov dword [0x42e78c], eax
jae 0x4178ad
mov eax, 0x42906c
mov esi, 0x429078
cmp eax, esi
mov edi, eax
jae 0x4178e9
mov eax, dword [edi]
test eax, eax
je 0x4178e2
call eax
add edi, 4
cmp edi, esi
jb 0x4178da
mov eax, 0x42907c
mov esi, 0x429084
cmp eax, esi
mov edi, eax
jae 0x417908
mov eax, dword [edi]
test eax, eax
je 0x417901
call eax
add edi, 4
cmp edi, esi
jb 0x4178f9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x417919
push 8
call fcn.00418fd7
jmp 0x41792b
push dword [ebp + 8]
mov dword [0x42b580], 1
call fcn.004177b4
pop ecx
pop ebp
ret
Function at 0x4179b7
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x423748
call fcn.00419bc0
mov edi, 0x94
mov eax, edi
call fcn.004181c0
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 [0x42b540], ecx
mov eax, dword [esi + 4]
mov dword [0x42b54c], eax
mov edx, dword [esi + 8]
mov dword [0x42b550], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42b544], esi
cmp ecx, 2
je 0x417a17
or esi, 0x8000
mov dword [0x42b544], esi
shl eax, 8
add eax, edx
mov dword [0x42b548], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x417a52
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417a52
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x417a6a
cmp eax, 0x20b
je 0x417a57
mov dword [ebp - 0x1c], esi
jmp 0x417a7e
cmp dword [ecx + 0x84], 0xe
jbe 0x417a52
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x417a78
cmp dword [ecx + 0x74], 0xe
jbe 0x417a52
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418ee8
pop ecx
test eax, eax
jne 0x417a92
push 0x1c
call fcn.00417993
pop ecx
call fcn.0041ac7f
test eax, eax
jne 0x417aa3
push 0x10
call fcn.00417993
pop ecx
call fcn.0041b828
mov dword [ebp - 4], esi
call fcn.00419d47
test eax, eax
jge 0x417abc
push 0x1b
call fcn.0041796e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42e784], eax
call fcn.0041bd9e
mov dword [0x42b584], eax
call fcn.0041bcfc
test eax, eax
jge 0x417ae2
push 8
call fcn.0041796e
pop ecx
call fcn.0041bac9
test eax, eax
jge 0x417af3
push 9
call fcn.0041796e
pop ecx
call fcn.004177f6
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x417b06
push eax
call fcn.0041796e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041ba60
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x417b27
movzx eax, word [ebp - 0x34]
jmp 0x417b2a
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004086dc
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x417b48
push edi
call fcn.0041792e
call fcn.00417950
jmp 0x417b7a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00419bfb
ret
Function at 0x419c0c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004181c0
mov eax, dword [0x429364]
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.0041677d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x419d36
push 2
push esi
push dword [ebp + 8]
call fcn.0041677d
add esp, 0xc
cmp eax, ebx
je 0x419d36
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x419cd9
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00416610
push 0x8000
push dword [ebp + 8]
call fcn.0041d180
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x419c92
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0041689c
add esp, 0xc
cmp eax, 0xffffffff
je 0x419cb2
sub edi, eax
test edi, edi
jg 0x419c8a
jmp 0x419cca
call fcn.0041a26c
cmp dword [eax], 5
jne 0x419cc7
call fcn.0041a263
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0041d180
pop ecx
pop ecx
jmp 0x419d21
jge 0x419d21
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041677d
push dword [ebp + 8]
call fcn.0041a040
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 0x419d21
call fcn.0041a263
mov dword [eax], 0xd
call fcn.0041a26c
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.0041677d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x419d38
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00418047
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041a275
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41ae96
test byte [esp + 8], 2
je 0x41ae96
call fcn.0041a263
mov dword [eax], 0xd
call fcn.0041a26c
mov dword [eax], 5
jmp 0x41ae6f
xor eax, eax
ret
Function at 0x41b8b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x429364]
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 + 0x429af8]
je 0x41b8dd
inc eax
cmp eax, 0x12
jb 0x41b8ce
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x429af8]
jne 0x41ba11
mov eax, dword [0x42b58c]
cmp eax, 1
je 0x41b9ec
cmp eax, edx
jne 0x41b90d
cmp dword [0x42934c], 1
je 0x41b9ec
cmp ecx, 0xfc
je 0x41ba11
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 0x41b946
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00415fd0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00415f40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41b988
lea eax, [ebp - 0x10c]
push eax
call fcn.00415f40
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x423dc8
push edi
call fcn.00416270
add esp, 0x10
push edi
call fcn.00415f40
push dword [esi + 0x429afc]
mov ebx, eax
call fcn.00415f40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004181c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415fd0
push edi
push ebx
call fcn.00415fe0
push 0x423da8
push ebx
call fcn.00415fe0
push dword [esi + 0x429afc]
push ebx
call fcn.00415fe0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041e14d
add esp, 0x2c
jmp 0x41ba11
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x429afc]
push dword [esi]
call fcn.00415f40
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.00418047
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d3fa
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.004181c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d48f
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 [0x42b540]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41d48f
cmp eax, 1
je 0x41d4a7
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 0x41d48f
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41d464
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41d48b
xor eax, eax
inc eax
jmp 0x41d4c3
cmp esi, ebx
jae 0x41d493
xor eax, eax
jmp 0x41d4c3
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42b540]
jmp 0x41d4a9
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 0x41e14d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42b990], ebx
push esi
push edi
jne 0x41e1cd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41e208
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4246bc
push edi
call esi
test eax, eax
mov dword [0x42b990], eax
je 0x41e208
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42b994], eax
call esi
cmp dword [0x42b540], 2
mov dword [0x42b998], eax
jne 0x41e1cd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42b9a0], eax
je 0x41e1cd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42b99c], eax
mov eax, dword [0x42b99c]
test eax, eax
je 0x41e212
call eax
test eax, eax
je 0x41e1f9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42b9a0]
test eax, eax
je 0x41e1f9
test byte [ebp - 8], 1
jne 0x41e212
cmp dword [0x42b54c], 4
jb 0x41e20c
or byte [ebp + 0x12], 0x20
jmp 0x41e231
xor eax, eax
jmp 0x41e241
or byte [ebp + 0x12], 4
jmp 0x41e231
mov eax, dword [0x42b994]
test eax, eax
je 0x41e231
call eax
mov ebx, eax
test ebx, ebx
je 0x41e231
mov eax, dword [0x42b998]
test eax, eax
je 0x41e231
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42b990]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ee52
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 0x41eebd
push 0x3d
push dword [ebp + 8]
call fcn.0041facc
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41eebd
cmp dword [ebp + 8], esi
je 0x41eebd
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x42b560]
cmp eax, dword [0x42b564]
jne 0x41eea3
mov edi, eax
call fcn.0041edf1
mov dword [0x42b560], eax
cmp eax, ebx
jne 0x41eefc
cmp dword [ebp + 0xc], ebx
je 0x41eec5
cmp dword [0x42b568], ebx
je 0x41eec5
call fcn.0041df8b
test eax, eax
je 0x41eefc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41f000
push 4
call fcn.00415f21
cmp eax, ebx
pop ecx
mov dword [0x42b560], eax
je 0x41eebd
mov dword [eax], ebx
cmp dword [0x42b568], ebx
jne 0x41eefc
push 4
call fcn.00415f21
cmp eax, ebx
pop ecx
mov dword [0x42b568], eax
je 0x41eebd
mov dword [eax], ebx
mov ebx, dword [0x42b560]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041eda4
mov edi, eax
test edi, edi
pop ecx
jl 0x41ef55
cmp dword [ebx], 0
je 0x41ef55
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00415a78
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41ef3d
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41ef8b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41ef34
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00418337
test eax, eax
pop ecx
pop ecx
je 0x41ef8b
jmp 0x41ef86
cmp dword [ebp - 4], 0
jne 0x41eff9
test edi, edi
jge 0x41ef65
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00418337
test eax, eax
pop ecx
pop ecx
je 0x41eebd
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x42b560], eax
cmp dword [ebp + 0xc], 0
je 0x41efe2
push dword [ebp + 8]
call fcn.00415f40
inc eax
inc eax
push eax
call fcn.00415f21
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41efe2
push dword [ebp + 8]
push esi
call fcn.00415fd0
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 0x41efdb
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00415a78
pop ecx
cmp dword [ebp - 4], 0
je 0x41eff1
push dword [ebp + 8]
call fcn.00415a78
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41eec0
push esi
call fcn.00415a78
pop ecx
xor eax, eax
jmp 0x41eec0
Function at 0x429c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0x429c6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429c60
mov eax, 1
add ebx, ebx
jne 0x429c83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429c78
jne 0x429c94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429c78
xor ecx, ecx
sub eax, 3
jb 0x429ca8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429d1a
mov ebp, eax
add ebx, ebx
jne 0x429cb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429cc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x429ce4
inc ecx
add ebx, ebx
jne 0x429cd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x429cc5
jne 0x429ce1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429cc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x429d04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x429cf5
jmp 0x429c66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x429d04
add edi, ecx
jmp 0x429c66
pop esi
mov edi, esi
mov ecx, 0x651
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x429d22
cmp byte [edi], 5
jne 0x429d22
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 0x429d27
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429d9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f49c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f528]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x429d54
mov ecx, edi
jns 0x429d83
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 + 0x2f52c]
or eax, eax
je 0x429d99
mov dword [ebx], eax
add ebx, 4
jmp 0x429d71
call dword [esi + 0x2f53c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x429dd0
cmp al, 0xef
ja 0x429dc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x429da5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x429db2
mov ebp, dword [esi + 0x2f530]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x429e04
sub esp, 0xffffff80
jmp 0x404f8f
Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8
Function at 0x557b50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe4000]
push edi
or ebp, 0xffffffff
jmp 0x557b72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x557b79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x557b68
mov eax, 1
add ebx, ebx
jne 0x557b8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x557b9c
jne 0x557bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x557bbb
dec eax
add ebx, ebx
jne 0x557ba8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x557b80
add ebx, ebx
jne 0x557bb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x557c0d
xor ecx, ecx
sub eax, 3
jb 0x557bd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x557c42
sar eax, 1
mov ebp, eax
jmp 0x557bde
add ebx, ebx
jne 0x557bde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x557bac
inc ecx
add ebx, ebx
jne 0x557bec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x557bac
add ebx, ebx
jne 0x557bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x557bee
jne 0x557c0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x557bee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x557c2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x557c1e
jmp 0x557b6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x557c2c
add edi, ecx
jmp 0x557b6e
pop esi
mov edi, esi
mov ecx, 0x3746
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x557c4a
cmp byte [edi], 0x13
jne 0x557c4a
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 0x557c4f
lea edi, [esi + 0x154000]
mov eax, dword [edi]
or eax, eax
je 0x557cc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15f064]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15f118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x557c7c
mov ecx, edi
jns 0x557cab
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 + 0x15f11c]
or eax, eax
je 0x557cc1
mov dword [ebx], eax
add ebx, 4
jmp 0x557c99
call dword [esi + 0x15f12c]
mov ebp, dword [esi + 0x15f120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x557cfb
sub esp, 0xffffff80
jmp 0x46da0e