joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446fa9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45e0a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
cmp dword [eax + 0x14], 8
jb 0x41b55c
mov eax, dword [eax]
push 0x44b25c
push eax
call fcn.00429945
mov edi, eax
add esp, 8
test edi, edi
je 0x41b631
push 2
push 0
push edi
call fcn.00431f44
push edi
call fcn.004324b6
push 0
mov ebx, eax
push 0
push edi
mov dword [ebp - 0x10], ebx
call fcn.00431f44
add esp, 0x1c
test ebx, ebx
je 0x41b628
lea eax, [ebx + 1]
push eax
mov dword [ebp - 0x18], eax
call fcn.0041cb97
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41b628
push dword [ebp - 0x18]
push 0
push ebx
call fcn.0041ee20
push edi
push dword [ebp - 0x10]
push 1
push ebx
call fcn.00431bda
add esp, 0x1c
cmp eax, dword [ebp - 0x10]
jne 0x41b5e9
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b5d7
sub ecx, edx
push ecx
push ebx
mov ecx, esi
call fcn.00404040
push 0
push 0x4485cc
push 0x44b264
push esi
call fcn.00404cc0
push 0
push 0x4485cc
push 0x44b268
push esi
call fcn.00404cc0
push 0
push 0x4485cc
push 0x44b26c
push esi
call fcn.00404cc0
push ebx
call fcn.0041c234
add esp, 0x34
push edi
call fcn.00430ea0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41cef0
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x45bb60
call fcn.0041d4c0
push 1
call fcn.0041c596
pop ecx
test al, al
jne 0x41cda1
push 7
call fcn.0041d190
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041c561
mov byte [ebp - 0x24], al
mov eax, dword [0x45f268]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41cd9a
test eax, eax
jne 0x41ce0b
mov dword [0x45f268], ecx
push 0x448274
push 0x448250
call fcn.00433eba
pop ecx
pop ecx
test eax, eax
je 0x41cdee
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41ceea
push 0x44824c
push 0x448218
call fcn.00433e5e
pop ecx
pop ecx
mov dword [0x45f268], 2
jmp 0x41ce10
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041c703
pop ecx
call fcn.0041d619
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41ce40
push esi
call fcn.0041c679
pop ecx
test al, al
je 0x41ce40
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0041c1da
call esi
call fcn.0041d61f
mov esi, eax
cmp dword [esi], edi
je 0x41ce5e
push esi
call fcn.0041c679
pop ecx
test al, al
je 0x41ce5e
push dword [esi]
call fcn.0043293c
pop ecx
call fcn.0043405f
mov edi, dword [eax]
call fcn.00434059
mov esi, eax
call fcn.0043317d
push eax
push edi
push dword [esi]
call main
add esp, 0xc
mov esi, eax
call fcn.0043284b
test al, al
jne 0x41ce8e
push esi
call fcn.00432974
test bl, bl
jne 0x41ce97
call fcn.00432917
push 0
push 1
call fcn.0041c720
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41ceea
call fcn.0041d506
ret
call fcn.0041d56a
jmp 0x41cd82

Function at 0x41ff0f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x44f8a0
push 0x44f898
push str.FlsAlloc
push 0
call fcn.0041fe8f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ff41
push dword [ebp + 8]
mov ecx, esi
call fcn.0041c1da
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x41ff83
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x44f8b0
push 0x44f8a8
push str.FlsGetValue
push 2
call fcn.0041fe8f
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x41ffb4
mov ecx, esi
call fcn.0041c1da
call esi
jmp 0x41ffba
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x41ffbd
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x44f8b8
push 0x44f8b0
push str.FlsSetValue
push 3
call fcn.0041fe8f
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x41fff1
mov ecx, esi
call fcn.0041c1da
call esi
jmp 0x41fff7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x43cef8
Capabilities:
Read file on windows

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

Function at 0x43dd81
Capabilities:
Set environment variable

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

Function at 0x43dd8c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043d92a
Function at 0x10003dcb
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 0x10003e18
cmp byte [esi + 0x3d], bl
je 0x10003e18
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003e47
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 0x10003e1f
sub eax, 1
je 0x10003e22
dec eax
sub eax, 1
jne 0x10003e47
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 0x10003e3f
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100540be
add esp, 0x10
cmp edi, eax
jne 0x10003e47
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10003e1a
xor al, al
jmp 0x10003e1a

Function at 0x10005c2c
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 0x10005c46
xor eax, eax
jmp 0x10005d16
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x10005c74
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x10005c74
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 0x10005d15
cmp dword [esi + 0x4c], 0
je 0x10005d13
mov ecx, esi
call fcn.10004342
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10005ca0
push dword [esi + 0x4c]
push eax
call fcn.10001f46
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10005d13
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 0x10005ce4
sub eax, 1
je 0x10005ce4
dec eax
sub eax, 1
jne 0x10005d13
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x10005c92
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x18]
sub ebp, eax
je 0x10005d03
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.100540be
add esp, 0x10
cmp ebp, eax
jne 0x10005d13
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x10005d15
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x10006918
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 0x10006938
jl 0x1000692f
test edi, edi
jne 0x10006938
xor eax, eax
xor edx, edx
jmp 0x100069ff
cmp dword [ebp + 0x38], 0
je 0x1000694e
push esi
push edi
push dword [esp + 0x18]
call fcn.10006a09
jmp 0x100069ff
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10006992
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x10006992
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.1004f050
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 0x1000699a
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x100069f5
mov ecx, ebp
call fcn.10004342
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x100069d5
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.10053a37
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 0x10006a05
mov eax, 0xfff
cmp ebx, eax
ja 0x100069b1
test ecx, ecx
je 0x100069f5
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.10053a37
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 0x100069f7

Function at 0x10006add
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10006afe
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10006bb3
jmp 0x10006bad
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 0x10006b21
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10006b23
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x10006b9e
jg 0x10006b36
test esi, esi
je 0x10006b9e
test eax, eax
jl 0x10006b80
jg 0x10006b40
test ebp, ebp
je 0x10006b80
cmp edi, eax
jg 0x10006b50
jl 0x10006b4a
cmp esi, ebp
jae 0x10006b50
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.1004f050
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 0x10006b9e
jg 0x10006b84
test esi, esi
je 0x10006b9e
jmp 0x10006b84
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], 0
je 0x10006b9e
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.100540be
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 0x100100c6
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x10071edf
call fcn.1004d1c0
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.1000f7bc
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 0x100101c6
mov edi, dword [ebp - 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
cmp dword [eax + 0x20], 0x534030
je 0x10010172
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.1000f9c2
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10010161
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x44]
call fcn.10004434
jmp 0x100101b3
mov ecx, dword [0x1011ded0]
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 0x100101b3
test dword [esi + 0x1c], 0x2400
jne 0x100101b3
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.1000f7d3
mov eax, dword [ebx + 4]
mov ebx, eax
test eax, eax
jne 0x1001011e
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 0x10010111
mov edi, 0xb992c0
mov dword [ebp - 0x14], edi
mov esi, dword [edi]
test esi, esi
je 0x1001023c
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi]
mov ecx, dword [0x1011ded0]
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 0x10010232
test dword [ebx + 0x1c], 0x2400
jne 0x10010232
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.1000f7d3
mov esi, dword [esi + 4]
test esi, esi
jne 0x100101ed
mov edi, dword [ebp - 0x14]
add edi, 0xc
mov dword [ebp - 0x14], edi
cmp edi, 0xb99ec0
jl 0x100101e4
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x10010281
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.1000de0b
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x24]
jne 0x10010256
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.1000f865
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10018063
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10071b77
call fcn.1004d1c0
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x10018199
push 0x10077f04
push dword [ebp + 8]
call fcn.1005beda
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10018199
push 0xc
call fcn.1004cf74
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x100180b4
mov ecx, eax
call fcn.1000b26e
mov esi, eax
jmp 0x100180b6
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.10053a37
add esp, 0x10
cmp byte [ebp - 0x2c], 0x43
jne 0x1001817d
cmp byte [ebp - 0x2b], 0x4f
jne 0x1001817d
cmp byte [ebp - 0x2a], 0x4c
jne 0x1001817d
mov eax, dword [ebp - 0x28]
add eax, 0xffffffe8
push eax
call fcn.1004cf66
mov ecx, dword [ebp - 0x28]
mov edi, eax
push ebx
push 1
add ecx, 0xffffffe8
push ecx
push edi
call fcn.10053a37
mov al, byte [ebp - 0x29]
add esp, 0x14
cmp al, 0x4c
jne 0x10018130
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push eax
push edi
call dword [0x100a1224]
add esp, 0xc
jmp 0x1001816b
cmp al, 0x32
jne 0x1001814d
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 [0x100a1228]
jmp 0x10018168
cmp al, 0x33
jne 0x1001816b
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 [0x100a122c]
add esp, 0x10
push edi
call fcn.1004cfb2
push ebx
call fcn.100531a8
pop ecx
pop ecx
mov eax, esi
jmp 0x1001819b
test esi, esi
je 0x10018192
mov ecx, esi
call fcn.1000b2a0
push 0xc
push esi
call fcn.1004cfa4
pop ecx
pop ecx
push ebx
call fcn.100531a8
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 0x100295d1
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x1018da60]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10157f98]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x100296f7
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 0x100296ed
mov esi, dword [0x10157f94]
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 0x1002967a
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 0x1002967a
cmp dword [esp + 0x28], 0x1000
jne 0x1002967a
test byte [esp + 0x2c], 0xee
je 0x1002967a
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x1002967a
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x100296a1
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10029699
xor edi, edi
push esi
push edi
push ebp
call fcn.1004f5d0
jmp 0x100296ad
mov dword [esp + 0x38], 1
push esi
push ebx
push ebp
call fcn.1004f050
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x100296d9
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 0x100296d9
push ebx
push str.__page_read___could_not_restore_original_permissions_for_ptr__p
call fcn.1004b292
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
add ebp, esi
add ebx, esi
sub ecx, esi
mov dword [esp + 0x40], ecx
jne 0x10029619
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10157f98
push esi
call fcn.1004d0ea
cmp dword [0x10157f98], 0xffffffff
pop ecx
jne 0x100295f8
call fcn.10029726
push esi
mov dword [0x10157f94], eax
call fcn.1004d0a0
pop ecx
jmp 0x100295f8

Function at 0x10029726
Capabilities:
Get system information on windows

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

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [0x1018da60]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10157f90]
push ebp
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x10029861
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 0x10029857
mov esi, dword [0x10157f8c]
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 0x100297ef
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 0x100297ef
cmp dword [esp + 0x28], 0x1000
jne 0x100297ef
test byte [esp + 0x2c], 0xcc
je 0x100297ef
mov ecx, dword [esp + 0x24]
cmp esi, ecx
ja 0x100297ef
mov eax, ebx
sub ecx, esi
sub eax, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1002980e
lea eax, [esp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10029806
xor edi, edi
jmp 0x10029820
mov dword [esp + 0x38], 1
push esi
push dword [esp + 0x40]
push ebx
call fcn.1004f050
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x10029849
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 0x10029849
push ebx
push str.__page_write___could_not_restore_original_permissions_for_ptr__p
call fcn.1004b292
pop ecx
pop ecx
add dword [esp + 0x3c], esi
add ebx, esi
sub ebp, esi
jne 0x1002978e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 0x10157f90
push esi
call fcn.1004d0ea
cmp dword [0x10157f90], 0xffffffff
pop ecx
jne 0x10029771
call fcn.10029726
push esi
mov dword [0x10157f8c], eax
call fcn.1004d0a0
pop ecx
jmp 0x10029771
Function at 0x1003d618
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [edx]
test cl, cl
je 0x1003d654
cmp byte [edx + 1], 0
jne 0x1003d644
cmp cl, 0x61
jl 0x1003d639
cmp cl, 0x7a
jg 0x1003d639
movsx eax, cl
sub eax, 0x20
ret
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1003d644
movsx eax, cl
ret
cmp cl, 0x26
jne 0x1003d654
lea eax, [edx + 1]
push eax
call fcn.1003d6b2
pop ecx
ret
mov eax, dword [str.lbutton]
xor ecx, ecx
push ebx
push esi
jmp 0x1003d692
mov esi, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x1003d681
test bl, bl
je 0x1003d67d
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
jne 0x1003d681
add eax, 2
add esi, 2
test bl, bl
jne 0x1003d661
xor eax, eax
jmp 0x1003d686
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003d6a9
mov eax, dword [ecx*8 + 0x100dbb6c]
inc ecx
test eax, eax
jne 0x1003d65f
push edx
push str.Unknown_key:__s
call fcn.1004b292
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, dword [ecx*8 + 0x100dbb60]
jmp 0x1003d6a6

Function at 0x1003df47
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 [0x10074f00]
movss dword [eax], xmm0
lea eax, [eax + 4]
sub edx, 1
jne 0x1003df54
ret
Function at 0x100422b3
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x10073912
call fcn.1004d1c0
sub esp, 0x2d8
cmp dword [0x10179598], 0
je 0x100424b7
call fcn.10029dc3
test eax, eax
jne 0x100424b7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1018d514]
add ecx, 0x3e8
cmp eax, ecx
jbe 0x100424b7
push 1
lea ecx, [ebp - 0xe4]
call fcn.10002463
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
push str.friends.ini
push 0x1018d578
push str._serkanbaba_s
lea eax, [ebp - 0x2e4]
mov byte [ebp - 4], 1
push 0x200
push eax
call fcn.10006c8a
add esp, 0x14
lea eax, [ebp - 0x2e4]
lea ecx, [ebp - 0xe4]
push 0x40
push 1
push eax
call fcn.10005b8d
mov eax, dword [0x10157e8c]
push 0xfb0
add eax, 0x2add
push 0
push eax
call fcn.1004f5d0
mov eax, dword [0x10157e8c]
push 0x14e4
add eax, 0x115
push 0
push eax
call fcn.1004f5d0
and dword [0x1018d510], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.10001a1d
add esp, 0x20
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x1004245f
push esi
push edi
mov ecx, dword [0x10179598]
xor esi, esi
movzx eax, word [ecx]
cmp eax, esi
je 0x10042407
cmp dword [ecx + esi*4 + 0x26], 0
je 0x10042407
cmp dword [ebp - 0x18], 0x10
lea edi, [ebp - 0x2c]
push esi
cmovae edi, dword [ebp - 0x2c]
call fcn.1003ead2
pop ecx
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x100423f8
test cl, cl
je 0x100423f4
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x100423f8
add edi, 2
add eax, 2
test cl, cl
jne 0x100423d8
xor eax, eax
jmp 0x100423fd
sbb eax, eax
or eax, 1
test eax, eax
je 0x10042412
mov ecx, dword [0x10179598]
inc esi
cmp esi, 0x3ec
jl 0x100423b8
jmp 0x1004243b
mov ecx, dword [0x1018d510]
mov eax, dword [0x10157e8c]
mov dword [eax + ecx*4 + 0x2add], esi
inc ecx
mov eax, dword [0x10157e8c]
mov dword [0x1018d510], ecx
mov dword [eax + esi*4 + 0x115], 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.10001a1d
pop ecx
pop ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x100423b0
pop edi
pop esi
lea ecx, [ebp - 0xe4]
call fcn.1000474d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1018d514], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100424ac
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x100424a3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10003c68
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.1004cfa4
pop ecx
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.10002e24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret