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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43708f
cmp dword [ebp + 0x14], edi
je 0x43708f
cmp ecx, edi
jne 0x437096
call fcn.0043a307
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00435aef
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4370aa
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4370cb
cmp ebx, 0xffffffff
je 0x4370ba
push ebx
push edi
push ecx
call fcn.004377f0
add esp, 0xc
cmp esi, edi
je 0x437077
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x437077
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4370e7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4370ee
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4371df
test word [esi + 0xc], 0x10c
je 0x437142
mov eax, dword [esi + 4]
test eax, eax
je 0x437142
jl 0x437240
cmp ebx, eax
mov edi, ebx
jb 0x437113
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4371e7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00435030
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4371d7
cmp ebx, dword [ebp - 0xc]
jb 0x4371af
cmp dword [ebp - 0xc], 0
je 0x43716c
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x437161
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x437168
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x437177
mov eax, SysReAllocString
cmp ebx, eax
ja 0x437177
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x437213
push eax
push dword [ebp - 8]
push esi
call fcn.00442d69
pop ecx
push eax
call fcn.00442c6c
add esp, 0xc
test eax, eax
je 0x437252
cmp eax, 0xffffffff
je 0x437240
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4371d7
push esi
call fcn.0044258b
cmp eax, 0xffffffff
pop ecx
je 0x437244
cmp dword [ebp - 4], 0
je 0x437213
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4370f6
mov eax, dword [ebp + 0x14]
jmp 0x437091
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4371fe
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004377f0
add esp, 0xc
call fcn.0043a307
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x437087
cmp dword [ebp + 0xc], 0xffffffff
je 0x437229
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004377f0
add esp, 0xc
call fcn.0043a307
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x437087
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x437091
or dword [esi + 0xc], 0x10
jmp 0x437244
Function at 0x441634
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46b290]
je 0x44164f
inc edi
cmp edi, 0x17
jb 0x441640
cmp edi, 0x17
jae 0x4417cf
push ebp
push 3
call fcn.004474ce
cmp eax, 1
pop ecx
je 0x44179b
push 3
call fcn.004474ce
test eax, eax
pop ecx
jne 0x441683
cmp dword [0x46a84c], 1
je 0x44179b
cmp ebx, 0xfc
je 0x4417ce
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x46fa90
push ebp
call fcn.004367c6
add esp, 0xc
test eax, eax
je 0x4416b9
push esi
push esi
push esi
push esi
push esi
call fcn.004359f3
add esp, 0x14
push 0x104
mov esi, 0x46faa9
push esi
push 0
mov byte [0x46fbad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4416fd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004367c6
add esp, 0xc
test eax, eax
je 0x4416fd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004359f3
add esp, 0x14
push esi
call fcn.00437c60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x441742
push esi
call fcn.00437c60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46fda4
push 0x457cfc
sub ecx, eax
push ecx
push eax
call fcn.0043a74b
add esp, 0x14
test eax, eax
je 0x441742
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004359f3
add esp, 0x14
jmp 0x441744
xor esi, esi
push 0x457cf8
push ebx
push ebp
call fcn.00436984
add esp, 0xc
test eax, eax
je 0x441764
push esi
push esi
push esi
push esi
push esi
call fcn.004359f3
add esp, 0x14
push dword [edi*8 + 0x46b294]
push ebx
push ebp
call fcn.00436984
add esp, 0xc
test eax, eax
je 0x441786
push esi
push esi
push esi
push esi
push esi
call fcn.004359f3
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00447311
add esp, 0xc
jmp 0x4417ce
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4417ce
cmp ebp, 0xffffffff
je 0x4417ce
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46b294]
push dword [esi]
call fcn.00437c60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x447311
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043e4c5
xor ebx, ebx
cmp dword [0x46ff2c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4473e7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4474c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x458e84
push edi
call esi
cmp eax, ebx
je 0x4474c7
push eax
call fcn.0043e457
mov dword [esp], 0x458e74
push edi
mov dword [0x46ff2c], eax
call esi
push eax
call fcn.0043e457
mov dword [esp], 0x458e60
push edi
mov dword [0x46ff30], eax
call esi
push eax
call fcn.0043e457
mov dword [0x46ff34], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043a44e
test eax, eax
pop ecx
pop ecx
je 0x4473b5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004359f3
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4473e7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043e457
cmp eax, ebx
pop ecx
mov dword [0x46ff3c], eax
je 0x4473e7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043e457
pop ecx
mov dword [0x46ff38], eax
mov eax, dword [0x46ff38]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44746c
cmp dword [0x46ff3c], ecx
je 0x44746c
push eax
call fcn.0043e4ce
push dword [0x46ff3c]
mov esi, eax
call fcn.0043e4ce
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44746c
cmp edi, ebx
je 0x44746c
call esi
cmp eax, ebx
je 0x447439
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x447439
test byte [ebp - 0x18], 1
jne 0x44746c
lea eax, [ebp - 0x10]
push eax
call fcn.0043a485
test eax, eax
pop ecx
je 0x447454
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004359f3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x447463
or dword [ebp + 0x10], 0x200000
jmp 0x4474a7
or dword [ebp + 0x10], 0x40000
jmp 0x4474a7
mov eax, dword [0x46ff30]
cmp eax, dword [ebp - 8]
je 0x4474a7
push eax
call fcn.0043e4ce
cmp eax, ebx
pop ecx
je 0x4474a7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4474a7
mov eax, dword [0x46ff34]
cmp eax, dword [ebp - 8]
je 0x4474a7
push eax
call fcn.0043e4ce
cmp eax, ebx
pop ecx
je 0x4474a7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46ff2c]
call fcn.0043e4ce
cmp eax, ebx
pop ecx
je 0x4474c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4474c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c9b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x452503
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x46a860]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.0044c560
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x46ff58
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x45a1e0
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0044d940
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x44ca40
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x452688
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46a860]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x44ca80
push esi
push esi
push esi
push 2
call fcn.0044e010
xor al, al
jmp 0x44cc0a
call fcn.0044bdb0
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.0043747e
push esi
call fcn.00443390
push 0
push 0
push esi
mov edi, eax
call fcn.0043747e
add esp, 0x1c
test edi, edi
jg 0x44cac7
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.0044e010
xor al, al
jmp 0x44cc0a
mov dword [esp + 0x14], 0x46ff58
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.0044d8a0
lea eax, [edi + 1]
push eax
call fcn.004197aa
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.004372ee
add esp, 0x14
cmp eax, 1
je 0x44cb3d
push ebp
call fcn.004197d5
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.0044e010
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x46ff58
je 0x44cb36
push eax
call fcn.004197d5
add esp, 4
xor al, al
jmp 0x44cc0a
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x44cbb2
jmp 0x44cb50
mov cl, byte [esi]
cmp cl, 0xa
jne 0x44cb70
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0044da30
add esi, 1
mov eax, esi
jmp 0x44cbad
cmp cl, 0xd
jne 0x44cbaa
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x44cb88
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0044da30
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.0044da30
cmp byte [esi + 1], 0xa
jne 0x44cb69
add esi, 2
mov eax, esi
jmp 0x44cbad
add esi, 1
cmp byte [esi], 0
jne 0x44cb50
sub esi, eax
je 0x44cbc1
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0044da30
push ebp
call fcn.004197d5
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x44cb26
cmp eax, 0x46ff58
je 0x44cc08
push eax
call fcn.004197d5
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x44f954
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46a860]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044f8e9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004377f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44f9a3
cmp dword [ebp - 0x1c], 5
jb 0x44f9bb
jmp 0x44f9b7
cmp dword [ebp - 0x10], 1
jne 0x44f9bb
cmp dword [ebp - 0x1c], 4
ja 0x44f9b7
jne 0x44f9bb
cmp dword [ebp - 0x18], 0
jbe 0x44f9bb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45a088
call fcn.0044f7bd
test eax, eax
jge 0x44f9dc
mov byte [0x4700cc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004353a6
add ebp, 0x78
leave
ret
Function at 0x4020a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4020b2
or eax, 0xffffffff
mov dword [section..data], eax
jmp 0x4020eb
mov edx, dword [esp + 8]
mov eax, dword [section..data]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x4020e5
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x405438]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x4020c5
pop edi
mov dword [section..data], eax
pop esi
not eax
ret 8
Function at 0x401020
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
push edi
je 0x4010b6
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
lea eax, [esp + 0x1c]
push 2
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x4010b4
cmp word [esp + 0x14], 0xffff
je 0x4010b4
push esi
push eax
lea ecx, [esp + 0x14]
push 2
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x4010b4
mov dx, word [esp + 0x18]
cmp word [esp + 0x14], dx
je 0x40108d
push eax
mov eax, dword [esp + 0x10]
and eax, 0xffff
push eax
push esi
call ebx
add esp, 0xc
jmp 0x40103e
mov eax, dword [esp + 0x1c]
cmp word [esp + 0xc], ax
jbe 0x40109c
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
and eax, 0xffff
push esi
push eax
push 1
push ecx
call edi
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4010c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, 0x419208
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41702c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x11c]
mov ecx, ebp
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4011b9
mov eax, dword [esp + 0x120]
test eax, eax
je 0x401193
lea eax, [esp + 0x14]
push 0x417028
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4011cc
push ebx
push 2
lea ecx, [esp + 0x18]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x20]
push edx
call fcn.00401000
add esp, 0x14
test eax, eax
jne 0x4011cc
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor ebx, ebx
mov dword [0x41930c], ebx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea eax, [esp + 0x14]
push 0x417024
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov ebx, eax
mov dword [0x41930c], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, dword [0x41930c]
test eax, eax
je 0x4011cc
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
mov dword [0x41930c], ebx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4021b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x41770c
mov esi, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402248
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x4178ac
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402221
mov eax, dword [esp + 8]
test eax, eax
jbe 0x402221
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x417874
push esi
call fcn.00403030
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x417844
push esi
call fcn.00403030
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x403130
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0xc]
lea edx, [esp]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x417dd8
push 0x80000002
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40319c
mov ecx, dword [esp]
lea eax, [esp + 4]
push 4
push eax
push 4
push 0
push 0x417dc8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret 4

Function at 0x4031e0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x403210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40320c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x403532
Capabilities:
Read .ini file

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov ebx, 0x104
push edi
push ebx
call fcn.004110b7
mov edi, eax
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, 0x418c90
and byte [edi], 0
push dword [0x417ed4]
mov eax, dword [0x4196cc]
add eax, 0x9a
push 0x14
push eax
push ebp
push 0x417ed0
push 0x417ec8
call esi
push dword [0x417ed4]
mov eax, dword [0x4196cc]
add eax, 0x9a
push 0
push 0x418cb4
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [0x4196cc]
mov word [ecx], ax
push dword [0x417ed4]
push ebx
push edi
push 0x419314
push 0x418ca8
push 0x417ec8
call esi
push dword [0x417ed4]
push ebx
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
mov eax, dword [0x4196cc]
push 0x419314
add eax, 0x9a
push 0x418ca4
push eax
call esi
push ebp
call sub.MSVCRT.dll_strlen
push eax
mov eax, dword [0x4196cc]
add eax, 0x9a
push ebp
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0x10
mov ebx, 0x418c94
test eax, eax
je 0x403623
push ebx
call sub.MSVCRT.dll_strlen
push eax
mov eax, dword [0x4196cc]
add eax, 0x9a
push ebx
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x40365b
push dword [0x417ed4]
mov eax, dword [0x4196cc]
add eax, 0x9a
push 0x14
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [0x4196cc]
lea eax, [eax + ecx + 0x9a]
push eax
push 0x418c68
push 0x418c9c
push 0x417ec8
call esi
cmp byte [edi], 0
je 0x4036ba
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4196d0], eax
je 0x4036c2
push ebp
call sub.MSVCRT.dll_strlen
push eax
mov eax, dword [0x4196cc]
add eax, 0x9a
push ebp
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0x10
test eax, eax
je 0x4036ae
push ebx
call sub.MSVCRT.dll_strlen
push eax
mov eax, dword [0x4196cc]
add eax, 0x9a
push ebx
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x4036ba
push dword [0x417ed4]
call fcn.004032e0
pop ecx
mov dword [esp + 0x10], 1
push edi
call fcn.004110c2
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4102fc
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
call fcn.004102c9
test eax, eax
je 0x4103ca
call fcn.00410e9c
cmp eax, 0xffffffff
mov dword [0x418ddc], eax
je 0x4103bb
call fcn.00411501
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
mov dword [0x4194b0], eax
je 0x4103a7
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push esi
push esi
call edi
cmp eax, 0xffffffff
mov dword [0x4194b8], eax
je 0x4103a2
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push esi
push 0x4115a2
push esi
push esi
mov dword [0x4194bc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov ebx, eax
push dword [0x4194b8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp ebx, esi
pop ebx
je 0x410390
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [0x4194b4], eax
jne 0x4103c2
mov eax, dword [0x4194b8]
cmp eax, esi
je 0x4103a2
push eax
call ebp
mov dword [0x4194b8], esi
call fcn.00411560
mov eax, dword [0x418ddc]
cmp eax, 0xffffffff
je 0x4103bb
push eax
call ebp
or dword [0x418ddc], 0xffffffff
call fcn.004102dc
jmp 0x4103ca
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret
Function at 0x41043c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [0x418de0], 0xffffffff
push ebx
push esi
push edi
je 0x4105a3
mov ebx, dword [ebp + 8]
test ebx, ebx
jl 0x4105a3
cmp ebx, 7
jge 0x4105a3
mov esi, ebx
shl esi, 6
cmp dword [esi + 0x4194c0], 0xffffffff
lea eax, [esi + 0x4194c0]
mov dword [ebp - 8], eax
je 0x4105a3
movzx eax, byte [esi + 0x4194d8]
cmp eax, 8
jg 0x410494
test eax, eax
jge 0x410496
xor eax, eax
mov edi, dword [eax*4 + 0x418e04]
push edi
call sub.MSVCRT.dll_wcslen
lea eax, [eax + eax + 0x7c]
push eax
mov dword [ebp + 8], eax
call sub.MSVCRT.dll_malloc
pop ecx
mov dword [0x418e00], eax
test eax, eax
pop ecx
je 0x4105a3
push dword [ebp + 8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x418e00]
push edi
mov dword [eax], 0x78
mov eax, dword [0x418e00]
mov ecx, dword [0x418de8]
mov dword [eax + 0x10], ecx
mov eax, dword [0x418e00]
mov dword [eax + 4], ebx
mov eax, dword [0x418e00]
add eax, 0x78
push eax
call sub.MSVCRT.dll_wcscpy
mov ecx, dword [0x418e00]
mov eax, dword [esi + 0x4194c4]
push 6
mov dword [ecx + 8], eax
lea eax, [esi + 0x4194d9]
push eax
mov eax, dword [0x418e00]
add eax, 0x28
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x20
xor edi, edi
lea eax, [ebp + 8]
push edi
push eax
push dword [ebp + 8]
mov eax, dword [0x418e00]
push eax
push dword [ebp + 8]
push eax
push 0x2a0000
push dword [0x418de0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x410550
xor bl, bl
jmp 0x41058d
mov eax, dword [0x418e00]
mov byte [esi + 0x4194cc], 1
cmp byte [eax + 0xc], 0
jne 0x410584
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push 0x410ecc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x41058b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41058b
mov byte [esi + 0x4194cc], 2
mov bl, 1
push dword [0x418e00]
call sub.MSVCRT.dll_free
pop ecx
mov dword [0x418e00], edi
mov al, bl
jmp 0x4105a5
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411079
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push esi
push eax
xor eax, eax
push eax
push dword [ebp + 8]
push 0x411070
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x4110a9
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop esi
pop ebp
ret

Function at 0x411178
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4111c9
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x4111e0
cmp dword [ebp - 0x8c], 2
jne 0x4111e0
cmp dword [ebp - 0x98], 5
jne 0x4111e0
push 1
pop eax
jmp 0x4111e2
xor eax, eax
pop esi
leave
ret