joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a3da0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
push ebx
push esi
push edi
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xc]
jne 0x100a3de6
mov edx, str.ERROR:
mov ecx, 0x100e5138
call fcn.10020040
mov edx, str.BlockHash::AddBlock___called_before_BlockHash::Init__
mov ecx, eax
call fcn.10020040
push eax
call fcn.10093d20
add esp, 4
cmp byte [0x100e6464], 0
je 0x100a3f30
jmp 0x100a3f37
mov esi, dword [edx + 0x34]
mov eax, dword [edx + 4]
inc esi
shr eax, 4
cmp esi, eax
jl 0x100a3e36
dec eax
mov edx, str.ERROR:
push eax
push ecx
push esi
push ecx
mov ecx, 0x100e5138
call fcn.10020040
mov edx, str.BlockHash::AddBlock___called_with_block_number
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
mov edx, str._that_is_past_last_block
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
jmp 0x100a3dcb
mov edi, dword [edx + 0x14]
cmp dword [edi + esi*4], 0xffffffff
lea eax, [edi + esi*4]
je 0x100a3e87
push dword [eax]
mov edx, str.ERROR:
push ecx
push esi
push ecx
mov ecx, 0x100e5138
call fcn.10020040
mov edx, str.Internal_error_in_BlockHash::AddBlock__:_block_number_
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
mov edx, str.__next_block_should_be__1_but_is
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
jmp 0x100a3dcb
mov ecx, dword [edx + 0x2c]
and ecx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
jns 0x100a3eaa
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x20]
mov dword [eax + esi*4], esi
mov dword [edx + 0x34], esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [edx + 0x20]
mov eax, dword [eax + ebx*4]
cmp dword [edi + eax*4], 0xffffffff
je 0x100a3f24
push dword [edi + eax*4]
mov edx, str.ERROR:
push ecx
push eax
push ecx
push ebx
push ecx
mov ecx, 0x100e5138
call fcn.10020040
mov edx, str.Internal_error_in_BlockHash::AddBlock__:_first_matching_block_
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
mov edx, str.__last_matching_block_
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
mov edx, str.__next_block_should_be__1_but_is
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
push eax
call fcn.10093d20
add esp, 4
call fcn.10091ea0
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov dword [edi + eax*4], esi
mov eax, dword [edx + 0x20]
mov dword [eax + ebx*4], esi
mov dword [edx + 0x34], esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, 0x100e5138
call fcn.10023920
push 1
call fcn.100adaa2
int3
Function at 0x100a3f50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
cmp edx, eax
jle 0x100a3fbc
push eax
push ecx
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x100e5138
call fcn.10020040
mov edx, str.BlockHash::AddAllBlocksThroughIndex___called_with_index
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
mov edx, str._higher_than_end_index
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.10046990
push eax
call fcn.10093d20
add esp, 4
cmp byte [0x100e6464], 0
je 0x100a4083
jmp 0x100a408a
mov ecx, dword [ebx + 0x34]
shl ecx, 4
cmp edx, ecx
jg 0x100a4013
push ecx
push ecx
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x100e5138
call fcn.10020040
mov edx, str.BlockHash::AddAllBlocksThroughIndex___called_with_index
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
mov edx, str.___last_index_added__
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
mov edx, 0x100fbc48
mov ecx, eax
call fcn.10020040
jmp 0x100a3fa1
cmp eax, 0x10
jb 0x100a4083
add eax, 0xfffffff0
cmp edx, eax
jle 0x100a4022
lea edx, [eax + 1]
mov eax, dword [ebx]
add edx, eax
mov dword [ebp + 8], edx
lea edi, [eax + 0x10]
add edi, ecx
cmp edi, edx
jae 0x100a4083
movzx eax, byte [edi]
lea edx, [edi + 3]
movzx ecx, byte [edi + 1]
mov esi, 7
imul eax, eax, 0x101
add eax, ecx
lea esp, [esp]
movzx ecx, byte [edx - 1]
lea edx, [edx + 2]
imul eax, eax, 0x101
add ecx, eax
imul eax, ecx, 0x101
movzx ecx, byte [edx - 2]
add eax, ecx
and eax, 0x7fffff
dec esi
jne 0x100a4050
push eax
mov ecx, ebx
call fcn.100a3da0
add edi, 0x10
cmp edi, dword [ebp + 8]
jb 0x100a4032
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, 0x100e5138
call fcn.10023920
push 1
call fcn.100adaa2
int3

Function at 0x100a4120
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
shr eax, 4
cmp edx, eax
jb 0x100a4170
push edx
push ecx
mov edx, str.ERROR:
mov ecx, 0x100e5138
call fcn.10020040
mov edx, str.NextMatchingBlock_called_for_invalid_block_number
mov ecx, eax
call fcn.10020040
add esp, 4
mov ecx, eax
call fcn.1004d6e0
push eax
call fcn.10093d20
add esp, 4
cmp byte [0x100e6464], 0
jne 0x100a4182
or eax, 0xffffffff
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
push dword [ebp + 0xc]
push dword [eax + edx*4]
call fcn.100a40a0
pop ebp
ret 8
mov ecx, 0x100e5138
call fcn.10023920
push 1
call fcn.100adaa2
int3
Function at 0x100a4bd0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, 0x100e6f40
mov word [0x100e7440], 0
push esi
dec eax
mov word [0x100e6f40], 0x301
push edi
mov edi, 0x100e6f40
mov byte [0x100e7443], 1
mov ebx, 2
sub edi, eax
lea esi, [eax + 2]
mov cl, byte [esi]
lea esi, [esi + 1]
mov dl, cl
mov al, cl
and dl, 0x80
neg dl
sbb dl, dl
add al, al
xor al, cl
and dl, 0x1b
xor al, dl
mov byte [edi + esi - 1], al
movzx eax, al
mov byte [eax + 0x100e7440], bl
inc ebx
cmp ebx, 0x100
jl 0x100a4c05
mov byte [0x100e6cc0], 0x63
mov ebx, 1
mov byte [0x100e6e23], 0
jmp 0x100a4c50
movzx eax, bl
mov ecx, 0x100e703f
movzx eax, byte [eax + 0x100e7440]
sub ecx, eax
mov cl, byte [ecx]
mov dl, cl
rol dl, 1
xor cl, dl
rol dl, 1
xor cl, dl
rol dl, 1
mov al, dl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x100e6cc0], al
movzx eax, al
mov byte [eax + 0x100e6dc0], bl
inc ebx
cmp ebx, 0x100
jl 0x100a4c50
mov al, 1
mov edx, 0x100e6ec0
movzx ecx, al
mov dword [edx], ecx
mov cl, al
and cl, 0x80
neg cl
sbb cl, cl
add al, al
and cl, 0x1b
add edx, 4
xor al, cl
cmp edx, 0x100e6f38
jl 0x100a4c98
mov ecx, dword [0x100031ac]
xor esi, esi
mov edi, 0xff
mov ah, byte [esi + 0x100e6cc0]
mov bl, ah
mov bh, ah
and bl, 0x80
mov al, bl
neg al
sbb al, al
add bh, bh
and al, 0x1b
mov dl, bh
xor dl, al
xor dl, ah
neg bl
movzx edx, dl
sbb bl, bl
movzx eax, ah
shl edx, 8
and bl, 0x1b
or edx, eax
xor bh, bl
mov bl, byte [esi + 0x100e6dc0]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x100e7040], edx
test cl, cl
je 0x100a4d3c
test bl, bl
je 0x100a4d3c
movzx eax, cl
movzx edx, bl
movzx eax, byte [eax + 0x100e7440]
movzx edx, byte [edx + 0x100e7440]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x100e6f40]
mov byte [ebp - 1], al
jmp 0x100a4d40
mov byte [ebp - 1], 0
test ch, ch
je 0x100a4d6c
test bl, bl
je 0x100a4d6c
movzx eax, ch
movzx edx, bl
movzx eax, byte [eax + 0x100e7440]
movzx edx, byte [edx + 0x100e7440]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x100e6f40]
mov byte [ebp - 2], al
jmp 0x100a4d70
mov byte [ebp - 2], 0
mov al, byte [0x100031ae]
test al, al
je 0x100a4d9e
test bl, bl
je 0x100a4d9e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x100e7440]
movzx edx, byte [edx + 0x100e7440]
add eax, edx
cdq
idiv edi
mov bh, byte [edx + 0x100e6f40]
jmp 0x100a4da0
xor bh, bh
mov al, byte [0x100031af]
test al, al
je 0x100a4dce
test bl, bl
je 0x100a4dce
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x100e7440]
movzx edx, byte [edx + 0x100e7440]
add eax, edx
cdq
idiv edi
mov bl, byte [edx + 0x100e6f40]
jmp 0x100a4dd0
xor bl, bl
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 2]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
movzx eax, bl
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x100e68c0], edx
inc esi
cmp esi, 0x100
jl 0x100a4cc5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100cdd60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cde30
push 0xffffffffffffffff
push 0x100e3b98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cde69
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cde76
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cdedd
jmp 0x100cdeac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cdf1a
test edi, edi
jne 0x100cdf20
push 0x100cda30
push 0x100e6378
call fcn.100cd6d0
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cdedd
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cdf06
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cdf06
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cdf58
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cdf49
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cdf20
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cdea0
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cdfb7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cdf9c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cdfb7
jmp 0x100cdf90
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cdf90
jmp 0x100cdfb7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cdfb5
cmp esi, dword [eax + 8]
jne 0x100cdfb5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cdfa5
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cdfcb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cdfcb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cda60
cmp esi, ebx
jne 0x100cdf70
mov ebp, dword [esp + 0x14]
jmp 0x100cdea0
Function at 0x100cde30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cde30
push 0xffffffffffffffff
push 0x100e3b98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cde69
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cde76
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cdedd
jmp 0x100cdeac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cdf1a
test edi, edi
jne 0x100cdf20
push 0x100cda30
push 0x100e6378
call fcn.100cd6d0
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cdedd
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cdf06
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cdf06
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cdf58
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cdf49
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cdf20
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cdea0
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cdfb7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cdf9c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cdfb7
jmp 0x100cdf90
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cdf90
jmp 0x100cdfb7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cdfb5
cmp esi, dword [eax + 8]
jne 0x100cdfb5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cdfa5
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cdfcb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cdfcb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cda60
cmp esi, ebx
jne 0x100cdf70
mov ebp, dword [esp + 0x14]
jmp 0x100cdea0
Function at 0x403c64
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409028]
jne 0x403c6e
repz ret
jmp fcn.0040418e
Function at 0x1007136
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x100daf3
call fcn.01008d48
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0xc]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
lea ecx, [esi + 0x10]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 2
lea ecx, [esi + 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 3
lea ecx, [esi + 0x5c]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 4
lea ecx, [esi + 0x68]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 5
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0xc4], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x90], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100741a
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1007448
call fcn.0100936f
xor eax, eax
jmp 0x100749f
push esi
lea eax, [ebp - 0xc]
push eax
push 0x1001900
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x100748c
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [entry0]
test eax, eax
jne 0x1007493
call fcn.0100936f
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x1001a2c0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001a2ff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a2ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a2ff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001a2ff
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a2ff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001cfbe
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 0x1001d05b
push ebx
push esi
call fcn.1001cf86
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.1001cf1a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d008
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d05a
push edi
push eax
call fcn.1001affd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d028
call fcn.1001ba62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d059
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001cf1a
add esp, 0x20
test eax, eax
jne 0x1001d047
push edi
call fcn.1001ba62
jmp 0x1001d04f
push ebx
call fcn.1001ba62
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 0x1001d2c8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d10
push 0x10024d08
push str.FlsAlloc
push 0x1f
call fcn.1001d1e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d2fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
jmp 0x1001d302
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d346
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d20
push 0x10024d18
push str.FlsGetValue
push 0x21
call fcn.1001d1e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d37d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d385
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d28
push 0x10024d20
push str.FlsSetValue
push 0x22
call fcn.1001d1e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d3bf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002298d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002298d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401130
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push ebx
push esi
mov esi, dword [esp + 0x118]
push 0x42a674
push eax
call fcn.00413f9d
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40117b
push 0x42a660
call fcn.00413e14
add esp, 4
push ebx
call fcn.00413d88
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00413fb0
push str.APATH:
lea ecx, [esp + 0x18]
push 0x42a654
push ecx
call fcn.00413a56
mov eax, esi
add esp, 0x18
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011a7
push edi
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4011c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011e0
push ebx
sub eax, edx
push 1
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004139c9
push ebx
call fcn.00413833
mov ecx, dword [esp + 0x120]
add esp, 0x14
pop esi
pop ebx
xor ecx, esp
call fcn.00413687
add esp, 0x108
ret

Function at 0x401220
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401299
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x401299
mov edx, dword [esp + 8]
fild dword [esp + 8]
test edx, edx
jge 0x40127b
fadd qword [0x42a678]
test edi, edi
fmul qword [0x42a678]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x401293
fadd qword [0x42a678]
pop edi
faddp st(1)
pop esi
pop ecx
ret
fldz
pop edi
pop esi
pop ecx
ret