joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f56d7
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
cmp ebp, 2
je 0x4f574d
test eax, eax
je 0x4f5719
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
call fcn.004ce61e
add esp, 0x10
cmp dword [esp + 0x18], 0xffffffff
je 0x4f5719
push 0x3b
push 0x101a77b4
push 0x66
push 0x10a
push 0x10
call fcn.00497abe
add esp, 0x14
pop esi
xor eax, eax
pop ebp
ret
cmp dword [esp + 0x14], 0
je 0x4f5749
cmp edi, 0x40a
je 0x4f5740
cmp edi, 0x43f
je 0x4f5740
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x4f5745
mov eax, 0x20
cmp esi, eax
je 0x4f574d
push 0x41
jmp 0x4f56fe
push ebx
push 0x46
push 0x101a77b4
push 0x40
call fcn.004a177e
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4f5783
push 0x48
push 0x101a77b4
push 0x41
push 0x10a
push 0x10
call fcn.00497abe
add esp, 0x14
pop ebx
pop esi
xor eax, eax
pop ebp
ret
test ebp, ebp
jne 0x4f579b
mov ecx, dword [esp + 0x18]
push esi
push ecx
push ebx
call fcn.00565a0e
add esp, 0xc
jmp 0x4f58f8
cmp edi, 0x40a
je 0x4f57bb
cmp edi, 0x43f
je 0x4f57bb
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x4f57c0
mov eax, 0x20
push 0x50
push 0x101a77b4
push eax
call fcn.004a46fe
mov esi, eax
add esp, 0xc
mov dword [ebx + 0x3c], esi
test esi, esi
jne 0x4f57f3
push 0x52
push 0x101a77b4
push 0x41
push 0x10a
push 0x10
call fcn.00497abe
add esp, 0x14
jmp 0x4f5846
cmp ebp, 2
jne 0x4f5886
cmp edi, 0x40a
je 0x4f581c
cmp edi, 0x43f
je 0x4f581c
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x4f5821
mov eax, 0x20
push eax
push esi
call fcn.004aad0e
add esp, 8
test eax, eax
jg 0x4f585c
push 0x57
push 0x101a77b4
push esi
call fcn.004a471e
add esp, 0xc
mov dword [ebx + 0x3c], 0
push 0x79
push 0x101a77b4
push ebx
call fcn.004a17ee
add esp, 0xc
pop ebx
pop esi
xor eax, eax
pop ebp
ret
cmp edi, 0x40a
jne 0x4f5875
mov dl, byte [esi + 0x1f]
and byte [esi], 0xf8
and dl, 0x3f
or dl, 0x40
mov byte [esi + 0x1f], dl
jmp 0x4f58ba
cmp edi, 0x40b
jne 0x4f58ba
and byte [esi], 0xfc
or byte [esi + 0x37], 0x80
jmp 0x4f58ba
cmp edi, 0x40a
je 0x4f58a6
cmp edi, 0x43f
je 0x4f58a6
xor eax, eax
cmp edi, 0x40b
setne al
add eax, 0x38
jmp 0x4f58ab
mov eax, 0x20
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.00565a0e
add esp, 0xc
lea eax, [edi - 0x40a]
cmp eax, 0x36
ja 0x4f58f8
movzx ecx, byte [eax + 0x100e7d38]
jmp dword [ecx*4 + 0x100e7d24]
mov edx, dword [esp + 0x10]
push ebx
push edi
push edx
call fcn.00498dfe
add esp, 0xc
pop ebx
pop esi
mov eax, 1
pop ebp
ret
Function at 0x4fd3be
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.00565d7e
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, edx
push ebp
mov esi, 1
push eax
mov ebx, ecx
shl esi, cl
mov dword [esp + 0x18], edi
call fcn.004b860e
add esp, 8
test eax, eax
jne 0x4fd3f9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp ebx, 3
jg 0x4fd45b
xor ebx, ebx
test ebp, ebp
jle 0x4fd5be
lea ebx, [ebx]
xor edx, edx
xor ecx, ecx
test esi, esi
jle 0x4fd43d
mov eax, ecx
xor eax, dword [esp + 0x44]
inc ecx
lea ebp, [eax - 1]
shr ebp, 0x1f
not eax
shr eax, 0x1f
and ebp, eax
mov eax, dword [edi + ecx*4 - 4]
neg ebp
and ebp, 1
neg ebp
and ebp, eax
or edx, ebp
cmp ecx, esi
jl 0x4fd416
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [eax + ebx*4], edx
lea eax, [esi*4]
inc ebx
add edi, eax
cmp ebx, dword [esp + 0x40]
jl 0x4fd40e
jmp 0x4fd5be
mov edx, dword [esp + 0x44]
lea ecx, [ebx - 2]
mov eax, edx
sar eax, cl
mov edi, 1
shl edi, cl
lea ebx, [eax - 1]
shr ebx, 0x1f
lea ecx, [edi - 1]
and edx, ecx
mov dword [esp + 0x44], edx
mov edx, eax
not edx
shr edx, 0x1f
and ebx, edx
mov ecx, eax
xor ecx, 1
lea edx, [ecx - 1]
not ecx
shr ecx, 0x1f
shr edx, 0x1f
and edx, ecx
mov ecx, eax
xor ecx, 2
lea ebp, [ecx - 1]
not ecx
shr ecx, 0x1f
shr ebp, 0x1f
and ebp, ecx
xor eax, 3
lea ecx, [eax - 1]
shr ecx, 0x1f
not eax
shr eax, 0x1f
and ecx, eax
neg ebx
neg edx
neg ebp
neg ecx
and ebx, 1
and edx, 1
and ebp, 1
and ecx, 1
xor eax, eax
neg edx
neg ebp
neg ecx
neg ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x40], eax
jle 0x4fd5be
lea edx, [esi*4]
mov dword [esp + 0x34], edx
mov edi, edi
xor esi, esi
mov dword [esp + 0x20], esi
cmp edi, esi
jle 0x4fd59a
mov eax, dword [esp + 0x10]
lea edx, [eax + edi*4]
mov dword [esp + 0x1c], edx
lea edx, [eax + edi*8]
mov dword [esp + 0x18], edx
lea edx, [edi + edi*2]
lea eax, [eax + edx*4]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
and edx, ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
and ecx, ebp
or ecx, edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
and edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
or edx, ecx
mov eax, esi
xor eax, dword [esp + 0x44]
inc esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + esi*4 - 4]
neg ecx
and ecx, 1
and eax, ebx
neg ecx
or eax, edx
and ecx, eax
or dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov eax, 4
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
cmp esi, edi
jl 0x4fd52e
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
mov esi, dword [esp + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [esp + 0x34]
add dword [esp + 0x10], edx
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x40]
jl 0x4fd4fe
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [ecx + 4], eax
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x50919d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00565d7e
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
push edi
lea ecx, [esi + 2]
mov dword [esp + 0xc], 0x10
mov eax, ebp
sub esi, ebp
mov edi, 4
jmp 0x5091be
movzx edx, byte [esi + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec edi
jne 0x5091be
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push 0x10
push ebp
lea eax, [esp + 0x14]
push eax
push ebp
push edx
call fcn.004a6e2e
add esp, 0x14
pop edi
pop esi
pop ebp
test eax, eax
je 0x50920e
cmp dword [esp], 0x10
jne 0x50920e
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x5520b5
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.00565d7e
mov eax, dword [0x101fdf00]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
je 0x552218
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 4]
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 7]
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 8
mov byte [edi], dl
mov byte [ebp], al
call fcn.004e605e
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004e60de
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004e2bae
push ebp
call fcn.004e605e
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004e60de
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004e2bae
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 2], dl
mov edx, dword [esp + 0x44]
shr ebx, 0x18
mov byte [eax + 3], bl
mov ebx, edx
add esp, 0x30
mov byte [eax + 4], dl
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax + 6], bl
mov byte [eax + 7], dl
mov eax, ebp
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
dec dword [esp + 0x18]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
jne 0x5520d1
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.00561c52
add esp, 0xa0
ret
Function at 0x6ed19c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x6ed1d4
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x6ed1c2
mov al, 1
jmp 0x6ed233
cmp dword [ebx + 0x54], ecx
jne 0x6ed1cb
mov al, 2
jmp 0x6ed233
cmp dword [ebx + 0x7c], ecx
jne 0x6ed233
mov al, 3
jmp 0x6ed233
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x6ed1e9
mov al, 4
jmp 0x6ed233
cmp ecx, 5
jne 0x6ed209
cmp ebx, 0
jne 0x6ed1f7
mov al, 5
jmp 0x6ed233
cmp ebx, 1
jne 0x6ed200
mov al, 6
jmp 0x6ed233
cmp ebx, 2
jne 0x6ed209
mov al, 7
jmp 0x6ed233
cmp ecx, 6
jne 0x6ed231
cmp ebx, 0
jne 0x6ed217
mov al, 8
jmp 0x6ed233
cmp ebx, 1
jne 0x6ed21e
mov al, 9
cmp ebx, 2
jne 0x6ed225
mov al, 0xa
cmp ebx, 3
jne 0x6ed22c
mov al, 0xb
cmp ebx, 4
jne 0x6ed233
mov al, 0xc
pop ebx
leave
ret
Function at 0x1000155f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc54
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc0c]
mov ebx, ecx
push 0
push eax
call fcn.100046a0
xor eax, eax
mov dword [ebp - 0xc0c], esi
mov word [ebp - 0xbdc], ax
mov edi, 0x10024454
push 0x1f4
push 0
mov dword [ebp - 0xbe0], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.100046a0
push str._dA2BD7BYBApBDtBNtBzB_7BYRA7BDVBJBAGBGlB_BA_BDhBadAhBD_BgtAyBEtBVtA6BKNBgBAoBD3BNtBzBEtB_tAlBDhBaRAmBKZBgtBvBDRBaBApB_tBPRAwBDFBYtAoBEZBbRAoBK_B_tADBKVBaBApBKNBZtAzBDVBYRAvBB__
mov edi, 0x12c
lea eax, [ebp - 0x1f8]
push edi
push eax
call fcn.100010b9
lea edx, [ebp - 0x1f8]
add esp, 0x24
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100015e1
sub edx, ecx
lea eax, [ebp - 0xc54]
push eax
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0xc54], edx
call fcn.10002aad
mov ecx, dword [ebp - 0xc54]
mov esi, eax
push esi
push 0x10020cb8
lea eax, [ebp - 0x7e0]
push edi
push eax
mov word [esi + ecx], 0
call fcn.10001030
push esi
call fcn.1000bc09
push ebx
lea eax, [ebp - 0x7e0]
push eax
push str._s__s
lea eax, [ebp - 0x3f8]
push 0xff
push eax
call fcn.10001030
add esp, 0x2c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor ecx, ecx
lea eax, [ebp - 0xc0c]
push 0x10024454
push eax
push ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
lea eax, [ebp - 0x3f8]
push eax
push ecx
call ebx
test eax, eax
je 0x10001762
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc50]
push 0
push eax
call fcn.100046a0
xor eax, eax
mov dword [ebp - 0xc50], esi
mov word [ebp - 0xc20], ax
mov edi, 0x10024470
push str.bBA3BKRB_BB5B__BOtB7BGJBOdBBGFBLBBvBGJBMtBvBGFBLRB6B__BYdAuBKJBNdBuBD3BfRApBDhBadAqB_7BgBAwBKBB
mov dword [ebp - 0xc24], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1f8]
mov edi, 0xff
push edi
push eax
call fcn.100010b9
lea edx, [ebp - 0x1f8]
add esp, 0x18
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100016d1
sub edx, ecx
lea eax, [ebp - 0xc54]
push eax
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0xc54], edx
call fcn.10002aad
mov ecx, dword [ebp - 0xc54]
mov esi, eax
push esi
push 0x10020cb8
lea eax, [ebp - 0xbc8]
push 0x12c
push eax
mov word [esi + ecx], 0
call fcn.10001030
push esi
call fcn.1000bc09
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x7e0]
push eax
push str._s__s
lea eax, [ebp - 0x3f8]
push edi
push eax
call fcn.10001030
add esp, 0x2c
lea eax, [ebp - 0xc50]
xor ecx, ecx
push 0x10024470
push eax
push ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
lea eax, [ebp - 0x3f8]
push eax
push ecx
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100031d5
leave
ret
Function at 0x10002aad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x10024488], 0
push ebx
mov ebx, edx
mov edx, ecx
push esi
mov dword [ebp - 4], edx
jne 0x10002aed
push 0x100
call fcn.1000c1be
pop ecx
mov dword [0x10024488], eax
xor edx, edx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_I]
xor ecx, 3
mov byte [ecx + eax], dl
inc edx
cmp edx, 0x40
jl 0x10002ad7
mov edx, dword [ebp - 4]
test bl, 3
jne 0x10002c14
mov esi, dword [ebp + 8]
mov eax, ebx
shr eax, 2
imul ecx, eax, 3
mov dword [esi], ecx
cmp byte [edx + ebx - 1], 0x3e
jne 0x10002b0d
dec ecx
mov dword [esi], ecx
cmp byte [edx + ebx - 2], 0x3e
jne 0x10002b17
dec ecx
mov dword [esi], ecx
xor eax, eax
add ecx, 0xa
setb al
neg eax
or eax, ecx
push eax
call fcn.1000c1be
mov dword [ebp - 8], eax
pop ecx
test eax, eax
je 0x10002c14
push edi
xor edi, edi
xor ecx, ecx
test ebx, ebx
je 0x10002c11
mov eax, dword [esi]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov al, byte [edi + esi]
cmp al, 0x3e
jne 0x10002b55
xor edx, edx
jmp 0x10002b62
mov edx, dword [0x10024488]
movsx eax, al
movsx edx, byte [eax + edx]
mov al, byte [edi + esi + 1]
cmp al, 0x3e
jne 0x10002b70
and dword [ebp - 0x10], 0
jmp 0x10002b83
mov esi, dword [0x10024488]
movsx eax, al
movsx eax, byte [eax + esi]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov al, byte [edi + esi + 2]
cmp al, 0x3e
jne 0x10002b91
and dword [ebp - 0x14], 0
jmp 0x10002ba4
mov esi, dword [0x10024488]
movsx eax, al
movsx eax, byte [eax + esi]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov al, byte [edi + esi + 3]
add edi, 4
cmp al, 0x3e
jne 0x10002bb3
xor eax, eax
jmp 0x10002bc3
mov esi, dword [0x10024488]
movsx eax, al
movsx eax, byte [eax + esi]
mov esi, dword [ebp - 4]
shl edx, 6
add edx, dword [ebp - 0x10]
shl edx, 6
add edx, dword [ebp - 0x14]
shl edx, 6
add edx, eax
cmp ecx, dword [ebp - 0xc]
jae 0x10002c06
mov esi, dword [ebp - 8]
mov eax, edx
shr eax, 0x10
mov byte [ecx + esi], al
inc ecx
cmp ecx, dword [ebp - 0xc]
jae 0x10002c03
mov eax, edx
shr eax, 8
mov byte [ecx + esi], al
inc ecx
mov eax, esi
mov esi, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
jae 0x10002c09
mov byte [ecx + eax], dl
inc ecx
jmp 0x10002c09
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp edi, ebx
jb 0x10002b4a
pop edi
jmp 0x10002c16
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x10006642
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10003ca0
mov eax, dword [0x10023040]
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.1000d112
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10006684
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100067e0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001a590
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 + 0x10023f90]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1000d321
mov ecx, dword [esi*4 + 0x10023f90]
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 0x100067d9
cmp eax, dword [ecx + edi + 0x24]
jne 0x100067d9
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 0x100067d9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000d321
add esp, 0x14
test edx, edx
jl 0x100067d9
jg 0x1000674f
test eax, eax
jb 0x100067d9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100067d9
jl 0x10006769
cmp dword [ebp - 0x1008], eax
ja 0x100067d9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10006787
test ebx, ebx
je 0x100067c0
cmp ecx, edi
jae 0x100067c0
mov al, byte [ecx]
cmp al, 0xd
jne 0x100067a1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100067ad
cmp byte [ecx + 1], 0xa
jne 0x100067ad
inc ecx
jmp 0x100067ad
movzx eax, al
movsx eax, byte [eax + 0x10023250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10006787
cmp edx, ebx
jne 0x10006787
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100067de
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100031d5
leave
ret

Function at 0x1000c632
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000c671
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000c671
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000c671
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000c671
cmp dword [ecx + 0x74], 0xe
jbe 0x1000c671
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000da92
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 + 0x10023f90]
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 0x1000dad2
cmp byte [ebx], 0xa
jne 0x1000dad2
or byte [edi + eax + 0x28], 4
jmp 0x1000dad7
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 0x1000dbd6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000dbb9
inc eax
cmp dl, 0xd
je 0x1000db03
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000db29
cmp eax, ecx
jae 0x1000db37
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 0x1000daeb
jmp 0x1000dbd6
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 0x1000dbb4
cmp dword [ebp - 0x10], 0
je 0x1000dbb4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10023f90]
test byte [eax + edi + 0x28], 0x48
je 0x1000db8e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000db79
mov byte [esi], dl
jmp 0x1000db8a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10023f90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000dbd6
cmp byte [ebp - 1], 0xa
jne 0x1000db9d
cmp esi, ebx
jne 0x1000db9d
mov byte [esi], 0xa
jmp 0x1000dbd5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000d33f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000dbd6
mov byte [esi], 0xd
jmp 0x1000dbd5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10023f90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000dbd3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000dbd6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000dbdf
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 + 0x10023f90]
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 0x1000dc25
cmp word [ebx], dx
jne 0x1000dc25
or byte [eax + edi + 0x28], 4
jmp 0x1000dc2a
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 0x1000dd8d
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 0x1000dd6d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000dc6b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000dca1
cmp eax, edx
jae 0x1000dcaf
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 0x1000dc46
jmp 0x1000dd8d
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 0x1000dd68
cmp dword [ebp - 0x18], 0
je 0x1000dd68
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10023f90]
test byte [eax + edi + 0x28], 0x48
je 0x1000dd3e
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 0x1000dd02
mov word [esi], cx
jmp 0x1000dd39
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10023f90]
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 + 0x10023f90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10023f90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000dd8d
pop eax
cmp word [ebp - 4], ax
jne 0x1000dd4e
cmp esi, ebx
jne 0x1000dd4e
mov word [esi], ax
jmp 0x1000dd8a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000d33f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000dd8d
push 0xd
pop eax
jmp 0x1000dd49
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10023f90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000dd87
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000dd8d
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 0x1000fdf4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d4e0
push 0x1001d4d8
push str.FlsAlloc
push 0x1f
call fcn.1000fd10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fe28
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b158]
call esi
jmp 0x1000fe2e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000fe72
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d4f0
push 0x1001d4e8
push str.FlsGetValue
push 0x21
call fcn.1000fd10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fea9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000feb1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d4f8
push 0x1001d4f0
push str.FlsSetValue
push 0x22
call fcn.1000fd10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000feeb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]