joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10197aaa
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, 0x11f9
mov dword [0x101b13d0], 0
mov byte [0x101b13d4], 0
mov dword [0x101b13c4], 0x1887
mov dword [0x101b13cc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jmp 0x10197bf7
xor eax, eax
mov dword [0x101b13c4], 0xfffff035
mov dword [0x101b13cc], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x101b13d8], 0
mov dword [ebp - 0x28], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101b13c8]
mov ebx, edi
add ebx, 0x1f68
mov dword [0x101b13c4], ebx
mov ebx, dword [0x101b13d0]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [esi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x101b13d8], ecx
add edi, 0xfffffb7b
mov dword [0x101b13c8], edi
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x2c]
idiv ecx
mov dword [0x101b13d0], edx
mov dword [0x101b13c4], 0xb5f
mov edi, dword [ebp - 0x28]
mov cl, byte [esi + edi]
mov byte [0x101b13d4], cl
mov dword [0x101b13c8], 0x148d
mov cl, byte [esi + edx]
mov byte [esi + edi], cl
mov edx, dword [0x101b13c4]
add edx, 0xfffffb13
mov dword [0x101b13c8], edx
mov cl, byte [0x101b13d4]
mov edx, dword [0x101b13d0]
mov byte [esi + edx], cl
mov dword [0x101b13c4], 0x106c
mov edx, dword [0x101b13cc]
add edx, 1
mov dword [0x101b13cc], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x10197b15
jmp 0x10197c40
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x41f
mov dword [0x101b13c8], eax
mov eax, ecx
mov bl, al
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
mov dword [0x101b13c4], 0xaad
mov ecx, dword [0x101b13cc]
add ecx, 1
mov dword [0x101b13cc], ecx
cmp ecx, 0x100
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
jl 0x10197bf7
jmp 0x10197afc
mov dword [0x101b13c4], 0x3b1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10197d3c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x101b13c4], 0x15fa
mov dword [0x101b13c8], 0xfffffb3e
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jmp 0x10197e13
mov eax, dword [ebp - 0x38]
mov dword [0x101b13c8], 0x6ae
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x101b13c4], 0x1d1e
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10198788
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x40], ecx
mov dword [0x101b13c8], 0x1af1
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 4], ecx
mov dword [0x101b13c4], 0x1860
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x10197e8e
jmp 0x10197e79
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1019a1ec]
mov dh, byte [eax + 0x1019a1bd]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
jne 0x10197e13
mov dword [0x101b13c8], 0x10bc
mov dword [0x101b13c4], 0x1c28
call fcn.10198382
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.101975f4
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], ecx
je 0x10197e8e
jmp 0x10197d7a
mov dword [0x101b13c8], 0xb20
mov eax, dword [ebp - 0x3c]
add eax, 0x12f6
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x101984c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [0x101b13c8], 0x968
mov dword [ebp - 0x10], eax
call fcn.101989de
xor ecx, ecx
mov edx, eax
mov dword [0x101b13c8], 0x15f9
mov esi, dword [eax + 0x3c]
mov dword [0x101b13c4], 0xfffff591
mov dword [0x101b13c8], 0x58
mov esi, dword [eax + esi + 0x78]
mov dword [0x101b13c8], 0xfffffbf7
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101b13c4], 0x38ca
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1019861d
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x101985bd
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x42]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x3c], edx
jne 0x1019856b
mov al, byte [ebp - 0x42]
test al, 1
jne 0x101985f0
jmp 0x101985c6
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x30]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
jb 0x10198551
jmp 0x1019861d
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov dword [0x101b13c4], 0x2457
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101b13c8], 0x163f
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10198628
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x101b13c4], 0x24f2
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, 0x13da
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [0x101b13c4], 0x13da
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x101986a7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1019871d
jmp 0x10198770
mov dword [0x101b13c8], 0x47
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10198671
jmp 0x10198770
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + ecx*2], 0
mov esi, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
je 0x101986ec
mov eax, dword [ebp - 0x20]
add eax, 0xfffffe00
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [0x101b13c4], eax
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
jl 0x101986a7
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x10198770
mov dword [0x101b13c4], 0x5bf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10198689
jmp 0x10198770
mov dword [0x101b13c4], 0xfffffa1e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10198770
mov dword [0x101b13c8], 0x519
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10198770
mov eax, 1
mov dword [0x101b13c4], 0x24bd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x1019877f
xor eax, eax
mov dword [0x101b13c4], 0x1321
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x10198b82
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x93e
xor ebx, ebx
mov dword [0x101b13cc], 0
mov dword [0x101b13d0], 0
mov dword [0x101b13dc], 0
mov dword [0x101b13c4], 0x1b7a
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10198d0f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x109d
mov edi, 0x100
mov ebx, ecx
add ebx, 1
add edx, 1
mov dword [0x101b13c4], 0xcd7
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv edi
mov dword [0x101b13cc], edx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x30]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x101b13d0], edx
mov dword [0x101b13c4], 0x1a1e
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
mov cl, byte [ecx + edi]
mov byte [0x101b13d4], cl
mov dword [0x101b13c8], 0xfffff974
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x24]
mov byte [edx + edi], cl
mov cl, byte [0x101b13d4]
mov edx, dword [0x101b13d0]
mov edi, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov dword [0x101b13c4], 0x6cf
mov edx, dword [0x101b13cc]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101b13d0]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov dword [0x101b13c4], 0x257e
and ecx, 0xff
mov dword [0x101b13dc], ecx
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
xor cl, byte [edx + edi]
mov byte [0x101b13e0], cl
mov dword [0x101b13c8], 0x16d0
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], cl
mov dword [0x101b13c4], 0x22d9
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], esi
je 0x10198d0f
mov eax, dword [0x101b13cc]
mov ecx, dword [0x101b13d0]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x10198bed
mov eax, dword [ebp - 0x2c]
mov dword [0x101b13c4], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10198d1f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x101b13c4], 0x1742
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10197f3a
lea ecx, [0x10197a59]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x78], edx
mov dword [esp + 0x50], 0x13fe00
mov edx, dword [0x101b13b0]
mov dword [esp + 0x6c], edx
mov edx, dword [0x101b13b4]
mov dword [esp + 0x2c], edx
mov dword [0x101b13c8], 0x848
mov edx, dword [0x101b13b8]
mov dword [esp + 0x4c], edx
mov edx, dword [0x101b13bc]
mov dword [esp + 0x5c], edx
mov edx, dword [0x101b13c0]
mov dword [esp + 0x30], edx
mov dword [0x101b13c4], 0x96b
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10198e32
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10198e47
jmp 0x10198e20
lea eax, [esp + 0x20]
mov dword [0x101b13c4], 0x996
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10197d3c
mov dword [0x101b13c4], 0x26f7
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x101b13c8]
add ecx, 0xfffff46a
mov dword [0x101b13c4], ecx
mov dword [esp + 8], eax
jmp 0x10198e85
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x10198db5
jmp 0x10198e20
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov dword [0x101b13c8], 0x58
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x70], edx
mov dword [0x101b13c4], 0xc36
call fcn.10198628
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x10198dcb
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x320289bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x320289cb
pop dword [ebp - 0x10]
mov eax, 0x1436bc64
add eax, 0x1dcbcd67
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x9878b26
add dword [ebp - 0x20], 0x44caba25
mov dword [ebp - 0x1c], 0xe2c2a3d9
sub dword [ebp - 0x1c], 0xb08f5794
mov dword [ebp - 0x18], 0x4b9b912a
sub dword [ebp - 0x18], 0xff4f4cfc
mov dword [ebp - 0x14], 0x178544ad
sub dword [ebp - 0x14], 0x178544ad
lea eax, [ebp - 0x20]
push eax
mov eax, 0xac7b7c95
sub eax, 0x7a764c11
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x407812c5
add dword [ebp - 0x20], 0x33fa5691
mov dword [ebp - 0x1c], 0x995eb6c0
add dword [ebp - 0x1c], 0xa80daab5
mov dword [ebp - 0x18], 0xcea1db85
add dword [ebp - 0x18], 0x94cd90e7
mov dword [ebp - 0x14], 0x4594154c
sub dword [ebp - 0x14], 0x4594154c
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xb54434bd
add eax, 0x7cc0fbbf
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x47492
push 0
call eax
mov ecx, 0x468a
mov edi, eax
mov esi, 0x8ae69250
sub esi, 0x58def050
add esi, dword [ebp - 0x10]
mov ebx, 0x66a805fb
mov dword [ebp - 0xc], 0x6d9ae23a
mov edx, dword [esi]
xor dword [ebp - 0xc], 0x84672436
add edx, ebx
add dword [ebp - 8], 0x8e7c1386
mov dword [edi], edx
sub dword [ebp - 4], 0x6e2cf137
add edi, 0x6ae49f01
sub edi, 0x6ae49efd
add esi, 4
loop 0x32028ae1
add eax, 0x10cfb
xor ebx, ebx
add ebx, eax
add eax, 0x58cd014f
add eax, 0xa732feb6
mov ecx, 0x912ef0c9
sub ecx, 0x5f2ef0c9
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40afe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40b00a
jmp 0x40b04a
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b037
cmp dword [ebp - 4], 4
je 0x40b03b
jmp 0x40b04a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x40b060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40b089
jmp 0x40b11a
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 1
je 0x40b0b8
cmp dword [ebp - 8], 2
je 0x40b0b8
jmp 0x40b11a
mov ecx, dword [ebp + 0xc]
call fcn.0040a8f0
mov eax, dword [ebp - 0xc]
shr eax, 1
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040a680
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b110
mov ecx, dword [ebp - 0xc]
shr ecx, 1
mov edx, dword [ebp - 4]
mov word [edx + ecx*2], 0
mov dword [ebp - 0x10], 1
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040c000
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x40c120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffff
jne 0x40c135
xor eax, eax
jmp 0x40c159
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40edc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527086
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x308
mov dword [ebp - 0x314], ecx
mov word [ebp - 0x304], 0
push 0xd2
push 0
lea eax, [ebp - 0x302]
push eax
call fcn.004b3d60
add esp, 0xc
lea ecx, [ebp - 0x304]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x40ee28
xor eax, eax
jmp 0x40ef53
mov eax, dword [ebp - 0x228]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x14], eax
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.004b3d60
add esp, 0xc
lea eax, [ebp - 0x304]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x314]
add ecx, 4
call fcn.0040f3c0
mov dword [ebp - 0x308], 0
jmp 0x40ee91
mov ecx, dword [ebp - 0x308]
add ecx, 1
mov dword [ebp - 0x308], ecx
mov edx, dword [ebp - 0x308]
cmp edx, dword [ebp - 0x14]
jge 0x40ef4e
mov eax, dword [ebp - 0x10]
mov word [eax + 4], 0
push 0x104
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40ef40
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x30c]
call fcn.0040a960
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30c]
push ecx
mov ecx, dword [ebp - 0x314]
add ecx, 4
call fcn.0040f350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30c]
call fcn.0040c650
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x310]
call fcn.0040a960
mov dword [ebp - 4], 1
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp - 0x314]
add ecx, 4
call fcn.0040f350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
call fcn.0040c650
mov ecx, dword [ebp - 0x10]
add ecx, 8
mov dword [ebp - 0x10], ecx
jmp 0x40ee82
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x416460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x41647c
jmp 0x4164aa
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4164a3
jmp 0x4164aa
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4164c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4164dc
jmp 0x416519
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b477a
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x416512
jmp 0x416519
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x42e3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x42e3f9
xor ecx, ecx
jne 0x42e3f9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42e440
mov eax, dword [ebp - 0xc]
jmp 0x42e49d
cmp dword [ebp - 4], 1
je 0x42e453
cmp dword [ebp - 4], 2
je 0x42e453
mov eax, 0xd
jmp 0x42e49d
cmp dword [ebp + 0xc], 0
je 0x42e491
cmp dword [ebp - 8], 0
je 0x42e489
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x42e480
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x42e487
mov eax, 0xd
jmp 0x42e49d
jmp 0x42e491
mov edx, dword [ebp + 0xc]
mov word [edx], 0
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x433360
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526f98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x1c
call fcn.004513c0
movzx eax, al
test eax, eax
je 0x433489
lea ecx, [ebp - 0x10]
call fcn.0040c630
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00433cd0
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
call fcn.00423af0
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0040a680
push eax
push str.1.01.21.51.72.02.22.52.73.0
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040c650
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c000
mov dword [ebp - 0x14], 0
mov eax, 1
test eax, eax
je 0x43347a
lea ecx, [ebp - 0x14]
push ecx
push 0x53d498
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.0042e580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004084c0
movzx eax, al
test eax, eax
je 0x433449
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040c650
jmp 0x43347a
lea ecx, [ebp - 0x18]
call fcn.00423af0
push eax
call fcn.004b7685
add esp, 4
fstp qword [ebp - 0x24]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x1c
call fcn.004513e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040c650
jmp 0x43340a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040c650
mov eax, dword [ebp - 0x28]
add eax, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret