joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b70
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x405b99
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x405b94
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x405b7e
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add byte [ebx + 0x34572bd6], cl
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x405b86
cmp edx, ebx
jne 0x405cd4
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x405b55
add eax, dword [eax + 4]
jmp 0x405b42
mov dword [ebp + 0xc], ebx
jmp 0x405ba4
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x405bbc
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
pushal
jmp 0x405bda
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x405c38
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x405c1f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x405c28
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x405c32
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x405c14
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x405b9e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x405c85
dec eax
je 0x405c7c
sub eax, 3
je 0x405c73
mov dword [ebp - 4], 0x40
jmp 0x405ca2
mov dword [ebp - 4], 4
jmp 0x405c88
mov dword [ebp - 4], 0x20
jmp 0x405c88
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x405cd4
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x405c54
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004054e5
nop
ficomp word [eax - 0x5e]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x405ce0
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4061c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x4061d9
cmp dword [ebp - 0x398], 0
je 0x4063a3
cmp dword [ebp + 0xc], 1
je 0x4063a3
cmp dword [ebp + 0xc], 8
jne 0x40636b
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
invalid
invalid
push eax
Function at 0x407069
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movsb byte es:[edi], byte [esi]
add byte [eax], al
add byte [eax - 0x78b5b], al
inc dword [eax]
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f

Function at 0x408cec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411430
push 0x40bc24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x4143cc]
test eax, eax
je 0x408d34
mov dword [ebp - 4], 1
call eax
jmp 0x408d30
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x408d3d
jmp 0x40c9e5
push 0xa
call fcn.0040bd35
push 0x16
call fcn.0040e439
pop ecx
pop ecx
push 3
call fcn.0040711b

Function at 0x408d42
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411448
push 0x40bc24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.00408cec]
test eax, eax
je 0x408d8a
mov dword [ebp - 4], 1
call eax
jmp 0x408d86
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x408d93
jmp fcn.00408cec
Function at 0x40bd35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413d48
cmp edx, dword [eax]
je 0x40bd57
add eax, 8
inc ecx
cmp eax, 0x413dd8
jl 0x40bd48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413d48]
jne 0x40be85
mov eax, dword [0x4143a8]
cmp eax, 1
je 0x40be5f
test eax, eax
jne 0x40bd88
cmp dword [0x413564], 1
je 0x40be5f
cmp edx, 0xfc
je 0x40be85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bdbf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409e30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407f70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40be02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407f70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4117c4
push edi
call fcn.00406d10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409e30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409e40
lea eax, [ebp - 0xa0]
push 0x4117a4
push eax
call fcn.00409e40
push dword [esi + 0x413d4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409e40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040daab
add esp, 0x2c
pop edi
jmp 0x40be85
lea eax, [ebp + 8]
lea esi, [esi + 0x413d4c]
push 0
push eax
push dword [esi]
call fcn.00407f70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10a3c99
Capabilities:
Get user security identifier

Disassembly:
push pe_nt_image_headers32
mov eax, 0x10e0042
call fcn.010a0cd3
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe0], eax
call fcn.0102e0f1
test ebx, ebx
je 0x10a3e22
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp - 0xd8]
call fcn.010a25aa
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xe0]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe8], esi
call ebx
test eax, eax
jne 0x10a3d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10a3e02
cmp dword [ebp - 0xdc], 0x44
jbe 0x10a3d4d
push 0x80004005
call fcn.01027b0b
mov eax, dword [ebp - 0xe8]
cmp eax, esi
jbe 0x10a3d71
add eax, eax
push eax
lea ecx, [ebp - 0xd8]
call fcn.010a25ce
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe0]
call ebx
test eax, eax
je 0x10a3e02
lea eax, [ebp - 0x54]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0xdc]
mov byte [edi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x10a3e02
push dword [ebp - 0xe4]
lea ecx, [edi + 0x54]
call fcn.01028b27
push dword [ebp - 0xec]
lea ecx, [edi + 0x50]
call fcn.01028b27
push dword [ebp - 0xe0]
lea ecx, [edi + 0x5c]
call fcn.01028b27
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x10a3dfe
lea ecx, [ebp - 0xd8]
call fcn.010a21c6
mov al, 1
jmp 0x10a3e24
mov ecx, edi
call fcn.0102e0f1
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x10a3e22
lea ecx, [ebp - 0xd8]
call fcn.010a21c6
xor al, al
call fcn.010a0d65
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x277b18c5
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2f26539a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4261d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x426281
test eax, edx
je 0x426284
push 0
push 0
cmp word [eax - 0xa], 2
je 0x426201
push edx
mov edx, eax
mov eax, esp
call fcn.0043cee8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x426217
push eax
lea eax, [esp + 8]
call fcn.0043cee8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x426226
movzx eax, word [eax]
sub eax, ecx
jmp 0x42624d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x426267
add ecx, 4
js 0x42623e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x426264
push eax
mov eax, ecx
mov edx, 2
call fcn.0043beb0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42624b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42624d
xor eax, eax
ret
test eax, eax
je 0x426294
test edx, edx
jne 0x4261e8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42d6af
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0043c23c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.0051eae4
mov edi, eax
cmp edi, 0x104
jbe 0x42d6d2
mov eax, edi
add eax, eax
call fcn.00439d5c
mov esi, eax
jmp 0x42d6d4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.0051eae4
push edi
push esi
call fcn.0051ef76
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42d70d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42d6f7
mov eax, esp
cmp esi, eax
je 0x42d71a
mov eax, esi
call fcn.00439d78
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42d754
cmp bl, 0
je 0x42d750
cmp bl, 0x41
jl 0x42d74b
cmp bl, 0x5a
jg 0x42d74b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42d72f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42d694
Function at 0x459e64
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x459e6a
ret
Function at 0x507aec
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x52a098
call fcn.0051134c
mov word [ebp - 0x18], 0xc
mov edx, 0x52a5b4
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.0050c794
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x507b39
mov word [ebp - 0x18], 0x3c
mov edx, dword [ebp - 4]
push edx
call fcn.0050af18
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x507b3c
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50d120
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x52b4b8
call fcn.0051134c
mov word [ebp - 0x18], 0xc
mov edx, 0x52b840
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.0050c794
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x50d16d
mov word [ebp - 0x18], 0x3c
mov edx, dword [ebp - 4]
push edx
call fcn.0050af18
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x50d170
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100023f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10002407
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002438
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10002434
cmp esi, eax
jae 0x10002438
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x10002424
cmp esi, eax
jb 0x1000243e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10003a40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10019688
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x10021138]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.10002bf0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10003a94
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.10002f20
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.10002bf0
cmp dword [esp + 0x24], 8
jb 0x10003ada
mov eax, dword [esp + 0x10]
push eax
call fcn.10004382
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x100040c5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10021138]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10004004
mov eax, 0x10000000
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.10007f00
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 0x10004114
cmp dword [ebp - 0x1c], 5
jb 0x1000412c
jmp 0x10004128
cmp dword [ebp - 0x10], 1
jne 0x1000412c
cmp dword [ebp - 0x1c], 4
ja 0x10004128
jne 0x1000412c
cmp dword [ebp - 0x18], 0
jbe 0x1000412c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001a2ec
call fcn.10003e9a
test eax, eax
jge 0x1000414d
mov byte [0x100236f0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10004387
add ebp, 0x78
leave
ret

Function at 0x10004387
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10021138]
jne 0x10004391
repz ret
jmp fcn.10008391
Function at 0x100097bc
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 + 0x100212e0]
je 0x100097d7
inc edi
cmp edi, 0x17
jb 0x100097c8
cmp edi, 0x17
jae 0x10009957
push ebp
push 3
call fcn.1000fa3a
cmp eax, 1
pop ecx
je 0x10009923
push 3
call fcn.1000fa3a
test eax, eax
pop ecx
jne 0x1000980b
cmp dword [0x100229f8], 1
je 0x10009923
cmp ebx, 0xfc
je 0x10009956
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10022d48
push ebp
call fcn.10009add
add esp, 0xc
test eax, eax
je 0x10009841
push esi
push esi
push esi
push esi
push esi
call fcn.1000440e
add esp, 0x14
push 0x104
mov esi, 0x10022d61
push esi
push 0
mov byte [0x10022e65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10009885
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10009add
add esp, 0xc
test eax, eax
je 0x10009885
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000440e
add esp, 0x14
push esi
call fcn.10005f90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100098ca
push esi
call fcn.10005f90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002305c
push 0x1001b2b4
sub ecx, eax
push ecx
push eax
call fcn.1000edd0
add esp, 0x14
test eax, eax
je 0x100098ca
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000440e
add esp, 0x14
jmp 0x100098cc
xor esi, esi
push 0x1001b2b0
push ebx
push ebp
call fcn.1000ed5f
add esp, 0xc
test eax, eax
je 0x100098ec
push esi
push esi
push esi
push esi
push esi
call fcn.1000440e
add esp, 0x14
push dword [edi*8 + 0x100212e4]
push ebx
push ebp
call fcn.1000ed5f
add esp, 0xc
test eax, eax
je 0x1000990e
push esi
push esi
push esi
push esi
push esi
call fcn.1000440e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000f87d
add esp, 0xc
jmp 0x10009956
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10009956
cmp ebp, 0xffffffff
je 0x10009956
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100212e4]
push dword [esi]
call fcn.10005f90
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 0x1000f87d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000923d
xor ebx, ebx
cmp dword [0x10023384], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000f953
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000fa33
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000fa33
push eax
call fcn.100091cf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10023384], eax
call esi
push eax
call fcn.100091cf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10023388], eax
call esi
push eax
call fcn.100091cf
mov dword [0x1002338c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000584f
test eax, eax
pop ecx
pop ecx
je 0x1000f921
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000440e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000f953
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100091cf
cmp eax, ebx
pop ecx
mov dword [0x10023394], eax
je 0x1000f953
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100091cf
pop ecx
mov dword [0x10023390], eax
mov eax, dword [0x10023390]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000f9d8
cmp dword [0x10023394], ecx
je 0x1000f9d8
push eax
call fcn.10009246
push dword [0x10023394]
mov esi, eax
call fcn.10009246
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000f9d8
cmp edi, ebx
je 0x1000f9d8
call esi
cmp eax, ebx
je 0x1000f9a5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000f9a5
test byte [ebp - 0x18], 1
jne 0x1000f9d8
lea eax, [ebp - 0x10]
push eax
call fcn.10005886
test eax, eax
pop ecx
je 0x1000f9c0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000440e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000f9cf
or dword [ebp + 0x10], 0x200000
jmp 0x1000fa13
or dword [ebp + 0x10], 0x40000
jmp 0x1000fa13
mov eax, dword [0x10023388]
cmp eax, dword [ebp - 8]
je 0x1000fa13
push eax
call fcn.10009246
cmp eax, ebx
pop ecx
je 0x1000fa13
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000fa13
mov eax, dword [0x1002338c]
cmp eax, dword [ebp - 8]
je 0x1000fa13
push eax
call fcn.10009246
cmp eax, ebx
pop ecx
je 0x1000fa13
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10023384]
call fcn.10009246
cmp eax, ebx
pop ecx
je 0x1000fa33
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000fa35
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015f20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x1001cd5c
push 0x80000002
mov edi, ecx
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10015fb1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.InstallDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10015fb1
lea edx, [esp + 0x10]
push edx
push 0x1001cda4
call fcn.10003390
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10004387
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
xor eax, eax
call fcn.10004387
add esp, 0x210
ret