joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b514b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x101915ac
push esi
call fcn.100c1eb4
pop ecx
pop ecx
test eax, eax
jne 0x100b5179
xor al, al
jmp 0x100b51f6
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.100b4e4d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100b51b3
push dword [ebp - 0x210]
call fcn.100a983f
xor al, al
jmp 0x100b51f4
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100b51b9
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100b51d9
push edx
call fcn.100b5082
pop ecx
test al, al
je 0x100b51a4
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100b51e7
mov bl, 1
push dword [ebp - 0x210]
call fcn.100a983f
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100531cc
leave
ret

Function at 0x100b922b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1019275c
push 0x10192754
push str.FlsAlloc
push 0x1f
call fcn.100b9056
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b925f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10182464]
call esi
jmp 0x100b9265
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100b92a9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1019276c
push 0x10192764
push str.FlsGetValue
push 0x21
call fcn.100b9056
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b92e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10182464]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100b92e8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10192774
push 0x1019276c
push str.FlsSetValue
push 0x22
call fcn.100b9056
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b9322
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10182464]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100baf78
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 + 0x101f3b18]
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 0x100bafb8
cmp byte [ebx], 0xa
jne 0x100bafb8
or byte [edi + eax + 0x28], 4
jmp 0x100bafbd
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 0x100bb0bc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100bb09f
inc eax
cmp dl, 0xd
je 0x100bafe9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100bb00f
cmp eax, ecx
jae 0x100bb01d
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 0x100bafd1
jmp 0x100bb0bc
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 0x100bb09a
cmp dword [ebp - 0x10], 0
je 0x100bb09a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101f3b18]
test byte [eax + edi + 0x28], 0x48
je 0x100bb074
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100bb05f
mov byte [esi], dl
jmp 0x100bb070
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101f3b18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100bb0bc
cmp byte [ebp - 1], 0xa
jne 0x100bb083
cmp esi, ebx
jne 0x100bb083
mov byte [esi], 0xa
jmp 0x100bb0bb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100b5a8f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100bb0bc
mov byte [esi], 0xd
jmp 0x100bb0bb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101f3b18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100bb0b9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100bb0bc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100bb0c5
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 + 0x101f3b18]
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 0x100bb10b
cmp word [ebx], dx
jne 0x100bb10b
or byte [eax + edi + 0x28], 4
jmp 0x100bb110
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 0x100bb273
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 0x100bb253
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100bb151
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100bb187
cmp eax, edx
jae 0x100bb195
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 0x100bb12c
jmp 0x100bb273
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 0x100bb24e
cmp dword [ebp - 0x18], 0
je 0x100bb24e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101f3b18]
test byte [eax + edi + 0x28], 0x48
je 0x100bb224
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 0x100bb1e8
mov word [esi], cx
jmp 0x100bb21f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101f3b18]
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 + 0x101f3b18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101f3b18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100bb273
pop eax
cmp word [ebp - 4], ax
jne 0x100bb234
cmp esi, ebx
jne 0x100bb234
mov word [esi], ax
jmp 0x100bb270
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100b5a8f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100bb273
push 0xd
pop eax
jmp 0x100bb22f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101f3b18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100bb26d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100bb273
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 0x100bf0f9
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 0x100bf196
push ebx
push esi
call fcn.100bf0c2
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.100bf056
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100bf143
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100bf195
push edi
push eax
call fcn.100b7b83
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100bf163
call fcn.100b7b49
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100bf194
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100bf056
add esp, 0x20
test eax, eax
jne 0x100bf182
push edi
call fcn.100b7b49
jmp 0x100bf18a
push ebx
call fcn.100b7b49
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 0x100bf199
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100bf1aa
pop esi
ret
push ebx
push edi
push esi
call fcn.100bf0c2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100b7b83
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100bf1d2
push ebx
push esi
push edi
call fcn.1009f9a0
add esp, 0xc
push 0
call fcn.100b7b49
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100bf92c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bf447

Function at 0x100c44ab
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100b60dd
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c451a
cmp esi, dword [ebp - 4]
je 0x100c4515
cmp dword [ebp + 0xc], 0
je 0x100c4515
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100c44f2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100c3ffd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100c451c
xor eax, eax
inc eax
jmp 0x100c451c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100c4581
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100b60dd
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100b60dd
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100c45f8
cmp word [ecx], dx
je 0x100c45f8
mov eax, dword [0x10193034]
push edi
dec eax
push eax
push 0x10192f20
call fcn.100c4520
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100c466b
cmp word [eax], dx
je 0x100c466b
mov eax, dword [edi]
test eax, eax
je 0x100c461c
cmp word [eax], dx
je 0x100c461c
lea eax, [ebp - 0x10]
push eax
call fcn.100c3f03
jmp 0x100c4625
lea eax, [ebp - 0x10]
push eax
call fcn.100c3f9e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100c4695
mov eax, dword [0x10192f1c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10192c10
call fcn.100c4520
add esp, 0xc
test al, al
je 0x100c4695
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100c4660
cmp word [eax], di
je 0x100c4660
lea eax, [ebp - 0x10]
push eax
call fcn.100c3f03
pop ecx
jmp 0x100c4697
lea eax, [ebp - 0x10]
push eax
call fcn.100c3f9e
jmp 0x100c465d
mov eax, dword [edi]
test eax, eax
je 0x100c4682
cmp word [eax], dx
je 0x100c4682
lea eax, [ebp - 0x10]
push eax
call fcn.100c3eb8
pop ecx
jmp 0x100c4695
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100c4760
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100c43a5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100c4760
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100c4760
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100c4760
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100c46ed
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100b9428
test ebx, ebx
je 0x100c475b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100b9428
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c4760
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c4760
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100b2e1a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100c4762
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100531cc
leave
ret
Function at 0x100c7be3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x100c7c26
call fcn.100a8958
mov dword [eax], 0xf
call fcn.100a896b
mov dword [eax], 0xd
call fcn.100a31e7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
leave
ret
test eax, eax
jne 0x100c7c2d
inc eax
jmp 0x100c7c1a
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x100c7c18
xor eax, eax
cmp ecx, 1
setne al
jmp 0x100c7c1a
Function at 0x100c8801
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100c877d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100c8970
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100c8970
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100c8925
jg 0x100c885d
test eax, eax
je 0x100c891b
push 1
push 0x1000
call fcn.100b8d54
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100c8880
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100c8912
push 0x8000
push ebx
call fcn.100c86ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100c88a9
jg 0x100c88a4
cmp ecx, 0x1000
jb 0x100c88a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100bab04
add esp, 0x10
cmp eax, 0xffffffff
je 0x100c88ee
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100c88a4
jl 0x100c88d5
test ecx, ecx
jne 0x100c8896
push dword [ebp - 0xc]
push ebx
call fcn.100c86ae
push esi
call fcn.100b7b49
add esp, 0xc
xor ebx, ebx
jmp 0x100c897e
cmp byte [edi + 0x24], 0
je 0x100c8905
cmp dword [edi + 0x20], 5
jne 0x100c8905
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100c8910
mov ebx, dword [edi + 0x18]
jmp 0x100c8912
xor ebx, ebx
push esi
call fcn.100b7b49
pop ecx
jmp 0x100c897e
test ecx, ecx
jg 0x100c88e7
jl 0x100c8925
test eax, eax
jae 0x100c88e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b5a8f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100c8945
cmp byte [edi + 0x1c], 0
je 0x100c88e7
jmp 0x100c8976
push ebx
call fcn.100bc1bf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100c88e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100c897e
cmp byte [edi + 0x1c], 0
je 0x100c897b
mov ebx, dword [edi + 0x18]
jmp 0x100c897e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100b5a8f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100ca150
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.100ca250
mov edi, eax
add esp, 8
test edi, edi
jne 0x100ca1f6
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100d6900
push 0x10199d08
push esi
push 0x10199d0c
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.100d5f20
add esp, 0x2c
call fcn.100a896b
cmp dword [eax], 2
je 0x100ca1d6
call fcn.100a896b
cmp dword [eax], 6
je 0x100ca1d6
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.100d6900
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.100d6900
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x101e9b78
call fcn.100ca830
mov esi, eax
add esp, 4
test esi, esi
jne 0x100ca217
push edi
call fcn.100aa012
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.100ca460
push edi
push 1
push 0x6a
push esi
call fcn.100ca490
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x100d3ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.10177830
mov eax, dword [0x101e9008]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
jne 0x100d3f05
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.100b5219
add esp, 8
test eax, eax
js 0x100d3eee
mov eax, 8
call fcn.10177830
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.100d3c00
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x100d3eee
push 0x1019afd8
push edi
call fcn.100a9ed6
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x100d4002
test dword [esp + 0x4e], 0x2000
je 0x100d3f81
push 0
push 4
mov ecx, 0x800
cmp esi, 0xffffffff
push 0
push eax
cmove esi, ecx
call fcn.100ab953
mov eax, dword [esp + 0x50]
add esp, 0x10
mov edi, 0x400
test esi, esi
jle 0x100d3f8f
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.100abd08
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x100d3fe3
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.10177830
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.100d3c00
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x100d3f81
sub esi, edi
test esi, esi
jg 0x100d3f81
push dword [esp + 0x40]
call fcn.100aa012
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.100dde20
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
Function at 0x100dec90
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x100decb7
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x100deca6
pop edi
movzx eax, dl
pop esi
ret

Function at 0x100dee00
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x10c
call fcn.10177830
mov eax, dword [0x101e9008]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x100dee9f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x100dee9f
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.10004f00
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.100a85a1
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.100531cc
add esp, 0x10c
ret
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.10004f00
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.100a85a1
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.100decc0
test eax, eax
jle 0x100def33
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x100def47
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.100531cc
add esp, 0x10c
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.100531cc
add esp, 0x10c
ret
Function at 0x10113fa0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x10114069
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x10113fc1
cmp al, 0x6b
jne 0x10114069
inc ecx
cmp al, 0x6b
jne 0x1011402b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x10113fe2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x10113fe2
cmp dl, 0xbb
jne 0x1011400b
inc eax
cmp eax, esi
jl 0x10113fd0
sub esi, eax
test eax, eax
jne 0x1011402e
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.100d6900
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.100d6900
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x10114057
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.100d6900
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.1009f9a0
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.100d6900
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x1011bf20
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x1011c00c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x1011bf9d
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + 0x101baa58]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x101baa58]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x101baa58]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + 0x101baa58]
mov byte [edx], al
jmp 0x1011bff1
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x1011bfb1
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x101baa58]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x101baa58]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x1011bfdb
lea eax, [esi + 0x3c]
jmp 0x1011bfe8
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x101baa58]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x1011bf40
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret