joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xea644
call fcn.00404ec0
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
rdtsc
mov dword [0x40f394], eax
xor eax, eax
push eax
push eax
push eax
mov word [ebp - 0xea60c], ax
lea eax, [ebp - 0xea61c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xea620]
mov dword [ebp - 0xea620], 0
push eax
mov dword [ebp - 0xea61c], 0x10001
mov dword [ebp - 0xea618], 0x7d00
mov dword [ebp - 0xea614], 0x7d00
mov dword [ebp - 0xea610], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xea600
lea eax, [ebp - 0xea608]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [0x40f394]
add esp, 0xc
xor ebx, ebx
mov eax, edi
shl eax, 0xd
xor eax, edi
mov ecx, eax
shl ecx, 0x11
xor ecx, eax
mov esi, ecx
shl esi, 5
xor esi, ecx
mov eax, esi
shl eax, 0xd
xor eax, esi
mov ecx, eax
shl ecx, 0x11
xor ecx, eax
mov eax, 0x95217cb1
mov edi, ecx
shl edi, 5
xor edi, ecx
mul edi
mov eax, 0xcccccccd
shr edx, 0x13
imul ecx, edx, 0x15f90
mul esi
shr edx, 3
add ecx, edx
lea eax, [ecx + ecx*4]
mov ecx, edi
add eax, eax
sub ecx, eax
mov eax, ebx
add ecx, esi
shr eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x40d8b0]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movd xmm1, ebx
mov eax, ebx
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x40d8b0]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov byte [ebp + ebx - 0xea608], al
inc ebx
cmp ebx, 0xea600
jb 0x403a03
lea eax, [ebp - 0xea608]
mov dword [0x40f394], edi
mov dword [ebp - 0xea640], eax
lea eax, [ebp - 0xea640]
push 0x20
push eax
push dword [ebp - 0xea620]
mov dword [ebp - 0xea63c], 0xea600
mov dword [ebp - 0xea638], 0
mov dword [ebp - 0xea634], 0
mov dword [ebp - 0xea630], 0
mov dword [ebp - 0xea62c], 0
mov dword [ebp - 0xea628], 0
mov dword [ebp - 0xea624], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xea640]
push eax
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xea640]
push eax
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404213
mov esp, ebp
pop ebp
ret
Function at 0x404a49
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404a88
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404a88
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404a88
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404a88
cmp dword [ecx + 0x74], 0xe
jbe 0x404a88
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x402c00
pop dword [ebp - 0x34]
mov eax, 0x53043683
sub eax, 0x52c40a83
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x11f20257
add dword [ebp - 0x44], 0x3c6042f4
mov dword [ebp - 0x40], 0xd16ca86e
sub dword [ebp - 0x40], 0x9f395c29
mov dword [ebp - 0x3c], 0x9d7ff7b3
sub dword [ebp - 0x3c], 0x5133b385
mov dword [ebp - 0x38], 0xbf725697
add dword [ebp - 0x38], 0x408da969
lea eax, [ebp - 0x44]
push eax
mov eax, 0xcb29dc1f
add eax, 0x3516a46d
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xceea563c
sub dword [ebp - 0x44], 0x5a77ece6
mov dword [ebp - 0x40], 0x854ab246
sub dword [ebp - 0x40], 0x43de50d1
mov dword [ebp - 0x3c], 0x2bf24c0a
sub dword [ebp - 0x3c], 0xc882df9e
mov dword [ebp - 0x38], 0x2c24f5d8
add dword [ebp - 0x38], 0xd3db0a28
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xfdd7a9f4
sub eax, 0xfd972920
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x38f96
push 0
call eax
mov ecx, 0xff783ec7
sub ecx, 0xff77eda3
mov edi, eax
mov ebx, 0x82e75d5a
sub ebx, 0x82a64d5a
add ebx, dword [ebp - 0x34]
mov edx, 0x545f4f51
add dword [ebp - 0x28], 0x6ec4dace
mov esi, dword [ebx]
sub dword [ebp - 0x2c], 0x1ca3db7c
sub esi, edx
add dword [ebp - 0x24], ebx
mov dword [edi], esi
xor dword [ebp - 0x20], ebx
add edi, 0x7b4790
add edi, 0xff84b874
add ebx, 0x85d696a5
sub ebx, 0x85d696a1
loop 0x402d1c
add eax, 0x65b0349b
add eax, 0x9a5102c8
xor ebx, ebx
add ebx, eax
add eax, 0x3e5d3a53
add eax, 0xc1a2c5b2
mov ecx, 0xddd61279
sub ecx, 0xdd961279
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10003cb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10003cff
cmp byte [esi + 0x3d], bl
je 0x10003cff
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003d2e
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x10003d06
sub eax, 1
je 0x10003d09
dec eax
sub eax, 1
jne 0x10003d2e
mov byte [esi + 0x3d], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003d26
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1005fc01
add esp, 0x10
cmp edi, eax
jne 0x10003d2e
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10003d01
xor al, al
jmp 0x10003d01

Function at 0x10005ab2
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10005acc
xor eax, eax
jmp 0x10005b9c
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x10005afa
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x10005afa
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10005b9b
cmp dword [esi + 0x4c], 0
je 0x10005b99
mov ecx, esi
call fcn.10004229
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10005b26
push dword [esi + 0x4c]
push eax
call fcn.10001f66
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10005b99
mov byte [esp + 0x10], al
lea eax, [esp + 0x3c]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x10005b6a
sub eax, 1
je 0x10005b6a
dec eax
sub eax, 1
jne 0x10005b99
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x10005b18
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x18]
sub ebp, eax
je 0x10005b89
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.1005fc01
add esp, 0x10
cmp ebp, eax
jne 0x10005b99
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x10005b9b
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x100067aa
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
test esi, esi
jg 0x100067ca
jl 0x100067c1
test edi, edi
jne 0x100067ca
xor eax, eax
xor edx, edx
jmp 0x10006891
cmp dword [ebp + 0x38], 0
je 0x100067e0
push esi
push edi
push dword [esp + 0x18]
call fcn.1000689b
jmp 0x10006891
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10006824
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x10006824
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.1005a9c0
mov eax, dword [ebp + 0x2c]
add ebx, esi
mov dword [esp + 0x20], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x1000682c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x10006887
mov ecx, ebp
call fcn.10004229
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x10006867
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.1005f57a
mov edx, dword [esp + 0x24]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x14], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x10006897
mov eax, 0xfff
cmp ebx, eax
ja 0x10006843
test ecx, ecx
je 0x10006887
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.1005f57a
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
sub edi, ebx
jmp 0x10006889

Function at 0x1000696f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10006990
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10006a45
jmp 0x10006a3f
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x100069b3
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100069b5
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x10006a30
jg 0x100069c8
test esi, esi
je 0x10006a30
test eax, eax
jl 0x10006a12
jg 0x100069d2
test ebp, ebp
je 0x10006a12
cmp edi, eax
jg 0x100069e2
jl 0x100069dc
cmp esi, ebp
jae 0x100069e2
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.1005a9c0
mov eax, dword [ebx + 0x30]
add esp, 0xc
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
mov eax, dword [esp + 0x1c]
add eax, ebp
test edi, edi
jl 0x10006a30
jg 0x10006a16
test esi, esi
je 0x10006a30
jmp 0x10006a16
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], 0
je 0x10006a30
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.1005fc01
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x1001004a
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1007d85f
call fcn.100589b8
sub esp, 0x38
push ebx
push esi
push edi
mov eax, 0x40e4e0
mov esi, ecx
call eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
movzx eax, ax
xor ebx, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.1000f740
pop ecx
mov dword [ebp - 0x24], eax
mov eax, ebx
mov dword [ebp - 4], ebx
mov edi, 0xb7d0b8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov ebx, dword [edi]
test ebx, ebx
je 0x1001014a
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp dword [eax + 0x20], 0x534030
je 0x100100f6
mov eax, edi
mov dword [ebp - 0x1c], 0x78
cdq
sub eax, edx
sar eax, 1
cdq
idiv dword [ebp - 0x1c]
push eax
movzx eax, word [esi + 0x22]
push edx
push eax
push esi
lea eax, [ebp - 0x44]
push str.Entity_0x_08x__with_model__d__at_ARRAY_StreamSectors__d__d__is_invalid_n
push eax
call fcn.1000f946
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x100100e5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x44]
call fcn.1000431b
jmp 0x10010137
mov ecx, dword [0x10120670]
movzx eax, word [esi + 0x22]
push eax
mov edx, dword [ecx]
call dword [edx + 0xa4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
cmp ax, word [ebp - 0x18]
jne 0x10010137
test dword [esi + 0x1c], 0x2400
jne 0x10010137
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x20]
lea eax, [esi + 0x22]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000f757
mov eax, dword [ebx + 4]
mov ebx, eax
test eax, eax
jne 0x100100a2
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add edi, 4
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
cmp edi, 0xb992b8
jl 0x10010095
mov edi, 0xb992c0
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
test esi, esi
je 0x100101c0
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov ecx, dword [0x10120670]
mov dword [ebp - 0x1c], ebx
movzx eax, word [ebx + 0x22]
mov edx, dword [ecx]
push eax
call dword [edx + 0xa4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
cmp ax, di
jne 0x100101b6
test dword [ebx + 0x1c], 0x2400
jne 0x100101b6
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x20]
lea eax, [ebx + 0x22]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000f757
mov esi, dword [esi + 4]
test esi, esi
jne 0x10010171
mov edi, dword [ebp - 0x14]
add edi, 0xc
mov dword [ebp - 0x14], edi
cmp edi, 0xb99ec0
jl 0x10010168
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x10010205
movzx eax, word [esi + 0xe]
push eax
mov eax, 0x4089a0
call eax
movzx eax, word [esi + 0xe]
imul eax, eax, 0x14
pop ecx
lea ecx, [ebp - 0x18]
mov byte [eax + 0x8e4cd0], 0
call fcn.1000dd8f
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x24]
jne 0x100101da
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.1000f7e9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10017fe7
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1007d4f7
call fcn.100589b8
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x1001811d
push 0x10083ff4
push dword [ebp + 8]
call fcn.100679fa
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1001811d
push 0xc
call fcn.10058769
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x10018038
mov ecx, eax
call fcn.1000b1f4
mov esi, eax
jmp 0x1001803a
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x2c]
push 8
pop ecx
push ebx
xor eax, eax
push 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.1005f57a
add esp, 0x10
cmp byte [ebp - 0x2c], 0x43
jne 0x10018101
cmp byte [ebp - 0x2b], 0x4f
jne 0x10018101
cmp byte [ebp - 0x2a], 0x4c
jne 0x10018101
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
call fcn.1005875b
mov ecx, dword [ebp - 0x28]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call fcn.1005f57a
mov al, byte [ebp - 0x29]
add esp, 0x14
cmp al, 0x4c
jne 0x100180b4
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
push edi
call dword [0x100ae218]
add esp, 0xc
jmp 0x100180ef
cmp al, 0x32
jne 0x100180d1
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
push edi
call dword [0x100ae21c]
jmp 0x100180ec
cmp al, 0x33
jne 0x100180ef
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
push edi
call dword [0x100ae220]
add esp, 0x10
push edi
call fcn.100587a7
push ebx
call fcn.1005eceb
pop ecx
pop ecx
mov eax, esi
jmp 0x1001811f
test esi, esi
je 0x10018116
mov ecx, esi
call fcn.1000b226
push 0xc
push esi
call fcn.10058799
pop ecx
pop ecx
push ebx
call fcn.1005eceb
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100297d3
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x101b7828]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10181d10]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x100298f9
mov ebp, dword [esp + 0x38]
xor edi, edi
and dword [esp + 0x10], 0
inc edi
and dword [esp + 0x38], 0
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
test ecx, ecx
je 0x100298ef
mov esi, dword [0x10181d0c]
xor edx, edx
mov eax, ebx
mov dword [esp + 0x3c], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test ebx, ebx
je 0x1002987c
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002987c
cmp dword [esp + 0x28], 0x1000
jne 0x1002987c
test byte [esp + 0x2c], 0xee
je 0x1002987c
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002987c
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x100298a3
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002989b
xor edi, edi
push esi
push edi
push ebp
call fcn.1005af40
jmp 0x100298af
mov dword [esp + 0x38], 1
push esi
push ebx
push ebp
call fcn.1005a9c0
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x100298db
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100298db
push ebx
push str.__page_read___could_not_restore_original_permissions_for_ptr__p
call fcn.100565e7
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
add ebp, esi
add ebx, esi
sub ecx, esi
mov dword [esp + 0x40], ecx
jne 0x1002981b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10181d10
push esi
call fcn.100588df
cmp dword [0x10181d10], 0xffffffff
pop ecx
jne 0x100297fa
call fcn.10029928
push esi
mov dword [0x10181d0c], eax
call fcn.10058895
pop ecx
jmp 0x100297fa

Function at 0x10029928
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100db650]
sub esp, 0x24
cmp eax, 0xffffffff
jne 0x1002994a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x100db650], eax
leave
ret
Function at 0x1002994c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x101b7828]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10181d08]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x10029a63
mov ebx, dword [esp + 0x38]
xor edi, edi
and dword [esp + 0x10], 0
inc edi
and dword [esp + 0x38], 0
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x10029a59
mov esi, dword [0x10181d04]
xor edx, edx
mov eax, ebx
mov dword [esp + 0x40], 1
div esi
sub esi, edx
cmp ebp, esi
cmovle esi, ebp
test ebx, ebx
je 0x100299f1
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100299f1
cmp dword [esp + 0x28], 0x1000
jne 0x100299f1
test byte [esp + 0x2c], 0xcc
je 0x100299f1
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x100299f1
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x10029a10
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10029a08
xor edi, edi
jmp 0x10029a22
mov dword [esp + 0x38], 1
push esi
push dword [esp + 0x40]
push ebx
call fcn.1005a9c0
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x10029a4b
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10029a4b
push ebx
push str.__page_write___could_not_restore_original_permissions_for_ptr__p
call fcn.100565e7
pop ecx
pop ecx
add dword [esp + 0x3c], esi
add ebx, esi
sub ebp, esi
jne 0x10029990
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10181d08
push esi
call fcn.100588df
cmp dword [0x10181d08], 0xffffffff
pop ecx
jne 0x10029973
call fcn.10029928
push esi
mov dword [0x10181d04], eax
call fcn.10058895
pop ecx
jmp 0x10029973
Function at 0x1003da40
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
je 0x1003da7c
cmp byte [edx + 1], 0
jne 0x1003da6c
cmp cl, 0x61
jl 0x1003da61
cmp cl, 0x7a
jg 0x1003da61
movsx eax, cl
sub eax, 0x20
ret
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1003da6c
movsx eax, cl
ret
cmp cl, 0x26
jne 0x1003da7c
lea eax, [edx + 1]
push eax
call fcn.1003dada
pop ecx
ret
mov eax, dword [str.lbutton]
xor ecx, ecx
push ebx
push esi
jmp 0x1003daba
mov esi, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x1003daa9
test bl, bl
je 0x1003daa5
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
jne 0x1003daa9
add eax, 2
add esi, 2
test bl, bl
jne 0x1003da89
xor eax, eax
jmp 0x1003daae
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003dad1
mov eax, dword [ecx*8 + 0x100de0a4]
inc ecx
test eax, eax
jne 0x1003da87
push edx
push str.Unknown_key:__s
call fcn.100565e7
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [ecx*8 + 0x100de098]
jmp 0x1003dace

Function at 0x1003e36f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
sub ecx, eax
push 3
pop edx
movss xmm0, dword [ecx + eax]
xorps xmm0, xmmword [0x10080ff0]
movss dword [eax], xmm0
lea eax, [eax + 4]
sub edx, 1
jne 0x1003e37c
ret