joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10088c30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [0x101581c8]
add edx, 0xffffd94f
mov dword [0x101581c4], edx
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
add edx, 0xffffe3e9
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2], 0
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edi
je 0x10088cb5
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, dword [ebp - 0x28]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
jl 0x10088c71
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [0x101581c4], ecx
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x30], eax
jne 0x10088d57
mov dword [0x101581c8], 0x7a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10088d57
mov eax, dword [ebp - 0x24]
add eax, 0xffffe7d7
mov dword [0x101581c4], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10088d57
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10088d57
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10088d57
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10088d57
mov eax, 1
mov dword [0x101581c4], 0xb63
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x34], eax
je 0x10088d5e
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x10088d5e
mov eax, dword [ebp - 0x34]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x10088f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101581cc], 0
mov dword [0x101581d0], 0
mov dword [0x101581dc], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x100890eb
jmp 0x10089002
mov eax, dword [0x101581cc]
mov ecx, dword [0x101581d0]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov dword [0x101581c4], 0x581
mov edi, ecx
add edi, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101581cc], edx
mov dword [0x101581c8], 0x20ec
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101581d0], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101581d4], cl
mov dword [0x101581c8], 0x1c17
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101581d4]
mov edx, dword [0x101581d0]
mov byte [ebx + edx], cl
mov edx, dword [0x101581cc]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101581d0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101581dc], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x101581c8], 0x2239
mov edx, dword [0x101581c4]
add edx, 0x97e
mov dword [0x101581c4], edx
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
jne 0x10088feb
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100890f3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x101581c4], 0x895
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10088584
lea ecx, [0x100882bc]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x44], edx
mov dword [esp + 0x58], 0x144200
mov edx, dword [0x101581b0]
mov dword [esp + 0x48], edx
mov edx, dword [0x101581b4]
mov dword [esp + 0x34], edx
mov edx, dword [0x101581b8]
mov dword [esp + 0x20], edx
mov edx, dword [0x101581bc]
mov dword [esp + 0x7c], edx
mov edx, dword [0x101581c0]
mov dword [esp + 0x68], edx
mov dword [0x101581c8], 0x1d3f
mov dword [0x101581c4], 0x2324
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x100891aa
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x100891be
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10089187
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [0x101581c4], 0x4417
mov dword [0x101581c8], 0x94b
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x6c], edx
call fcn.10088c30
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x10089225
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10088189
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x69ad6820
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x69ad69e4
pushal
mov esi, 0x69ad4015
lea edi, [esi - 0x13015]
push edi
or ebp, 0xffffffff
jmp 0x69ad684a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x69ad6851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69ad6840
mov eax, 1
add ebx, ebx
jne 0x69ad6863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x69ad6858
jne 0x69ad6874
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69ad6858
xor ecx, ecx
sub eax, 3
jb 0x69ad6888
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x69ad68fa
mov ebp, eax
add ebx, ebx
jne 0x69ad6893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x69ad68a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x69ad68c4
inc ecx
add ebx, ebx
jne 0x69ad68b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x69ad68a5
jne 0x69ad68c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69ad68a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x69ad68e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x69ad68d5
jmp 0x69ad6846
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x69ad68e4
add edi, ecx
jmp 0x69ad6846
pop esi
mov edi, esi
mov ecx, 0x21
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x69ad6902
cmp byte [edi], 0
jne 0x69ad6902
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x69ad6907
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x69ad6976
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x163b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16404]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x69ad6934
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16408]
or eax, eax
je 0x69ad6970
mov dword [ebx], eax
add ebx, 4
jmp 0x69ad6951
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x69ad69a7
cmp al, 0xef
ja 0x69ad699a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x69ad697c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x69ad6989
mov ebp, dword [esi + 0x1640c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x69ad69db
sub esp, 0xffffff80
jmp 0x69ac1230
Function at 0x401488
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x4015f8
call fcn.00403685
mov edi, 0x94
mov eax, edi
call fcn.0040366c
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x446400], ecx
mov eax, dword [esi + 4]
mov dword [0x44640c], eax
mov edx, dword [esi + 8]
mov dword [0x446410], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x446404], esi
cmp ecx, 2
jne 0x401604
shl eax, 8
add eax, edx
mov dword [0x446408], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4015ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4015ed
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
jne 0x401615
cmp dword [ecx + 0x74], 0xe
jbe 0x4015ed
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004016c9
pop ecx
test eax, eax
je 0x401632
call fcn.00401734
test eax, eax
je 0x40163f
call fcn.004018ba
mov dword [ebp - 4], esi
call fcn.00401916
test eax, eax
jl 0x40164c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4469e8], eax
call fcn.00401b21
mov dword [0x4463fc], eax
call fcn.00401c5b
test eax, eax
jl 0x401659
call fcn.00402a14
test eax, eax
jl 0x401666
call fcn.00402ae0
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x401673
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403362
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
jne 0x40167f
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004152b3
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401688
push edi
call fcn.00418051
mov dword [ebp - 0x1c], esi
jmp 0x401538
or esi, 0x8000
mov dword [0x446404], esi
jmp 0x4014e0
cmp eax, 0x20b
jne 0x4015ed
cmp dword [ecx + 0x84], 0xe
jbe 0x4015ed
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401532
push 0x1c
call fcn.004362ad
pop ecx
jmp 0x401548
push 0x10
call fcn.004362ad
pop ecx
jmp 0x401555
push 0x1b
call fcn.00436288
pop ecx
jmp 0x40156a
push 8
call fcn.00436288
pop ecx
jmp 0x40158c
push 9
call fcn.00436288
pop ecx
jmp 0x401599
push eax
call fcn.00436288
pop ecx
jmp 0x4015a9
movzx eax, word [ebp - 0x34]
jmp 0x4015cb
call fcn.00437400
jmp 0x4016ba
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004036c0
ret
Function at 0x401b21
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x446528]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x401bc7
call edi
mov esi, eax
cmp esi, ebx
je 0x401bce
mov dword [0x446528], 1
cmp esi, ebx
je 0x401be9
cmp word [esi], bx
mov eax, esi
je 0x401b74
add eax, ebp
cmp word [eax], bx
jne 0x401b66
add eax, ebp
cmp word [eax], bx
jne 0x401b66
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x401bb7
push ebp
call fcn.004039a5
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x401bb7
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x401bf6
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x401c06
jmp 0x401b57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x401be2
mov eax, ebp
mov dword [0x446528], eax
jmp 0x401bc7
mov eax, dword [0x446528]
jmp 0x401bc7
call edi
mov esi, eax
cmp esi, ebx
je 0x401c0e
jmp 0x401b5f
push dword [esp + 0x10]
call fcn.004036f0
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x401bb3
cmp eax, ebp
je 0x401c12
cmp eax, ebx
je 0x401c12
xor eax, eax
jmp 0x401bc0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x401c0e
cmp byte [esi], bl
je 0x401c2c
inc eax
cmp byte [eax], bl
jne 0x401c22
inc eax
cmp byte [eax], bl
jne 0x401c22
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.004039a5
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x401c42
xor edi, edi
jmp 0x401c4d
push ebp
push esi
push edi
call fcn.00418bcb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x401bc0
Function at 0x405228
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44227a
call fcn.004036d1
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x10], ebx
call fcn.004049de
xor esi, esi
mov dword [ebp - 4], esi
lea ecx, [ebx + 0x30]
mov dword [ebx], 0x404660
mov dword [ebx + 4], 0x404998
mov dword [ebx + 8], 0x404f48
mov dword [ebx + 0xc], 0x404f34
mov dword [ebx + 0x10], 0x404f20
call fcn.00404ab5
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x40]
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
call fcn.00404a44
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x44]
call fcn.004049b0
mov byte [ebp - 4], 3
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x4c], 8
mov byte [ebp - 4], 4
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x5c], esi
mov byte [ebp - 4], 5
mov dword [ebx + 0x60], esi
mov byte [ebp - 4], 6
mov dword [ebx + 0x64], esi
mov byte [ebp - 4], 7
lea edi, [ebx + 0x7c]
mov esi, 0x404ad8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebx + 0x8c], 0
lea ecx, [ebx + 0x90]
call fcn.00404c02
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409e13
Capabilities:
Read .ini file

Disassembly:
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040afaf
jmp 0x409df4
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409db0
sub eax, edx
lea esi, [ebp + eax - 0x210]
cmp byte [esi], bl
je 0x409e80
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0040a211
test eax, eax
jne 0x409df4
push dword [ebp - 0xc]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x409d25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
push esi
call fcn.0040b06f
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x41be99
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
jmp 0x409db0
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push dword [ebp + 8]
lea ebx, [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.00409ea4
test eax, eax
jne 0x409e94
call fcn.004046e1
xor ebx, ebx
cmp al, bl
mov byte [ebp - 5], al
je 0x409e4b
call dword [sym.imp.ole32.dll_CoRevertToSelf]
push esi
push str.C:Documents_and_SettingsAll_UsersApplication_DataMicrosoftMachine_Debug_Managermdm.ini
push 0x200
lea eax, [ebp - 0x210]
push eax
push 0x409d8c
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x210], bl
lea esi, [ebp - 0x210]
jne 0x409dc8
cmp byte [ebp - 5], bl
pop esi
je 0x409e8b
call fcn.00408870
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004037c0
leave
ret 8
inc esi
jmp 0x409dc0
Function at 0x40afaf
Capabilities:
Read .ini file

Disassembly:
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af4c
sub eax, edx
add eax, esi
and byte [esi], 0
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x408]
mov byte [ebp + ecx - 0x208], dl
inc ecx
test dl, dl
jne 0x40af5c
cmp byte [eax], dl
jne 0x41be34
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af80
sub eax, edx
jne 0x41be63
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x41be6f
xor esi, esi
jmp 0x40b025
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push dword [ebp + 8]
lea ebx, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.00409ea4
mov esi, eax
test esi, esi
jne 0x40b03d
call fcn.004046e1
test al, al
mov byte [ebp + 0xb], al
je 0x40afe8
call dword [sym.imp.ole32.dll_CoRevertToSelf]
push edi
mov ebx, str.C:Documents_and_SettingsAll_UsersApplication_DataMicrosoftMachine_Debug_Managermdm.ini
push ebx
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0x409d8c
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x408]
call fcn.0040a1b1
test al, al
jne 0x40b050
xor esi, esi
inc esi
cmp byte [ebp + 0xb], 0
pop edi
je 0x40b034
push esi
call fcn.00404730
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.004037c0
leave
ret 0xc
mov esi, dword [ebp + 0x10]
push 0x20
push esi
call fcn.0040b06f
test eax, eax
pop ecx
pop ecx
jne 0x41be2e
mov eax, esi
lea edx, [eax + 1]
jmp 0x40af4c
inc eax
jmp 0x40af57
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41be36
lea edi, [ebp - 0x208]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41be46
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40af8f
and byte [ebp + eax - 0x209], cl
jmp 0x40af8f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41be84
call esi
mov esi, eax
jmp 0x40b025
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40b025
Function at 0x40df76
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [0x446f78]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x40e096
cmp dword [ebp + 0xc], ebx
mov dword [eax], ebx
je 0x41c024
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push eax
call fcn.0040cd49
mov dword [ebp + 0xc], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
cmp eax, ebx
jg 0x41c02c
jne 0x40e08f
cmp dword [ebp - 0xc], 1
jne 0x40e08f
cmp dword [ebp - 4], ebx
je 0x40e08f
push dword [ebp - 4]
call fcn.00403734
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40e088
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
jg 0x41c03d
mov esi, eax
cmp esi, ebx
jne 0x40e075
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 8]
push esi
push edi
push eax
call fcn.0040cd05
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
mov esi, eax
push edi
call fcn.004036f0
pop ecx
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0x8007000e
jmp 0x40e07c
mov esi, 0x80004005
jmp 0x40e07c
mov esi, 0x80070057
jmp 0x40e07c
mov dword [ebp + 0xc], ebx
jmp 0x40dfcc
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jmp 0x40dfef
and eax, 0xffff
or eax, 0x80070000
jmp 0x40e02e

Function at 0x40e92f
Capabilities:
Check os version

Disassembly:
mov eax, 0x43d4c8
call fcn.004036d1
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
cmp eax, 3
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
je 0x40e96c
cmp eax, 4
je 0x40e96c
cmp eax, 5
je 0x40e96c
cmp eax, 6
je 0x40e96c
call fcn.004044c3
cmp eax, 2
je 0x41919d
push esi
push edi
mov ecx, ebx
call fcn.0040bdbc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040bdbc
test eax, eax
jl 0x40e96c
lea ecx, [ebp + 8]
call fcn.004055ad
and dword [ebp - 4], 0
test dword [ebp - 0x18], 0xffffff00
je 0x4191d7
mov eax, dword [edi]
lea ecx, [ebp + 8]
push ecx
push 0x419204
push edi
call dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4191de
mov dword [ebp + 0xc], 0x80004002
push esi
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bd16
test al, al
jne 0x4191bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405581
jmp 0x40e96c