joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c1c9a
Capabilities:
Encode data using xor

Disassembly:
ficom dword [edx]
mov byte [eax], ch
fsubr qword [edi + 0x5e433891]
insd dword es:[edi], dx
pop eax
cld
dec edx
cmp al, 0xbc
dec esi
fcomp dword [ebx]
in al, 0xe
fisttp qword [ecx - 0x3962de68]
je 0x5c1cef
push 0xa9b8d92d
add ch, bl
dec edx
loop 0x5c1cab
int1
ror esi, 1
pop ss
pop ss
call dword [edx + 0x790fc2e1]
jns 0x5c1c68
jns 0x5c1c68
loopne 0x5c1d18
xor byte [edx], bh
int3
and dword [eax + ebx*2 - 0x5926ea3b], esi
clc
sbb ebp, dword [0x5c8cb94e]
xchg ecx, eax
or eax, dword [ecx + edi*2 - 0x79db84e3]
jg 0x5c1c72
stosd dword es:[edi], eax
fld dword [esi]
stc
invalid
clc
jge 0x5c1d25
in al, dx
xor eax, 0x7d40a507
push ecx
xchg dword [edx], ecx
mov dl, byte [eax]
mov ebx, 0xf847ad29
stc
pushfd
xor dword [0x34c8d9d7], edx
adc edx, edx
mov cs, esi
xlatb
push 0xfbf9923a
xchg edx, eax
stc
sti
cli
push edi
mov cl, 8
pop ds
fdivr dword [edi - 0x3b]
stosb byte es:[edi], al
mov ecx, 0x4933324e
push edi
xor edi, edi
and ecx, edi
xchg al, dh
push es
daa
xor dword [edx + 0x67], ecx
dec esp
jl 0x5c1ccd
fsubp st(4)
sub byte [edx + ecx*4 + 0xe], cl
jmp 0x5c1d54
cli
leave
sbb byte [edx], bl
sbb byte [edi + 0x79], al
stc
popfd
neg cl
fsub qword ss:[eax]
jp 0x5c1da0
and byte [edx + 0x78], bh
mov edi, 0xcc08a6c9
and eax, 0x203f284c
pop ecx
xor eax, 0x58348ab5
sub dword [esp + esi*8 + 0x30edfb27], eax
test al, 0xac
sbb byte [edi - 0x561509e9], al
xchg ebx, eax
pop edx
and al, 0x5a
mov cs, ecx
inc edi
out 0x3c, al
add bl, dh
mov byte [0xa9f13825], al
xor bl, byte [edx + 0x3b]
sbb al, 0xc7
cmp edx, dword [0xf5c8743c]
aam 0xbc
out dx, al
scasb al, byte es:[edi]
lcall 0xf37f, 0x8d06c88
dec ecx
pop ebp
mov ds, word [edi - 0x57c98608]
sbb al, 0xa3
dec ecx
test bh, dh
mov bh, 0x2a
push eax
xchg eax, esi
mov eax, dword [0xbf0de058]
push 0x8f00127b
mov byte [0x4c22497d], al
stosb byte es:[edi], al
lodsb al, byte [esi]
sahf
nop
stc
insd dword es:[edi], dx
push es
jbe 0x5c1da4
cmp cl, dh
test eax, 0x1c3b5a32
invalid
or edx, dword [ebp - 0x6f]
mov esp, 0x494fdeef
fimul word [edi + 0x49]
mov al, 0xca
mov ch, bh
imul edx, ecx, 0x40
cwde
dec ebp
stosb byte es:[edi], al
cld
out 0x71, al
sub eax, 0x1d99267
in eax, dx
invalid
retf 0xfd88
Function at 0x606756
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00639c46
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x606879
push ecx
lea ecx, [esi + 0x18]
call fcn.00625f76
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x606890
push ecx
lea ecx, [esi + 0x24]
call fcn.00625e86
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x625e86
Capabilities:
Encode data using xor

Disassembly:
int 0xaa
div byte [edx + 0x7eb35dc3]
pushfd
imul ecx, dword [ebp - 0x7d8f2a88], 0x657598e5
mov ds, word [ebx + 0x38e37f59]
test byte [ecx + 0x58], ah
add eax, 0x15c585fc
pop ds
arpl word [edx + 0x1b], di
dec esp
push ebx
jns 0x625ece
mov bh, 0x83
or eax, edx
loope 0x625eed
out 0x79, al
rol dword [edi - 0x6b], 1
inc edi
aaa
cmp eax, dword [ecx + 0xb]
jo 0x625e66
add eax, 0x527385f
in al, dx
inc ebx
mov ebp, 0xa7f2e503
add esp, ebp
repne cmpsd dword [esi], dword es:[edi]
in eax, 0xf2
cmpsd dword [esi], dword es:[edi]
dec edx
stosb byte es:[edi], al
setle byte [esi]
adc byte [ecx + 0x7c], ch
jb 0x625e41
xlatb
xlatb
insd dword es:[edi], dx
lodsd eax, dword [esi]
or bl, byte [eax - 0xa]
add dword [edi + 0x35], esi
loop 0x625f07
stc
push 0xdd398684
dec esi
fild dword [ebp + 0x1aeca0fd]
dec esp
aad 0x7a
daa
xor ah, dl
pushfd
in al, 0xac
xchg esp, eax
nop
xor eax, 0xa95a7910
mov ebx, 0xb8bd6418
invalid
sbb dword [ebx], edi
test al, 0x74
clc
xchg ebp, eax
pop edx
jle 0x625e87
push ecx
rol byte [ebx + 0x2f536c2], 0x4d
std
clc
xchg ecx, eax
cld
out 0xdd, eax
lock sub byte [ebx + 0x186c2642], cl
test byte [esi], ah
out 4, eax
insb byte es:[edi], dx
sbb byte [esi - 0x2bb5fb19], al
stosb byte es:[edi], al
out 4, eax
dec edx
aam 0xaa
xchg esi, eax
cmpsd dword [esi], dword es:[edi]
and eax, 0xe17f3052
mul dword [ebx]
xor al, 0x8a
push ss
xchg byte [edx], ch
mov dl, 0xec
fcmovnbe st(0), st(6)
fadd dword [eax - 0x6d]
inc eax
xchg ebx, eax
and esp, esp
or al, 0xa0
test al, 0x4e
sub eax, esp
insd dword es:[edi], dx
jns 0x625eea
invalid

Function at 0x64da8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x656338
cmp edx, dword [eax]
je 0x64daaf
add eax, 8
inc ecx
cmp eax, 0x6563c8
jl 0x64daa0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x656338]
jne 0x64dbdd
mov eax, dword [0xa59c90]
cmp eax, 1
je 0x64dbb7
test eax, eax
jne 0x64dae0
cmp dword [0x656264], 1
je 0x64dbb7
cmp edx, 0xfc
je 0x64dbdd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64db17
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064e470
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
invalid
invalid
invalid
lea eax, [ebp + 8]
lea esi, [esi + 0x65633c]
push 0
push eax
push dword [esi]
call fcn.0064e900
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
Function at 0x431ddb
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x439a10
call fcn.0042e2e0
xor esi, esi
cmp dword [0x43e76c], esi
jne 0x431e1f
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431e0a
mov dword [0x43e76c], edi
jmp 0x431e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x431e1f
mov dword [0x43e76c], 2
mov eax, dword [0x43e76c]
cmp eax, 2
je 0x431f00
cmp eax, esi
je 0x431f00
cmp eax, 1
jne 0x431e64
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x431e4d
mov eax, dword [0x43e4d8]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x431e6b
xor eax, eax
jmp 0x431f12
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00424ea0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x431ea1
cmp edi, esi
jne 0x431ebc
lea eax, [ebx + ebx]
push eax
call fcn.0042372d
pop ecx
mov edi, eax
cmp edi, esi
je 0x431e64
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431eef
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x431ed9
push esi
push esi
jmp 0x431edf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x431efb
push edi
call fcn.00423779
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x431f12
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0042e31b
ret

Function at 0x40123a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
push edi
and dword [ebp - 0xc], 0
mov byte [ebp - 0x110], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
call sub.iphlpapi.DLL_GetAdaptersInfo
mov dword [ebp - 8], eax
push 0
call sub.KERNEL32.dll_DeleteFileA
cmp dword [ebp - 4], 0
jne 0x4013f1
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp - 8]
Function at 0x1000f1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0xc], 0
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 4], eax
cmovne esi, edi
test esi, esi
jne 0x1000f219
mov byte [ebp - 8], 0
jmp 0x1000f239
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp - 4]
setne byte [ebp - 8]
push edi
push eax
push dword [ebp + 8]
call fcn.10021930
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x1000f263
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000f270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp byte [ebp + 0xc], 0
mov eax, edx
push edi
cmovne esi, eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x1000f297
xor bl, bl
jmp 0x1000f2bc
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
setne bl
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push ecx
call fcn.10021930
add esp, 0xc
test bl, bl
je 0x1000f2e5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f2f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 1], cl
test eax, eax
je 0x1000f33e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 1]
movzx eax, cl
sub eax, 0xe8
je 0x1000f3c1
sub eax, 1
je 0x1000f3c1
sub eax, 0x16
jne 0x1000f3b2
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.10011470
add esp, 4
cmp al, 0x15
je 0x1000f36b
cmp al, 0x25
jne 0x1000f3b2
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000f3a5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
inc esi
mov dword [eax], esi
call fcn.10011420
add esp, 4
add eax, 4
add eax, esi
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000f3f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.1000f2f0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x1000f44a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x1000f48a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov esi, dword [esi]
test eax, eax
je 0x10011466
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10011470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x100114b7
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001f7d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov ecx, 0x5c1e70
call fcn.1001fa60
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10010a40
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1001f82e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53e58955
jne 0x1001f840
mov eax, 0x64
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x5c2130
call fcn.1001fcd0
cmp eax, 0x53e58955
jne 0x1001f85b
mov eax, 0x6e
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x5c6fd0
call fcn.1001fcd0
xor ecx, ecx
mov edx, 0x78
cmp eax, 0x53e58955
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x1001fcd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.1001fa60
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10010a40
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1001fd29
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10028a5d
Capabilities:
Parse pe header

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

Function at 0x1002a269
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002a1eb

Function at 0x1002c2f0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003d1c8
push 0x1003d1c0
push str.FlsAlloc
push 0x1f
call fcn.1002c18c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c324
push dword [ebp + 8]
mov ecx, esi
call dword [0x10038134]
call esi
jmp 0x1002c32a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002c36e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003d1d8
push 0x1003d1d0
push str.FlsGetValue
push 0x21
call fcn.1002c18c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c3a5
push dword [ebp + 8]
mov ecx, esi
call dword [0x10038134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002c3ad
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003d1e0
push 0x1003d1d8
push str.FlsSetValue
push 0x22
call fcn.1002c18c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c3e7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10038134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10030a4d
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 0x10030aea
push ebx
push esi
call fcn.10030a16
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.1002f9af
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10030a97
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10030ae9
push edi
push eax
call fcn.1002a8ac
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10030ab7
call fcn.1002a872
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10030ae8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002f9af
add esp, 0x20
test eax, eax
jne 0x10030ad6
push edi
call fcn.1002a872
jmp 0x10030ade
push ebx
call fcn.1002a872
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 0x700c938
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x7010cdd
call fcn.07001ea6
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700cc00
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700d3f5
lea ecx, [ebp - 0x10]
call fcn.0700c8d5
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700c9a5
mov eax, dword [eax + 0x14]
jmp 0x700c9aa
mov eax, 0x70127b2
push 0x701411c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700c9dc
mov ecx, dword [edi + 4]
call fcn.07007826
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.070081b0
mov eax, edi
call fcn.07002b7f
ret 4
push str.file_does_not_exist
push ebx
call fcn.070081b0
int3

Function at 0x700d4d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700d534
cmp byte [esi + 0x10], 0
je 0x700d4f2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [esi + 0xc]
pop ecx
mov byte [esi + 0x10], 0
push edi
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700d522
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
pop ecx
test eax, eax
je 0x700d53b
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700d536
xor eax, eax
pop esi
pop ebp
ret 8
push str.stream_read_error
push 0
call fcn.070081b0
int3

Function at 0x700d7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 8], 0
jne 0x700d833
cmp dword [esi + 0xc], 0
je 0x700d82e
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [esi + 0xc]
mov byte [esi + 0x10], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700d821
push str.stream_write_error
jmp 0x700d838
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8
push str.Attempt_to_write_read_only_stream
push 0
call fcn.070081b0
int3