joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406590
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x410220]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40673d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x410120]
lea edi, [ecx*4 + 0x410120]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40673d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4065fe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40660f
push 2
push ebp
push eax
call fcn.00408430
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40676e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4066b9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40666a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x406657
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40663a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40675f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4066b5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x406636
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40672e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406702
cmp eax, 5
jne 0x4066eb
mov dword [0x40fcd4], eax
mov dword [0x40fcd0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004083c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x406722
cmp byte [ebp], 0x1a
jne 0x406722
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40fcd0], 0x1c
jmp 0x406747
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40fcd0], 9
pop edi
pop esi
pop ebp
mov dword [0x40fcd4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4066b5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40679f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4066b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4066b9
Function at 0x407230
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40fe68]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x407272
call edi
mov esi, eax
test esi, esi
je 0x40725c
mov eax, 1
jmp 0x40726d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40737f
mov eax, 2
mov dword [0x40fe68], eax
cmp eax, 1
jne 0x407312
test esi, esi
jne 0x40728b
call edi
mov esi, eax
test esi, esi
je 0x40737f
cmp word [esi], 0
mov eax, esi
je 0x4072a5
add eax, 2
cmp word [eax], 0
jne 0x407293
add eax, 2
cmp word [eax], 0
jne 0x407293
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x407304
push edi
call fcn.00404040
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407304
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4072f6
push ebx
call fcn.00403ff0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40737f
test ebx, ebx
jne 0x407323
call ebp
mov ebx, eax
test ebx, ebx
je 0x40737f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40733b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40732b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40732b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404040
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40735d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x407790
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40f5b0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4077b4
add eax, 8
inc ebp
cmp eax, 0x40f640
jb 0x4077a5
cmp ecx, dword [ebp*8 + 0x40f5b0]
jne 0x40795b
mov eax, dword [0x40fd40]
cmp eax, 1
je 0x40791d
test eax, eax
jne 0x4077e0
cmp dword [0x40d1c4], 1
je 0x40791d
cmp ecx, 0xfc
je 0x40795b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40781b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x407864
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40b368
add ebx, ecx
push ebx
call fcn.00404610
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b348
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40f5b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00408fe0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x410120]
test eax, eax
je 0x40792e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x407938
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40f5b4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x407e60
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40801e
push 0x3d
push edi
call fcn.00409340
mov esi, eax
add esp, 8
test esi, esi
je 0x40801e
cmp edi, esi
je 0x40801e
mov dl, byte [esi + 1]
mov ecx, dword [0x40fcfc]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x40fcf8]
cmp eax, ecx
jne 0x407eb7
push eax
call fcn.004080f0
add esp, 4
mov dword [0x40fcf8], eax
test eax, eax
jne 0x407f32
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407ede
mov eax, dword [0x40fd00]
test eax, eax
je 0x407ede
call fcn.004064b0
test eax, eax
je 0x407f2d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x407eea
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00404040
add esp, 4
mov dword [0x40fcf8], eax
test eax, eax
je 0x40801e
mov dword [eax], 0
mov eax, dword [0x40fd00]
test eax, eax
jne 0x407f2d
push 4
call fcn.00404040
add esp, 4
mov dword [0x40fd00], eax
test eax, eax
je 0x40801e
mov dword [eax], 0
mov eax, dword [0x40fcf8]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00408070
mov esi, eax
add esp, 8
test esi, esi
jl 0x40802f
cmp dword [ebx], 0
je 0x40802f
test ebp, ebp
je 0x408027
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00403ff0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x407f89
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x407f78
lea eax, [esi*4]
push eax
push ebx
call fcn.004091a0
add esp, 8
test eax, eax
je 0x407fa3
mov dword [0x40fcf8], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408016
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00404040
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408016
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00403ff0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x407fa7
test ebp, ebp
jne 0x408016
test esi, esi
jge 0x408039
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004091a0
add esp, 8
test eax, eax
je 0x40801e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x40fcf8], eax
jmp 0x407fa7
Function at 0x40a3d0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040a3a0
mov eax, dword [0x410220]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x40a532
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x410120]
test byte [edx + ecx*8 + 4], 1
je 0x40a532
push 1
push ebp
push ebx
call fcn.00408430
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40a53c
push 2
push ebp
push ebx
call fcn.00408430
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a53c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x40a4d8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00404950
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40a47f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00406590
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a49b
sub esi, eax
test esi, esi
jle 0x40a4b1
jmp 0x40a470
cmp dword [0x40fcd4], 5
jne 0x40a4ae
mov dword [0x40fcd0], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00404950
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00408430
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x40a519
push 0
push ecx
push ebx
call fcn.00408430
add esp, 0xc
push ebx
call fcn.00408370
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x40a519
mov dword [0x40fcd0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40fcd4], eax
push 0
push edi
push ebx
call fcn.00408430
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x40fcd0], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret

Function at 0x413000
Capabilities:
Accept command line arguments
Packed with generic packer

Disassembly:
pushal
push 0x413031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x41303a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x413047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.00404c00
Function at 0x72557e
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sal dl, 0x1f
int 0xc0
sbb eax, 0x2d050ed0
add edx, dword [ecx - 0x48]
retf
adc ch, ch
xor dword [ebp + 0x21], ebx
and dword [edx], edx
or edi, esi
inc ecx
jno 0x72551d
invalid
fild qword [eax + edx*8 + 0x2c]
lodsd eax, dword [esi]
popal
std
or al, 0xf9
add eax, 0x92bd5095
jl 0x72555f
mov edx, 0xd14062ea
sub byte [edi - 0x30], dh
push edx
mov bl, 0x30
popal
push es
in eax, dx
and byte [edx], dl
jmp 0x7255c2
mov ah, 0x73
std
sbb eax, 0x76d2c3d2
invalid
Function at 0x10001b0a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*8 + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
jmp 0x10001b62
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x10001baa
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.10001a9a
add esp, 8
cmp eax, dword [ebp + 0x10]
jne 0x10001ba8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x10001bac
jmp 0x10001b59
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10001bba
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xc
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x10001c31
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
push eax
call fcn.1000162a
add esp, 4
cmp dword [ebp + 8], eax
jne 0x10001c27
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
jmp 0x10001c33
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
jmp 0x10001bfd
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10019482
Capabilities:
Print debug messages

Disassembly:
cmp dword [0x101d9928], 0
jne 0x10019512
push ebx
push esi
push edi
mov esi, 0x100014bc
xor ebx, ebx
push esi
push ebx
mov dword [0x101d9928], 1
call fcn.10018970
push esi
push ebx
mov edi, eax
call fcn.10018970
add esp, 0x10
mov esi, eax
test edi, edi
je 0x100194c4
test esi, esi
je 0x100194c4
cmp edi, esi
jne 0x100194c7
xor ebx, ebx
inc ebx
test edi, edi
je 0x100194d2
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test esi, esi
je 0x100194e1
cmp esi, edi
je 0x100194e1
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test ebx, ebx
je 0x1001950f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10001698
call esi
push 0x10001638
call esi
push 0x100015e0
call esi
push 0x100015b0
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x10046649
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x1000155c
xor edi, edi
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100466a0
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1004669c
cmp dword [ebp + 0xc], ebx
jne 0x1004669c
inc edi
mov eax, edi
jmp 0x100466a2
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x100466d9
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 4]
push eax
push 0x1000155c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10046748
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10005cf8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004673f
cmp dword [ebp - 0xc], 4
jne 0x1004673f
cmp dword [ebp - 0x10], eax
je 0x1004673f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x101ca2b8], 0
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x101ca2b8]
test eax, eax
jns 0x1004678a
and dword [0x101ca2b8], 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], 0
jne 0x10046785
cmp word [ebp - 0x14], 5
jb 0x10046785
call fcn.100466ac
test eax, eax
je 0x10046785
emms
xor eax, eax
inc eax
mov dword [0x101ca2b8], eax
leave
ret
mov eax, dword [0x101ca2b8]
leave
ret

Function at 0x100468a8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x94
push esi
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
pop esi
test eax, eax
jne 0x100468f0
inc eax
jmp 0x1004692a
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x1004691e
cmp dword [ebp - 0x94], 4
ja 0x1004691a
jne 0x1004692a
cmp dword [ebp - 0x90], 0xa
jb 0x1004692a
cmp word [ebp - 0x8c], 0x55d
jb 0x1004692a
xor eax, eax
jmp 0x1004692a
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101becf5
leave
ret
Function at 0x1004693b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x94
push edi
lea eax, [ebp - 0x98]
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100469ab
cmp dword [ebp - 0x88], 2
jne 0x100469ab
cmp dword [ebp - 0x94], 5
jb 0x100469ab
cmp esi, 0xa
je 0x100469a1
push esi
call sub.KERNEL32.dll_IsProcessorFeaturePresent
jmp 0x100469df
call fcn.100467d0
and eax, 8
jmp 0x100469df
sub esi, 6
je 0x100469ca
dec esi
je 0x100469c3
sub esi, 3
jne 0x100469d3
call fcn.100468a8
test eax, eax
je 0x100469a1
jmp 0x100469d3
call fcn.10046791
jmp 0x100469df
call fcn.100468a8
test eax, eax
je 0x100469d7
xor eax, eax
jmp 0x100469df
call fcn.100467d0
and eax, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101becf5
leave
ret
Function at 0x10078a5c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
push dword [esi + 0xc]
call fcn.10078994
mov ebx, eax
test ebx, ebx
je 0x10078ac2
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078a87
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, ebx
mov dword [ebp + 0x14], edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078a9b
sub ecx, edi
lea eax, [ecx + 1]
mov dword [ebp + 0x10], eax
add eax, edx
push 0x100014bc
push eax
mov dword [ebp + 0xc], eax
call fcn.10018970
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10078ac9
mov esi, 0x8007000e
jmp 0x10078b11
push dword [ebp + 0x14]
push dword [esi]
push edi
call sub.msvcrt.dll_memcpy
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add eax, edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 4]
push edx
push edi
push dword [ebp + 0xc]
push 0
push 0
push 0x10001d18
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x10078b11
push 0x10006660
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10078b22
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 4], 0
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14

Function at 0x10078b37
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078b4b
mov eax, dword [esi + 8]
push ebx
sub ecx, edx
lea ebx, [ecx + 1]
lea eax, [eax + ebx + 4]
push 0x100014bc
push eax
mov dword [ebp + 0xc], eax
call fcn.10018970
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10078b7c
mov esi, 0x8007000e
jmp 0x10078bcc
push ebx
push dword [esi]
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 8]
shr eax, 2
mov dword [ebx + edi], eax
push dword [esi + 8]
lea eax, [ebx + edi + 4]
push dword [esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 4]
push edx
push edi
push dword [ebp + 0xc]
push 0
push 0
push 0x10001d08
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x10078bcc
push 0x10006660
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop ebx
test ecx, ecx
je 0x10078bde
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 4], 0
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret 0xc