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

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

Function at 0x4135e1
Capabilities:
Read file on windows

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

Function at 0x4139db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a70
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041246d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413a1d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b79
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d110
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x486770]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414bab
mov ecx, dword [esi*4 + 0x486770]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x413b72
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b72
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413b72
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414bab
add esp, 0x14
test edx, edx
jl 0x413b72
jg 0x413ae8
test eax, eax
jb 0x413b72
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b72
jl 0x413b02
cmp dword [ebp - 0x1008], eax
ja 0x413b72
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413b20
test ebx, ebx
je 0x413b59
cmp ecx, edi
jae 0x413b59
mov al, byte [ecx]
cmp al, 0xd
jne 0x413b3a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b46
cmp byte [ecx + 1], 0xa
jne 0x413b46
inc ecx
jmp 0x413b46
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413b20
cmp edx, ebx
jne 0x413b20
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b77
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406cb1
leave
ret
Function at 0x414049
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486770]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414089
cmp byte [ebx], 0xa
jne 0x414089
or byte [eax + edi + 0x28], 4
jmp 0x41408e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41418c
mov al, byte [edx]
cmp al, 0x1a
je 0x41416e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4140bd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140e2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140ec
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41409f
jmp 0x41418c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414169
cmp dword [ebp - 0xc], 0
je 0x414169
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486770]
test byte [eax + edi + 0x28], 0x48
je 0x414143
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41412e
mov byte [esi], dl
jmp 0x41413f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486770]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41418c
cmp byte [ebp - 1], 0xa
jne 0x414152
cmp esi, ebx
jne 0x414152
mov byte [esi], 0xa
jmp 0x41418b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414bc9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41418c
mov byte [esi], 0xd
jmp 0x41418b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486770]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414188
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41418c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414195
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 + 0x486770]
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 0x4141d8
cmp word [esi], dx
jne 0x4141d8
or byte [edi + eax + 0x28], 4
jmp 0x4141dd
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 0x414330
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 0x414310
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41421f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414255
cmp eax, edx
jae 0x414261
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 0x4141f7
jmp 0x414330
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 0x41430c
cmp dword [ebp - 0x14], 0
je 0x41430c
mov eax, dword [ebx*4 + 0x486770]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4142e4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4142ad
mov word [esi], cx
jmp 0x4142e0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486770]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486770]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486770]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414330
pop ebx
cmp word [ebp - 4], bx
jne 0x4142f5
cmp esi, dword [ebp + 0xc]
jne 0x4142f5
mov word [esi], bx
jmp 0x41432d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414bc9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414330
push 0xd
jmp 0x414329
mov ecx, dword [ebx*4 + 0x486770]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414327
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414330
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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x408ecc
nop
mov ecx, 0x5f1a57b2
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x40bd5fc8
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc10
mov eax, dword [0x4212e8]
xor eax, esp
mov dword [esp + 0xc0c], eax
call fcn.00401d90
lea edx, [esp + 0x404]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x401020
lea eax, [esp + 0x404]
push str.update.ini
push eax
call fcn.00401a30
add esp, 8
call fcn.00401f40
lea edx, [esp]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x401047
mov al, byte [esp]
test al, al
je 0x401071
push str.Detected_Windows_version:
call fcn.004042a0
lea ecx, [esp + 4]
push ecx
call fcn.00403a80
add esp, 8
jmp 0x40109c
push str.Windows_version_not_detected_:_
call fcn.004042a0
mov edx, dword [str.DefaultOS]
mov eax, dword [0x41c2e4]
mov cx, word [0x41c2e8]
add esp, 4
mov dword [esp], edx
mov dword [esp + 4], eax
mov word [esp + 8], cx
lea edx, [esp + 0x404]
push edx
lea eax, [esp + 4]
push eax
call fcn.00401d60
add esp, 8
test al, al
jne 0x40110f
push str.Section__
call fcn.004042a0
lea ecx, [esp + 4]
push ecx
call fcn.00403a80
push str.__not_exists
call fcn.00403a80
mov edx, dword [str.DefaultOS]
mov eax, dword [0x41c2e4]
mov cx, word [0x41c2e8]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x410]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x10]
push eax
mov word [esp + 0x1c], cx
call fcn.00401d60
add esp, 0x14
test al, al
je 0x401270
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push str.Detected_Windows_language:
movzx esi, ax
call fcn.004042a0
push esi
call fcn.00404270
and esi, 0x3ff
push esi
lea ecx, [esp + 0x818]
push str.path__04d
push ecx
call fcn.0040c292
push str.Trying_to_read
call fcn.004042a0
lea edx, [esp + 0x420]
push edx
call fcn.00403a80
push 0x41c288
call fcn.00403a80
lea eax, [esp + 0x24]
push eax
call fcn.00403a80
push 0x41c284
call fcn.00403a80
lea ecx, [esp + 0x834]
push ecx
call fcn.00403a80
push str._or___path
call fcn.00403a80
lea edx, [esp + 0x438]
push edx
push 0x422208
lea eax, [esp + 0x844]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00402830
add esp, 0x40
test al, al
pop esi
jne 0x4011fc
lea edx, [esp + 0x404]
push edx
push 0x422208
lea eax, [esp + 8]
push str.path
push eax
call fcn.00402830
add esp, 0x10
test al, al
jne 0x4011fc
push str.Cant_read_.exe_path_:_
call fcn.004042a0
add esp, 4
xor al, al
mov ecx, dword [esp + 0xc0c]
xor ecx, esp
call fcn.0040c31b
add esp, 0xc10
ret
push str.SetupExe_is
call fcn.004042a0
push 0x422208
call fcn.00403a80
add esp, 8
lea ecx, [esp + 0x404]
push ecx
push 0x401
push 0x422e30
push 0x41c246
push str.param
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.Cmd_line_params:
call fcn.004042a0
push 0x422e30
call fcn.00403a80
push 0x422208
call fcn.00401a10
add esp, 0xc
mov ecx, dword [esp + 0xc0c]
xor ecx, esp
call fcn.0040c31b
add esp, 0xc10
ret
push str.Section__
call fcn.004042a0
lea eax, [esp + 4]
push eax
call fcn.00403a80
push str.__not_exists_:_
call fcn.00403a80
mov ecx, dword [esp + 0xc18]
add esp, 0xc
xor ecx, esp
xor al, al
call fcn.0040c31b
add esp, 0xc10
ret
Function at 0x401330
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc10
mov eax, dword [0x4212e8]
xor eax, esp
mov dword [esp + 0xc0c], eax
call fcn.00401d90
lea edx, [esp]
lea esp, [esp]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x401350
push esi
lea eax, [esp + 4]
push str.update.ini
push eax
call fcn.00401a30
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 8
lea ecx, [esp + 4]
push ecx
push 0x401
push 0x422620
push 0x41c246
push 0x41c400
push str.Common
call esi
test eax, eax
je 0x401421
push 0x422620
call fcn.00401f20
add esp, 4
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x422620]
mov byte [esp + eax + 0x408], cl
inc eax
test cl, cl
jne 0x4013b0
push edi
lea edi, [esp + 0x40c]
dec edi
lea ecx, [edi + 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4013d0
mov edx, dword [str..log]
mov al, byte [0x41c3f4]
mov dword [edi], edx
push ecx
mov byte [edi + 4], al
call fcn.00407470
call fcn.004077d0
lea ecx, [esp + 0xc]
push ecx
push 0x422a28
push str.KeyFile
push str.Common
call fcn.00402830
add esp, 0x14
test al, al
pop edi
jne 0x401439
push str.Cant_read_update.ini___Common___KeyFile
call fcn.004042a0
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0xc0c]
xor ecx, esp
call fcn.0040c31b
add esp, 0xc10
ret
push str.Key_file_is
call fcn.004042a0
push 0x422a28
call fcn.00403a80
add esp, 8
lea edx, [esp + 4]
push edx
push 0x401
lea eax, [esp + 0x814]
push eax
push 0x41c246
push str.SetupVersion
push str.Common
call esi
test eax, eax
je 0x401492
lea ecx, [esp + 0x80c]
push ecx
call fcn.0040c3b1
add esp, 4
mov dword [0x422610], eax
mov dword [0x422614], edx
push str.SETUP_Version_is
call fcn.004042a0
mov eax, dword [0x422610]
mov ecx, dword [0x422614]
mov edx, eax
add esp, 4
or edx, ecx
je 0x4014d2
push ecx
push eax
call fcn.00403ab0
add esp, 8
mov al, 1
pop esi
mov ecx, dword [esp + 0xc0c]
xor ecx, esp
call fcn.0040c31b
add esp, 0xc10
ret
push str.unknown
call fcn.00403a80
mov ecx, dword [esp + 0xc14]
add esp, 4
pop esi
xor ecx, esp
mov al, 1
call fcn.0040c31b
add esp, 0xc10
ret

Function at 0x401d60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x404
push eax
push 0x401
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
neg eax
sbb eax, eax
neg eax
add esp, 0x404
ret

Function at 0x401d90
Capabilities:
Accept command line arguments

Disassembly:
mov al, byte [0x423648]
test al, al
jne 0x401dad
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x423648
call fcn.00401bf0
add esp, 8
mov eax, 0x423648
ret
Function at 0x401dc0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401e69
push esi
call fcn.0040d02b
mov edi, eax
add esp, 4
test edi, edi
je 0x401e69
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401e44
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x41c5e8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401e44
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
xor ecx, ecx
or ecx, eax
mov eax, dword [esp + 0x20]
xor esi, esi
or edx, esi
push edi
mov bl, 1
mov dword [eax], ecx
mov dword [eax + 4], edx
call fcn.0040c9c7
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
push edi
xor bl, bl
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0040c9c7
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xc
ret

Function at 0x401e80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x418]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x418]
lea edx, [esp + 8]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0x401
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401f13
mov eax, dword [esp]
cmp eax, 1
je 0x401eeb
cmp eax, 2
jne 0x401f13
mov edx, dword [esp + 0x418]
push 0x401
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
neg eax
sbb eax, eax
neg eax
add esp, 0x40c
ret
mov edx, dword [esp + 0x418]
lea eax, [esp + 8]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401f00
mov al, 1
add esp, 0x40c
ret
xor al, al
add esp, 0x40c
ret

Function at 0x401f40
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
xor esi, esi
xor ecx, ecx
or eax, esi
or ecx, edx
cmp eax, 4
pop esi
ja 0x401fda
jb 0x401f77
cmp ecx, 0x5a
ja 0x401fda
cmp ecx, 0x5a
jne 0x401f81
cmp eax, 4
je 0x401fce
cmp ecx, 0x33
jne 0x401f8b
cmp eax, 3
je 0x401fc2
test ecx, ecx
jne 0x401f94
cmp eax, 4
je 0x401faa
cmp ecx, 0xa
jne 0x401ff7
cmp eax, 4
jne 0x401ff7
mov eax, str.Win98
add esp, 0x94
ret
cmp dword [esp + 0x10], 2
mov eax, str.WinNT
je 0x402020
mov eax, str.Win95
add esp, 0x94
ret
mov eax, str.WinNT351
add esp, 0x94
ret
mov eax, str.WinME
add esp, 0x94
ret
test ecx, ecx
jne 0x401fe3
cmp eax, 5
je 0x40201b
cmp ecx, 1
jne 0x401fed
cmp eax, 5
je 0x40200f
cmp ecx, 2
jne 0x401ff7
cmp eax, 5
je 0x402003
mov eax, 0x41c246
add esp, 0x94
ret
mov eax, str.Win2003
add esp, 0x94
ret
mov eax, str.WinXP
add esp, 0x94
ret
mov eax, str.Win2000
add esp, 0x94
ret
Function at 0x402210
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
mov byte [0x4262b8], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
mov eax, dword [str.InstGenWndClass]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov dword [0x4262b4], 0
pop esi
ret

Function at 0x4025a0
Capabilities:
Accept command line arguments
Get common file path
Get program files directory

Disassembly:
mov al, byte [0x424260]
test al, al
jne 0x4025b9
push 0x401
push 0x424260
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
mov esi, dword [esp + 8]
push edi
push 0
push 0x424260
push str._SysDir_
push esi
call fcn.00401c70
mov al, byte [0x424668]
add esp, 0x10
test al, al
jne 0x4025ed
push 0x401
push 0x424668
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0x424668
push str._WinDir_
push esi
call fcn.00401c70
mov al, byte [0x423648]
add esp, 0x10
test al, al
jne 0x40261f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x423648
call fcn.00401bf0
add esp, 8
push 0
push 0x423648
push str._SelfDir_
push esi
call fcn.00401c70
mov al, byte [0x425688]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 0x10
test al, al
jne 0x402650
push 0
push 0x26
push 0x425688
push 0
call edi
push 0
push 0x425688
push str._ProgramFiles_
push esi
call fcn.00401c70
mov al, byte [0x425a90]
add esp, 0x10
test al, al
jne 0x40267b
push 0
push 0x23
push 0x425a90
push 0
call edi
push 0
push 0x425a90
push str._ApplicationData_
push esi
call fcn.00401c70
mov al, byte [0x425e98]
add esp, 0x10
test al, al
jne 0x4026a6
push 0
push 0x2b
push 0x425e98
push 0
call edi
push 0
push 0x425e98
push str._ProgramFilesCommon_
push esi
call fcn.00401c70
add esp, 0x10
pop edi
pop esi
ret
Function at 0x4026c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc0c
push edi
mov edi, dword [esp + 0xc14]
lea edx, [esp + 4]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4026d6
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026e7
sub eax, edx
cmp eax, 2
jb 0x402791
cmp byte [esp + 5], 0x3a
jne 0x402791
lea eax, [esp + 4]
push eax
mov ecx, eax
push ecx
call fcn.00401b30
mov al, byte [0x423648]
add esp, 8
test al, al
jne 0x402731
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x423648
call fcn.00401bf0
add esp, 8
mov eax, 0x423648
mov edx, edi
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402740
push esi
push 0x41c246
push edi
call fcn.00401a30
add esp, 8
mov esi, 1
mov edi, edi
push 0x5c
push edi
call fcn.0040cb50
add esp, 8
test eax, eax
je 0x402778
inc esi
cmp esi, 4
mov byte [eax], 0
jle 0x402760
lea edx, [esp + 8]
push edx
push edi
call fcn.00401a30
add esp, 8
pop esi
mov al, 1
pop edi
add esp, 0xc0c
ret
lea eax, [esp + 4]
push eax
call fcn.004025a0
lea ecx, [esp + 0x810]
push 0x401
push ecx
call fcn.0040d89a
mov al, byte [0x423648]
add esp, 0xc
test al, al
jne 0x4027cd
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x423648
call fcn.00401bf0
add esp, 8
push ebx
push 0x423648
call fcn.0040d614
push 0x401
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x418]
push eax
call fcn.0040cdec
lea ecx, [esp + 0x820]
test eax, eax
push ecx
setne bl
call fcn.0040d614
add esp, 0x14
test bl, bl
je 0x40281f
lea eax, [esp + 0x40c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402815
mov al, bl
pop ebx
pop edi
add esp, 0xc0c
ret

Function at 0x402830
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push eax
push 0x401
push esi
push 0x41c246
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402864
push esi
call fcn.004026c0
add esp, 4
pop esi
ret
xor al, al
pop esi
ret
Function at 0x404f90
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
mov bl, byte [esp + 0x20]
test bl, bl
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
mov byte [esp + 0xf], 0
je 0x405010
push str.Registry_key
call fcn.004042a0
mov eax, dword [0x42632c]
add esp, 4
cmp edi, 0x80000002
jne 0x404fd0
test eax, eax
je 0x405010
push str.HKLM_
jmp 0x404fec
cmp edi, 0x80000001
jne 0x404fe3
test eax, eax
je 0x405010
push str.HKCU_
jmp 0x404fec
test eax, eax
je 0x405010
push 0x41c83c
push 0x4262d0
call fcn.004035f0
mov eax, dword [0x42632c]
add esp, 8
test eax, eax
je 0x405010
push esi
push 0x4262d0
call fcn.004035f0
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x20006
push 0
push 0x41c246
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40510a
test bl, bl
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
je 0x4050aa
mov eax, dword [0x42632c]
test eax, eax
je 0x4050aa
push str._is_created_opened__writing_string_
push 0x4262d0
call fcn.004035f0
mov eax, dword [0x42632c]
add esp, 8
test eax, eax
je 0x4050aa
push edi
push 0x4262d0
call fcn.004035f0
mov eax, dword [0x42632c]
add esp, 8
test eax, eax
je 0x4050aa
push 0x41c81c
push 0x4262d0
call fcn.004035f0
mov eax, dword [0x42632c]
add esp, 8
test eax, eax
je 0x4050aa
push esi
push 0x4262d0
call fcn.004035f0
add esp, 8
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050b0
sub eax, edx
mov edx, dword [esp + 0x28]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4050f6
test bl, bl
mov byte [esp + 0xf], 1
je 0x405129
mov eax, dword [0x42632c]
test eax, eax
je 0x405129
push str.___written
jmp 0x40511c
test bl, bl
je 0x405129
mov eax, dword [0x42632c]
test eax, eax
je 0x405129
push str.___failed_
jmp 0x40511c
test bl, bl
je 0x405129
mov eax, dword [0x42632c]
test eax, eax
je 0x405129
push str._cant_be_created_opened_
push 0x4262d0
call fcn.004035f0
add esp, 8
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 8
ret