joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411bee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420670
push 0x420668
push str.FlsAlloc
push 0x1f
call fcn.00411aad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411c22
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d1b8]
call esi
jmp 0x411c28
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411c6c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420680
push 0x420678
push str.FlsGetValue
push 0x21
call fcn.00411aad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411ca3
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d1b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x411cab
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420688
push 0x420680
push str.FlsSetValue
push 0x22
call fcn.00411aad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411ce5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d1b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411ed3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x429618]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411f13
cmp byte [ebx], 0xa
jne 0x411f13
or byte [edi + eax + 0x28], 4
jmp 0x411f18
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x412017
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411ffa
inc eax
cmp dl, 0xd
je 0x411f44
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x411f6a
cmp eax, ecx
jae 0x411f78
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x411f2c
jmp 0x412017
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411ff5
cmp dword [ebp - 0x10], 0
je 0x411ff5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x429618]
test byte [eax + edi + 0x28], 0x48
je 0x411fcf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411fba
mov byte [esi], dl
jmp 0x411fcb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x429618]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412017
cmp byte [ebp - 1], 0xa
jne 0x411fde
cmp esi, ebx
jne 0x411fde
mov byte [esi], 0xa
jmp 0x412016
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041522d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412017
mov byte [esi], 0xd
jmp 0x412016
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x429618]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412014
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412017
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x412020
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x429618]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412066
cmp word [ebx], dx
jne 0x412066
or byte [eax + edi + 0x28], 4
jmp 0x41206b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4121ce
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4121ae
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4120ac
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4120e2
cmp eax, edx
jae 0x4120f0
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x412087
jmp 0x4121ce
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4121a9
cmp dword [ebp - 0x18], 0
je 0x4121a9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x429618]
test byte [eax + edi + 0x28], 0x48
je 0x41217f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x412143
mov word [esi], cx
jmp 0x41217a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x429618]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x429618]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x429618]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4121ce
pop eax
cmp word [ebp - 4], ax
jne 0x41218f
cmp esi, ebx
jne 0x41218f
mov word [esi], ax
jmp 0x4121cb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041522d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4121ce
push 0xd
pop eax
jmp 0x41218a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x429618]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4121c8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4121ce
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413a58
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x413af5
push ebx
push esi
call fcn.00413a21
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041190e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x413aa2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413af4
push edi
push eax
call fcn.004105fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413ac2
call fcn.0040ed1d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413af3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041190e
add esp, 0x20
test eax, eax
jne 0x413ae1
push edi
call fcn.0040ed1d
jmp 0x413ae9
push ebx
call fcn.0040ed1d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4197a1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041971d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x419910
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x419910
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4198c5
jg 0x4197fd
test eax, eax
je 0x4198bb
push 1
push 0x1000
call fcn.004129ed
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x419820
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4198b2
push 0x8000
push ebx
call fcn.0040c725
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x419849
jg 0x419844
cmp ecx, 0x1000
jb 0x419849
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040e385
add esp, 0x10
cmp eax, 0xffffffff
je 0x41988e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x419844
jl 0x419875
test ecx, ecx
jne 0x419836
push dword [ebp - 0xc]
push ebx
call fcn.0040c725
push esi
call fcn.0040ed1d
add esp, 0xc
xor ebx, ebx
jmp 0x41991e
cmp byte [edi + 0x24], 0
je 0x4198a5
cmp dword [edi + 0x20], 5
jne 0x4198a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4198b0
mov ebx, dword [edi + 0x18]
jmp 0x4198b2
xor ebx, ebx
push esi
call fcn.0040ed1d
pop ecx
jmp 0x41991e
test ecx, ecx
jg 0x419887
jl 0x4198c5
test eax, eax
jae 0x419887
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041522d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4198e5
cmp byte [edi + 0x1c], 0
je 0x419887
jmp 0x419916
push ebx
call fcn.0040da31
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x419887
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41991e
cmp byte [edi + 0x1c], 0
je 0x41991b
mov ebx, dword [edi + 0x18]
jmp 0x41991e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041522d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41bac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41baed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41baed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4797c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x50000]
push edi
or ebp, 0xffffffff
jmp 0x4797e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4797e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4797d8
mov eax, 1
add ebx, ebx
jne 0x4797fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47980c
jne 0x47982b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47982b
dec eax
add ebx, ebx
jne 0x479818
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4797f0
add ebx, ebx
jne 0x479827
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47987d
xor ecx, ecx
sub eax, 3
jb 0x479843
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4798b2
sar eax, 1
mov ebp, eax
jmp 0x47984e
add ebx, ebx
jne 0x47984e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47981c
inc ecx
add ebx, ebx
jne 0x47985c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47981c
add ebx, ebx
jne 0x479869
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47985e
jne 0x47987a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47985e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47989c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47988e
jmp 0x4797de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47989c
add edi, ecx
jmp 0x4797de
pop esi
mov edi, esi
mov ecx, 0x1114
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4798ba
cmp byte [edi], 0x11
jne 0x4798ba
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 0x4798bf
lea edi, [esi + 0x76000]
mov eax, dword [edi]
or eax, eax
je 0x479937
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7d758]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7d848]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4798ec
mov ecx, edi
jns 0x47991b
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 + 0x7d84c]
or eax, eax
je 0x479931
mov dword [ebx], eax
add ebx, 4
jmp 0x479909
call dword [esi + 0x7d85c]
mov ebp, dword [esi + 0x7d850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x47996b
sub esp, 0xffffff80
jmp 0x4143db
Function at 0x46e2f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5b000]
push edi
jmp 0x46e30a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46e311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e300
mov eax, 1
add ebx, ebx
jne 0x46e323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46e334
jne 0x46e353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e353
dec eax
add ebx, ebx
jne 0x46e340
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46e318
add ebx, ebx
jne 0x46e34f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46e3a5
xor ecx, ecx
sub eax, 3
jb 0x46e36b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46e3da
sar eax, 1
mov ebp, eax
jmp 0x46e376
add ebx, ebx
jne 0x46e376
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e344
inc ecx
add ebx, ebx
jne 0x46e384
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e344
add ebx, ebx
jne 0x46e391
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46e386
jne 0x46e3a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46e386
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46e3c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46e3b6
jmp 0x46e306
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46e3c4
add edi, ecx
jmp 0x46e306
pop esi
mov edi, esi
mov ecx, 0xb87
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46e3e2
cmp byte [edi], 9
jne 0x46e3e2
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 0x46e3e7
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x46e45f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9a12c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9a1b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46e414
mov ecx, edi
jns 0x46e443
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 + 0x9a1bc]
or eax, eax
je 0x46e459
mov dword [ebx], eax
add ebx, 4
jmp 0x46e431
call dword [esi + 0x9a1cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x46e490
cmp al, 0xef
ja 0x46e483
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46e465
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46e472
mov ebp, dword [esi + 0x9a1c0]
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 0x46e4c4
sub esp, 0xffffff80
jmp 0x422ce3
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401320
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x134], ax
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0040fe70
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40141a
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
mov dx, word [ebp - 0x1c]
mov word [ebp - 0x134], dx
cmp dword [ebp - 0xc], 5
jne 0x4013cc
cmp dword [ebp - 8], 0
jne 0x4013cc
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x4013cc
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x4013df
cmp dword [ebp - 8], 2
jne 0x4013df
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x4013f8
cmp dword [ebp - 8], 2
jae 0x4013f1
cmp dword [ebp - 8], 1
jne 0x4013f8
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x40141a
cmp dword [ebp - 8], 0
jne 0x40140d
mov dword [ebp - 4], 4
jmp 0x40141a
cmp dword [ebp - 8], 1
jne 0x40141a
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret
Function at 0x401e40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x138], 0x114
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x134], 5
jne 0x401ee2
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x140], ecx
cmp dword [ebp - 0x140], 0
je 0x401e9c
cmp dword [ebp - 0x140], 1
je 0x401eac
cmp dword [ebp - 0x140], 2
je 0x401ec9
jmp 0x401ed9
mov dword [ebp - 0xc], 0xa0
mov dword [ebp - 0x10], 0xa4
jmp 0x401ee0
push 0x41fc7c
call fcn.00409915
add esp, 4
mov dword [ebp - 0xc], 0x88
mov dword [ebp - 0x10], 0x8c
jmp 0x401ee0
mov dword [ebp - 0xc], 0x8a
mov dword [ebp - 0x10], 0x8e
jmp 0x401ee0
xor eax, eax
jmp 0x40202a
jmp 0x401f14
cmp dword [ebp - 0x134], 4
jne 0x401f0d
cmp dword [ebp - 0x130], 0
jne 0x401f0d
cmp dword [ebp - 0x128], 2
jne 0x401f0d
mov dword [ebp - 0xc], 0x98
mov dword [ebp - 0x10], 0x9c
jmp 0x401f14
xor eax, eax
jmp 0x40202a
mov dword [ebp - 8], 0xffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401f3c
xor eax, eax
jmp 0x40202a
mov eax, dword [ebp + 8]
push eax
call fcn.00401c80
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401f58
xor eax, eax
jmp 0x40202a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
push 0x41fc84
call fcn.00409915
add esp, 8
mov edx, dword [ebp - 4]
push edx
push 0x41fc94
call fcn.00409915
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.004096b8
add esp, 4
push 0x41fca4
call fcn.00409915
add esp, 4
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
push eax
call fcn.00401db0
add esp, 0xc
test eax, eax
je 0x40201e
push 4
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
push edx
call fcn.00401db0
add esp, 0xc
test eax, eax
je 0x40201c
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.00401df0
add esp, 0xc
test eax, eax
je 0x40201c
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401df0
add esp, 0xc
test eax, eax
je 0x40201c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40202a
jmp 0x40202a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret
Function at 0x402040
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402075
push 1
push 0x41fcb8
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401b30
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x402085
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x2c], ax
xor ecx, ecx
mov dword [ebp - 0x2a], ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov word [ebp - 0xe], cx
push 0x68
push 0
lea edx, [ebp - 0x98]
push edx
call fcn.0040fe70
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x20
lea ecx, [ebp - 0x98]
push ecx
call fcn.00408f0c
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401070
add esp, 8
lea edx, [ebp - 0x2c]
push edx
push 0x10
lea eax, [ebp - 0x56]
push eax
call fcn.00408f0c
add esp, 0xc
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa0], 0
jmp 0x403839
mov edx, dword [ebp - 0xa0]
add edx, 1
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0x68
jae 0x403863
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0xa0]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp - 0x9c]
add edx, dword [ebp - 0xa0]
mov byte [edx], cl
jmp 0x40382a
push 0x41f904
mov eax, dword [ebp + 8]
push eax
call fcn.00409041
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403881
jmp 0x40389f
mov ecx, dword [ebp - 8]
push ecx
push 0x68
push 1
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0040a1c4
add esp, 0x10
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x4038b1
mov eax, dword [ebp - 8]
push eax
call fcn.00409122
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret