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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4840e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eed7
cmp byte [ebx], 0xa
jne 0x41eed7
or byte [eax + edi + 0x28], 4
jmp 0x41eedc
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41efda
mov al, byte [edx]
cmp al, 0x1a
je 0x41efbc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ef0b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ef30
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ef3a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41eeed
jmp 0x41efda
push 0
lea eax, [ebp - 0xc]
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 0x41efb7
cmp dword [ebp - 0xc], 0
je 0x41efb7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4840e0]
test byte [eax + edi + 0x28], 0x48
je 0x41ef91
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ef7c
mov byte [esi], dl
jmp 0x41ef8d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4840e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41efda
cmp byte [ebp - 1], 0xa
jne 0x41efa0
cmp esi, ebx
jne 0x41efa0
mov byte [esi], 0xa
jmp 0x41efd9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fa17
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41efda
mov byte [esi], 0xd
jmp 0x41efd9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4840e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41efd6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41efda
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41efe3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4840e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f026
cmp word [esi], dx
jne 0x41f026
or byte [edi + eax + 0x28], 4
jmp 0x41f02b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f17e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f15e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f06d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f0a3
cmp eax, edx
jae 0x41f0af
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41f045
jmp 0x41f17e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f15a
cmp dword [ebp - 0x14], 0
je 0x41f15a
mov eax, dword [ebx*4 + 0x4840e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f132
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f0fb
mov word [esi], cx
jmp 0x41f12e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4840e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4840e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4840e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f17e
pop ebx
cmp word [ebp - 4], bx
jne 0x41f143
cmp esi, dword [ebp + 0xc]
jne 0x41f143
mov word [esi], bx
jmp 0x41f17b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fa17
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f17e
push 0xd
jmp 0x41f177
mov ecx, dword [ebx*4 + 0x4840e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f175
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f17e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4200b0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4817c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4200fb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042024f
test al, al
jne 0x4200f5
sub edx, 2
cmp edx, edi
jne 0x4200db
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42011d
lea eax, [edi + 2]
cmp edx, eax
je 0x42011d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041fffc
add esp, 0x10
jmp 0x420217
push esi
lea ecx, [ebp - 0x255]
call fcn.0042024f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420160
push dword [ebp - 0x25c]
jmp 0x42010d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42019d
cmp word [ebp - 0x226], 0
je 0x4201be
cmp word [ebp - 0x226], ax
jne 0x42019d
cmp word [ebp - 0x224], 0
je 0x4201be
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041fffc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42020a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x420177
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4201f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x420217
push 0x41fe2c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00425a20
add esp, 0x10
jmp 0x4201e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4e1
leave
ret

Function at 0x4274f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42751d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42751d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4296fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42977c
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42977b
push ebx
mov ebx, 0x483588
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402703
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402703
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42a5b8
mov byte [edi + esi], al
call fcn.00410a6e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42971e
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00405663
pop edi
pop ebp
ret 0x14
Function at 0x3453700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0345378f
jae 0x345370e
xor ecx, ecx
call fcn.0345378f
jae 0x345373d
xor eax, eax
call fcn.0345378f
jae 0x345374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0345378f
adc al, al
jae 0x345372f
jne 0x3453779
stosb byte es:[edi], al
jmp 0x3453711
call fcn.0345379b
sub ecx, ebx
jne 0x3453756
call fcn.03453799
jmp 0x3453775
lodsb al, byte [esi]
shr eax, 1
je 0x3453783
adc ecx, ecx
jmp 0x3453772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03453799
cmp eax, 0x7d00
jae 0x3453772
cmp ah, 5
jae 0x3453773
cmp eax, 0x7f
ja 0x3453774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3453711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x69ec286e
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x56e711c7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x106e8
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00010686
adc byte [edi + 0x458d66c0], cl
clc
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov edi, eax
cmp edi, esi
jl 0x10762
push 0x10882
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
cmp eax, esi
je 0x10759
lea ecx, [ebp - 4]
push ecx
push 1
push dword [eax]
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edi, eax
cmp edi, esi
jl 0x10759
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x109ee
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.000109b5
pop ebp
jmp fcn.00010906
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1007c200]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0x9dfc13ee
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
sub eax, 0x9dfc13ee
je 0x1000108c
jmp 0x1000103b
mov eax, dword [ebp - 0x24]
sub eax, 0xa0941823
je 0x100010ff
jmp 0x1000104e
mov eax, dword [ebp - 0x24]
sub eax, 0xac7d7515
je 0x100011a8
jmp 0x10001061
mov eax, dword [ebp - 0x24]
sub eax, 0x1db03c8
je 0x1000119c
jmp 0x10001074
mov eax, dword [ebp - 0x24]
sub eax, 0x3515bf70
je 0x100011b9
jmp 0x10001087
jmp 0x100011ea
mov ecx, dword [0x1007d550]
mov eax, dword [0x1007d54c]
mov edx, ecx
sub edx, 0xd313f524
sub edx, 1
add edx, 0xd313f524
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x3515bf70
mov ecx, 0xa0941823
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x100011ea
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
xor ecx, ecx
xor edi, edi
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
not byte [edi]
xor eax, eax
xor eax, 0x55
sub byte [edi], 0x73
add byte [edi], 0x53
nop
nop
imul byte [edi]
inc edi
loop 0x10001115
mov ecx, dword [0x1007d550]
mov eax, dword [0x1007d54c]
mov edx, ecx
sub edx, 0xa929d04f
sub edx, 1
add edx, 0xa929d04f
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x3515bf70
mov ecx, 0x1db03c8
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x100011ea
mov dword [ebp - 0x18], 0xac7d7515
jmp 0x100011ea
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1000f480
add esp, 0x1c
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
xor ecx, ecx
xor edi, edi
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
not byte [edi]
xor eax, eax
xor eax, 0x55
sub byte [edi], 0x73
add byte [edi], 0x53
nop
nop
imul byte [edi]
inc edi
loop 0x100011cf
mov dword [ebp - 0x18], 0xa0941823
jmp 0x10001025
Function at 0x10012d85
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10012dc4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012dc4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012dc4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10012dc4
cmp dword [ecx + 0x74], 0xe
jbe 0x10012dc4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10015ada
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 0x10015b77
push ebx
push esi
call fcn.10015aa3
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.10015a37
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015b24
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015b76
push edi
push eax
call fcn.10016a95
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015b44
call fcn.10014601
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015b75
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10015a37
add esp, 0x20
test eax, eax
jne 0x10015b63
push edi
call fcn.10014601
jmp 0x10015b6b
push ebx
call fcn.10014601
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 0x10015de4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e348
push 0x1001e340
push str.FlsAlloc
push 0x1f
call fcn.10015d00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015e18
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c150]
call esi
jmp 0x10015e1e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015e62
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e358
push 0x1001e350
push str.FlsGetValue
push 0x21
call fcn.10015d00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015e99
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015ea1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e360
push 0x1001e358
push str.FlsSetValue
push 0x22
call fcn.10015d00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015edb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001b400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b42d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b42d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x416420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4310cd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x43d100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43e4a8
mov dword [ebp - 0x24], 0x43e4a8
mov byte [ebp - 0x20], 0
call fcn.0041fa38
add esp, 4
test eax, eax
jne 0x416561
cmp dword [0x43e4d4], 0x7fffffff
je 0x416568
mov byte [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x43e488
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x43e488
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004125b0
mov eax, dword [eax + 4]
test eax, eax
je 0x416544
cmp eax, dword [0x43e48c]
je 0x416544
lea eax, [ebp + 8]
mov ecx, 0x43e488
push eax
call fcn.0041a150
push 8
mov esi, eax
call fcn.004202bf
add esp, 4
test eax, eax
je 0x416503
mov dword [eax], esi
mov dword [eax + 4], 5
jmp 0x416505
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x412900
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
je 0x416580
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x416579
push ecx
push eax
call fcn.0041d81f
add esp, 8
test eax, eax
jne 0x416579
push 0x43e4a8
call fcn.0041fa49
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 5
call fcn.0041da7e
push 6
mov dword [0x43e4d4], 0x7ffffffe
call fcn.0041da7e
push 1
call fcn.0041da7e
push 6
mov dword [ebp - 0x14], 0
call fcn.0041da7e
int3
Function at 0x416590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431121
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x43e4a8
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b0], 0x43e4a8
mov byte [ebp - 0x2ac], 0
call fcn.0041fa38
add esp, 4
test eax, eax
jne 0x41678f
cmp dword [0x43e4d4], 0x7fffffff
je 0x416796
mov byte [ebp - 0x2ac], 1
mov dword [ebp - 0x2a8], 0x43e488
mov edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
mov byte [ebp - 4], 1
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x43e488
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004125b0
mov eax, dword [eax + 4]
test eax, eax
je 0x416749
cmp eax, dword [0x43e48c]
je 0x416749
cmp dword [ebp + 0x2a8], 0
je 0x416695
lea eax, [ebp + 0x284]
mov ecx, 0x43e488
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041a150
mov ecx, eax
call fcn.00414090
lea eax, [ebp + 8]
mov ecx, 0x43e488
push eax
call fcn.0041a150
mov dword [ebp - 0x530], 2
lea esi, [ebp + 0xc]
mov ecx, 0x9e
mov dword [ebp - 0x298], eax
lea edi, [ebp - 0x528]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa0
lea esi, [ebp - 0x530]
lea edi, [ebp - 0x290]
rep movsd dword es:[edi], dword [esi]
push 0x288
call fcn.004202bf
add esp, 4
test eax, eax
je 0x4166f8
mov ecx, 0xa2
lea esi, [ebp - 0x298]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4166fa
xor eax, eax
mov dword [ebp - 0x2a4], eax
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x4127c0
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [ebp - 0x2a0], eax
test eax, eax
je 0x4167ae
mov ecx, dword [ebp - 0x29c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4167a7
push ecx
push eax
call fcn.0041d81f
add esp, 8
test eax, eax
jne 0x4167a7
push 0x43e4a8
call fcn.0041fa49
mov ecx, dword [ebp + 0x2a8]
add esp, 4
test ecx, ecx
je 0x416774
mov edx, dword [ecx]
lea eax, [ebp + 0x284]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204fa
mov esp, ebp
pop ebp
ret
push 5
call fcn.0041da7e
push 6
mov dword [0x43e4d4], 0x7ffffffe
call fcn.0041da7e
push 1
call fcn.0041da7e
push 6
mov dword [ebp - 0x29c], 0
call fcn.0041da7e
int3