joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032f3c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x10032f82
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
dec edi
jne 0x10032f4c
jmp 0x10032f8f
cmp dword [esi], 0x4e0
jb 0x10032f8f
call fcn.10032fc9
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x10032fc9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
dec ebx
jne 0x10032fd9
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
dec ebx
jne 0x10033017
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret
Function at 0x10037cb4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10069780
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10088740]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x10088740]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x1008b494]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
test al, 1
jne 0x10037d25
or eax, 1
mov dword [0x1008b4ac], 0xf
push 0x1006ade7
mov dword [0x1008b494], eax
mov dword [0x1008b4a8], ebx
mov byte [0x1008b498], bl
call fcn.100473d7
pop ecx
cmp byte [0x1008b38d], bl
je 0x10037d3b
push 0x1008b498
mov ecx, esi
call fcn.10008040
jmp 0x10037da5
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ebx
call fcn.10020bd9
test al, al
jne 0x10037d6d
mov ecx, esi
push 0x10076c8c
call fcn.100013a0
jmp 0x10037d99
call fcn.1001e2c7
test eax, eax
je 0x10037d5f
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10037ff0
mov ecx, esi
test al, al
je 0x10037d61
push 0x1008b498
mov byte [0x1008b38d], 1
call fcn.10008040
push ebx
push 1
lea ecx, [esp + 0x18]
call fcn.10003109
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10046c1a
mov esp, ebp
pop ebp
ret 4
Function at 0x10037ff0
Capabilities:
Encode data using xor

Disassembly:
push 0x50
mov eax, 0x10069800
call fcn.1004adf3
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x1008b4ac], 0x10
mov eax, 0x1008b498
push ebx
cmovae eax, dword [0x1008b498]
push ecx
mov dword [0x1008b4a8], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [eax], bl
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.100396ce
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
push 6
cmovae edi, dword [ebp - 0x28]
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], 0x19
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 0x19], bl
mov dword [ebp - 4], ebx
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x100380fd
add eax, eax
cmp dword [esi + 0x14], 8
jb 0x10038075
mov esi, dword [esi]
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push eax
push esi
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.100014b1
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1003d1c8
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae ecx, dword [ebp - 0x40]
add eax, ecx
cmp dword [ebp - 0x2c], 0x10
mov edx, eax
cmovae esi, dword [ebp - 0x40]
xor ecx, ecx
and dword [ebp - 0x5c], ecx
sub edx, esi
cmp esi, eax
cmova edx, dword [ebp - 0x5c]
test edx, edx
je 0x100380e1
mov al, byte [ecx + esi]
mov byte [ecx + edi], al
inc ecx
cmp ecx, edx
jne 0x100380d6
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.1000146d
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.1000146d
push 0x18
xor esi, esi
pop ecx
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 0xc]
cmovae edx, dword [ebp - 0x28]
sar eax, cl
sub ecx, 8
mov byte [edx + esi + 0x14], al
inc esi
cmp esi, 4
jb 0x10038102
cmp dword [ebx], 0
jne 0x1003812a
cmp dword [ebp + 0xc], 0
je 0x1003816a
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, edx
cmovae esi, edx
lea edi, [eax + 0x18]
test edi, edi
je 0x10038170
mov byte [edi], 0
test esi, esi
je 0x1003816a
xor al, al
xor edx, edx
movzx ecx, byte [esi + edx]
movzx eax, al
xor ecx, eax
inc edx
mov al, byte [ecx + 0x10077e10]
cmp edx, 0x18
jl 0x10038151
xor al, 0x55
mov byte [edi], al
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, edx
xor ecx, ecx
cmp dword [0x1008b4ac], 0x10
mov dword [0x1008b4a8], ecx
jb 0x10038193
mov eax, dword [0x1008b498]
mov byte [eax], cl
jmp 0x10038199
mov byte [0x1008b498], cl
push 0x19
pop edx
mov ecx, esi
call fcn.10011a8d
push 0
push 1
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.10039683
mov al, bl
call fcn.1004ada2
ret 0xc
Function at 0x1003cc12
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x10088740]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x78], edx
push 0x40
xor esi, esi
push esi
lea edi, [ebx + 0x68]
push edi
call fcn.1004ac10
add esp, 0xc
cmp dword [ebp + 8], 0x40
jbe 0x1003cc68
lea ecx, [ebp - 0x74]
call fcn.1003cd41
push dword [ebp + 8]
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
call fcn.1003cd71
pop ecx
test edi, edi
je 0x1003cc77
mov edx, edi
lea ecx, [ebp - 0x74]
call fcn.1003d084
jmp 0x1003cc77
push dword [ebp + 8]
push dword [ebp - 0x78]
push edi
call fcn.1004a560
add esp, 0xc
mov ecx, ebx
call fcn.1003cd41
push 0x40
lea eax, [ebp - 0x4c]
push 0x36
push eax
call fcn.1004ac10
add esp, 0xc
mov al, byte [edi + esi]
xor byte [ebp + esi - 0x4c], al
inc esi
cmp esi, 0x40
jb 0x1003cc8e
push 0x40
lea edx, [ebp - 0x4c]
mov ecx, ebx
call fcn.1003cd71
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10046c1a
mov esp, ebp
pop ebp
ret

Function at 0x1003ccb9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10088740]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, edx
mov esi, ecx
lea edx, [ebp - 0x28]
call fcn.1003d084
push 0x40
lea eax, [ebp - 0x6c]
push 0x5c
push eax
call fcn.1004ac10
add esp, 0xc
xor ecx, ecx
mov al, byte [esi + ecx + 0x68]
xor byte [ebp + ecx - 0x6c], al
inc ecx
cmp ecx, 0x40
jb 0x1003cce9
mov ecx, esi
call fcn.1003cd41
push 0x40
lea edx, [ebp - 0x6c]
mov ecx, esi
call fcn.1003cd71
pop ecx
push 0x20
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1003cd71
pop ecx
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1003d084
push 0x20
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.1004a560
mov ecx, dword [ebp - 8]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.10046c1a
mov esp, ebp
pop ebp
ret

Function at 0x1003cd41
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
je 0x1003cd6f
push esi
push edi
push 8
pop ecx
mov esi, 0x10077f10
lea eax, [ebx + 0x28]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x40
xor esi, esi
push esi
push eax
call fcn.1004ac10
add esp, 0xc
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
pop edi
pop esi
pop ebx
ret
Function at 0x1003d084
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ecx + 0x24]
mov eax, esi
push edi
mov edi, dword [ecx + 0x20]
shrd edi, eax, 3
mov dword [ebp - 4], edx
xor edx, edx
or edx, dword [ecx + 0x20]
and edi, 0x3f
shr eax, 3
mov ebx, edx
mov eax, esi
mov dword [ebp - 0xc], edi
mov edi, esi
mov dword [ebp - 8], ecx
shrd edi, ebx, 8
mov ecx, edx
shld ecx, eax, 8
shld edx, esi, 8
shl eax, 8
xor edi, eax
shr ebx, 8
xor ebx, ecx
shl esi, 8
mov eax, 0xff00ff
and edi, eax
and ebx, eax
xor edi, esi
xor ebx, edx
mov eax, edi
mov ecx, ebx
shld ecx, eax, 0x10
mov edx, edi
mov esi, ebx
shrd edx, esi, 0x10
shl eax, 0x10
shr esi, 0x10
xor edx, eax
xor esi, ecx
mov eax, 0xffff
shld ebx, edi, 0x10
and esi, eax
and edx, eax
mov eax, dword [ebp - 0xc]
xor esi, ebx
mov ebx, dword [ebp - 8]
shl edi, 0x10
xor edx, edi
push 0x38
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], esi
test eax, eax
je 0x1003d164
mov byte [eax + ebx + 0x28], 0x80
inc eax
pop edi
cmp eax, edi
ja 0x1003d138
sub edi, eax
add eax, 0x28
push edi
push 0
add eax, ebx
push eax
call fcn.1004ac10
jmp 0x1003d172
push 0x40
pop ecx
cmp eax, ecx
jae 0x1003d152
sub ecx, eax
add eax, 0x28
push ecx
add eax, ebx
push 0
push eax
call fcn.1004ac10
add esp, 0xc
lea esi, [ebx + 0x28]
mov ecx, ebx
mov edx, esi
call fcn.1003ce3d
push edi
push 0
push esi
jmp 0x1003d131
lea esi, [ebx + 0x28]
push 0
push esi
call fcn.1004ac10
mov byte [esi], 0x80
mov eax, dword [ebx + 0x20]
lea edx, [ebx + 0x28]
add esp, 0xc
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x24]
mov ecx, ebx
mov dword [ebx + 0x64], eax
call fcn.1003ce3d
xor esi, esi
mov edx, dword [ebx + esi*4]
rol edx, 0x10
mov ecx, edx
mov eax, edx
shr ecx, 8
shl eax, 8
xor ecx, eax
shl edx, 8
mov eax, dword [ebp - 4]
and ecx, 0xff00ff
xor ecx, edx
mov dword [ebx + esi*4], ecx
mov dword [eax], ecx
add eax, 4
inc esi
mov dword [ebp - 4], eax
cmp esi, 8
jl 0x1003d18d
and dword [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb8000]
push edi
jmp 0x50f07a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50f081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50f070
mov eax, 1
add ebx, ebx
jne 0x50f093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50f0a4
jne 0x50f0c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50f0c3
dec eax
add ebx, ebx
jne 0x50f0b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50f088
add ebx, ebx
jne 0x50f0bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50f115
xor ecx, ecx
sub eax, 3
jb 0x50f0db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50f14a
sar eax, 1
mov ebp, eax
jmp 0x50f0e6
add ebx, ebx
jne 0x50f0e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50f0b4
inc ecx
add ebx, ebx
jne 0x50f0f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50f0b4
add ebx, ebx
jne 0x50f101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50f0f6
jne 0x50f112
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50f0f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50f134
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50f126
jmp 0x50f076
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50f134
add edi, ecx
jmp 0x50f076
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50f152
cmp byte [edi], 0x11
jne 0x50f152
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 0x50f157
lea edi, [esi + 0x108000]
mov eax, dword [edi]
or eax, eax
je 0x50f1cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x144e24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x144fa0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50f184
mov ecx, edi
jns 0x50f1b3
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 + 0x144fa4]
or eax, eax
je 0x50f1c9
mov dword [ebx], eax
add ebx, 4
jmp 0x50f1a1
call dword [esi + 0x144fb4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x50f200
cmp al, 0xef
ja 0x50f1f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50f1d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x50f1e2
mov ebp, dword [esi + 0x144fa8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x50f234
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x401d08
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x4407b4]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x90
mov eax, 0x43494e
call fcn.00412414
mov esi, dword [ebp + 0x234]
xor ebx, ebx
push ebx
push 0x4363c8
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.00401482
cmp eax, 0xffffffff
jne 0x401e94
push ebx
push 0x4363c4
mov ecx, esi
call fcn.00401482
cmp eax, 0xffffffff
jne 0x401e94
mov esi, 0x103
push esi
lea eax, [ebp + 0x105]
push ebx
push eax
mov byte [ebp + 0x104], bl
call fcn.00413d00
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00413d00
add esp, 0x18
lea eax, [ebp + 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401dad
xor al, al
jmp 0x401e96
mov esi, 0x4363c0
lea edi, [ebp + 0x208]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x10]
push 7
xor eax, eax
cmp dword [esi + 0x18], 0x10
pop ecx
lea edi, [ebp + 0x20b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jb 0x401dd7
mov eax, dword [esi + 4]
jmp 0x401dda
lea eax, [esi + 4]
push ebx
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp]
push eax
call fcn.0041251e
add esp, 0x10
push str..log
lea ecx, [ebp - 0x80]
call fcn.00401b0f
mov edi, eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 4
call fcn.00401b0f
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00401b0f
push dword [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401cbd
push edi
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 7
call fcn.00401cbd
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.0040197c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x9c]
call fcn.004014a3
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004014a3
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004014a3
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004014a3
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.004014a3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.00411f86
add ebp, 0x22c
leave
ret
Function at 0x405c98
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x264
lea ebp, [esp - 4]
mov eax, dword [0x4407b4]
xor eax, ebp
mov dword [ebp + 0x264], eax
push 0x28
mov eax, 0x434fa0
call fcn.00412414
mov eax, dword [ebp + 0x278]
mov esi, dword [ebp + 0x270]
mov edi, dword [ebp + 0x274]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x27c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x280]
xor ebx, ebx
push 0x13c
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], ebx
call fcn.00413d00
xor eax, eax
push 0x104
mov word [ebp + 0x15c], ax
lea eax, [ebp + 0x15e]
push ebx
push eax
call fcn.00413d00
add esp, 0x18
push ebx
lea ecx, [ebp + 0x140]
mov dword [ebp + 0x158], 0xf
call fcn.00401127
push dword [ebp - 0x18]
lea eax, [ebp + 0x15c]
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push edi
push esi
push eax
call fcn.00415b46
add esp, 0x14
lea eax, [ebp]
push eax
lea eax, [ebp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d9d
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401b0f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.00405c25
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004014a3
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405d5d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp + 0x140]
call fcn.004014a3
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.00411f86
add ebp, 0x268
leave
ret
Function at 0x406409
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4407b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
call fcn.00406215
test eax, eax
je 0x40642b
inc esi
jmp 0x406467
call fcn.004061fd
test eax, eax
jne 0x406467
mov esi, 0x94
push esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00413d00
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
sbb esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00411f86
leave
ret

Function at 0x406890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4068a7
mov eax, dword [ebp + 0x14]
push 6
mov dword [eax], edi
pop eax
jmp 0x406919
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x4068e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
cmp dword [ebp + 0x10], edi
je 0x4068dc
push dword [ebp + 0x10]
call fcn.0040e79f
pop ecx
mov eax, esi
jmp 0x406918
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
cmp dword [ebp - 4], eax
jbe 0x406932
push dword [ebp - 4]
call fcn.0040e794
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x40691c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp + 0x14]
push dword [eax]
push ebx
push dword [ebp + 0x10]
call fcn.004141c0
add esp, 0xc
push 0xe
pop eax
jmp 0x40690f
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x406957
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ebx], ecx
jmp 0x406917
xor eax, eax
jmp 0x406950
Function at 0x406df6
Capabilities:
Set registry value

Disassembly:
push 0x18
mov eax, 0x4352f9
call fcn.00412414
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00402503
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402503
mov byte [ebp - 4], 1
call fcn.00406409
test eax, eax
je 0x406e5a
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00402503
push dword [eax + 4]
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406476
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00402707
jmp 0x406eed
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0040662e
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004066d1
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x406ea2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], al
call fcn.00402707
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402707
xor eax, eax
call fcn.004124ec
ret
push dword [ebp + 0x10]
call fcn.00411ca0
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
test eax, eax
je 0x406ee7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00402707
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402707
mov eax, esi
jmp 0x406e9c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x406ecb
Function at 0x407564
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x3e8
lea ebp, [esp - 4]
mov eax, dword [0x4407b4]
xor eax, ebp
mov dword [ebp + 0x3e8], eax
push 0x20
mov eax, 0x43545c
call fcn.00412414
mov eax, dword [ebp + 0x3f8]
mov ebx, dword [ebp + 0x3f4]
mov esi, str.MarsUnknown
lea edi, [ebp + 0x1f4]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x3fc]
movsd dword es:[edi], dword [esi]
push 0x1e8
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x200]
push 0
push eax
movsd dword es:[edi], dword [esi]
call fcn.00413d00
add esp, 0xc
push ebx
lea ecx, [ebp - 0x18]
call fcn.00402503
push dword [ebp - 0x24]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402503
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00406375
lea eax, [ebp - 0x2c]
push eax
call fcn.00406336
add esp, 0xc
push dword [eax + 4]
lea eax, [ebp]
push 0x1f4
push eax
lea eax, [ebp + 0x1f4]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x2c]
call fcn.00402707
lea eax, [ebp + 0x1f4]
push eax
lea eax, [ebp]
push eax
call fcn.0041500c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x407646
lea eax, [ebp]
push eax
call fcn.004021e6
mov al, 1
jmp 0x40764d
call fcn.00402144
xor al, al
lea ecx, [ebp - 0x20]
movzx esi, al
mov byte [ebp - 4], 0
call fcn.00402707
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402707
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3e8]
xor ecx, ebp
call fcn.00411f86
add ebp, 0x3ec
leave
ret