joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100385f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x100386e0
test dl, 0x10
jne 0x100386e0
mov al, 1
jmp 0x100386e2
xor al, al
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
mov ebx, dword [ecx + 4]
mov edx, ebx
mov esi, dword [esi + 0x18]
sar edx, 3
cmp esi, edx
jae 0x10038706
lea eax, [esi*8]
mov dword [ecx + 4], eax
jmp 0x10038739
jbe 0x10038739
mov eax, dword [ecx + 8]
sar eax, 3
cmp esi, eax
jbe 0x1003871e
lea eax, [ebp + 0x17]
push eax
push esi
call fcn.100313e0
jmp 0x10038739
sub esi, edx
je 0x10038736
shl esi, 3
push esi
push 0
push ebx
call fcn.10058680
add esp, 0xc
lea ecx, [edi + 0x40]
add ebx, esi
mov dword [ecx + 4], ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x100396e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e36c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
lea ebx, [esi + 0x38]
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov dword [ebp + 8], ebx
mov dword [ebx + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x10039787
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [esi + 0x68]
push 9
mov byte [ebp - 4], 5
mov byte [esi + 0x60], al
call fcn.10038f70
mov ecx, dword [esi + 0x1c]
xor ebx, ebx
mov edx, dword [esi + 0x10]
mov byte [ebp - 4], 6
mov byte [ebp + 0x37], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x100397ce
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x100397ce
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x100397d8
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp + 0x37]
and ecx, 0x1f
push eax
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x10]
call fcn.1004bfc0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x10039805
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x1003ab70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push esi
mov dword [ebp - 0x10], 0
push edi
mov dword [ebx + 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x9c], 0
lea edx, [ebx + 0xa0]
mov dword [edx], 0x10084200
mov dword [ebp - 0x18], edx
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x38], 0
mov dword [edx + 8], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [edx + 0x40], 0
mov dword [edx + 0x44], 0
mov byte [edx + 0x48], 0
mov eax, dword [edx]
lea esi, [ebx + 0xf0]
push 0
push esi
mov byte [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call fcn.10020640
push 8
mov dword [ebp - 4], 5
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.100568ab
mov edi, eax
add esp, 4
test edi, edi
je 0x1003acf1
push 1
mov byte [ebp - 4], 6
call fcn.100554f1
add esp, 4
mov dword [edi + 4], eax
jmp 0x1003acf3
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.1001e180
mov ecx, dword [ebp - 0xc]
mov eax, ebx
mov dword [esi + 0x38], ebx
pop edi
mov dword [esi], vtable.httplib::DataSink::data_sink_streambuf.0
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1003f260
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx + 0xc]
push dword [eax]
mov eax, dword [ecx + 8]
push dword [eax]
mov eax, dword [ecx + 4]
push dword [eax]
mov eax, dword [ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
ret

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

Disassembly:
mov eax, dword [ecx + 0xc]
push dword [eax]
mov eax, dword [ecx + 8]
push dword [eax]
mov eax, dword [ecx + 4]
push dword [eax]
mov eax, dword [ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
ret

Function at 0x1003fcd0
Capabilities:
Get socket status

Disassembly:
push dword [ecx + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0xc]
push dword [ecx + 8]
mov eax, dword [eax]
push dword [ecx + 4]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
ret
Function at 0x100417f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007eb4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
lea ebx, [esi + 0x9c]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.10006560
mov eax, dword [ebp + 8]
add esi, 0xcc
mov edx, dword [ebp + 0xc]
mov byte [eax + 0x30], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add eax, ecx
test al, 3
jne 0x10041858
lea eax, [ecx + 4]
shr eax, 2
cmp dword [esi + 8], eax
ja 0x10041858
push 1
mov ecx, esi
call fcn.1001ded0
mov ecx, dword [esi + 8]
lea eax, [ecx*4 - 1]
and dword [esi + 0xc], eax
lea eax, [ecx - 1]
mov edi, dword [esi + 0x10]
add edi, dword [esi + 0xc]
mov edx, edi
shr edx, 2
and eax, edx
mov dword [ebp - 0x10], edx
lea ecx, [eax*4]
mov eax, dword [esi + 4]
mov dword [ebp + 0xc], ecx
cmp dword [ecx + eax], 0
jne 0x1004189e
push 0x10
call fcn.100568ab
mov ecx, dword [esi + 4]
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx], eax
mov edx, dword [esi + 8]
and edi, 3
mov eax, dword [esi + 4]
dec edx
and edx, dword [ebp - 0x10]
mov ecx, ebx
mov eax, dword [eax + edx*4]
lea edx, [eax + edi*4]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [edx], eax
inc dword [esi + 0x10]
call fcn.100065c0
mov edi, dword [ebp + 8]
test edi, edi
je 0x10041956
mov eax, dword [edi + 0x24]
lea esi, [edi + 0x24]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.100090c0
push 0x40
push dword [esi]
call fcn.100568db
mov esi, dword [edi + 0x1c]
add esp, 8
test esi, esi
je 0x1004190b
mov ecx, esi
call fcn.1003e120
push 0xc8
push esi
call fcn.100568db
add esp, 8
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x1004193a
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x10041930
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10041969
mov eax, edx
push ecx
push eax
call fcn.100568db
add esp, 8
push 0x34
push edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.100568db
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.1005bb75
int3
Function at 0x100497b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x100497e1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100497d0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x1004b6c0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1004b77a
mov ax, word [ebp - 0x84]
push esi
mov esi, dword [ebp - 4]
cmp ax, 2
je 0x1004b703
cmp ax, 0x17
jne 0x1004b779
push dword [ebp - 0x82]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
movzx ecx, ax
mov eax, dword [ebp + 0xc]
push 0x401
push 0
mov dword [eax], ecx
lea eax, [ebp - 0x488]
push eax
call fcn.10058680
add esp, 0xc
lea eax, [ebp - 0x488]
push 2
push 0
push 0
push 0x401
push eax
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1004b779
lea ecx, [ebp - 0x488]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b760
sub ecx, edx
lea eax, [ebp - 0x488]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.1002b1a0
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1004b780
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x1004b83a
mov ax, word [ebp - 0x84]
push esi
mov esi, dword [ebp - 4]
cmp ax, 2
je 0x1004b7c3
cmp ax, 0x17
jne 0x1004b839
push dword [ebp - 0x82]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
movzx ecx, ax
mov eax, dword [ebp + 0xc]
push 0x401
push 0
mov dword [eax], ecx
lea eax, [ebp - 0x488]
push eax
call fcn.10058680
add esp, 0xc
lea eax, [ebp - 0x488]
push 2
push 0
push 0
push 0x401
push eax
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1004b839
lea ecx, [ebp - 0x488]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b820
sub ecx, edx
lea eax, [ebp - 0x488]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.1002b1a0
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10053f60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
cmp dword [edi + 0x14], 0xf
mov ebx, dword [edi + 0x10]
jbe 0x10053fa9
mov edi, dword [edi]
mov dword [ebp + 8], edi
lea eax, [ebx*8]
mov dword [esi + 0x44], eax
mov eax, ebx
shr eax, 0x1d
mov dword [esi + 0x48], eax
cmp ebx, 0x40
jb 0x10054028
movups xmm0, xmmword [edi]
lea eax, [esi + 1]
push eax
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [eax + 0x30], xmm0
call fcn.10054240
mov eax, 0x40
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x1005402a
mov ecx, dword [ebp + 8]
mov edi, 0x80
add ecx, 0xffffffc0
mov dword [ebp - 8], ecx
lea eax, [ecx + edi]
mov ecx, esi
push eax
call fcn.10054240
mov eax, dword [ebp - 4]
add edi, 0x40
mov ecx, dword [ebp - 8]
add eax, 0x40
mov dword [ebp - 4], eax
cmp edi, ebx
jbe 0x10054005
mov edi, dword [ebp + 8]
jmp 0x1005402a
xor eax, eax
sub ebx, eax
lea ecx, [esi + 1]
push ebx
add eax, edi
push eax
push ecx
call fcn.10058100
add esp, 0xc
cmp byte [esi], 0
jne 0x10054101
xor ecx, ecx
lea edx, [esi + 0x46]
nop word [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0xc], al
movzx eax, byte [edx - 5]
mov byte [ebp + ecx - 0xb], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0xa], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 9], al
add ecx, 4
cmp ecx, 8
jb 0x10054050
mov edx, dword [esi + 0x44]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
mov ecx, esi
push eax
push 0x1009a070
call fcn.10054930
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.10054930
lea ecx, [esi + 0x5e]
mov edi, 4
lea edx, [esi + 0x4e]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 2], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 5], al
movzx eax, byte [edx - 4]
mov byte [ecx - 4], al
movzx eax, byte [edx - 3]
mov byte [ecx - 3], al
sub edi, 1
jne 0x100540c0
push 0x40
lea eax, [esi + 1]
push edi
push eax
call fcn.10058680
xorps xmm0, xmm0
add esp, 0xc
movq qword [esi + 0x44], xmm0
mov byte [esi], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10062483
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10056cf0
mov eax, dword [0x1009a1c0]
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.1006da3f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100624c5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10062621
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10056ec0
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 + 0x1009e650]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006fc12
mov ecx, dword [esi*4 + 0x1009e650]
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 0x1006261a
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006261a
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 0x1006261a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006fc12
add esp, 0x14
test edx, edx
jl 0x1006261a
jg 0x10062590
test eax, eax
jb 0x1006261a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006261a
jl 0x100625aa
cmp dword [ebp - 0x1008], eax
ja 0x1006261a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100625c8
test ebx, ebx
je 0x10062601
cmp ecx, edi
jae 0x10062601
mov al, byte [ecx]
cmp al, 0xd
jne 0x100625e2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100625ee
cmp byte [ecx + 1], 0xa
jne 0x100625ee
inc ecx
jmp 0x100625ee
movzx eax, al
movsx eax, byte [eax + 0x1009a480]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100625c8
cmp edx, ebx
jne 0x100625c8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006261f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100572cd
leave
ret

Function at 0x1006975c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1006979b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006979b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006979b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1006979b
cmp dword [ecx + 0x74], 0xe
jbe 0x1006979b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1006ed36
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 + 0x1009e650]
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 0x1006ed76
cmp byte [ebx], 0xa
jne 0x1006ed76
or byte [edi + eax + 0x28], 4
jmp 0x1006ed7b
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 0x1006ee7a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006ee5d
inc eax
cmp dl, 0xd
je 0x1006eda7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006edcd
cmp eax, ecx
jae 0x1006eddb
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 0x1006ed8f
jmp 0x1006ee7a
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 0x1006ee58
cmp dword [ebp - 0x10], 0
je 0x1006ee58
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1009e650]
test byte [eax + edi + 0x28], 0x48
je 0x1006ee32
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006ee1d
mov byte [esi], dl
jmp 0x1006ee2e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1009e650]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006ee7a
cmp byte [ebp - 1], 0xa
jne 0x1006ee41
cmp esi, ebx
jne 0x1006ee41
mov byte [esi], 0xa
jmp 0x1006ee79
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006fc30
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006ee7a
mov byte [esi], 0xd
jmp 0x1006ee79
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1009e650]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006ee77
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006ee7a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006ee83
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1009e650]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006eec9
cmp word [ebx], dx
jne 0x1006eec9
or byte [eax + edi + 0x28], 4
jmp 0x1006eece
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1006f031
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1006f011
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1006ef0f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006ef45
cmp eax, edx
jae 0x1006ef53
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1006eeea
jmp 0x1006f031
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006f00c
cmp dword [ebp - 0x18], 0
je 0x1006f00c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1009e650]
test byte [eax + edi + 0x28], 0x48
je 0x1006efe2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1006efa6
mov word [esi], cx
jmp 0x1006efdd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1009e650]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1009e650]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1009e650]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1006f031
pop eax
cmp word [ebp - 4], ax
jne 0x1006eff2
cmp esi, ebx
jne 0x1006eff2
mov word [esi], ax
jmp 0x1006f02e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006fc30
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1006f031
push 0xd
pop eax
jmp 0x1006efed
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1009e650]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1006f02b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1006f031
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10070a09
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008de8c
push 0x1008de84
push str.FlsAlloc
push 0x1f
call fcn.10070891
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10070a3d
push dword [ebp + 8]
mov ecx, esi
call dword [0x100801e0]
call esi
jmp 0x10070a43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10070a87
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008de9c
push 0x1008de94
push str.FlsGetValue
push 0x21
call fcn.10070891
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10070abe
push dword [ebp + 8]
mov ecx, esi
call dword [0x100801e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10070ac6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008dea4
push 0x1008de9c
push str.FlsSetValue
push 0x22
call fcn.10070891
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10070b00
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100801e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]