joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4439f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004415f0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x443a49
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.0043ea50
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.0043ea40
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.004430a0
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x476440]
push 0
lea ecx, [esp + 0x4c]
call 0x485121
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.00452730
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00441050
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x476164]
mov ecx, ebx
call fcn.0043e9c0
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x443b14
push edi
mov ecx, esi
call fcn.00441160
push eax
push ebp
mov ecx, esi
call fcn.00441320
cmp eax, dword [esp + 0x40]
jg 0x443b10
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x443aee
mov eax, ebx
jmp 0x443b1a
cmp edi, ebx
jl 0x443b18
mov eax, ebx
jmp 0x443b1a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x443b2b
mov dword [esp + 0x30], eax
jmp 0x443b36
cmp edi, ebx
jl 0x443b31
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.0043e980
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x443b7d
push edi
mov ecx, esi
call fcn.00441080
push eax
push ebx
mov ecx, esi
call fcn.00441450
cmp eax, dword [esp + 0x44]
jg 0x443b75
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x443b4f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x443b87
cmp edi, ebp
jl 0x443b81
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x443b87
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x443b90
mov ecx, eax
jmp 0x443b99
cmp edi, ebp
jl 0x443b96
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00441070
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call 0x485193
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x452d90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473c38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x476440]
push 0
lea ecx, [esp + 0x20]
call 0x485121
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00452730
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call 0x48504f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call 0x481839
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
add al, byte [ecx]

Function at 0x452ec0
Capabilities:
Get number of processors

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0xd0]
add eax, ecx
cmp eax, 0xc8
jl 0x452eeb
cmp eax, 0xbb8
jle 0x452ee4
mov eax, 0xbb8
jmp 0x452ef0
cmp eax, 0xc8
jge 0x452ef0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00452d90
mov edx, dword [esi + 0x1c]
push 1
push 0
push edx
call dword [0x476444]
inc edi
add byte [esi - 0x3e], bl
add al, 0

Function at 0x452f10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call 0x485121
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00452730
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call 0x48504f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x476440]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x452fd4
cmp dword [esp + 0x40], 1
jne 0x452fd2
cmp ecx, eax
jge 0x452fd4
mov eax, ecx
cmp eax, 0xc8
jge 0x452fe0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00452d90
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x476444]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x485193
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x453750
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473cc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call 0x47fc56
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x47d808
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x47c4b0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x476130]
push eax
mov ecx, edi
call 0x4853c9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call 0x486921
test eax, eax
je 0x45386c
mov ecx, dword [esp + 0x3c]
call 0x4853f6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x476420]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x453830
push edi
mov ecx, esi
call 0x4829b8
mov ecx, esi
call fcn.004539d0
cmp dword [esp + 0x38], 1
jne 0x453865
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call 0x482b22
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x469560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a7d88]
xor edx, edx
cmp eax, edx
jne 0x469586
xor eax, eax
mov byte [eax + 0x4a7c88], al
inc eax
cmp eax, 0x100
jl 0x46956e
mov dword [0x4a7d88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a7c88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x469617
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4695ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4695b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x469690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4696e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4696ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470b3d
Capabilities:
Terminate process

Disassembly:
add byte [eax - 0x18], dl
mov bl, ch
add byte [eax], al
mov dword [ebp - 0x60], eax
push eax
call fcn.00473c88
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.004749d7
pop ecx
pop ecx
ret
Function at 0x498990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x61000]
push edi
jmp 0x4989aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4989b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4989a0
mov eax, 1
add ebx, ebx
jne 0x4989c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4989d4
jne 0x4989f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4989f3
dec eax
add ebx, ebx
jne 0x4989e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4989b8
add ebx, ebx
jne 0x4989ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x498a45
xor ecx, ecx
sub eax, 3
jb 0x498a0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x498a7a
sar eax, 1
mov ebp, eax
jmp 0x498a16
add ebx, ebx
jne 0x498a16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4989e4
inc ecx
add ebx, ebx
jne 0x498a24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4989e4
add ebx, ebx
jne 0x498a31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x498a26
jne 0x498a42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x498a26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x498a64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x498a56
jmp 0x4989a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x498a64
add edi, ecx
jmp 0x4989a6
pop esi
mov edi, esi
mov ecx, 0x318d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x498a82
cmp byte [edi], 0x1b
jne 0x498a82
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 0x498a87
lea edi, [esi + 0x95000]
mov eax, dword [edi]
or eax, eax
je 0x498aff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9d0b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9d1cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x498ab4
mov ecx, edi
jns 0x498ae3
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 + 0x9d1d0]
or eax, eax
je 0x498af9
mov dword [ebx], eax
add ebx, 4
jmp 0x498ad1
call dword [esi + 0x9d1e0]
mov ebp, dword [esi + 0x9d1d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x498b33
sub esp, 0xffffff80
jmp 0x453e3d
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40907f
pop dword [ebp - 0x48]
mov eax, 0xe406027d
sub eax, 0xe3c571fe
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3b0be
push 0
mov eax, 0xe7618c9a
sub eax, 0xe720abc2
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xa2a758fe
add ecx, 0x5d58f661
xor edx, edx
add edx, eax
mov ebx, 0xea271971
sub ebx, 0xe9e5ddad
add ebx, dword [ebp - 0x48]
mov edi, 0xc19d4955
add edi, 0xd7c92f53
sub dword [ebp - 0x38], esi
mov esi, dword [ebx]
xor dword [ebp - 0xc], ebx
xor esi, edi
mov dword [ebp - 0x18], 0x86889909
mov dword [edx], esi
xor dword [ebp - 4], esi
add edx, 4
add ebx, 0x13b3ee0c
add ebx, 0xec4c11f8
loop 0x4090e0
add eax, 0xb966a40d
add eax, 0x469a8c42
mov ebx, eax
add eax, 0x62ea2d9d
add eax, 0x9d15d268
mov ecx, 0x6a20e4b6
add ecx, 0x961f1b4a
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402a40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [ecx + 0x104]
push ebx
push ebp
push esi
cmp eax, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
je 0x402aed
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edi
push esi
push eax
call ebp
test eax, eax
je 0x402a82
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
cmp edi, 0xffff
jbe 0x402aed
xor ebx, ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 0
push edx
mov ecx, dword [eax + 0x104]
push 0xffff
push esi
push ecx
call ebp
test eax, eax
je 0x402aed
mov ecx, dword [esp + 0x1c]
sub edi, 0xffff
add esi, 0xffff
add ebx, ecx
cmp edi, 0xffff
ja 0x402a8c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 0
push edx
mov ecx, dword [eax + 0x104]
push edi
push esi
push ecx
call ebp
test eax, eax
je 0x402aed
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
lea eax, [ebx + edx]
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, dword [ebx + 0x104]
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402b53
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp edi, 0xffff
jbe 0x402bbc
xor ebp, ebp
mov eax, dword [ebx + 0x104]
lea edx, [esp + 0x18]
push 0
push edx
push 0xffff
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402bbc
mov ecx, dword [esp + 0x18]
sub edi, 0xffff
add esi, 0xffff
add ebp, ecx
cmp edi, 0xffff
ja 0x402b5d
mov edx, dword [ebx + 0x104]
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402bbc
mov eax, dword [esp + 0x18]
pop edi
add eax, ebp
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x405850
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x405891
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405891
mov eax, dword [ecx + 0x104]
test eax, eax
je 0x405891
lea ecx, [esp + 8]
push 0
push ecx
push edx
push esi
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 8]
pop esi
neg eax
sbb eax, eax
and eax, ecx
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x407370
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, ecx
lea ecx, [esp + 4]
push eax
push ecx
mov ecx, dword [0x5c8890]
push 0
push 0x20006
push 0
push 0
push 0
call fcn.0048cc20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4073df
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x14]
push str.3D_Mode
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4073df
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4073df
mov edx, dword [esp + 0x10]
mov dword [esi + 0x28], edx
pop esi
add esp, 8
ret 4

Function at 0x4073f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [0x5c8890]
lea eax, [esp]
push eax
push 0x20019
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
call fcn.0048cc20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407430
xor eax, eax
add esp, 0x10
ret
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.3D_Mode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407466
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x10
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x10
ret

Function at 0x407480
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
cmp eax, 2
ja 0x4074e7
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
mov ecx, dword [0x5c8890]
push 0
push 0x20006
push 0
push 0
push 0
call fcn.0048cc20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4074e7
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
push str.3DEffectLevel
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4074e7
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret 4

Function at 0x4074f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [0x5c8890]
lea eax, [esp]
push eax
push 0x20019
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
call fcn.0048cc20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407530
xor eax, eax
add esp, 0x10
ret
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.3DEffectLevel
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407566
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x10
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x10
ret
Function at 0x4075b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
push edi
mov edi, dword [esp + 0xb0]
test edi, edi
mov ebx, ecx
mov dword [esp + 0x20], 0
je 0x4075eb
mov ecx, esi
call fcn.004095b0
inc eax
dec edi
push edi
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.00409590
push 0
mov ecx, esi
call fcn.0040ee80
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0040fd10
mov ecx, esi
call fcn.0040fd30
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.004095d0
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x40763d
push ecx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x407684
test eax, eax
je 0x407668
movsx edx, word [eax]
mov dword [esp + 0x10], edx
xor ecx, ecx
movsx edi, word [eax + 2]
mov dword [esp + 0x14], edi
mov cx, word [eax + 4]
add ecx, edx
xor ebp, ebp
mov dword [esp + 0x18], ecx
mov bp, word [eax + 6]
mov eax, ebp
add eax, edi
jmp 0x407680
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
xor edx, edx
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x24]
sub eax, edi
push ebp
push eax
mov eax, dword [esp + 0x40]
sub ecx, edx
lea edx, [esp + 0x18]
push ecx
mov cx, word [ebx + 0x48]
push edx
mov edx, dword [esp + 0x5c]
sar eax, 1
push eax
mov eax, dword [ebx + 0x44]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00407770
mov ecx, esi
call fcn.0040ef60
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4076c8
dec eax
mov ecx, esi
push eax
call fcn.00409590
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0xc
Function at 0x409000
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4c957b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
mov dword [esp + 0xc], ecx
push ebp
push esi
lea ecx, [esp + 8]
xor esi, esi
call fcn.00403960
lea eax, [esp + 0x158]
mov dword [esp + 0x360], esi
push eax
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea ecx, [esp + 0x158]
lea edx, [esp + 0x258]
push ecx
push str._sSave
push edx
call fcn.004b8784
mov ebp, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
add esp, 0xc
lea eax, [esp + 0x258]
push eax
call ebp
test eax, eax
je 0x409119
push ebx
lea ecx, [esp + 0x1c]
push edi
push ecx
push str..jpg
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov ebx, eax
lea edx, [esp + 0x20]
push edx
push ebx
call edi
test eax, eax
je 0x409106
lea eax, [esp + 0x4c]
push 0xa
push eax
push str.ScreenShot
call fcn.004b8f30
add esp, 0xc
test eax, eax
jne 0x409095
lea ecx, [esp + 0x4c]
push eax
push ecx
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.00403e50
cmp eax, 0xc
jne 0x409095
xor edx, edx
lea eax, [esp + 0x56]
push 3
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
push eax
push ecx
mov dword [esp + 0x24], edx
call fcn.004b8510
lea edx, [esp + 0x20]
push edx
call fcn.004b84a6
add esp, 0x10
cmp eax, 0x3e8
jae 0x409095
cmp eax, esi
jbe 0x409095
mov esi, eax
jmp 0x409095
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [esp + 0x160]
push eax
call ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
inc esi
push esi
call fcn.00408ff0
lea ecx, [esp + 8]
mov dword [esp + 0x360], 0xffffffff
call fcn.004039a0
mov ecx, dword [esp + 0x358]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x35c
ret