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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
call fcn.005619b8
cdq
mov ecx, 0x18
idiv ecx
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [edx + edx*4]
shl ecx, 4
mov eax, dword [ecx + 0x5fc6c8]
mov dword [esi], eax
mov eax, dword [ecx + 0x5fc6cc]
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 4], eax
call fcn.005619b8
cdq
mov ecx, 3
idiv ecx
mov eax, dword [esi]
lea esi, [edx - 1]
add esi, eax
mov dword [ebp - 8], esi
movd xmm0, esi
pshufd xmm0, xmm0, 0
movaps xmmword [ebp - 0x20], xmm0
call fcn.005619b8
mov ecx, 3
cdq
idiv ecx
lea ecx, [edx - 1]
add ecx, dword [edi]
mov edi, 0x3e8
cmp dword [0x635be0], 2
mov dword [ebp - 0xc], ecx
movd xmm0, ecx
pshufd xmm0, xmm0, 0
movups xmmword [ebp - 0x30], xmm0
jl 0x4931ca
movaps xmm6, xmmword [0x5c04f0]
mov eax, 0x5fc768
movaps xmm7, xmm6
nop word [eax + eax]
movd xmm3, dword [eax + 0x50]
movd xmm0, dword [eax]
movd xmm1, dword [eax - 0x50]
movd xmm2, dword [eax - 0xa0]
movaps xmm4, xmmword [ebp - 0x20]
punpckldq xmm2, xmm0
movd xmm0, dword [eax + 4]
punpckldq xmm1, xmm3
movd xmm3, dword [eax + 0x54]
punpckldq xmm2, xmm1
movd xmm1, dword [eax - 0x4c]
psubd xmm4, xmm2
movd xmm2, dword [eax - 0x9c]
pabsd xmm5, xmm4
movaps xmm4, xmmword [ebp - 0x30]
punpckldq xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm3, dword [eax + 0x190]
punpckldq xmm2, xmm1
movd xmm1, dword [eax + 0xf0]
psubd xmm4, xmm2
movd xmm2, dword [eax + 0xa0]
pabsd xmm0, xmm4
movaps xmm4, xmmword [ebp - 0x20]
pmaxsd xmm0, xmm5
pminsd xmm6, xmm0
movd xmm0, dword [eax + 0x140]
punpckldq xmm2, xmm0
movd xmm0, dword [eax + 0x144]
punpckldq xmm1, xmm3
movd xmm3, dword [eax + 0x194]
punpckldq xmm2, xmm1
movd xmm1, dword [eax + 0xf4]
psubd xmm4, xmm2
movd xmm2, dword [eax + 0xa4]
pabsd xmm5, xmm4
movaps xmm4, xmmword [ebp - 0x30]
add eax, 0x280
punpckldq xmm2, xmm0
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
psubd xmm4, xmm2
pabsd xmm0, xmm4
pmaxsd xmm0, xmm5
pminsd xmm7, xmm0
cmp eax, 0x5fcee8
jl 0x4930b0
pminsd xmm6, xmm7
movaps xmm0, xmm6
psrldq xmm0, 8
pminsd xmm6, xmm0
movups xmm0, xmm6
psrldq xmm0, 4
pminsd xmm6, xmm0
movd edi, xmm6
jmp 0x493203
mov ecx, 0x5fc6cc
nop
mov eax, esi
sub eax, dword [ecx - 4]
cdq
mov esi, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ecx]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
cmovl esi, eax
cmp esi, edi
cmovge esi, edi
add ecx, 0x50
mov edi, esi
mov esi, dword [ebp - 8]
cmp ecx, 0x5fce4c
jl 0x4931d0
mov ecx, dword [ebp - 0xc]
cmp edi, dword [ebp - 0x10]
jl 0x493224
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], edi
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov dword [eax], ecx
cmp edi, dword [ebx + 0x14]
jge 0x49323a
mov esi, dword [ebx + 0xc]
mov edi, eax
jmp 0x49303b
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0xc]
inc eax
mov edi, dword [ebx + 0x10]
mov dword [ebp - 4], eax
cmp eax, 0x14
jl 0x493040
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
Function at 0x4939d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
call fcn.005619b8
cdq
mov ecx, 0x18
idiv ecx
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [edx + edx*4]
shl ecx, 4
mov eax, dword [ecx + 0x5fc6c8]
mov dword [esi], eax
mov eax, dword [ecx + 0x5fc6cc]
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 4], eax
call fcn.005619b8
cdq
mov ecx, 3
idiv ecx
mov eax, dword [esi]
lea esi, [edx - 1]
add esi, eax
mov dword [ebp - 8], esi
movd xmm0, esi
pshufd xmm0, xmm0, 0
movaps xmmword [ebp - 0x20], xmm0
call fcn.005619b8
mov ecx, 3
cdq
idiv ecx
lea ecx, [edx - 1]
add ecx, dword [edi]
mov edi, 0x3e8
cmp dword [0x635be0], 2
mov dword [ebp - 0xc], ecx
movd xmm0, ecx
pshufd xmm0, xmm0, 0
movups xmmword [ebp - 0x30], xmm0
jl 0x493baa
movaps xmm6, xmmword [0x5c04f0]
mov eax, 0x5fc768
movaps xmm7, xmm6
nop word [eax + eax]
movd xmm3, dword [eax + 0x50]
movd xmm0, dword [eax]
movd xmm1, dword [eax - 0x50]
movd xmm2, dword [eax - 0xa0]
movaps xmm4, xmmword [ebp - 0x20]
punpckldq xmm2, xmm0
movd xmm0, dword [eax + 4]
punpckldq xmm1, xmm3
movd xmm3, dword [eax + 0x54]
punpckldq xmm2, xmm1
movd xmm1, dword [eax - 0x4c]
psubd xmm4, xmm2
movd xmm2, dword [eax - 0x9c]
pabsd xmm5, xmm4
movaps xmm4, xmmword [ebp - 0x30]
punpckldq xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm3, dword [eax + 0x190]
punpckldq xmm2, xmm1
movd xmm1, dword [eax + 0xf0]
psubd xmm4, xmm2
movd xmm2, dword [eax + 0xa0]
pabsd xmm0, xmm4
movaps xmm4, xmmword [ebp - 0x20]
pmaxsd xmm0, xmm5
pminsd xmm6, xmm0
movd xmm0, dword [eax + 0x140]
punpckldq xmm2, xmm0
movd xmm0, dword [eax + 0x144]
punpckldq xmm1, xmm3
movd xmm3, dword [eax + 0x194]
punpckldq xmm2, xmm1
movd xmm1, dword [eax + 0xf4]
psubd xmm4, xmm2
movd xmm2, dword [eax + 0xa4]
pabsd xmm5, xmm4
movaps xmm4, xmmword [ebp - 0x30]
add eax, 0x280
punpckldq xmm2, xmm0
punpckldq xmm1, xmm3
punpckldq xmm2, xmm1
psubd xmm4, xmm2
pabsd xmm0, xmm4
pmaxsd xmm0, xmm5
pminsd xmm7, xmm0
cmp eax, 0x5fcee8
jl 0x493a90
pminsd xmm6, xmm7
movaps xmm0, xmm6
psrldq xmm0, 8
pminsd xmm6, xmm0
movups xmm0, xmm6
psrldq xmm0, 4
pminsd xmm6, xmm0
movd edi, xmm6
jmp 0x493be3
mov ecx, 0x5fc6cc
nop
mov eax, esi
sub eax, dword [ecx - 4]
cdq
mov esi, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ecx]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
cmovl esi, eax
cmp esi, edi
cmovge esi, edi
add ecx, 0x50
mov edi, esi
mov esi, dword [ebp - 8]
cmp ecx, 0x5fce4c
jl 0x493bb0
mov ecx, dword [ebp - 0xc]
cmp edi, dword [ebp - 0x10]
jl 0x493c04
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], edi
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov dword [eax], ecx
cmp edi, dword [ebx + 0x14]
jge 0x493c1a
mov esi, dword [ebx + 0xc]
mov edi, eax
jmp 0x493a1b
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0xc]
inc eax
mov edi, dword [ebx + 0x10]
mov dword [ebp - 4], eax
cmp eax, 0x14
jl 0x493a20
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
Function at 0x4f5430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3412
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x616798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4f5474
push 0x5bd2ac
push str.dat_terrain_bytes.raw
call fcn.00561dfc
add esp, 8
mov edi, eax
jmp 0x4f5492
cmp ebx, 1
jne 0x4f548f
push 0x5bd2ac
push str.dat_terrain2_bytes.raw
call fcn.00561dfc
add esp, 8
mov edi, eax
jmp 0x4f5492
mov edi, dword [ebp + 8]
push edi
push 0x10000
lea eax, [esi + 0x128]
push 1
push eax
call fcn.00581b9d
push edi
call fcn.00561aa9
push 0x300004
mov dword [esi + 0x108], 0x100
mov dword [esi + 0x10c], 0x100
mov dword [esi + 0x124], ebx
call fcn.00554c77
add esp, 0x18
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4f5503
push fcn.0050dbb0
push 0x4ecbd0
push 0x10000
lea edi, [eax + 4]
mov dword [eax], 0x10000
push 0x30
push edi
call fcn.00555938
jmp 0x4f5505
xor edi, edi
push 0
push 0
push 0x100
push 0x100
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x120], edi
call fcn.0052be20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4f92b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov ecx, 0x6190cc
push str.GroundObjectTiles::Generate
call fcn.00447e60
cmp dword [ebp + 0x14], 0
jne 0x4f92d1
call fcn.005619b8
push ebx
push 0x1c0000
mov dword [esi + 0x108], 0x100
mov dword [esi + 0x10c], 0x100
call fcn.00554c77
mov ecx, dword [esi + 0x10c]
add esp, 4
xor ebx, ebx
mov dword [esi + 0x120], eax
test ecx, ecx
jle 0x4f93d5
nop dword [eax]
mov eax, dword [esi + 0x108]
xor edx, edx
test eax, eax
jle 0x4f93c4
xor edi, edi
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 1], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 2], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 3], 0
add edi, 4
cmp edi, 0x1c
jl 0x4f9322
mov eax, dword [esi + 0x108]
inc edx
cmp edx, eax
jl 0x4f9320
mov ecx, dword [esi + 0x10c]
inc ebx
cmp ebx, ecx
jl 0x4f9310
jmp 0x4f93db
mov eax, dword [esi + 0x108]
imul eax, ecx
push eax
call fcn.00554c77
add esp, 4
mov dword [esi + 0x194], eax
mov eax, dword [esi + 0x110]
pop ebx
test eax, eax
jne 0x4f9404
push 0x5bd2ac
push str.dat_roads_256.raw
jmp 0x4f9413
cmp eax, 1
jne 0x4f943f
push 0x5bd2ac
push str.dat_roads2_256.raw
call fcn.00561dfc
mov ecx, dword [esi + 0x10c]
mov edi, eax
imul ecx, dword [esi + 0x108]
push edi
push ecx
push 1
push dword [esi + 0x194]
call fcn.00581b9d
push edi
call fcn.00561aa9
add esp, 0x1c
push str.Done_n
mov ecx, 0x6190cc
call fcn.00447e60
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x503ab0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x61ab28]
push edi
call fcn.004661b0
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, 0xc8
mov byte [ebp - 0x14], 0x13
setne bl
lea ebx, [ebx*2 + 1]
cmp edi, 0xc9
jne 0x503aee
mov ebx, 2
jmp 0x503afc
cmp edi, 0xcb
mov eax, 4
cmove ebx, eax
mov ecx, dword [esi + 0x2b8]
push 0x19
add ecx, 0x140
call fcn.0044db90
test eax, eax
jne 0x503b86
cmp edi, 0xc8
jne 0x503b6a
mov ecx, dword [esi + 0x2c0]
push 0x87
add ecx, 0x140
call fcn.0044db90
test eax, eax
jne 0x503b6a
mov ecx, dword [0x6193ec]
lea edx, [ebp - 8]
push 0
push 0
mov byte [ebp - 8], 0x40
mov eax, dword [ecx]
push edx
push 5
call dword [eax + 4]
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2b8]
jmp 0x503c24
mov ecx, dword [esi + 0x2c0]
add ecx, 0x140
cmp edi, dword [esi + 0x23bc]
je 0x503c59
push 0x87
call fcn.0044db90
cmp edi, 0xc8
je 0x503c09
test eax, eax
je 0x503c29
mov ecx, dword [esi + 0x2b8]
push 0x86
add ecx, 0x140
call fcn.0044db90
test eax, eax
je 0x503bf0
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c8]
add ecx, 0x140
call fcn.0044dea0
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
add ecx, 0x140
call fcn.0044dea0
jmp 0x503c1e
test eax, eax
jne 0x503c29
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [0x6193ec]
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0x23a4]
push 0
push 0
mov byte [ebp - 0xf], bl
mov dword [ebp - 0x13], eax
mov eax, dword [ecx]
push edx
push 0xa
call dword [eax + 4]
mov dword [esi + 0x23bc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [esi + 0x2fc]
call fcn.0044dea0
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c0]
add ecx, 0x140
call fcn.0044dea0
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c8]
add ecx, 0x140
call fcn.0044dea0
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
pop edi
mov dword [esi + 0x23bc], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x510bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b41dd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x616798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
push ebx
push edi
call fcn.0052be20
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x124], edi
mov dword [ecx + 0x108], edi
imul edi, ebx
mov dword [ecx + 0x128], ebx
mov dword [ecx + 0x10c], ebx
mov dword [ecx + 0x12c], esi
mov dword [ecx + 0x130], eax
push edi
call fcn.00554c77
mov ebx, dword [ebp - 0x10]
push 0x5bd2ac
push dword [ebp + 8]
mov dword [ebx + 0x138], eax
call fcn.00561dfc
mov ecx, dword [ebx + 0x128]
mov esi, eax
imul ecx, dword [ebx + 0x124]
push esi
push ecx
push 1
push dword [ebx + 0x138]
call fcn.00581b9d
push esi
call fcn.00561aa9
mov edi, dword [ebx + 0x128]
xor ecx, ecx
imul edi, dword [ebx + 0x124]
mov edx, 0x30
mov eax, edi
mov dword [ebp + 0x18], edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00554c77
add esp, 0x24
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x510cb9
push fcn.0050dbb0
push 0x4ecbd0
push edi
lea esi, [eax + 4]
mov dword [eax], edi
push 0x30
push esi
call fcn.00555938
jmp 0x510cbb
xor esi, esi
mov eax, dword [ebx + 0x128]
xor ecx, ecx
imul eax, dword [ebx + 0x124]
mov edx, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x120], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00554c77
add esp, 4
mov dword [ebx + 0x13c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x526130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b51fd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x616798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
push ebx
push edi
call fcn.0052be20
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x124], edi
mov dword [ecx + 0x108], edi
imul edi, ebx
mov dword [ecx + 0x128], ebx
mov dword [ecx + 0x10c], ebx
mov dword [ecx + 0x12c], esi
mov dword [ecx + 0x130], eax
push edi
call fcn.00554c77
mov ebx, dword [ebp - 0x10]
push 0x5bd2ac
push dword [ebp + 8]
mov dword [ebx + 0x138], eax
call fcn.00561dfc
mov ecx, dword [ebx + 0x128]
mov esi, eax
imul ecx, dword [ebx + 0x124]
push esi
push ecx
push 1
push dword [ebx + 0x138]
call fcn.00581b9d
push esi
call fcn.00561aa9
mov edi, dword [ebx + 0x128]
xor ecx, ecx
imul edi, dword [ebx + 0x124]
mov edx, 0x30
mov eax, edi
mov dword [ebp + 0x18], edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00554c77
add esp, 0x24
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x526251
push fcn.0050dbb0
push 0x4ecbd0
push edi
lea esi, [eax + 4]
mov dword [eax], edi
push 0x30
push esi
call fcn.00555938
mov dword [ebx + 0x120], 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 0x14
mov dword [ebx + 0x120], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x52ccb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5a56
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x616798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x20]
lea eax, [edi + 0x10c]
push eax
mov eax, dword [0x6192d0]
push 0
push 0
push 0xffff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 0
push 0
push 0
push str.datmouseart.png
push dword [eax + 0x2a3d8]
call fcn.0040921a
push 0x170
call fcn.00554883
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x52cd5c
mov ecx, dword [0x6192d0]
push 0
push str.WINDOW
call fcn.0045d8f0
mov ecx, dword [0x6192d0]
push eax
call fcn.0045d900
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046a730
jmp 0x52cd5e
xor eax, eax
mov dword [edi + 0x19c], eax
mov byte [eax + 0x168], 0
mov eax, dword [edi + 0x19c]
push 0x1ac
mov dword [ebp - 4], 0xffffffff
mov byte [eax + 0x139], 1
call fcn.00554883
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x52cdd2
mov ecx, dword [0x6192d0]
push 0
push str.ARTTEXTBUTTON
call fcn.0045d8f0
mov ecx, dword [0x6192d0]
push eax
push 0xff
call fcn.0045d8f0
sub eax, 0x7f
mov ecx, esi
push eax
push 0
push 0
call fcn.00466a20
mov esi, eax
jmp 0x52cdd4
xor esi, esi
mov eax, dword [esi]
mov ecx, esi
push str.Continue
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
push 0
push str.datcornerButt2High.png
push 1
mov ecx, esi
mov byte [esi + 0x168], 0
mov dword [esi + 0x150], 0x52d200
mov dword [esi + 0x16c], 9
call fcn.00466c60
push 0
push str.datcornerButt2Down.png
push 2
mov ecx, esi
call fcn.00466c60
push 0
push str.datcornerButt2Up.png
push 0
mov ecx, esi
call fcn.00466c60
mov dword [esi + 0x18c], 0xffffffd3
mov dword [esi + 0x190], 0x52
mov ecx, dword [edi + 0x19c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0x17c
call fcn.00554883
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x52cea5
mov ecx, dword [0x6192d0]
push 0
push str.TEXTBOX
call fcn.0045d8f0
mov ecx, dword [0x6192d0]
sub eax, 0x64
push eax
call fcn.0045d900
sub eax, 0x46
mov ecx, esi
push eax
push 0x64
push 0x46
push 1
call fcn.00469fc0
mov esi, eax
jmp 0x52cea7
xor esi, esi
mov edx, dword [esi]
lea eax, [edi + 0x1a0]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x52d200
mov byte [esi + 0x168], 0
mov dword [esi + 0x16c], 9
mov ecx, dword [edi + 0x19c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x19c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x59917e
Capabilities:
Read file on windows

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

Function at 0x599189
Capabilities:
Read file on windows

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

Function at 0x5a1aa3
Capabilities:
Set environment variable

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

Function at 0x5a1aae
Capabilities:
Set environment variable

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

Function at 0x5a2178
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a1eff
Function at 0x40fbb8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40fbbf
mov dword [0x470001], 0xd5
mov dword [0x470001], 0xd6
mov byte [esp], 0
mov dword [0x470001], 0xd8
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x40fcfa
mov dword [0x470001], 0xd9
lea eax, [esp + 8]
mov dword [0x470001], 0xdb
lea eax, [esp + 8]
push eax
mov eax, str.SeDebugPrivilege
push eax
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and eax, eax
je 0x40fcdd
mov dword [0x470001], 0xdc
lea eax, [esp + 0x10]
mov dword [0x470001], 0xdf
lea ebp, [esp + 0x10]
mov dword [ebp], 1
mov dword [0x470001], 0xe0
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
mov dword [0x470001], 0xe1
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
mov dword [0x470001], 0xe2
push ebp
pop ebp
mov dword [ebp + 0xc], 2
mov dword [0x470001], 0xe4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
mov dword [0x470001], 0xe5
mov dword [0x470001], 0xe6
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x470001], 0xe7
mov dword [0x470001], 0xe8
movsx eax, byte [esp]
movsx eax, al
jmp 0x40fd23
add esp, 0x1c
pop ebx
pop ebp
ret
Function at 0x4158ec
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0x4b817c
cmp dword [0x4b8178], edi
jne 0x41591b
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4b8178], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4b8174]
test esi, esi
je 0x415976
test edi, edi
jne 0x415abd
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x41594c
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x41593d
jmp 0x415968
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.00415895
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x41592c
test edi, edi
jne 0x415abd
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x415abd
mov esi, dword [0x4b8174]
jmp 0x4159b7
cmp dword [esi + 0xc], 0x3f
jl 0x415a58
mov esi, dword [esi]
test esi, esi
jne 0x4159ab
push 0x310
push 8
push dword [0x4b788c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x415ab7
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 8], eax
test eax, eax
je 0x415aa9
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x415ad0
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x415aa4
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.00415895
mov eax, dword [0x4b8174]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x415a50
mov dword [eax + 4], esi
mov dword [0x4b8174], esi
jmp 0x415abd
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.00415895
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x415abd
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0x4b788c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0x4b817c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8