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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x484d20]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f026
cmp word [esi], dx
jne 0x41f026
or byte [edi + eax + 0x28], 4
jmp 0x41f02b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f17e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f15e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f06d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f0a3
cmp eax, edx
jae 0x41f0af
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41f045
jmp 0x41f17e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f15a
cmp dword [ebp - 0x14], 0
je 0x41f15a
mov eax, dword [ebx*4 + 0x484d20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f132
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f0fb
mov word [esi], cx
jmp 0x41f12e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x484d20]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x484d20]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x484d20]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f17e
pop ebx
cmp word [ebp - 4], bx
jne 0x41f143
cmp esi, dword [ebp + 0xc]
jne 0x41f143
mov word [esi], bx
jmp 0x41f17b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fa17
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f17e
push 0xd
jmp 0x41f177
mov ecx, dword [ebx*4 + 0x484d20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f175
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f17e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4200b0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x482400]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4200fb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042024f
test al, al
jne 0x4200f5
sub edx, 2
cmp edx, edi
jne 0x4200db
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42011d
lea eax, [edi + 2]
cmp edx, eax
je 0x42011d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041fffc
add esp, 0x10
jmp 0x420217
push esi
lea ecx, [ebp - 0x255]
call fcn.0042024f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420160
push dword [ebp - 0x25c]
jmp 0x42010d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42019d
cmp word [ebp - 0x226], 0
je 0x4201be
cmp word [ebp - 0x226], ax
jne 0x42019d
cmp word [ebp - 0x224], 0
je 0x4201be
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041fffc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42020a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x420177
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4201f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x420217
push 0x41fe2c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00425a20
add esp, 0x10
jmp 0x4201e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4e1
leave
ret

Function at 0x4274f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42751d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42751d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4296fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42977c
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42977b
push ebx
mov ebx, 0x4841c8
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402703
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402703
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42a5b8
mov byte [edi + esi], al
call fcn.00410a6e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42971e
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00405663
pop edi
pop ebp
ret 0x14
Function at 0x100079dd
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10007a18

Function at 0x10007c35
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
call fcn.1000799d
add dh, bh
fst qword [edi]
lea eax, [ebp - 0x58]
push eax
call fcn.100079ad
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10007962
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10007c8b
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1000799d
stosb byte es:[edi], al
sbb dword [edx - 0x3fba7241], 0xfcc5e850
invalid

Function at 0x10007d5a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100079ad
push eax
push esi
push dword [ebp + 8]
call fcn.10007962
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
cmp eax, 0xff7c9d88
invalid

Function at 0x10007dda
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fsub dword [edi - 0x3a]
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
invalid
stosb byte es:[edi], al
sti
Function at 0x10007e48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.1000799d
or ebp, dword fs:[edx + 0x7c858d0b]

Function at 0x10008038
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10008051
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000804c
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
add al, dh
add byte [eax], al
cmp edx, 0x3000
jne 0x10008036
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000803e
cmp edx, ebx
jne 0x1000818c
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000800d
add eax, dword [eax + 4]
jmp 0x10007ffa
mov dword [ebp + 0xc], ebx
jmp 0x1000805c
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10008074
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10008092
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100080f0

Function at 0x1000806a
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10008051
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000804c
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
add al, dh
add byte [eax], al
cmp edx, 0x3000
jne 0x10008036
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000803e
cmp edx, ebx
jne 0x1000818c
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000800d
add eax, dword [eax + 4]
jmp 0x10007ffa
mov dword [ebp + 0xc], ebx
jmp 0x1000805c
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10008074
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10008092
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100080f0
Function at 0x100080b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100080d7
invalid
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100080e0
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100080ea
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100080cc
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]

Function at 0x100080d2
Capabilities:
Inspect section memory permissions

Disassembly:
add al, 0x80
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4

Function at 0x100080fd
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
cmp cx, word [eax + 6]
jbe 0x10008056
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x1000928f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.100079ad
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10007962
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x43
and byte [ebp - 0x6f1], 0
mov byte [ebp - 0x6f0], 0xeb
mov byte [ebp - 0x6ef], 0xce
mov byte [ebp - 0x6ee], 0xd5
mov byte [ebp - 0x6ed], 0xc8
mov byte [ebp - 0x6ec], 0xd9
mov byte [ebp - 0x6eb], 0xfa
mov byte [ebp - 0x6ea], 0xd5
mov byte [ebp - 0x6e9], 0xd0
mov byte [ebp - 0x6e8], 0xd9
mov byte [ebp - 0x6e7], 0xbc
call fcn.1000799d
pop ebx
out dx, al
sbb eax, dword [edx]
lea eax, [ebp - 0x6f4]
push eax
call fcn.100079ad
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10007962
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
Function at 0x404cb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
jne 0x404cfa
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00404d10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.00472880
push eax
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 4]
call fcn.0041e800
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x405070
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e308
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5f30a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
call fcn.0040d690
movzx eax, al
test eax, eax
je 0x40511d
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00404d10
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
call fcn.00472880
push eax
push 0x104
push 0x104
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
call fcn.0041cd20
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041e800
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
call fcn.0041ccf0
mov eax, dword [ebp - 0x18]
add eax, 0x14
push eax
mov ecx, dword [ebp + 8]
call fcn.0041d040
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4057f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x40583a
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00404d10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.00472880
push eax
push 2
push 0x5db8e0
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
lea ecx, [ebp - 4]
call fcn.0041e800
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x405970
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e298
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f30a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x1c
call fcn.00405ac0
movzx eax, al
test eax, eax
je 0x405aa4
lea ecx, [ebp - 0x10]
call fcn.0041e820
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00404d10
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.00472880
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0041cd20
push eax
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041e800
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0041ccf0
mov dword [ebp - 0x14], 0
mov eax, 1
test eax, eax
je 0x405a95
lea ecx, [ebp - 0x14]
push ecx
push 0x5db8cc
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.00405b20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040d690
movzx eax, al
test eax, eax
je 0x405a63
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0041e800
jmp 0x405a95
lea ecx, [ebp - 0x18]
call fcn.00472880
push eax
call dword [sym.imp.MSVCR80.dll__wtof]
add esp, 4
fstp qword [ebp - 0x24]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x1c
call fcn.00406320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0041e800
jmp 0x405a24
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041e800
mov eax, dword [ebp - 0x28]
add eax, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x409540
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5f30a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4095bd
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4095d0
jmp 0x409703
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 1
je 0x4096d3
cmp dword [ebp - 0x130], 2
je 0x4095f7
jmp 0x4096fc
cmp dword [ebp - 0x124], 6
jne 0x409621
cmp dword [ebp - 0x120], 1
jne 0x409621
movzx ecx, byte [ebp - 0xe]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 8
mov dword [ebp - 4], ecx
jmp 0x4096d1
cmp dword [ebp - 0x124], 6
jne 0x40964c
cmp dword [ebp - 0x120], 0
jne 0x40964c
movzx edx, byte [ebp - 0xe]
sub edx, 1
neg edx
sbb edx, edx
and edx, 2
add edx, 7
mov dword [ebp - 4], edx
jmp 0x4096d1
cmp dword [ebp - 0x124], 5
jne 0x409667
cmp dword [ebp - 0x120], 2
jne 0x409667
mov dword [ebp - 4], 5
jmp 0x4096d1
cmp dword [ebp - 0x124], 5
jne 0x409682
cmp dword [ebp - 0x120], 1
jne 0x409682
mov dword [ebp - 4], 6
jmp 0x4096d1
cmp dword [ebp - 0x124], 5
jne 0x40969d
cmp dword [ebp - 0x120], 0
jne 0x40969d
mov dword [ebp - 4], 3
jmp 0x4096d1
cmp dword [ebp - 0x124], 4
ja 0x4096af
mov dword [ebp - 4], 4
jmp 0x4096d1
cmp dword [ebp - 0x124], 6
jne 0x4096d1
cmp dword [ebp - 0x120], 2
jne 0x4096d1
movzx eax, byte [ebp - 0xe]
cmp eax, 1
jne 0x4096d1
mov dword [ebp - 4], 0xa
jmp 0x409703
mov ecx, dword [ebp - 0x11c]
shr ecx, 0x10
and ecx, 0xffff
cmp ecx, 0x45a
jae 0x4096f3
mov dword [ebp - 4], 1
jmp 0x4096fa
mov dword [ebp - 4], 2
jmp 0x409703
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a1f8d
mov esp, ebp
pop ebp
ret
Function at 0x40cac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x40cac9
xor ecx, ecx
jne 0x40cac9
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 0x40cb10
mov eax, dword [ebp - 0xc]
jmp 0x40cb6d
cmp dword [ebp - 4], 1
je 0x40cb23
cmp dword [ebp - 4], 2
je 0x40cb23
mov eax, 0xd
jmp 0x40cb6d
cmp dword [ebp + 0xc], 0
je 0x40cb61
cmp dword [ebp - 8], 0
je 0x40cb59
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x40cb50
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x40cb57
mov eax, 0xd
jmp 0x40cb6d
jmp 0x40cb61
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 0x40dd00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40dd29
xor eax, eax
jmp 0x40ddc0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40dd44
xor eax, eax
jmp 0x40ddc0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40dd5f
xor eax, eax
jmp 0x40ddc0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40dd76
xor eax, eax
jmp 0x40ddc0
mov edx, dword [ebp - 8]
add edx, 1
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0041d270
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40dda2
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0041d240
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret