joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40203b
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x4062b1
call sym._system
mov dword [0x408170], 0
mov dword [esp], 1
call sym._listeyioku
mov dword [esp], str._n_g__geri_don
call sym._puts
lea eax, [ebp - 9]
mov dword [esp + 4], eax
mov dword [esp], 0x406385
call sym._scanf
movzx eax, byte [ebp - 9]
cmp al, 0x67
jne 0x402091
mov eax, 0
jmp 0x402091
leave
ret

Function at 0x402093
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x4062b1
call sym._system
mov dword [0x408170], 1
mov dword [esp], 1
call sym._listeyioku
mov dword [esp], str._n_g__geri_don
call sym._puts
lea eax, [ebp - 9]
mov dword [esp + 4], eax
mov dword [esp], 0x406385
call sym._scanf
movzx eax, byte [ebp - 9]
cmp al, 0x67
jne 0x4020e9
mov eax, 0
jmp 0x4020e9
leave
ret

Function at 0x4020eb
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
call sym.___main
mov dword [esp], 0x4062b1
call sym._system
call sym._mainsoru
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, 2
je 0x402141
cmp eax, 2
jg 0x402123
cmp eax, 1
je 0x40212f
jmp 0x40216c
cmp eax, 3
je 0x402153
cmp eax, 4
je 0x402165
jmp 0x40216c
call sym._siparisolustur
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jne 0x402173
jmp 0x4020f9
call sym._siparisdurumu
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jne 0x402176
jmp 0x4020f9
call sym._gecmissiparisler
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jne 0x402179
jmp 0x4020f9
mov eax, 0
jmp 0x40217f
mov eax, 0
jmp 0x40217f
nop
jmp 0x40217a
nop
jmp 0x40217a
nop
mov eax, 0
leave
ret
Function at 0x4027d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4080e4
call sym._EnterCriticalSection_4
mov ebx, dword [0x4080dc]
sub esp, 4
test ebx, ebx
je 0x40281b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402814
test esi, esi
je 0x402814
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4027f0
mov dword [esp], 0x4080e4
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402a00
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402b28
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402a8e
cmp eax, 4
jne 0x402ab0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402a9e
cmp edx, 4
je 0x402a9e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402a00
Function at 0x4033f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40c790]
cmp eax, dword [0x40b3e0]
je 0x40340d
mov dword [0x40b3f0], 0x271
mov eax, dword [0x40b3f0]
cmp eax, 0x270
jl 0x403549
cmp eax, 0x271
jne 0x40343f
mov eax, dword [0x40c790]
call fcn.00404cb0
mov eax, dword [0x40c790]
not eax
mov dword [0x40c790], eax
mov dword [0x40b3e0], eax
mov dword [ebp - 0xc], 0
dec dword [ebp - 0xc]
lea esi, [esi]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax*4 + 0x40cff0]
and edx, 0x80000000
inc eax
mov eax, dword [eax*4 + 0x40cff0]
and eax, 0x7fffffff
or eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 0x18d
mov edx, dword [ebp - 8]
shr edx, 1
xor edx, dword [eax*4 + 0x40cff0]
mov eax, dword [ebp - 8]
and eax, 1
xor edx, dword [eax*4 + 0x40b400]
mov eax, dword [ebp - 0xc]
mov dword [eax*4 + 0x40cff0], edx
cmp eax, 0xe2
jl 0x40344c
mov dword [ebp - 0xc], 0xe3
dec dword [ebp - 0xc]
mov esi, esi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax*4 + 0x40cff0]
and edx, 0x80000000
inc eax
mov eax, dword [eax*4 + 0x40cff0]
and eax, 0x7fffffff
or eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 0xffffff1d
mov edx, dword [ebp - 8]
shr edx, 1
xor edx, dword [eax*4 + 0x40cff0]
mov eax, dword [ebp - 8]
and eax, 1
xor edx, dword [eax*4 + 0x40b400]
mov eax, dword [ebp - 0xc]
mov dword [eax*4 + 0x40cff0], edx
cmp eax, 0x26e
jl 0x4034b0
mov eax, dword [0x40d9ac]
and eax, 0x80000000
mov edx, dword [0x40cff0]
and edx, 0x7fffffff
or edx, eax
mov dword [ebp - 8], edx
shr edx, 1
xor edx, dword [0x40d620]
mov eax, dword [ebp - 8]
and eax, 1
xor edx, dword [eax*4 + 0x40b400]
mov dword [0x40d9ac], edx
mov dword [0x40b3f0], 0
mov eax, dword [0x40b3f0]
mov eax, dword [eax*4 + 0x40cff0]
mov dword [ebp - 8], eax
inc dword [0x40b3f0]
mov eax, dword [ebp - 8]
shr eax, 0xb
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
shr eax, 0x12
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
leave
ret
Function at 0x404cb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], eax
mov dword [0x40cff0], eax
mov dword [ebp - 8], 1
dec dword [ebp - 8]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
dec eax
mov edx, dword [eax*4 + 0x40cff0]
shr edx, 0x1e
xor edx, dword [eax*4 + 0x40cff0]
imul edx, edx, 0x6c078965
add edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x40cff0], edx
cmp eax, 0x26f
jl 0x404cc8
mov dword [0x40b3f0], 0x270
leave
ret

Function at 0x40a750
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], eax
mov eax, dword [0x40e410]
dec eax
mov word [ebp - 8], ax
mov eax, dword [0x40e400]
dec eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
push eax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0040a9e0
push eax
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
movzx ax, byte [0x40b7e0]
mov word [ebp - 0x10], ax
dec word [ebp - 8]
mov eax, dword [ebp - 4]
movzx ebx, byte [eax]
dec ebx
mov word [ebp - 0x14], 0
cmp bx, word [ebp - 0x14]
jl 0x40a7e8
dec word [ebp - 0x14]
nop
inc word [ebp - 0x14]
inc word [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.0040a9e0
push eax
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
cmp bx, word [ebp - 0x14]
jg 0x40a7bc
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
add dword [0x40e410], eax
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x40a800
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 4], al
cmp al, 7
jb 0x40a84f
sub al, 7
je 0x40a8b1
dec al
je 0x40a83a
sub al, 2
je 0x40a823
sub al, 3
je 0x40a82e
jmp 0x40a84f
inc dword [0x40e400]
jmp 0x40a8b1
mov eax, dword [0x40e340]
mov dword [0x40e410], eax
jmp 0x40a8b1
mov eax, dword [0x40e410]
cmp eax, dword [0x40e340]
jbe 0x40a8b1
dec dword [0x40e410]
jmp 0x40a8b1
mov eax, dword [0x40e410]
dec eax
mov word [ebp - 8], ax
mov eax, dword [0x40e400]
dec eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 4]
push eax
call fcn.0040a9e0
push eax
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
movzx ax, byte [0x40b7e0]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.0040a9e0
push eax
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
inc dword [0x40e410]
mov eax, dword [0x40e410]
cmp eax, dword [0x40e360]
jbe 0x40a8e0
mov eax, dword [0x40e340]
mov dword [0x40e410], eax
inc dword [0x40e400]
jmp 0x40a8e0
mov eax, 1
call fcn.0040a940
dec dword [0x40e400]
mov eax, dword [0x40e400]
cmp eax, dword [0x40e370]
ja 0x40a8d0
leave
ret
Function at 0x4209cb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420a0a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420a0a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420a0a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420a0a
cmp dword [ecx + 0x74], 0xe
jbe 0x420a0a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433180
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x65000]
push edi
jmp 0x4aa87a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4aa881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aa870
mov eax, 1
add ebx, ebx
jne 0x4aa893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4aa8a4
jne 0x4aa8c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aa8c3
dec eax
add ebx, ebx
jne 0x4aa8b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4aa888
add ebx, ebx
jne 0x4aa8bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4aa915
xor ecx, ecx
sub eax, 3
jb 0x4aa8db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4aa94a
sar eax, 1
mov ebp, eax
jmp 0x4aa8e6
add ebx, ebx
jne 0x4aa8e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aa8b4
inc ecx
add ebx, ebx
jne 0x4aa8f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aa8b4
add ebx, ebx
jne 0x4aa901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4aa8f6
jne 0x4aa912
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4aa8f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4aa934
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4aa926
jmp 0x4aa876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4aa934
add edi, ecx
jmp 0x4aa876
pop esi
mov edi, esi
mov ecx, 0x375b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4aa952
cmp byte [edi], 0x11
jne 0x4aa952
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 0x4aa957
lea edi, [esi + 0xa7000]
mov eax, dword [edi]
or eax, eax
je 0x4aa9cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb375c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb3860]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4aa984
mov ecx, edi
jns 0x4aa9b3
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 + 0xb3864]
or eax, eax
je 0x4aa9c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4aa9a1
call dword [esi + 0xb3874]
mov ebp, dword [esi + 0xb3868]
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 0x4aaa03
sub esp, 0xffffff80
jmp 0x457c47
Function at 0x403d61
Capabilities:
Encode data using xor

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

Function at 0x80039fd
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043a0], 0x30
mov dword [0x80043a8], 0x80032e8
mov dword [0x80043a4], 2
mov dword [0x80043ac], 0
mov dword [0x80043b0], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003a40
mov dword [0x80043b4], eax
mov dword [0x80043c8], 0x80041d4
mov dword [0x80043c0], 0xf
mov dword [0x80040f6], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043b8], eax
mov dword [0x80043cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040fe], ebp
mov dword [0x80043bc], eax
push 0x80043a0
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004420], eax
push 0
push dword [0x80040f6]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004418], eax
push 1
push dword [0x8004418]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004418]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003afe
xor edi, edi
lea ebx, [0x80043d0]
jmp 0x8003b16
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003b08
jmp 0x8003b2a
mov eax, dword [0x80043d8]
call 0x80029cd
ret
Function at 0x401500
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
call dbg.__main
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp], str.de_que_forma_quieres_el_orden_1_2
call sym._printf
mov dword [esp], 0xa
call sym._putchar
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0x488023
call sym._scanf
mov dword [esp], 0xa
call sym._putchar
mov dword [esp], str.introduce_un_limite
call sym._printf
mov dword [esp], 0xa
call sym._putchar
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x488023
call sym._scanf
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4015c4
mov dword [esp + 0x1c], 1
jmp 0x4015a6
mov dword [esp], 0xa
call sym._putchar
add dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x1c], eax
jle 0x401595
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0x488023
call sym._printf
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x401603
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x4015e8
mov dword [esp], 0xa
call sym._putchar
sub dword [esp + 0x1c], 1
cmp dword [esp + 0x1c], 1
je 0x4015d7
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0x488023
call sym._printf
mov dword [esp], str.PAUSE
call sym._system
mov eax, 0
leave
ret

Function at 0x40d100
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x40d160
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x491054]
test esi, esi
jle 0x40d24d
mov edi, dword [0x491058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d194
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d246
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d180
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d28a
lea ebx, [esi + esi*2]
mov esi, dword [0x491058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x491058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d26a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d23f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d23f
mov eax, dword [esp + 0x20]
add ebx, dword [0x491058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40d254
add dword [0x491054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d19e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x491058]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]

Function at 0x40d750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x491408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x491400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40d7a5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40d79e
test esi, esi
je 0x40d79e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d780
mov dword [esp], 0x491408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d9c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40d9f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40d9ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40d9fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40d9e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40ee30
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0040dcd0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x40ef1f
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x40efc3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x40ef5a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40ef52
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40efc0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x40efda
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x40ef94
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40ef94
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40ef94