joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024ac
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x5c
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.00409830
push dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x60], 0x67452301
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], ebx
call fcn.004020df
add esp, 0x10
lea edx, [ebp - 0x60]
mov ecx, edi
call fcn.00402368
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084f8
mov esp, ebp
pop ebp
ret

Function at 0x402806
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor edx, edx
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x40280e
mov dword [edx*4 + 0x423480], ecx
inc edx
cmp edx, 0x100
jb 0x402809
mov esi, 0x800
jmp 0x402857
mov ecx, dword [edx*4 + 0x423080]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x423480]
mov dword [edx*4 + 0x423480], ecx
inc edx
cmp edx, esi
jb 0x40283b
mov dword [0x425480], 0x402abc
call fcn.0040273f
mov ecx, dword [0x425480]
test eax, eax
mov edx, 0x402b55
cmove ecx, edx
mov dword [0x425480], ecx
pop esi
ret

Function at 0x4028d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
jne 0x4028ee
xor eax, eax
jmp 0x402936
and dword [edi], 0
mov edx, 0x400000
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x402930
test ecx, ecx
je 0x4028ea
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x4028f6
jmp 0x4028ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40707c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x40709f
xor eax, eax
jmp 0x4071d9
push ebx
lea ecx, [edx - 4]
or ebx, 0xffffffff
add ecx, eax
mov dword [ebp - 8], ecx
lea edx, [edi + eax]
cmp edx, ecx
jae 0x4070c2
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4070bf
inc edx
cmp edx, ecx
jb 0x4070b2
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
cmp edx, ecx
jae 0x4071bd
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x4070f9
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x14], ebx
test al, al
je 0x407136
cmp al, 0xff
je 0x407136
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x4071b6
dec ecx
shl esi, cl
and esi, 7
je 0x4070d9
movzx eax, byte [esi + 0x4205b8]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x4205a8], 0
mov al, byte [ecx + 4]
je 0x407120
test al, al
je 0x407120
cmp al, 0xff
jne 0x4070d9
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jmp 0x4070ab
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, 5
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x40718f
movzx eax, byte [esi + 0x4205b8]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x40717e
cmp al, 0xff
jne 0x40718f
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0x10]
jmp 0x407154
mov eax, ebx
mov byte [edx + 1], bl
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x14]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x40712b
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407f23
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x208
mov esi, ecx
mov dword [ebp - 0x214], edi
push edi
push eax
mov dword [ebp - 0x210], esi
call fcn.00409830
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.004076ae
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004084f8
mov esp, ebp
pop ebp
ret

Function at 0x407f9e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x407fbe
mov eax, dword [esi]
jmp 0x407fc0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407fd2
mov al, 1
jmp 0x408069
push ebx
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00409830
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x407ff2
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040ed68
pop ecx
pop ecx
push 6
xor eax, eax
mov dword [ebp - 0x230], ebx
pop ecx
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
mov eax, 0x1494
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
cmp dword [ebp - 0x21e], ebx
je 0x408053
xor al, al
jmp 0x408068
test eax, eax
je 0x408063
cmp eax, 2
je 0x408063
cmp eax, 0x402
jne 0x408066
xor ebx, ebx
inc ebx
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004084f8
mov esp, ebp
pop ebp
ret
Function at 0x408078
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a944
mov eax, dword fs:[0]
push eax
mov eax, 0x228c
call fcn.0041a4f0
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x2294], edi
test ebx, ebx
je 0x40821f
lea eax, [ebp - 0x248]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jae 0x40821f
test eax, eax
je 0x40821f
push 0
call fcn.0040ee09
push eax
call fcn.0040ec34
pop ecx
pop ecx
xor esi, esi
and dword [ebp - 0x2268], 0
xor eax, eax
mov dword [ebp - 0x2264], 7
mov word [ebp - 0x2278], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x2278]
push 0xffffffffffffffff
push eax
push edi
call fcn.00407738
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
push 0xa
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push 0x14
push eax
call fcn.0040ec13
cdq
mov ecx, 0x7fff
idiv ecx
push edx
call fcn.0040ed33
add esp, 0x10
cmp word [ebp - 0x38], 0
jne 0x408151
xor edi, edi
mov eax, edi
jmp 0x40815d
lea eax, [ebp - 0x38]
push eax
call fcn.0040e992
pop ecx
xor edi, edi
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2278]
call fcn.004077e9
xor eax, eax
mov dword [ebp - 0x227c], 7
mov word [ebp - 0x2290], ax
lea ecx, [ebp - 0x2290]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x2280], edi
push eax
call fcn.004076ae
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2278]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2290]
call fcn.0040797f
push eax
lea ecx, [ebp - 0x2260]
call fcn.0040762f
push edi
push 1
lea ecx, [ebp - 0x2290]
mov byte [ebp - 4], 3
call fcn.00407657
cmp dword [ebp - 0x224c], 8
lea eax, [ebp - 0x2260]
push edi
cmovae eax, dword [ebp - 0x2260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40823d
push edi
push 1
lea ecx, [ebp - 0x2260]
call fcn.00407657
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2278]
push edi
push 1
call fcn.00407657
mov edi, dword [ebp - 0x2294]
inc esi
cmp esi, 0x32
jl 0x4080f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084f8
mov esp, ebp
pop ebp
ret
push 0x2000
lea eax, [ebp - 0x2248]
push edi
push eax
call fcn.00409830
add esp, 0xc
lea ecx, [ebp - 0x2248]
cmp dword [ebp - 0x224c], 8
lea eax, [ebp - 0x2260]
cmovae eax, dword [ebp - 0x2260]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x408281
xor bl, bl
jmp 0x408291
lea eax, [ebp - 0x2248]
mov ecx, ebx
push eax
call fcn.004076ae
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2260]
call fcn.00407657
push 0
push 1
lea ecx, [ebp - 0x2278]
call fcn.00407657
mov al, bl
jmp 0x408221
Function at 0x4082b6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, edx
push esi
mov esi, eax
push edi
test ecx, ecx
je 0x408350
test ebx, ebx
je 0x408350
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push ecx
mov dword [ebx], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408345
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x408345
mov esi, dword [ebp - 0x10]
push esi
call fcn.00408546
push esi
push 0
push eax
mov dword [ebp - 8], eax
call fcn.00409830
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0x10
push 0
push eax
push esi
mov esi, dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408345
mov eax, dword [ebp - 4]
mov dword [ebx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x408352
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408359
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x420ea0
call fcn.00408f60
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x40837a
mov dword [ebp - 4], 0xfffffffe
jmp 0x4083b0
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x408371
mov edx, dword [ecx + 0x3c]
add edx, ecx
je 0x408371
cmp dword [edx], 0x4550
jne 0x408371
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x4083b0
call fcn.00408fa6
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403cf8
sub eax, 0x403c9e
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10001160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x3c]
add eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add eax, 0x78
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x1c]
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x20]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x24]
add eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jae 0x100012e2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + ecx*4], 0
jne 0x1000122c
jmp 0x100012d2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
jae 0x100012cd
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
movzx eax, word [eax + ecx*2]
cmp eax, dword [esp + 0x1c]
jne 0x100012b8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.100010f0
cmp eax, 0
jne 0x100012b3
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x54], eax
jmp 0x100012ea
jmp 0x100012b8
jmp 0x100012bd
mov eax, dword [esp + 0x14]
add eax, 1
mov dword [esp + 0x14], eax
jmp 0x10001243
jmp 0x100012d2
mov eax, dword [esp + 0x1c]
add eax, 1
mov dword [esp + 0x1c], eax
jmp 0x10001207
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x54]
mov esp, ebp
pop ebp
ret
Function at 0x10003ca0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x1002cea0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.10034ee9
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x1002cedf
sub eax, 1
je 0x1002ceda
sub eax, 1
je 0x1002ced6
xor eax, eax
leave
ret
push 3
jmp 0x1002cee1
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1004f99d
Capabilities:
Parse pe header

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

Function at 0x10064e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10064ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10064ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1006821f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1008f7c0
push str.FlsAlloc
push 0x1f
call fcn.10068c40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068253
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10068259
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006829d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1008f7e4
push str.FlsGetValue
push 0x21
call fcn.10068c40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100682d4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100682dc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1008f7f8
push str.FlsSetValue
push 0x22
call fcn.10068c40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068316
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1006dd13
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1009a4d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1006dd5e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1006e005
test al, al
jne 0x1006dd58
sub edx, 2
cmp edx, edi
jne 0x1006dd3e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1006dd80
lea eax, [edi + 2]
cmp edx, eax
je 0x1006dd80
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1006dc5f
add esp, 0x10
jmp 0x1006de7a
push esi
lea ecx, [ebp - 0x255]
call fcn.1006e005
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006ddc3
push dword [ebp - 0x25c]
jmp 0x1006dd70
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1006de00
cmp word [ebp - 0x226], 0
je 0x1006de21
cmp word [ebp - 0x226], ax
jne 0x1006de00
cmp word [ebp - 0x224], 0
je 0x1006de21
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1006dc5f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1006de6d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1006ddda
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1006de55
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1006de7a
push 0x1006e043
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.1007d890
add esp, 0x10
jmp 0x1006de4a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cfa4
leave
ret
Function at 0x1006eb5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002d4e0
mov eax, dword [0x1009a4d4]
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.1006caf9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006eb9f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006ecfb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100706a0
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 + 0x1009c8f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006e58c
mov ecx, dword [esi*4 + 0x1009c8f8]
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 0x1006ecf4
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006ecf4
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 0x1006ecf4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006e58c
add esp, 0x14
test edx, edx
jl 0x1006ecf4
jg 0x1006ec6a
test eax, eax
jb 0x1006ecf4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006ecf4
jl 0x1006ec84
cmp dword [ebp - 0x1008], eax
ja 0x1006ecf4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006eca2
test ebx, ebx
je 0x1006ecdb
cmp ecx, edi
jae 0x1006ecdb
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006ecbc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006ecc8
cmp byte [ecx + 1], 0xa
jne 0x1006ecc8
inc ecx
jmp 0x1006ecc8
movzx eax, al
movsx eax, byte [eax + 0x1009adf0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006eca2
cmp edx, ebx
jne 0x1006eca2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006ecf9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000cfa4
leave
ret
Function at 0x1006fc29
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 0x1006fcc6
push ebx
push esi
call fcn.1006fd2c
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.100652c7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006fc73
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006fcc5
push edi
push eax
call fcn.100651b7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1006fc93
call fcn.10065177
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006fcc4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100652c7
add esp, 0x20
test eax, eax
jne 0x1006fcb2
push edi
call fcn.10065177
jmp 0x1006fcba
push ebx
call fcn.10065177
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 0x1006fcc9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1006fcda
pop esi
ret
push ebx
push edi
push esi
call fcn.1006fd2c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100651b7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1006fd02
push ebx
push esi
push edi
call fcn.10031820
add esp, 0xc
push 0
call fcn.10065177
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1006fdd3
Capabilities:
Set environment variable

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