joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458c80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x49b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x49d5cc]
push edi
mov ax, word [esi + 0x14]
mov word [esi + 0x1f8], ax
push dword [0x49d5a8]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
setne al
mov byte [esi + 0x3d1], al
push dword [0x49d5a8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x458d1b
push 1
push dword [0x49d5a8]
call edi
push dword [0x49d5ac]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x458cf4
push 1
push dword [0x49d5ac]
call edi
mov ax, word [esi + 0x14]
mov ecx, 0x180
and ax, cx
mov ecx, 0x100
cmp ax, cx
jne 0x458d16
call fcn.00459ac0
mov byte [esi + 0x3d1], 1
call fcn.00457ca0
mov dword [esi + 0x20c], 0
lea eax, [esi + 0x208]
mov dword [esi + 0x210], 0
mov dword [esi + 0x214], 0
mov dword [esi + 0x218], 0
mov dword [esi + 0x21c], 0
mov dword [esi + 0x220], 0
mov dword [esi + 0x224], 0
mov dword [esi + 0x228], 0
mov dword [esi + 0x22c], 0
mov dword [esi + 0x230], 0
push eax
mov dword [eax], 0x2c
push dword [0x49d5a8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push dword [0x49d5a8]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x458db2
push 1
push dword [0x49d5a8]
call edi
mov ax, word [esi + 0x14]
mov ecx, 0xfefe
and ax, cx
mov ecx, 0x82
or ax, cx
test byte [esi + 0x1f8], 0x10
mov word [esi + 0x14], ax
jne 0x458e5a
mov ecx, dword [0x49d5d0]
test ecx, ecx
je 0x458e36
movsx eax, word [esi + 0x1c]
cmp dword [ecx], eax
jl 0x458e36
movsx eax, word [esi + 0x1e]
cmp dword [ecx + 4], eax
jl 0x458e36
push 2
push dword [0x49d5a8]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x458e36
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x458e36
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
movsx eax, word [esi + 0x1c]
cmp eax, ecx
jne 0x458e36
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
movsx eax, word [esi + 0x1e]
cmp eax, ecx
je 0x458e5a
or word [esi + 0x14], 0x14
push dword [0x49d5a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
movzx eax, ax
or eax, 2
push eax
push dword [0x49d5a4]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
call fcn.00457de0
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x458e8f
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x458e8f
push 8
push 0x401
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_CheckMenuItem]
call fcn.00459d00
call fcn.00457ca0
call fcn.004578c0
push 3
push dword [0x49d5a8]
call edi
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [0x49d5ac]
call esi
push 1
push 0
push dword [0x49d5a8]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x49d5e0], 1
pop esi
call fcn.00460bdc
mov esp, ebp
pop ebp
ret
Function at 0x45ba00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x49b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x49d758]
push esi
test eax, eax
jne 0x45bad6
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [0x49d758], eax
mov esi, 1
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45ba6d
cmp dword [ebp - 0x110], 2
jne 0x45ba6d
cmp dword [ebp - 0x11c], 5
ja 0x45ba6b
jne 0x45ba6d
cmp dword [ebp - 0x118], 0
je 0x45ba6d
xor esi, esi
push 0x1f4
lea eax, [ebp - 0x314]
push 0
push eax
lea esi, [esi*4 + 0x1f4]
call fcn.00462550
add esp, 0xc
mov dword [ebp - 0x318], esi
lea eax, [ebp - 0x318]
push 0
push eax
push esi
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x45bad1
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x49d758], eax
mov dword [0x49d754], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460bdc
mov esp, ebp
pop ebp
ret
mov eax, dword [0x49d758]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00460bdc
mov esp, ebp
pop ebp
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x209d78cb
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x3b5d06c6
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
dec ebx
not ebx
bswap edi
not edx
mov esi, 0x60
dec edi
bswap ebx
bswap edi
neg edx
add ebx, 0xa4
mov eax, 0x75
not ebx
mov edx, 0x21
neg edi
bswap esi
imul ebx
inc edi
mov eax, 0xf9
bswap edi
sub edi, 0x74
bswap edx
not edx
inc esi
ror eax, 0xd6
neg ebx
bswap edi
neg eax
imul edi
rol ebx, 0xbb
neg eax
and edx, 0xdd
imul eax
neg edx
bswap esi
imul ebx
inc edx
rcr edi, 0x30
neg edi
bswap eax
add eax, 0xa
imul edx
bswap edx
sbb ebx, 0xe8
sbb ebx, 0x10
add ebx, 0xb
inc esi
mov edx, 0x13
rcl edx, 0x36
inc esi
dec edi
xor ecx, ecx
xor edi, edi
rol eax, 0x3a
imul edi
ror edi, 0xc3
neg edx
dec ebx
imul edi
imul edi
not eax
inc edx
and ebx, 0x1b
inc ebx
rol eax, 0xed
bswap esi
ror edx, 0xfd
or edx, 0x3c
neg ebx
not ebx
mov ebx, 0xe3
inc edx
rcl edi, 0xdd
rcr edi, 0x39
imul edx
imul edx
and eax, 0xb1
inc edi
imul edx
rcr edx, 0x8c
rcr edx, 0x3d
or esi, 0x57
dec ebx
imul eax
or ebx, 0x75
not eax
and ebx, 0x61
inc edx
imul esi
neg edi
inc edi
dec esi
and edi, 0xe3
mov edi, 0x27
rol edi, 0x82
sub ebx, 0x6b
or esi, 0x20
inc edi
inc ebx
add edx, 0xc8
inc esi
bswap edx
rol edi, 0xe9
mov ecx, dword [ebp + 0xc]
imul edi
not esi
add ebx, 0xd8
dec esi
neg edx
and esi, 0x25
imul eax
imul edi
and edx, 0x89
or ebx, 0x73
neg edx
ror esi, 0xed
rcl eax, 0x9c
inc eax
rol edi, 0xd8
dec eax
dec edi
sbb edx, 0xb8
inc ebx
rcr ebx, 0xe7
neg esi
bswap ebx
sbb edi, 0xfe
and ebx, 0x8d
neg eax
and esi, 0x55
add edx, 0x38
not eax
not esi
mov edi, 0xee
dec edx
sub esi, 0xae
sub edx, 0x54
bswap edx
rol edx, 0xa6
not esi
or edi, 0xa5
not edx
add edx, 0x7b
or edx, 0x40
sbb edx, 0xfa
sbb esi, 0xe8
bswap esi
rol esi, 0x18
mov eax, 0x84
dec edi
neg esi
dec edi
mov eax, 0x93
rcl esi, 0xc0
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, eax
xor esi, ebx
xor eax, ebx
xor eax, ebx
xor ebx, esi
xor esi, eax
mov esi, ebx
xor ebx, eax
mov ebx, ebx
xor eax, eax
xor ebx, ebx
not byte [edi]
xor eax, eax
mov eax, ebx
xor esi, esi
xor ebx, eax
xor esi, esi
xor eax, ebx
xor ebx, esi
mov esi, ebx
mov ebx, esi
sub byte [edi], 0x49
mov ebx, eax
xor esi, ebx
xor eax, eax
mov ebx, eax
mov esi, eax
mov esi, ebx
xor ebx, esi
xor esi, eax
xor eax, ebx
add byte [edi], 0x89
xor esi, esi
mov eax, ebx
xor eax, ebx
xor eax, eax
mov eax, esi
xor eax, esi
mov esi, esi
mov ebx, esi
xor ebx, ebx
imul byte [edi]
inc edi
loop 0x4011ac
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x422202
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422073

Function at 0x4225fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00429cf0
mov eax, dword [0x4654d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041c761
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42263e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42279a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429b20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x466c40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004235f3
mov ecx, dword [esi*4 + 0x466c40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422793
cmp eax, dword [edi + ecx + 0x24]
jne 0x422793
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422793
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004235f3
add esp, 0x14
test edx, edx
jl 0x422793
jg 0x422709
test eax, eax
jb 0x422793
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422793
jl 0x422723
cmp dword [ebp - 0x1008], eax
ja 0x422793
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x422741
test ebx, ebx
je 0x42277a
cmp ecx, edi
jae 0x42277a
mov al, byte [ecx]
cmp al, 0xd
jne 0x42275b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x422767
cmp byte [ecx + 1], 0xa
jne 0x422767
inc ecx
jmp 0x422767
movzx eax, al
movsx eax, byte [eax + 0x465c78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x422741
cmp edx, ebx
jne 0x422741
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422798
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c338
leave
ret
Function at 0x422a91
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x466c40]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422ad1
cmp byte [ebx], 0xa
jne 0x422ad1
or byte [eax + edi + 0x28], 4
jmp 0x422ad6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x422bd4
mov al, byte [edx]
cmp al, 0x1a
je 0x422bb6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x422b05
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x422b2a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x422b34
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x422ae7
jmp 0x422bd4
push 0
lea eax, [ebp - 0xc]
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 0x422bb1
cmp dword [ebp - 0xc], 0
je 0x422bb1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x466c40]
test byte [eax + edi + 0x28], 0x48
je 0x422b8b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x422b76
mov byte [esi], dl
jmp 0x422b87
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x466c40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x422bd4
cmp byte [ebp - 1], 0xa
jne 0x422b9a
cmp esi, ebx
jne 0x422b9a
mov byte [esi], 0xa
jmp 0x422bd3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00423611
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422bd4
mov byte [esi], 0xd
jmp 0x422bd3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x466c40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422bd0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422bd4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422bdd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x466c40]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422c20
cmp word [esi], dx
jne 0x422c20
or byte [edi + eax + 0x28], 4
jmp 0x422c25
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x422d78
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x422d58
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x422c67
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x422c9d
cmp eax, edx
jae 0x422ca9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x422c3f
jmp 0x422d78
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422d54
cmp dword [ebp - 0x14], 0
je 0x422d54
mov eax, dword [ebx*4 + 0x466c40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x422d2c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x422cf5
mov word [esi], cx
jmp 0x422d28
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x466c40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x466c40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x466c40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x422d78
pop ebx
cmp word [ebp - 4], bx
jne 0x422d3d
cmp esi, dword [ebp + 0xc]
jne 0x422d3d
mov word [esi], bx
jmp 0x422d75
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00423611
add esp, 0x10
cmp word [ebp - 4], bx
je 0x422d78
push 0xd
jmp 0x422d71
mov ecx, dword [ebx*4 + 0x466c40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422d6f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422d78
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x429a40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429a6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x429a6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021d6
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
call fcn.00406464
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406890
add esp, 0xc
call fcn.00401d3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x404f34
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [edi + 5]
push eax
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x405068
test edi, edi
jle 0x405193
mov ecx, edi
dec ecx
test ecx, ecx
jl 0x405193
inc ecx
xor esi, esi
mov eax, ebx
add eax, 5
xor edx, edx
push edx
push eax
mov eax, esi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x90
inc esi
dec ecx
jne 0x40507e
jmp 0x405193
mov byte [ebx], 0xe9
mov edx, ebx
mov eax, edx
add eax, 5
push eax
mov eax, dword [ebp - 4]
pop ecx
sub eax, ecx
inc edx
mov dword [edx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
add edi, 5
push edi
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x4052b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40731c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x407421
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x407907
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40754a
cmp byte [ebp - 5], 5
je 0x40755a
cmp byte [ebp - 5], 0xa
jne 0x4076c1
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [ebp - 4]
call fcn.00406d38
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
mov byte [eax], 0xb8
jmp 0x40769e
push 4
lea ecx, [ebp - 0x10]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
inc edx
mov eax, dword [0x4121bc]
mov eax, dword [eax]
call fcn.0040409c
jmp 0x4077e2
mov dword [ebp - 0x14], 0x4120b4
jmp 0x4077c5
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.0040409c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407901
mov byte [ebp - 6], 1
jmp 0x40790b
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret

Function at 0x407914
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x407a06
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x407c78
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407b34
push 5
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax + 0x40]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
call fcn.0040409c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407c72
mov byte [ebp - 6], 1
jmp 0x407c7c
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret
Function at 0x410244
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41036a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0041074d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [0x4121c0]
mov eax, dword [eax]
call fcn.00409ebc
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x2c
call fcn.0040576c
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403740
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041f0
mov eax, dword [ebp - 0x1c]
call fcn.004037e4
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, 5
call fcn.0040576c
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.00403740
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041f0
mov eax, dword [ebp - 0x24]
call fcn.004037e4
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x2b
call fcn.0040576c
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00403740
mov edx, dword [ebp - 0x30]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041f0
mov eax, dword [ebp - 0x2c]
call fcn.004037e4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00410818
add esp, 0x20
push 1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410371
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00403660
ret