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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x43202c
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x432024]
sub esp, 4
test ebx, ebx
je 0x414a7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x414a74
test esi, esi
je 0x414a74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x414a50
mov dword [esp], 0x43202c
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x414c60
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x414cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x414d84
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x414cee
cmp eax, 4
jne 0x414d10
test esi, esi
je 0x414d02
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x414cf4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x414d4f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x414d41
cmp ecx, 0x40
je 0x414d02
cmp ecx, 4
je 0x414d02
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00414c60
lea esi, [esi]
Function at 0x4170c0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00414900
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4170fb
jmp 0x41714e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4170f8
cmp al, 9
je 0x4170f8
cmp al, 0x22
jne 0x417137
lea esi, [esi]
mov edx, ebx
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 0x22
je 0x417125
test al, al
jne 0x417110
cmp al, 0x22
jne 0x417143
lea ebx, [edx + 2]
jmp 0x417143
cmp al, 9
je 0x417143
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x417130
jmp 0x417143
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x417140
cmp al, 9
je 0x417140
mov esi, 0xa
test byte [ebp - 0x30], 1
je 0x41715d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00402d00

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40c9b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40c9c8
pop dword [ebp - 0x3c]
mov eax, 0x40c9c8
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3b6da
push 0
mov eax, 0x11ffb532
add eax, 0xee412bee
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xe3bd2183
sub ecx, 0xe3bcd10f
xor ebx, ebx
add ebx, eax
mov esi, 0x69dcc847
add esi, 0x9664afb9
add esi, dword [ebp - 0x3c]
mov edi, 0x2d2d7404
sub edi, 0x909ca030
sub dword [ebp - 0x30], 0xf8310e39
mov edx, dword [esi]
mov dword [ebp - 0x14], 0xe532009c
add edx, edi
add dword [ebp - 0x28], 0x9835735c
mov dword [ebx], edx
xor dword [ebp - 0x30], eax
add ebx, 4
add esi, 0xc6041a7a
sub esi, 0xc6041a76
loop 0x40ca24
add eax, 0x76b2206
sub eax, 0x769ed63
mov ebx, eax
add eax, 0xa42c4c0
sub eax, 0xa42c4bb
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401c66
pop dword [ebp - 0x50]
mov eax, 0x3c6aa82e
add eax, 0xc3d57438
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x98278567
sub dword [ebp - 0x60], 0x49d5401c
mov dword [ebp - 0x5c], 0xa5fbaea3
sub dword [ebp - 0x5c], 0x73c8625e
mov dword [ebp - 0x58], 0xe99b1fc7
add dword [ebp - 0x58], 0x62b12467
mov dword [ebp - 0x54], 0x9176ae26
sub dword [ebp - 0x54], 0x9176ae26
lea eax, [ebp - 0x60]
push eax
mov eax, 0x3d25dc2
sub eax, 0x3922d6e
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x737e6722
sub dword [ebp - 0x60], 0xff0bfdcc
mov dword [ebp - 0x5c], 0xf4f6694f
add dword [ebp - 0x5c], 0x4c75f826
mov dword [ebp - 0x58], 0x842c9247
sub dword [ebp - 0x58], 0x20bd25db
mov dword [ebp - 0x54], 0xd2217e3a
sub dword [ebp - 0x54], 0xd2217e3a
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x5f8533fc
sub eax, 0x5f4503d0
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3d362
push 0
call eax
mov ecx, 0x5523662a
add ecx, 0xaadcfcc2
mov esi, eax
mov edx, 0x6ea8de61
sub edx, 0x6e686e61
add edx, dword [ebp - 0x50]
mov edi, 0xbc23b5b9
xor dword [ebp - 0x10], 0x9075d0e1
mov ebx, dword [edx]
add dword [ebp - 0x28], ebx
xor ebx, edi
sub dword [ebp - 0x20], esi
mov dword [esi], ebx
sub dword [ebp - 0x1c], edx
add esi, 0x14c98418
sub esi, 0x14c98414
add edx, 0x17f35e85
add edx, 0xe80ca17f
loop 0x401d82
add eax, 0x14fbc7f9
sub eax, 0x14fa4976
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5175e950
add ecx, 0xaeca16b0
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x40ec28
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
jmp 0x40ece7
cmp dword [esi + 0x10], 0x1000
jne 0x40ecd3
test byte [esi + 0x15], 1
jne 0x40ecd3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec84
cmp ebp, 2
je 0x40ec84
cmp ebp, 0x10
je 0x40ec84
cmp ebp, 0x20
jne 0x40eca0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec20
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40eca4
cmp byte [esp + 4], 0
je 0x40ecd3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec59
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100010a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
add edx, 0x78
mov dword [ebp - 0x10], edx
mov eax, 8
imul ecx, eax, 0
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
add edx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0
jmp 0x10001129
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x24]
jae 0x100011ac
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax + edx*4], 0
jne 0x1000113f
jmp 0x10001120
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0xc], 0
jmp 0x1000115d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x28]
jae 0x100011a7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
movzx edx, word [ecx + eax*2]
cmp edx, dword [ebp - 4]
jne 0x100011a5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.10001050
add esp, 8
test eax, eax
jne 0x100011a5
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp + 0xc]
jmp 0x100011ae
jmp 0x10001154
jmp 0x10001120
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100011c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x1004f1d0
mov eax, dword [ebp + 8]
push eax
call fcn.1000d6a4
add esp, 8
mov dword [ebp - 0x10], eax
push 2
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1000e028
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000e86a
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.1000e980
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10028aac
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000d96a
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
push 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call section..text
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
sub edx, 5
shr edx, 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ecx], edx
push 0x14
mov edx, dword [ebp - 4]
add edx, 0x18
push edx
lea eax, [ebp - 0x30]
push eax
call section..text
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call fcn.100018a5
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov dword [ebp - 8], 0
jmp 0x1000129d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
jge 0x100012e5
cmp dword [ebp - 8], 0x2c
jne 0x100012b2
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp + edx - 0x30]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x14
jl 0x100012e3
mov dword [ebp - 0xc], 0
jmp 0x10001294
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax]
sub ecx, 0x2c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call section..text
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10028a91
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10001390
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [str.hpock.png]
mov dword [ebp - 0x34], ecx
mov edx, dword [0x1004f1d8]
mov dword [ebp - 0x30], edx
mov ax, word [0x1004f1dc]
mov word [ebp - 0x2c], ax
push 0x104
lea ecx, [ebp - 0x240]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x240]
push edx
call fcn.10001330
add esp, 4
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.1000d060
add esp, 8
push 0x1004f1e0
lea edx, [ebp - 0x13c]
push edx
call fcn.1000d070
add esp, 8
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.1000d070
add esp, 8
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.100011c0
add esp, 0xc
call fcn.100017d0
mov dword [0x100599e8], eax
mov dword [0x100599ec], edx
mov byte [ebp - 0x18], 0x4e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x50
mov byte [ebp - 0x15], 0x72
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x63
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0x56
mov byte [ebp - 0xe], 0x69
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x75
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x6c
mov byte [ebp - 8], 0x4d
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x6d
mov byte [ebp - 5], 0x6f
mov byte [ebp - 4], 0x72
mov byte [ebp - 3], 0x79
mov byte [ebp - 2], 0
push 0x17
lea edx, [ebp - 0x18]
push edx
push 0x100599f4
call section..text
add esp, 0xc
mov eax, dword [0x100599ec]
push eax
mov ecx, dword [0x100599e8]
push ecx
push 0x100599f4
call fcn.100010a0
add esp, 0xc
mov dword [0x100599f0], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x38]
push eax
push 0x40
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0xffffffffffffffff
call dword [0x100599f0]
call dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret

Function at 0x100017d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x1000e586
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004ae50
mov eax, dword [0x10059014]
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.1002ef52
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1000e5c8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1000e724
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004ada0
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 + 0x1005a288]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003022e
mov ecx, dword [esi*4 + 0x1005a288]
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 0x1000e71d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1000e71d
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 0x1000e71d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003022e
add esp, 0x14
test edx, edx
jl 0x1000e71d
jg 0x1000e693
test eax, eax
jb 0x1000e71d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000e71d
jl 0x1000e6ad
cmp dword [ebp - 0x1008], eax
ja 0x1000e71d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1000e6cb
test ebx, ebx
je 0x1000e704
cmp ecx, edi
jae 0x1000e704
mov al, byte [ecx]
cmp al, 0xd
jne 0x1000e6e5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1000e6f1
cmp byte [ecx + 1], 0xa
jne 0x1000e6f1
inc ecx
jmp 0x1000e6f1
movzx eax, al
movsx eax, byte [eax + 0x10059130]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1000e6cb
cmp edx, ebx
jne 0x1000e6cb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1000e722
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10002959
leave
ret

Function at 0x10029184
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100291c3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100291c3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100291c3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100291c3
cmp dword [ecx + 0x74], 0xe
jbe 0x100291c3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002d47a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10051134
push 0x1005112c
push str.FlsAlloc
push 0x1f
call fcn.1002d148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d4ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004f17c]
call esi
jmp 0x1002d4b4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002d4f8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10051144
push 0x1005113c
push str.FlsGetValue
push 0x21
call fcn.1002d148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d52f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004f17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002d537
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005114c
push 0x10051144
push str.FlsSetValue
push 0x22
call fcn.1002d148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d571
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004f17c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002ef79
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 + 0x1005a288]
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 0x1002efb9
cmp byte [ebx], 0xa
jne 0x1002efb9
or byte [edi + eax + 0x28], 4
jmp 0x1002efbe
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 0x1002f0bd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002f0a0
inc eax
cmp dl, 0xd
je 0x1002efea
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1002f010
cmp eax, ecx
jae 0x1002f01e
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 0x1002efd2
jmp 0x1002f0bd
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 0x1002f09b
cmp dword [ebp - 0x10], 0
je 0x1002f09b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1005a288]
test byte [eax + edi + 0x28], 0x48
je 0x1002f075
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002f060
mov byte [esi], dl
jmp 0x1002f071
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1005a288]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002f0bd
cmp byte [ebp - 1], 0xa
jne 0x1002f084
cmp esi, ebx
jne 0x1002f084
mov byte [esi], 0xa
jmp 0x1002f0bc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003024c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002f0bd
mov byte [esi], 0xd
jmp 0x1002f0bc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1005a288]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002f0ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002f0bd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret