joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449773
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4497a8
cmp edi, dword [esi + 0xc]
jge 0x4497a8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4497a8
cmp edi, dword [eax + 8]
jge 0x4497a8
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4497aa
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4498ae
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4498e2
jmp fcn.0043e730
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x449953
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x449a4c
cmp eax, dword [edi + 0xc]
jge 0x449a4c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4499a4
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x449a35
cmp dword [ebp + 0xc], ebx
je 0x449a35
jmp 0x4499ce
push 0x10
call fcn.0044963f
cmp eax, ebx
je 0x4499ba
mov ecx, eax
call fcn.004498a5
mov esi, eax
jmp 0x4499bc
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4499e5
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4499f5
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x449a07
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043e730
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00432d90
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x449a47
cmp ecx, dword [esi + 8]
jge 0x449a47
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x449a4d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x449b0b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x449b39
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x449b57
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00449a75
jmp 0x449b57
mov eax, dword [esi + 0x14]
test eax, eax
je 0x449b57
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00449a75
test edi, edi
mov eax, edi
jne 0x449b41
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5747ec]
test ecx, ecx
je 0x449c0a
jmp 0x449b0a
ret 8
Function at 0x41da20
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x41dba8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41da4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41da51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41da40
mov eax, 1
add ebx, ebx
jne 0x41da63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41da58
jne 0x41da74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41da58
xor ecx, ecx
sub eax, 3
jb 0x41da88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41dafa
mov ebp, eax
add ebx, ebx
jne 0x41da93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41daa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41dac4
inc ecx
add ebx, ebx
jne 0x41dab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41daa5
jne 0x41dac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41daa5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41dae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41dad5
jmp 0x41da46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41dae4
add edi, ecx
jmp 0x41da46
pop esi
mov edi, esi
mov ecx, 0x85d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41db02
cmp byte [edi], 1
jne 0x41db02
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 eax, ebx
loop 0x41db07
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41db76
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1da24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1da9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41db34
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1daa0]
or eax, eax
je 0x41db70
mov dword [ebx], eax
add ebx, 4
jmp 0x41db51
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41dba7
cmp al, 0xef
ja 0x41db9a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41db7c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41db89
popal
jmp 0x412200
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x41b2f8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b2fc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0xaf89cc], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x84c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41b300]
mov edx, dword [0x41b304]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xaf89cc], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xaf89c8]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0xaf89cc], 0x3eb
mov dword [0xaf89c8], eax
mov eax, dword [0xaf8920]
cmove eax, dword [ebp - 8]
mov dword [0xaf8920], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], edx
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [0xaf89c4], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0xaf89cc], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x40135a
push edx
push edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0xaf89cc], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jne 0x40127f
mov edi, dword [ebp - 0x28]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c624
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a5a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f55
mov dword [ebp - 0x14], eax
cmp dword [0x4541b0], esi
jne 0x40c717
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c6a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c7f7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c7f7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c7f7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4541b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4541b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4541b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4541c0], eax
test eax, eax
je 0x40c714
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4541bc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c73c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c72f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c751
push 4
pop eax
jmp 0x40c7f9
cmp dword [ebp - 0x14], esi
je 0x40c751
push dword [0x4541b0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c736
mov eax, dword [0x4541bc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c7af
cmp dword [0x4541c0], edi
je 0x40c7af
push eax
call ebx
push dword [0x4541c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c7af
test eax, eax
je 0x40c7af
call ecx
test eax, eax
je 0x40c7a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c7a4
test byte [ebp - 8], 1
jne 0x40c7af
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c7df
mov eax, dword [0x4541b4]
cmp eax, edi
je 0x40c7dc
push eax
call ebx
test eax, eax
je 0x40c7dc
call eax
mov esi, eax
test esi, esi
je 0x40c7dc
mov eax, dword [0x4541b8]
cmp eax, edi
je 0x40c7dc
push eax
call ebx
test eax, eax
je 0x40c7dc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4541b0]
call ebx
test eax, eax
je 0x40c7f7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c7f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040393e
mov esp, ebp
pop ebp
ret
Function at 0x40cdf6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40ce00
repz ret
jmp fcn.0040d09b

Function at 0x1067f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1067f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1067f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1067f06a
add dl, dl
jne 0x1067f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1067f0dc
xor eax, eax
add dl, dl
jne 0x1067f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1067f17d
add dl, dl
jne 0x1067f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1067f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1067f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1067f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1067f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1067f075
mov eax, 1
add dl, dl
jne 0x1067f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1067f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1067f0e1
sub eax, ebx
mov ebx, 1
jne 0x1067f128
mov ecx, 1
add dl, dl
jne 0x1067f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1067f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1067f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1067f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1067f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1067f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1067f136
cmp eax, 0x7d00
jae 0x1067f16d
cmp eax, 0x500
jb 0x1067f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1067f075
cmp eax, 0x7f
ja 0x1067f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1067f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1067f19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1067f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
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
mov ecx, 0x30c24666
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x128e0763
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x53c670b0
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x5da53394
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10001000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10189848
push 0x133000
push section..data
call fcn.10001830
push section..data
call fcn.10001080
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10001046
push dword [ebp + 8]
push ebx
call fcn.10001b70
add esp, 8
test eax, eax
jne 0x1000104b
push ebx
call fcn.10001d30
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
sub esp, 0x848
mov ecx, 0x212
mov edi, esp
mov esi, 0x10189000
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.10001d30
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100016b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10189880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [esi]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ecx
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x1000176d
cmp dword [ecx + 0x10], 0
push 0x10054c64
je 0x1000177f
jmp 0x10001796
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x36
call fcn.10003342
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x43
call fcn.10003342
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
push dword [eax + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
mov eax, 0x100017d0
ret

Function at 0x10001830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push edi
xor edi, edi
test ebx, ebx
jle 0x10001883
mov dword [ebp + 0xc], 0x6d9
push esi
nop dword [eax + eax]
mov eax, dword [ebp + 0x10]
mov esi, ecx
movsx eax, byte [edi + eax]
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add dl, 0x4f
xor byte [eax + ecx], dl
mov eax, 0xcccccccd
mul ecx
inc ecx
shr edx, 2
lea eax, [edx + edx*4]
lea edx, [edi + 1]
xor edi, edi
cmp esi, eax
cmovne edi, edx
cmp ecx, ebx
jl 0x10001850
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001890
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10189880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x100019c7
mov esi, dword [ecx + 0x24]
mov eax, esi
mov edi, esi
shr eax, 0x1d
shr edi, 0x1e
mov ebx, esi
and eax, 1
shr ebx, 0x1f
and edi, 1
test esi, 0x2000000
jne 0x100019d9
jmp 0x10001922
lea eax, [edi + eax*2]
lea eax, [ebx + eax*2]
mov eax, dword [eax*4 + 0x10189850]
mov dword [ebp - 0x20], eax
test esi, 0x4000000
je 0x10001942
or eax, 0x200
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100019f5
jmp 0x10001a11
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10054c64
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x4b
call fcn.10003342
push 0x10054c64
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x10
call fcn.10003342
push 0x10054c64
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - 0x2c], 0xf
call fcn.10003342
int3

Function at 0x100020c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x18], 2
jle 0x100020f2
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x6c656853
push eax
mov dword [ebp - 4], 0x78656c
call fcn.10001000
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000de11
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000de50
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000de50
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000de50
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000de50
cmp dword [ecx + 0x74], 0xe
jbe 0x1000de50
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002d28b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10189880]
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 0x1002d2d6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1002d72b
test al, al
jne 0x1002d2d0
sub edx, 2
cmp edx, edi
jne 0x1002d2b6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1002d2f8
lea eax, [edi + 2]
cmp edx, eax
je 0x1002d2f8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1002cf52
add esp, 0x10
jmp 0x1002d3f2
push esi
lea ecx, [ebp - 0x255]
call fcn.1002d72b
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 0x1002d33b
push dword [ebp - 0x25c]
jmp 0x1002d2e8
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 0x1002d378
cmp word [ebp - 0x226], 0
je 0x1002d399
cmp word [ebp - 0x226], ax
jne 0x1002d378
cmp word [ebp - 0x224], 0
je 0x1002d399
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1002cf52
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1002d3e5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1002d352
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1002d3cd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1002d3f2
push 0x1002c9a2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10036670
add esp, 0x10
jmp 0x1002d3c2
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.10002144
leave
ret