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

Disassembly:
push 0x2c
mov eax, 0x5847dd
call fcn.00556206
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x56edbd
xor eax, eax
jmp 0x56ef30
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x56edeb
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x56edeb
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x56ef30
cmp dword [esi + 0x54], ebx
je 0x56ef2b
mov ecx, esi
call fcn.0056e20f
cmp dword [esi + 0x44], ebx
jne 0x56ee1b
push dword [esi + 0x54]
push edi
call fcn.0056e409
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x56ef30
jmp 0x56ef2b
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0056ea62
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x56eed8
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x56ef20
cmp eax, ebx
jg 0x56eee0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x56ee8a
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x56eeaf
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x56ee9d
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.005593b0
add esp, 0x10
cmp edi, eax
jne 0x56ef20
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x56ef0f
test edi, edi
jne 0x56ee3c
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x56ef25
push 8
call fcn.004132f0
jmp 0x56ee3c
mov edx, dword [ebp - 0x2c]
jmp 0x56ee4e
cmp eax, 3
jne 0x56ef20
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.0056e409
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x56eeff
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004146d0
mov ax, si
jmp 0x56ef30
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004146d0
mov ax, word [ebp + 8]
jmp 0x56ef30
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.004146d0
mov eax, 0xffff
call fcn.00556289
ret 4
Function at 0x416390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.___1
lea edi, [esi - 0x10000]
push edi
jmp 0x4163aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4163b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4163a0
mov eax, 1
add ebx, ebx
jne 0x4163c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4163b8
jne 0x4163d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4163b8
xor ecx, ecx
sub eax, 3
jb 0x4163e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41645a
mov ebp, eax
add ebx, ebx
jne 0x4163f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416400
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416424
inc ecx
add ebx, ebx
jne 0x416410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416405
jne 0x416421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416405
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416444
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416435
jmp 0x4163a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416444
add edi, ecx
jmp 0x4163a6
pop esi
mov edi, esi
mov ecx, 0x2ee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416462
cmp byte [edi], 6
jne 0x416462
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 0x416467
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x4164d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x161b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16238]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416494
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16240]
or eax, eax
je 0x4164d0
mov dword [ebx], eax
add ebx, 4
jmp 0x4164b1
call dword [esi + 0x1623c]
mov ebp, dword [esi + 0x16244]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x41650a
sub esp, 0xffffff80
jmp 0x409134
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47a004]
jne 0x401010
repz ret
jmp fcn.0040150a

Function at 0x407585
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404bd7
and dword [ebp - 4], 0
cmp dword [0x47c23c], 0
mov ebx, eax
jne 0x407636
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4076e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4076e7
push eax
call fcn.00404b65
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47c23c], eax
call esi
push eax
call fcn.00404b65
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47c240], eax
call esi
push eax
call fcn.00404b65
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47c244], eax
call esi
push eax
call fcn.00404b65
pop ecx
mov dword [0x47c24c], eax
test eax, eax
je 0x407636
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b65
pop ecx
mov dword [0x47c248], eax
mov eax, dword [0x47c248]
cmp eax, ebx
je 0x40768e
cmp dword [0x47c24c], ebx
je 0x40768e
push eax
call fcn.00404be0
push dword [0x47c24c]
mov esi, eax
call fcn.00404be0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40768e
test edi, edi
je 0x40768e
call esi
test eax, eax
je 0x407685
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407685
test byte [ebp - 0xc], 1
jne 0x40768e
or dword [ebp + 0x10], 0x200000
jmp 0x4076c7
mov eax, dword [0x47c240]
cmp eax, ebx
je 0x4076c7
push eax
call fcn.00404be0
pop ecx
test eax, eax
je 0x4076c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4076c7
mov eax, dword [0x47c244]
cmp eax, ebx
je 0x4076c7
push eax
call fcn.00404be0
pop ecx
test eax, eax
je 0x4076c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47c23c]
call fcn.00404be0
pop ecx
test eax, eax
je 0x4076e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4076e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417a50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x413015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x417a72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417a79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417a68
mov eax, 1
add ebx, ebx
jne 0x417a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417a80
jne 0x417a9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417a80
xor ecx, ecx
sub eax, 3
jb 0x417ab0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417b22
mov ebp, eax
add ebx, ebx
jne 0x417abb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417ac8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417aec
inc ecx
add ebx, ebx
jne 0x417ad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417acd
jne 0x417ae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417acd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417b0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417afd
jmp 0x417a6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417b0c
add edi, ecx
jmp 0x417a6e
pop esi
mov edi, esi
mov ecx, 0x27e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417b2a
cmp byte [edi], 5
jne 0x417b2a
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 0x417b2f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417b9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cd0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cd5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417b5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1cd60]
or eax, eax
je 0x417b98
mov dword [ebx], eax
add ebx, 4
jmp 0x417b79
call dword [esi + 0x1cd70]
mov ebp, dword [esi + 0x1cd64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x17bf9]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417bea
sub esp, 0xffffff80
jmp 0x401280
Function at 0x4011b5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x419050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403244
leave
ret
Function at 0x402a42
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push 0x10
mov dword [ebp - 8], esi
call fcn.00402a13
test eax, eax
jne 0x402a63
mov eax, 0x8007000e
jmp 0x402c1c
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0
push ebx
call fcn.00405266
add esp, 0xc
test eax, eax
je 0x402a82
mov eax, 0x80004005
jmp 0x402c1b
push edi
push ebx
call fcn.00405171
mov edi, eax
test edi, edi
pop ecx
jne 0x402a9a
mov eax, 0x80004005
jmp 0x402c1a
lea eax, [edi + 1]
push eax
call fcn.00402efe
pop ecx
add esi, 0x20
push eax
mov ecx, esi
call fcn.004028d5
xor eax, eax
cmp dword [esi], eax
je 0x402c21
push eax
push eax
push ebx
call fcn.00405266
add esp, 0xc
test eax, eax
jne 0x402adb
mov eax, dword [esi]
push ebx
push edi
push 1
push eax
call fcn.00404fbe
add esp, 0x10
cmp eax, edi
je 0x402ae5
mov eax, 0x80470003
jmp 0x402c1a
mov eax, dword [esi]
mov byte [edi + eax], 0
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov edi, 0x4155e8
xor ebx, ebx
push edi
mov dword [ebp + 8], ebx
call fcn.00402e9c
cmp eax, ebx
jmp 0x402c0d
mov cl, byte [eax]
cmp cl, 0x23
je 0x402c01
cmp cl, 0x3b
je 0x402c01
push eax
mov esi, 0x4155f0
push esi
call fcn.00402e6c
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov cl, byte [eax]
test cl, cl
je 0x402c01
cmp cl, 0x5b
jne 0x402b78
and dword [ebp + 8], 0
inc eax
mov dword [ebp - 4], eax
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x4155f4
call fcn.00402e9c
test eax, eax
pop ecx
pop ecx
je 0x402b71
lea eax, [ebp - 4]
push eax
push esi
call fcn.00402e9c
test eax, eax
pop ecx
pop ecx
je 0x402c01
xor ebx, ebx
jmp 0x402c01
test ebx, ebx
je 0x402c01
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4155ec
call fcn.00402e9c
test eax, eax
pop ecx
pop ecx
je 0x402c01
push 0xc
call fcn.004049b4
test eax, eax
pop ecx
je 0x402bb2
mov ecx, dword [ebp - 4]
mov dword [eax], esi
mov dword [eax + 4], ecx
and dword [eax + 8], 0
mov esi, eax
jmp 0x402bb4
xor esi, esi
test esi, esi
je 0x402c21
cmp dword [ebp + 8], 0
jne 0x402be6
mov ecx, dword [ebp - 8]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0040292a
cmp dword [ebp + 8], 0
je 0x402bf7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x402be0
mov dword [ebp + 8], eax
jmp 0x402bd1
cmp dword [ebp + 8], 0
je 0x402bf7
mov ecx, dword [ebp + 8]
push esi
add ecx, 8
call fcn.00402912
mov dword [ebp + 8], esi
jmp 0x402c01
mov ecx, dword [ebp - 8]
push esi
push ebx
call fcn.004029c3
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00402e9c
test eax, eax
pop ecx
mov dword [ebp - 4], eax
pop ecx
jne 0x402b0b
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 4
mov eax, 0x8007000e
jmp 0x402c1a

Function at 0x403244
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419050]
jne 0x40324e
repz ret
jmp fcn.004080a8
Function at 0x404b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x404b3d
call fcn.00408077
mov dword [eax], esi
call fcn.00408064
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00408005
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x404b19
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404b6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040808a
pop ecx
call fcn.00408064
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x404b93
test al, 1
je 0x404b93
test byte [esp + 0xc], 2
je 0x404b93
call fcn.00408077
mov dword [eax], 5
call fcn.00408064
mov dword [eax], 0xd
jmp 0x404b63
xor eax, eax
pop esi
ret
Function at 0x404d22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x404d5f
cmp dword [ebp + 0x14], edi
je 0x404d5f
cmp ecx, edi
jne 0x404d66
call fcn.00408064
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00408005
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x404d7a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x404d9b
cmp ebx, 0xffffffff
je 0x404d8a
push ebx
push edi
push ecx
call fcn.00403db0
add esp, 0xc
cmp esi, edi
je 0x404d47
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x404d47
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x404db7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x404dbe
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x404eaf
test word [esi + 0xc], 0x10c
je 0x404e12
mov eax, dword [esi + 4]
test eax, eax
je 0x404e12
jl 0x404f10
cmp ebx, eax
mov edi, ebx
jb 0x404de3
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x404eb7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040cb49
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x404ea7
cmp ebx, dword [ebp - 0xc]
jb 0x404e7f
cmp dword [ebp - 0xc], 0
je 0x404e3c
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x404e31
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x404e38
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x404e47
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x404e47
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x404ee3
push eax
push dword [ebp - 8]
push esi
call fcn.00408efa
pop ecx
push eax
call fcn.0040ca4c
add esp, 0xc
test eax, eax
je 0x404f22
cmp eax, 0xffffffff
je 0x404f10
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x404ea7
push esi
call fcn.0040b5b4
cmp eax, 0xffffffff
pop ecx
je 0x404f14
cmp dword [ebp - 4], 0
je 0x404ee3
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x404dc6
mov eax, dword [ebp + 0x14]
jmp 0x404d61
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x404ece
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00403db0
add esp, 0xc
call fcn.00408064
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x404d57
cmp dword [ebp + 0xc], 0xffffffff
je 0x404ef9
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00403db0
add esp, 0xc
call fcn.00408064
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x404d57
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x404d61
or dword [esi + 0xc], 0x10
jmp 0x404f14
Function at 0x405fdc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x419338]
je 0x405ff7
inc edi
cmp edi, 0x17
jb 0x405fe8
cmp edi, 0x17
jae 0x406177
push ebp
push 3
call fcn.0040db09
cmp eax, 1
pop ecx
je 0x406143
push 3
call fcn.0040db09
test eax, eax
pop ecx
jne 0x40602b
cmp dword [0x419044], 1
je 0x406143
cmp ebx, 0xfc
je 0x406176
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41a5b8
push ebp
call fcn.0040a0da
add esp, 0xc
test eax, eax
je 0x406061
push esi
push esi
push esi
push esi
push esi
call fcn.00407f09
add esp, 0x14
push 0x104
mov esi, 0x41a5d1
push esi
push 0
mov byte [0x41a6d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4060a5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040a0da
add esp, 0xc
test eax, eax
je 0x4060a5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407f09
add esp, 0x14
push esi
call fcn.00404850
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4060ea
push esi
call fcn.00404850
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41a8cc
push 0x415de4
sub ecx, eax
push ecx
push eax
call fcn.0040da56
add esp, 0x14
test eax, eax
je 0x4060ea
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407f09
add esp, 0x14
jmp 0x4060ec
xor esi, esi
push 0x415de0
push ebx
push ebp
call fcn.0040d9e5
add esp, 0xc
test eax, eax
je 0x40610c
push esi
push esi
push esi
push esi
push esi
call fcn.00407f09
add esp, 0x14
push dword [edi*8 + 0x41933c]
push ebx
push ebp
call fcn.0040d9e5
add esp, 0xc
test eax, eax
je 0x40612e
push esi
push esi
push esi
push esi
push esi
call fcn.00407f09
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040d828
add esp, 0xc
jmp 0x406176
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x406176
cmp ebp, 0xffffffff
je 0x406176
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41933c]
push dword [esi]
call fcn.00404850
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40d828
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406b46
xor ebx, ebx
cmp dword [0x41affc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40d8fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40d9de
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40d9de
push eax
call fcn.00406ad8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41affc], eax
call esi
push eax
call fcn.00406ad8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41b000], eax
call esi
push eax
call fcn.00406ad8
mov dword [0x41b004], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405d69
test eax, eax
pop ecx
pop ecx
je 0x40d8cc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f09
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40d8fe
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00406ad8
cmp eax, ebx
pop ecx
mov dword [0x41b00c], eax
je 0x40d8fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406ad8
pop ecx
mov dword [0x41b008], eax
mov eax, dword [0x41b008]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40d983
cmp dword [0x41b00c], ecx
je 0x40d983
push eax
call fcn.00406b4f
push dword [0x41b00c]
mov esi, eax
call fcn.00406b4f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40d983
cmp edi, ebx
je 0x40d983
call esi
cmp eax, ebx
je 0x40d950
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d950
test byte [ebp - 0x18], 1
jne 0x40d983
lea eax, [ebp - 0x10]
push eax
call fcn.00405da0
test eax, eax
pop ecx
je 0x40d96b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f09
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40d97a
or dword [ebp + 0x10], 0x200000
jmp 0x40d9be
or dword [ebp + 0x10], 0x40000
jmp 0x40d9be
mov eax, dword [0x41b000]
cmp eax, dword [ebp - 8]
je 0x40d9be
push eax
call fcn.00406b4f
cmp eax, ebx
pop ecx
je 0x40d9be
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40d9be
mov eax, dword [0x41b004]
cmp eax, dword [ebp - 8]
je 0x40d9be
push eax
call fcn.00406b4f
cmp eax, ebx
pop ecx
je 0x40d9be
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41affc]
call fcn.00406b4f
cmp eax, ebx
pop ecx
je 0x40d9de
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d9e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x42993a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429930
mov eax, 1
add ebx, ebx
jne 0x429953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429948
jne 0x429964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429948
xor ecx, ecx
sub eax, 3
jb 0x429978
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4299ea
mov ebp, eax
add ebx, ebx
jne 0x429983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4299b4
inc ecx
add ebx, ebx
jne 0x4299a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x429995
jne 0x4299b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429995
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4299d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4299c5
jmp 0x429936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4299d4
add edi, ecx
jmp 0x429936
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4299f2
cmp byte [edi], 0x12
jne 0x4299f2
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 0x4299f7
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429a6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d538]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d618]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x429a24
mov ecx, edi
jns 0x429a53
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 + 0x2d620]
or eax, eax
je 0x429a69
mov dword [ebx], eax
add ebx, 4
jmp 0x429a41
call dword [esi + 0x2d61c]
mov ebp, dword [esi + 0x2d624]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x429aa3
sub esp, 0xffffff80
jmp 0x41942f