joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c427
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1004b3b4
call fcn.1001de1b
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1003c488
call fcn.1003a493
mov esi, eax
jmp 0x1003c560
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1003c4a6
call fcn.1003a493
jmp 0x1003c557
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1003c49c
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x1003c4d9
mov esi, 0x8007000e
jmp 0x1003c559
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10013787
mov dword [ebp - 4], 1
jmp 0x1003c50d
cmp dword [ebp - 0x418], 0
je 0x1003c4cf
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1003c49c
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10013787
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1003c579
lea ecx, [ebp - 0x418]
call fcn.1003c65f
lea ecx, [ebp - 0x428]
call fcn.1003a479
mov eax, esi
call fcn.1001df2e
ret 0x10
Function at 0x1003c69d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 8
mov eax, 0x1004b42a
call fcn.1000d553
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1003c6ee
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x1003c6d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003c6e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x1003c7be
cmp dword [ebp + 0xc], 0
jne 0x1003c6fe
mov esi, 0x80004003
jmp 0x1003c795
lea eax, [ebp - 0x10]
push eax
call fcn.10013787
mov esi, eax
test esi, esi
js 0x1003c795
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
je 0x1003c795
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x1003c733
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1003c6f4
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], esp
test eax, eax
je 0x1003c74b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
push esi
call fcn.1003cef1
mov esi, eax
test esi, esi
js 0x1003c795
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.MSO.dll_Ordinal_469]
mov esi, eax
test esi, esi
js 0x1003c795
push dword [ebp - 0x14]
call fcn.10013787
test eax, eax
jne 0x1003c784
mov esi, 0x80004005
jmp 0x1003c795
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
cmp dword [ecx], eax
je 0x1003c795
push eax
push ecx
call fcn.10013787
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x1003c7ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003c7bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.1000d5f3
ret 8
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000c455
pop dword [ebp - 0x1c]
mov eax, 0xbd686f9a
sub eax, 0xad67ab45
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x330fd
push 0
mov eax, 0xcc308a3d
add eax, 0x43d0b627
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x3058
xor edi, edi
add edi, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x1c]
mov esi, 0x84bafc48
add esi, 0x73274a22
add dword [ebp - 0x14], 0x820004e0
mov edx, dword [ebx]
add dword [ebp - 0x14], edx
sub edx, esi
mov dword [edi], edx
xor dword [ebp - 4], edi
add edi, 0x5558c55e
sub edi, 0x5558c55a
add ebx, 0x679d0f0b
add ebx, 0x9862f0f9
loop 0x1000c4aa
add eax, 0xb433
xor ebx, ebx
add ebx, eax
add eax, 0xc4f1201c
add eax, 0x3b0edfe9
mov ecx, 0x2b6aab2
sub ecx, 0xf2b6aab2
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40611c
pop dword [ebp - 0x44]
mov eax, 0xc1c7bd25
add eax, 0x3e78a3f7
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x53310e1f
add dword [ebp - 0x54], 0xfb21372c
mov dword [ebp - 0x50], 0x8ff7c0bd
add dword [ebp - 0x50], 0xa23b8b88
mov dword [ebp - 0x4c], 0x3d989554
add dword [ebp - 0x4c], 0xeb3aeda
mov dword [ebp - 0x48], 0x43b8c874
add dword [ebp - 0x48], 0xbc47378c
lea eax, [ebp - 0x54]
push eax
mov eax, 0x7dec6c21
add eax, 0x8254043f
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xe5f09ba0
sub dword [ebp - 0x54], 0x717e324a
mov dword [ebp - 0x50], 0x9d162dbc
add dword [ebp - 0x50], 0xa45633b9
mov dword [ebp - 0x4c], 0x5ad618e2
sub dword [ebp - 0x4c], 0xf766ac76
mov dword [ebp - 0x48], 0x47ed4681
add dword [ebp - 0x48], 0xb812b97f
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xd7a546e0
sub eax, 0xd764d5e0
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x35b8f
push 0
call eax
mov ecx, 0x935343b5
sub ecx, 0x9352ff40
xor edi, edi
add edi, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x44]
mov edx, 0xe75e0374
sub edx, 0x8dc64c02
add dword [ebp - 0x28], edx
mov esi, dword [ebx]
xor dword [ebp - 0xc], 0xa6100f7
sub esi, edx
sub dword [ebp - 0x18], edx
mov dword [edi], esi
add dword [ebp - 0x20], 0x8b6c973a
add edi, 4
add ebx, 4
loop 0x40623a
add eax, 0x104a7
mov ebx, eax
add eax, 0xdd83d706
sub eax, 0xdd83d701
mov ecx, 0x70180474
add ecx, 0x9027fb8c
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x1000894b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1000895a
pop dword [ebp - 0x50]
mov eax, 0x7cab9f06
sub eax, 0x6cab15ac
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xe88a36b3
add dword [ebp - 0x60], 0x65c80e98
mov dword [ebp - 0x5c], 0xe72f5db2
add dword [ebp - 0x5c], 0x4b03ee93
mov dword [ebp - 0x58], 0x4b2a1736
add dword [ebp - 0x58], 0x1222cf8
mov dword [ebp - 0x54], 0x7bd54892
sub dword [ebp - 0x54], 0x7bd54892
lea eax, [ebp - 0x60]
push eax
mov eax, 0x76d5522f
sub eax, 0x66d301ab
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x4e734aa6
add dword [ebp - 0x60], 0x25ff1eb0
mov dword [ebp - 0x5c], 0x2fbc92db
sub dword [ebp - 0x5c], 0xee503166
mov dword [ebp - 0x58], 0x742941cf
sub dword [ebp - 0x58], 0x10b9d563
mov dword [ebp - 0x54], 0xc4de7d40
add dword [ebp - 0x54], 0x3b2182c0
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x370f7
push 0
call eax
mov ecx, 0xd78f4766
sub ecx, 0xd78f10b9
xor ebx, ebx
add ebx, eax
mov edi, 0x10030c00
add edi, dword [ebp - 0x50]
mov edx, 0x7ca8284
sub edx, 0xf8e10041
sub dword [ebp - 0x4c], edi
mov esi, dword [edi]
mov dword [ebp - 0x38], 0x83e6e719
add esi, edx
xor dword [ebp - 0x30], edi
mov dword [ebx], esi
add dword [ebp - 0x40], esi
add ebx, 0xc6c965ae
sub ebx, 0xc6c965aa
add edi, 0xe4f0f94a
sub edi, 0xe4f0f946
loop 0x10008a73
add eax, 0x909b0cf1
add eax, 0x6f65c096
xor ebx, ebx
add ebx, eax
add eax, 0xb24b2365
sub eax, 0xb24b2360
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001c970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001c998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001c9b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1000894b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022650
leave
ret 4

Function at 0x1001cb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cbb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cc15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1000894b
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1000894b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1000894b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022650
leave
ret 0x10

Function at 0x1001cc30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cc5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cc8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cc8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1000894b
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cc8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022650
leave
ret 8
Function at 0x10025fd7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10077722
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6074
push 0x100a606c
push str.FlsAlloc
push 0x1e
call fcn.100773f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10077756
push dword [ebp + 8]
mov ecx, esi
call dword [0x100961f4]
call esi
jmp 0x1007775c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100777a0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6084
push 0x100a607c
push str.FlsGetValue
push 0x20
call fcn.100773f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100777d7
push dword [ebp + 8]
mov ecx, esi
call dword [0x100961f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100797d0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100b41b0]
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 0x1007981b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10079be6
test al, al
jne 0x10079815
sub edx, 2
cmp edx, edi
jne 0x100797fb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1007983d
lea eax, [edi + 2]
cmp edx, eax
je 0x1007983d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10079497
add esp, 0x10
jmp 0x10079937
push esi
lea ecx, [ebp - 0x255]
call fcn.10079be6
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 0x10079880
push dword [ebp - 0x25c]
jmp 0x1007982d
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 0x100798bd
cmp word [ebp - 0x226], 0
je 0x100798de
cmp word [ebp - 0x226], ax
jne 0x100798bd
cmp word [ebp - 0x224], 0
je 0x100798de
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10079497
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1007992a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10079897
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x10079912
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10079937
push 0x10078ee7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10085620
add esp, 0x10
jmp 0x10079907
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.10023dde
leave
ret
Function at 0x1007b2c6
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 0x1007b363
push ebx
push esi
call fcn.1007b282
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.1007b174
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007b310
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007b362
push edi
push eax
call fcn.10078bc5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007b330
call fcn.100766f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007b361
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007b174
add esp, 0x20
test eax, eax
jne 0x1007b34f
push edi
call fcn.100766f4
jmp 0x1007b357
push ebx
call fcn.100766f4
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 0x1007b366
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1007b377
pop esi
ret
push ebx
push edi
push esi
call fcn.1007b282
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10078bc5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1007b39f
push ebx
push esi
push edi
call fcn.100457c0
add esp, 0xc
push 0
call fcn.100766f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1007bc80
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007b612
Function at 0x1008a4d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x100b7bb8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008a517
cmp byte [ebx], 0xa
jne 0x1008a517
or byte [eax + edi + 0x28], 4
jmp 0x1008a51c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1008a61a
mov al, byte [edx]
cmp al, 0x1a
je 0x1008a5fc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1008a54b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1008a570
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1008a57a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1008a52d
jmp 0x1008a61a
push 0
lea eax, [ebp - 0xc]
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 0x1008a5f7
cmp dword [ebp - 0xc], 0
je 0x1008a5f7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100b7bb8]
test byte [eax + edi + 0x28], 0x48
je 0x1008a5d1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1008a5bc
mov byte [esi], dl
jmp 0x1008a5cd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b7bb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1008a61a
cmp byte [ebp - 1], 0xa
jne 0x1008a5e0
cmp esi, ebx
jne 0x1008a5e0
mov byte [esi], 0xa
jmp 0x1008a619
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10085449
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1008a61a
mov byte [esi], 0xd
jmp 0x1008a619
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100b7bb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1008a616
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1008a61a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008a623
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100b7bb8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008a666
cmp word [esi], dx
jne 0x1008a666
or byte [edi + eax + 0x28], 4
jmp 0x1008a66b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1008a7a4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1008a784
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1008a6ad
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1008a6e3
cmp eax, edx
jae 0x1008a6ef
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1008a685
jmp 0x1008a7a4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008a780
cmp dword [ebp - 0x14], 0
je 0x1008a780
mov eax, dword [ebx*4 + 0x100b7bb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1008a758
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1008a79e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100b7bb8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100b7bb8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100b7bb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1008a7a1
pop ebx
cmp word [ebp - 4], bx
jne 0x1008a769
cmp esi, dword [ebp + 0xc]
jne 0x1008a769
mov word [esi], bx
jmp 0x1008a7a1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10085449
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1008a7a4
push 0xd
jmp 0x1008a79d
mov ecx, dword [ebx*4 + 0x100b7bb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1008a79b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1008a7a4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret