joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e6677
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100e66b6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100e66b6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100e66b6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100e66b6
cmp dword [ecx + 0x74], 0xe
jbe 0x100e66b6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100f333b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1010c980
mov eax, dword [0x1012e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100f5f67
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100f337d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100f34d9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1010c560
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1013f458]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.101003b8
mov ecx, dword [esi*4 + 0x1013f458]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100f34d2
cmp eax, dword [ecx + edi + 0x24]
jne 0x100f34d2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f34d2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101003b8
add esp, 0x14
test edx, edx
jl 0x100f34d2
jg 0x100f3448
test eax, eax
jb 0x100f34d2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100f34d2
jl 0x100f3462
cmp dword [ebp - 0x1008], eax
ja 0x100f34d2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100f3480
test ebx, ebx
je 0x100f34b9
cmp ecx, edi
jae 0x100f34b9
mov al, byte [ecx]
cmp al, 0xd
jne 0x100f349a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100f34a6
cmp byte [ecx + 1], 0xa
jne 0x100f34a6
inc ecx
jmp 0x100f34a6
movzx eax, al
movsx eax, byte [eax + 0x1012e380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100f3480
cmp edx, ebx
jne 0x100f3480
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100f34d7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100819bc
leave
ret
Function at 0x100f844e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1013f458]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100f848e
cmp byte [ebx], 0xa
jne 0x100f848e
or byte [edi + eax + 0x28], 4
jmp 0x100f8493
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100f8592
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100f8575
inc eax
cmp dl, 0xd
je 0x100f84bf
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100f84e5
cmp eax, ecx
jae 0x100f84f3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100f84a7
jmp 0x100f8592
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f8570
cmp dword [ebp - 0x10], 0
je 0x100f8570
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1013f458]
test byte [eax + edi + 0x28], 0x48
je 0x100f854a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100f8535
mov byte [esi], dl
jmp 0x100f8546
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1013f458]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100f8592
cmp byte [ebp - 1], 0xa
jne 0x100f8559
cmp esi, ebx
jne 0x100f8559
mov byte [esi], 0xa
jmp 0x100f8591
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101003d6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100f8592
mov byte [esi], 0xd
jmp 0x100f8591
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1013f458]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100f858f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100f8592
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100f859b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1013f458]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100f85e1
cmp word [ebx], dx
jne 0x100f85e1
or byte [eax + edi + 0x28], 4
jmp 0x100f85e6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100f8749
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100f8729
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100f8627
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100f865d
cmp eax, edx
jae 0x100f866b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100f8602
jmp 0x100f8749
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f8724
cmp dword [ebp - 0x18], 0
je 0x100f8724
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1013f458]
test byte [eax + edi + 0x28], 0x48
je 0x100f86fa
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100f86be
mov word [esi], cx
jmp 0x100f86f5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1013f458]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1013f458]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1013f458]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100f8749
pop eax
cmp word [ebp - 4], ax
jne 0x100f870a
cmp esi, ebx
jne 0x100f870a
mov word [esi], ax
jmp 0x100f8746
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101003d6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100f8749
push 0xd
pop eax
jmp 0x100f8705
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1013f458]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100f8743
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100f8749
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100f9667
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011be24
push 0x1011be1c
push str.FlsAlloc
push 0x1f
call fcn.100f9492
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100f969b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10113324]
call esi
jmp 0x100f96a1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100f96e5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011be34
push 0x1011be2c
push str.FlsGetValue
push 0x21
call fcn.100f9492
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100f971c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10113324]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100f9724
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011be3c
push 0x1011be34
push str.FlsSetValue
push 0x22
call fcn.100f9492
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100f975e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10113324]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x100f97fc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x1011bcdc
push str.GetTempPath2W
push 5
call fcn.100f9492
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100f9836
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10113324]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x100fd584
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100fd621
push ebx
push esi
call fcn.100fd54d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100fd4e1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100fd5ce
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100fd620
push edi
push eax
call fcn.100f9142
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100fd5ee
call fcn.100f5f2d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100fd61f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100fd4e1
add esp, 0x20
test eax, eax
jne 0x100fd60d
push edi
call fcn.100f5f2d
jmp 0x100fd615
push ebx
call fcn.100f5f2d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100fd624
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100fd635
pop esi
ret
push ebx
push edi
push esi
call fcn.100fd54d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100f9142
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100fd65d
push ebx
push esi
push edi
call fcn.100cf470
add esp, 0xc
push 0
call fcn.100f5f2d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100fddb7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100fd8d2
Function at 0x10106b63
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100f66d2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10106bd2
cmp esi, dword [ebp - 4]
je 0x10106bcd
cmp dword [ebp + 0xc], 0
je 0x10106bcd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10106baa
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101066b5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10106bd4
xor eax, eax
inc eax
jmp 0x10106bd4
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10106c39
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1012e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100f66d2
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100f66d2
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10106cb0
cmp word [ecx], dx
je 0x10106cb0
mov eax, dword [0x1011d314]
push edi
dec eax
push eax
push 0x1011d200
call fcn.10106bd8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10106d23
cmp word [eax], dx
je 0x10106d23
mov eax, dword [edi]
test eax, eax
je 0x10106cd4
cmp word [eax], dx
je 0x10106cd4
lea eax, [ebp - 0x10]
push eax
call fcn.101065bb
jmp 0x10106cdd
lea eax, [ebp - 0x10]
push eax
call fcn.10106656
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10106d4d
mov eax, dword [0x1011d1fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1011cef0
call fcn.10106bd8
add esp, 0xc
test al, al
je 0x10106d4d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10106d18
cmp word [eax], di
je 0x10106d18
lea eax, [ebp - 0x10]
push eax
call fcn.101065bb
pop ecx
jmp 0x10106d4f
lea eax, [ebp - 0x10]
push eax
call fcn.10106656
jmp 0x10106d15
mov eax, dword [edi]
test eax, eax
je 0x10106d3a
cmp word [eax], dx
je 0x10106d3a
lea eax, [ebp - 0x10]
push eax
call fcn.10106570
pop ecx
jmp 0x10106d4d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10106e18
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10106a5d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10106e18
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10106e18
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10106e18
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10106da5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100f9942
test ebx, ebx
je 0x10106e13
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100f9942
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10106e18
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10106e18
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100e5815
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10106e1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100819bc
leave
ret
Function at 0x10109cc8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10109c44
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10109e37
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10109e37
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10109dec
jg 0x10109d24
test eax, eax
je 0x10109de2
push 1
push 0x1000
call fcn.100f9190
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10109d47
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10109dd9
push 0x8000
push ebx
call fcn.10109b75
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10109d70
jg 0x10109d6b
cmp ecx, 0x1000
jb 0x10109d70
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100feda1
add esp, 0x10
cmp eax, 0xffffffff
je 0x10109db5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10109d6b
jl 0x10109d9c
test ecx, ecx
jne 0x10109d5d
push dword [ebp - 0xc]
push ebx
call fcn.10109b75
push esi
call fcn.100f5f2d
add esp, 0xc
xor ebx, ebx
jmp 0x10109e45
cmp byte [edi + 0x24], 0
je 0x10109dcc
cmp dword [edi + 0x20], 5
jne 0x10109dcc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10109dd7
mov ebx, dword [edi + 0x18]
jmp 0x10109dd9
xor ebx, ebx
push esi
call fcn.100f5f2d
pop ecx
jmp 0x10109e45
test ecx, ecx
jg 0x10109dae
jl 0x10109dec
test eax, eax
jae 0x10109dae
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101003d6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10109e0c
cmp byte [edi + 0x1c], 0
je 0x10109dae
jmp 0x10109e3d
push ebx
call fcn.10104a71
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10109dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10109e45
cmp byte [edi + 0x1c], 0
je 0x10109e42
mov ebx, dword [edi + 0x18]
jmp 0x10109e45
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101003d6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40673a
pop dword [ebp - 0x34]
mov eax, 0x40673a
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x85b7b59e
sub dword [ebp - 0x44], 0x37657053
mov dword [ebp - 0x40], 0xac71e096
sub dword [ebp - 0x40], 0x7a3e9451
mov dword [ebp - 0x3c], 0xcd6484e9
add dword [ebp - 0x3c], 0x7ee7bf45
mov dword [ebp - 0x38], 0xdabfd067
add dword [ebp - 0x38], 0x25402f99
lea eax, [ebp - 0x44]
push eax
mov eax, 0x7cc1d21d
sub eax, 0x7c815119
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x147d3716
add dword [ebp - 0x44], 0x5ff53240
mov dword [ebp - 0x40], 0x89d3b85e
add dword [ebp - 0x40], 0xb798a917
mov dword [ebp - 0x3c], 0xcb403967
add dword [ebp - 0x3c], 0x982f3305
mov dword [ebp - 0x38], 0xa5391b70
add dword [ebp - 0x38], 0x5ac6e490
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x143571eb
add eax, 0xec0b0f15
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x391cd
push 0
call eax
mov ecx, 0x405e2316
add ecx, 0xbfa22b4d
xor edi, edi
add edi, eax
mov esi, 0x918d8b09
sub esi, 0x9146a709
add esi, dword [ebp - 0x34]
mov ebx, 0x71547aad
add dword [ebp - 0xc], edx
mov edx, dword [esi]
xor dword [ebp - 0x14], edi
xor edx, ebx
sub dword [ebp - 0x28], 0x6ebebd9e
mov dword [edi], edx
mov dword [ebp - 8], 0x3e2f1548
add edi, 4
add esi, 4
loop 0x406853
add eax, 0x12c5f
mov ebx, eax
add eax, 5
mov ecx, 0x5aef2462
add ecx, 0xa550db9e
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1005ece5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1019a5d0]
jne 0x1005ecef
repz ret
jmp fcn.100602f8

Function at 0x1005fdb0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1005e133
and dword [ebp - 4], 0
cmp dword [0x1019bd5c], 0
mov ebx, eax
jne 0x1005fe61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1005ff12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1005ff12
push eax
call fcn.1005e0c1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1019bd5c], eax
call esi
push eax
call fcn.1005e0c1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1019bd60], eax
call esi
push eax
call fcn.1005e0c1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1019bd64], eax
call esi
push eax
call fcn.1005e0c1
pop ecx
mov dword [0x1019bd6c], eax
test eax, eax
je 0x1005fe61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1005e0c1
pop ecx
mov dword [0x1019bd68], eax
mov eax, dword [0x1019bd68]
cmp eax, ebx
je 0x1005feb9
cmp dword [0x1019bd6c], ebx
je 0x1005feb9
push eax
call fcn.1005e13c
push dword [0x1019bd6c]
mov esi, eax
call fcn.1005e13c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1005feb9
test edi, edi
je 0x1005feb9
call esi
test eax, eax
je 0x1005feb0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1005feb0
test byte [ebp - 0xc], 1
jne 0x1005feb9
or dword [ebp + 0x10], 0x200000
jmp 0x1005fef2
mov eax, dword [0x1019bd60]
cmp eax, ebx
je 0x1005fef2
push eax
call fcn.1005e13c
pop ecx
test eax, eax
je 0x1005fef2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1005fef2
mov eax, dword [0x1019bd64]
cmp eax, ebx
je 0x1005fef2
push eax
call fcn.1005e13c
pop ecx
test eax, eax
je 0x1005fef2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1019bd5c]
call fcn.1005e13c
pop ecx
test eax, eax
je 0x1005ff12
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1005ff14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10062121
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1019a24c]
add eax, 0xfffffd5c
mov dword [0x1019a24c], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x1019a248], 0x2650
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1019a24c], 0x129
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x100621c2
mov eax, 0x199d
mov dword [0x1019a248], 0x388
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
je 0x1006221c
jmp 0x100622a9
mov eax, dword [ebp - 0x1c]
add esp, 0x24
pop ebp
ret
mov eax, 0x29da
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x10062292
jmp 0x100622a9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x100621ef
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
jl 0x100621c2
mov eax, dword [ebp - 0x24]
mov ecx, 0x35f0
mov dword [0x1019a248], 0x1fdb
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
je 0x10062170
jmp 0x100622a9
mov eax, 0x199d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
jne 0x100622a9
mov eax, 0xfffff9e7
mov dword [0x1019a248], 0xffffe3d2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
jne 0x100622a9
mov eax, 0x29da
mov dword [0x1019a248], 0x13c5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
jne 0x100622a9
mov eax, 0x29da
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
je 0x100621a2
jmp 0x100622a9
mov eax, 1
mov dword [0x1019a24c], 0xfa2
mov dword [ebp - 0x1c], eax
jmp 0x1006219a
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [0x1019a248], eax
mov dword [ebp - 0x1c], ecx
jmp 0x1006219a