joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001331f
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 4]
push eax
push 0x1001c608
push 1
push esi
push 0x1001c6d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100133a7
push edi
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
lea edi, [ebp - 8]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push ecx
call dword [edx + 0xc]
pop edi
test eax, eax
js 0x100133a7
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x100133a7
push 8
call fcn.1000d95a
pop ecx
cmp eax, esi
jne 0x100133c5
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x100133b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x100133c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x100133d0
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
pop esi
leave
ret

Function at 0x100134a8
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.ROOTCIMV2
xor esi, esi
call fcn.1001331f
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x1001350f
mov edi, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push str.Caption
push str.SELECT__FROM_Win32_OperatingSystem
call fcn.100133ff
add esp, 0xc
test eax, eax
je 0x10013505
push dword [ebp - 0x10]
call fcn.1000c790
mov esi, eax
pop ecx
test esi, esi
je 0x100134fb
push 0x1001cba4
push esi
call dword [0x10028a3c]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 4]
call fcn.100133d3
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1001357e
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.ROOTCIMV2
xor esi, esi
call fcn.1001331f
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x100135e5
mov edi, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push str.Name
push str.SELECT__FROM_Win32_Processor
call fcn.100133ff
add esp, 0xc
test eax, eax
je 0x100135db
push dword [ebp - 0x10]
call fcn.1000c790
mov esi, eax
pop ecx
test esi, esi
je 0x100135d1
push 0x1001cba4
push esi
call dword [0x10028a3c]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 4]
call fcn.100133d3
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x100149e8
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x100289fc], 0
je 0x10014a38
mov eax, dword [0x1002898c]
test eax, eax
je 0x10014a38
push eax
mov dword [0x100289f8], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x100289fc]
push 0x4e20
push dword [eax]
call dword [0x10028ba4]
test eax, eax
je 0x10014a38
mov eax, dword [0x100289fc]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x100289fc]
and dword [eax], 0
ret

Function at 0x10014c7b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, eax
xor ebx, ebx
push ebx
push dword [edi + 0x12]
push dword [edi + 0xe]
push dword [edi + 0xa]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10014cc6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [edi + 0xa]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 8]
or dword [edi + 0xa], 0xffffffff
push 2
mov dword [edi + 0x12], ebx
call fcn.10014b7e
pop ecx
xor ecx, ecx
test eax, eax
setns cl
lea eax, [ecx - 1]
jmp 0x10014d1b
sub dword [edi + 0x12], eax
mov ecx, dword [edi + 0x12]
push esi
mov esi, dword [edi + 0xe]
lea edx, [esi + eax]
mov eax, esi
call fcn.1000da39
mov al, byte [edi + 0x20]
test al, 0x20
je 0x10014d03
mov ecx, dword [edi + 0x16]
shr ecx, 2
cmp dword [edi + 0x12], ecx
ja 0x10014d03
mov esi, dword [ebp + 8]
push ebx
push ebx
push dword [edi + 6]
and al, 0xdf
push 7
mov byte [edi + 0x20], al
call fcn.10014dc4
add esp, 0x10
test byte [edi + 0x20], 4
pop esi
je 0x10014d19
cmp dword [edi + 0x12], ebx
jne 0x10014d19
mov eax, dword [ebp + 8]
push ebx
call fcn.10014b7e
pop ecx
xor eax, eax
pop edi
pop ebx
pop ebp
ret

Function at 0x10014d1f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, eax
mov eax, dword [0x10028990]
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [edi + 6], ebx
jne 0x10014d3b
or eax, 0xffffffff
jmp 0x10014da0
push esi
cmp dword [ebp + 8], ebx
je 0x10014d88
push ebx
push 0x1000
lea esi, [edi + 0x2b]
push esi
push dword [edi + 0xa]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x10014da8
cmp eax, 0xffffffff
jne 0x10014da4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10014d71
cmp eax, 0x2733
jne 0x10014da8
xor eax, eax
add dword [edi + 0x21], eax
push eax
push esi
push dword [edi + 6]
mov esi, dword [ebp - 4]
push 4
call fcn.10014dc4
add esp, 0x10
cmp dword [ebp + 0xc], ebx
je 0x10014d9d
cmp dword [edi + 0x12], ebx
jbe 0x10014d9d
push dword [ebp - 4]
mov eax, edi
call fcn.10014c7b
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
cmp eax, ebx
jge 0x10014d73
push dword [edi + 0xa]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 4]
or dword [edi + 0xa], 0xffffffff
push 2
mov dword [edi + 0x12], ebx
call fcn.10014b7e
jmp 0x10014d9c
Function at 0x10014e83
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x10028990]
push ebx
push esi
lea esi, [ecx + 0x2464]
mov edx, dword [esi]
push edi
xor eax, eax
xor edi, edi
mov dword [ebp - 4], ecx
mov ebx, 0x20000
cmp edx, 0x1fff6
ja 0x10014efb
mov edi, ebx
sub edi, edx
mov eax, 0x100a
cmp edi, eax
ja 0x10014ebb
mov eax, edi
push 0
push eax
mov eax, dword [ecx + 0x2460]
add eax, edx
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10014edc
or eax, 0xffffffff
jmp 0x10014f5c
cmp eax, 0xffffffff
jne 0x10014ef9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10014ef5
cmp eax, 0x2733
jne 0x10014ed4
xor eax, eax
jmp 0x10014f5c
mov edi, eax
mov ecx, dword [esi]
lea edx, [ecx + edi]
cmp edx, ebx
jbe 0x10014f0c
mov dword [esi], 4
jmp 0x10014f10
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [esi]
mov ebx, dword [ebp - 4]
mov edi, dword [ebx + 0x2460]
cmp ecx, 0xa
jb 0x10014f59
mov eax, dword [edi + 6]
test eax, eax
je 0x10014f61
cmp eax, 0x100a
ja 0x10014f65
cmp ecx, eax
jb 0x10014f59
push ebx
call fcn.10013f6a
pop ecx
test eax, eax
js 0x10014f6a
mov eax, dword [edi + 6]
sub dword [esi], eax
mov eax, dword [ebx + 0x2460]
mov edx, dword [edi + 6]
mov ecx, dword [esi]
add edx, eax
call fcn.1000da39
cmp dword [esi], 0
ja 0x10014f10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push 0xfffffffffffffff9
jmp 0x10014f67
push 0xfffffffffffffff8
pop eax
jmp 0x10014f5c
push 0xfffffffffffffffd
jmp 0x10014f67
Function at 0x100154cb
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0xa]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [ebp - 0x7c]
push 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x80], 0x1000005
call fcn.1000da17
lea eax, [ebp - 0x78]
push 2
push eax
lea eax, [ebp - 0x12]
call fcn.1000da17
push 0xa
lea eax, [ebp - 0x80]
push eax
push dword [edi + 6]
push 4
call fcn.10014dc4
add esp, 0x20
mov byte [edi + 0x20], 2
xor eax, eax
leave
ret
Function at 0x1001aa0f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push ebx
lea ebx, [edx + eax - 0x21524111]
push esi
mov eax, ebx
push edi
mov esi, ebx
mov dword [ebp - 4], eax
cmp edx, 0xc
jbe switch.0x1001ab01
lea eax, [edx - 0xd]
push 0xc
xor edx, edx
pop edi
div edi
inc eax
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
movzx edi, byte [ecx + 4]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 5]
add edi, esi
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 0xa]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 0xb]
movzx esi, byte [ecx + 3]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 9]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 8]
add edx, ebx
movzx ebx, byte [ecx + 2]
shl esi, 8
add esi, ebx
movzx ebx, byte [ecx + 1]
shl esi, 8
add esi, ebx
movzx ebx, byte [ecx]
shl esi, 8
add esi, ebx
shl eax, 8
add eax, edx
sub esi, eax
add esi, dword [ebp - 4]
mov edx, eax
rol edx, 4
xor edx, esi
add eax, edi
sub edi, edx
mov esi, edx
rol esi, 6
xor esi, edi
add edx, eax
sub eax, esi
mov edi, esi
add esi, edx
rol edi, 8
xor edi, eax
sub edx, edi
mov eax, edi
rol eax, 0x10
xor eax, edx
add edi, esi
sub esi, eax
mov edx, eax
ror edx, 0xd
xor esi, edx
mov edx, dword [ebp + 8]
add eax, edi
mov ebx, esi
sub edi, esi
rol ebx, 4
sub edx, 0xc
xor ebx, edi
add esi, eax
add ecx, 0xc
dec dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edx
jne 0x1001aa3f
cmp edx, 0xc
ja 0x1001ab6a
jmp dword [edx*4 + 0x1001abbb]
movzx edx, byte [ecx + 0xb]
shl edx, 0x18
add ebx, edx
movzx edx, byte [ecx + 0xa]
shl edx, 0x10
add ebx, edx
movzx edx, byte [ecx + 9]
shl edx, 8
add ebx, edx
movzx edx, byte [ecx + 8]
add ebx, edx
movzx edx, byte [ecx + 7]
shl edx, 0x18
add esi, edx
movzx edx, byte [ecx + 6]
shl edx, 0x10
add esi, edx
movzx edx, byte [ecx + 5]
shl edx, 8
add esi, edx
movzx edx, byte [ecx + 4]
add esi, edx
movzx edx, byte [ecx + 3]
shl edx, 0x18
add eax, edx
movzx edx, byte [ecx + 2]
shl edx, 0x10
add eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
add eax, edx
movzx ecx, byte [ecx]
add eax, ecx
xor ebx, esi
mov ecx, esi
rol ecx, 0xe
sub ebx, ecx
mov edx, ebx
rol edx, 0xb
mov ecx, ebx
xor ecx, eax
sub ecx, edx
xor esi, ecx
mov eax, ecx
ror eax, 7
sub esi, eax
xor ebx, esi
mov eax, esi
rol eax, 0x10
sub ebx, eax
mov eax, ebx
mov edi, eax
mov edx, eax
xor edx, ecx
rol edi, 4
sub edx, edi
mov ecx, edx
rol ecx, 0xe
xor esi, edx
sub esi, ecx
mov ecx, esi
ror ecx, 8
xor eax, esi
sub eax, ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, ebx
jmp 0x1001abaf
Function at 0x1001b8d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x1001b8f5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x1001b90d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x1001b93c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x1001b97e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x1001ba52
sub edx, 0x10000
js 0x1001ba52
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x1001b964
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x1001b964
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x1001b9d5
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x1001b9d2
add edx, 8
jne 0x1001b9b9
jmp 0x1001ba43
add edx, 4
test eax, 0xffff
jne 0x1001b9e2
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x1001ba43
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x1001ba16
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x1001b964
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x1001ba52
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x1001b964
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x1001ba63
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0xc86854
Capabilities:
Encode data using xor

Disassembly:
jmp 0xc8685e
pushal
call 0xc86864
pop ebp
sub ebp, 0x10
sub ebp, 0x886854
jmp 0xc8687a
mov eax, 0x886854
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a3
mov edx, 0x40fbf2ca
xor byte [eax], dl
inc eax
dec ecx
jne 0xc86891
jmp 0xc868a4
inc ecx
pop es
inc ecx
inc ebx
test dl, 0xca
retf 0xb4b
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x48c3c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040607a
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403e46
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48d2f0], eax
push 0x27
push 0x48be18
push 0x547
mov esi, 0x48be40
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x48d2f0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403ea6
call fcn.00403d5c
xor eax, eax
pop ecx
ret 0x10
Function at 0x40587d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40589e
jl 0x405895
test edi, edi
jne 0x40589e
xor eax, eax
xor edx, edx
jmp 0x40595f
cmp dword [ebx + 0x38], 0
je 0x4058b3
push eax
push edi
push dword [ebp + 8]
call fcn.00405965
jmp 0x40595f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4058fa
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4058fa
cmp eax, edi
jb 0x4058d4
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406fc0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405900
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405954
mov ecx, ebx
call fcn.004050cc
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40593f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040ece6
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405954
jmp 0x405912
test edx, edx
je 0x405954
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040ece6
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406e06
Capabilities:
Parse pe header

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

Function at 0x414c07
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4261f0
push 0x4261e8
push str.FlsAlloc
push 0x1e
call fcn.00414ad1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414c3b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42212c]
call esi
jmp 0x414c41
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414c85
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426200
push 0x4261f8
push str.FlsGetValue
push 0x20
call fcn.00414ad1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414cbc
push dword [ebp + 8]
mov ecx, esi
call dword [0x42212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x417fb0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417e21

Function at 0x4183aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406f70
mov eax, dword [0x48c3c0]
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.0041612b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4183ec
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418548
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421830
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 + 0x48dd90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004193a2
mov ecx, dword [esi*4 + 0x48dd90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418541
cmp eax, dword [edi + ecx + 0x24]
jne 0x418541
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418541
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004193a2
add esp, 0x14
test edx, edx
jl 0x418541
jg 0x4184b7
test eax, eax
jb 0x418541
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418541
jl 0x4184d1
cmp dword [ebp - 0x1008], eax
ja 0x418541
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4184ef
test ebx, ebx
je 0x418528
cmp ecx, edi
jae 0x418528
mov al, byte [ecx]
cmp al, 0xd
jne 0x418509
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418515
cmp byte [ecx + 1], 0xa
jne 0x418515
inc ecx
jmp 0x418515
movzx eax, al
movsx eax, byte [eax + 0x48c698]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4184ef
cmp edx, ebx
jne 0x4184ef
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418546
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040607a
leave
ret
Function at 0x41883f
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 + 0x48dd90]
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 0x41887f
cmp byte [ebx], 0xa
jne 0x41887f
or byte [eax + edi + 0x28], 4
jmp 0x418884
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418982
mov al, byte [edx]
cmp al, 0x1a
je 0x418964
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4188b3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4188d8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4188e2
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 0x418895
jmp 0x418982
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 0x41895f
cmp dword [ebp - 0xc], 0
je 0x41895f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48dd90]
test byte [eax + edi + 0x28], 0x48
je 0x418939
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418924
mov byte [esi], dl
jmp 0x418935
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48dd90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418982
cmp byte [ebp - 1], 0xa
jne 0x418948
cmp esi, ebx
jne 0x418948
mov byte [esi], 0xa
jmp 0x418981
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004193c0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418982
mov byte [esi], 0xd
jmp 0x418981
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48dd90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41897e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418982
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret