joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10146176
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], ebx
call fcn.10018843
test eax, eax
jne 0x101461d8
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call sub.msvcrt.dll_wcstombs
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 5], 0
call fcn.10146043
jmp 0x10146302
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101461fe
mov eax, 0x88760389
jmp 0x10146302
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x118], eax
cmp eax, 0xffffffff
jne 0x10146228
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x10146302
cmp dword [ebp - 0x114], esi
jg 0x10146237
jl 0x10146217
cmp eax, 0x20
jb 0x10146217
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [ebp - 0x110], ebx
cmp ebx, 0xffffffff
je 0x10146217
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x1014626e
mov ebx, 0x8876038f
jmp 0x101462b2
push 0x100014bc
push 0x54
call fcn.10018970
pop ecx
pop ecx
test eax, eax
je 0x1014629d
push dword [ebp - 0x118]
mov ecx, eax
push dword [ebp - 0x10c]
push ebx
push edi
push dword [ebp - 0x120]
call fcn.10144c6c
mov esi, eax
test esi, esi
jne 0x101462c7
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 0x8007000e
push dword [ebp - 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, ebx
jmp 0x10146302
mov ecx, esi
call fcn.10144e41
mov edi, eax
test edi, edi
jns 0x101462de
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
jmp 0x10146302
mov ecx, esi
call fcn.10145ea5
mov edi, eax
test edi, edi
js 0x101462d4
mov ecx, esi
call fcn.101459a2
mov edi, eax
test edi, edi
js 0x101462d4
mov eax, dword [ebp - 0x11c]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101becf5
leave
ret 0xc

Function at 0x101464b4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 4]
test edi, edi
je 0x101464cb
cmp dword [esi], 0
jne 0x101464f3
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101464cb
mov eax, dword [ebp - 4]
add edi, eax
sub dword [esi + 8], eax
cmp dword [esi + 8], 0
jg 0x101464d5
xor eax, eax
jmp 0x101464d0
Function at 0x10147723
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push esi
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
jl 0x10147772
jg 0x1014776a
cmp eax, 0xffffffff
jbe 0x10147772
push 0xe
pop eax
jmp 0x10147895
push 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10147796
mov eax, 0x8876038f
jmp 0x10147895
cmp dword [ebp - 0x18], 0x10
jne 0x1014776a
push edi
push 0
mov esi, 0x100111ec
lea edi, [ebp - 0xb]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x1c]
push eax
push 0x10
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x14]
push eax
push esi
call edi
test eax, eax
je 0x1014788f
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push esi
call edi
test eax, eax
je 0x1014788f
push 0
lea eax, [ebp - 0x18]
push eax
push 0x8000
push dword [ebp - 0x2c]
jmp 0x1014787e
cmp dword [ebp - 0x18], 0
je 0x101478ac
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push 0x8008
push dword [ebx + 0x10]
push dword [ebp - 0x18]
push dword [ebx + 0xc]
push dword [ebx]
call fcn.1014dfca
test eax, eax
jne 0x101478a5
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
je 0x1014788f
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
je 0x1014788f
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebx + 0x10]
push esi
call edi
test eax, eax
je 0x1014788f
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x101478a5
mov eax, dword [ebx + 0xc]
push 0
lea ecx, [ebp - 0x18]
mov edx, 0x8000
push ecx
add eax, edx
push edx
mov byte [ebp - 0x28], 1
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101477f2
mov eax, 0x8876038f
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.101becf5
leave
ret 8
mov eax, 0x8007000e
jmp 0x10147894
xor eax, eax
jmp 0x10147894
Function at 0x101478b5
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push ebx
push 0x100111f4
push 0x100111f0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x101478f7
mov eax, 0x88760387
jmp 0x101479c8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10147927
mov eax, 0x8876038f
jmp 0x101479c7
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push edi
call esi
mov esi, eax
mov dword [ebp - 0x10c], esi
cmp esi, 0xffffffff
jne 0x1014794c
mov esi, 0x8876038f
jmp 0x1014798d
lea ecx, [ebp - 0x130]
call fcn.101475a8
call fcn.10147661
test eax, eax
jne 0x10147967
mov esi, 0x8007000e
jmp 0x10147976
push ebx
push esi
lea ecx, [ebp - 0x130]
call fcn.10147723
mov esi, eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x130]
call fcn.101475cc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x101479a7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x101479c5
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x101479c5
mov esi, 0x8876038f
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.101becf5
leave
ret 4
Function at 0x101479dd
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push ebx
push 0x100111fc
push 0x100111f8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10147a1f
mov eax, 0x88760387
jmp 0x10147af0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10147a4f
mov eax, 0x8876038f
jmp 0x10147aef
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push edi
call esi
mov esi, eax
mov dword [ebp - 0x210], esi
cmp esi, 0xffffffff
jne 0x10147a74
mov esi, 0x8876038f
jmp 0x10147ab5
lea ecx, [ebp - 0x234]
call fcn.101475a8
call fcn.10147661
test eax, eax
jne 0x10147a8f
mov esi, 0x8007000e
jmp 0x10147a9e
push ebx
push esi
lea ecx, [ebp - 0x234]
call fcn.10147723
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x234]
call fcn.101475cc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x10147acf
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10147aed
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10147aed
mov esi, 0x8876038f
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.101becf5
leave
ret 4

Function at 0x10149a8f
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x10011408
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10149ae3
push edi
push 0x100113f0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10149ad7
push ebx
call edi
mov dword [ebp - 0x28], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
pop edi
jne 0x10149b38
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop esi
xor ecx, ebp
pop ebx
call fcn.101becf5
leave
ret 4
Function at 0x1014a3b8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.10146b31
mov edi, dword [esi + 0xc]
mov edx, eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
test edx, edx
jne 0x1014a3e9
mov eax, 0x80004005
jmp 0x1014a509
and dword [ebp + 8], 0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1014a3f2
push 0
lea eax, [ebp + 8]
push eax
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1014a41d
mov eax, 0x8007000e
jmp 0x1014a509
mov edx, dword [ebp - 4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1014a425
push 0
lea eax, [ebp + 8]
push eax
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1014a413
test edi, edi
je 0x1014a4e5
xor esi, esi
cmp dword [edi], esi
jbe 0x1014a4e5
mov eax, dword [edi + 0xc]
mov edi, dword [eax + esi*4]
cmp dword [edi], 0
je 0x1014a488
push 0
lea eax, [ebp + 8]
push eax
push 1
push 0x100111d8
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1014a413
push 0
lea eax, [ebp + 8]
push eax
push 4
push edi
jmp 0x1014a4c8
cmp dword [edi + 4], 0
je 0x1014a4d9
push 0
lea eax, [ebp + 8]
push eax
push 1
push 0x100111d9
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1014a413
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1014a4b2
push 0
lea eax, [ebp + 8]
push eax
sub ecx, edx
lea eax, [ecx + 1]
push eax
push dword [edi + 4]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1014a413
mov edi, dword [ebp - 8]
inc esi
cmp esi, dword [edi]
jb 0x1014a458
push 0
lea eax, [ebp + 8]
push eax
push 1
push 0x100111da
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1014a797
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [edi + 8]
mov ebx, ecx
push eax
push dword [ebx + 0x30]
call esi
test eax, eax
jne 0x1014a7d3
mov eax, 0x8007000e
jmp 0x1014a98a
mov ecx, dword [edi + 4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1014a7d9
push 0
lea eax, [ebp - 4]
push eax
sub ecx, edx
lea eax, [ecx + 1]
push eax
push dword [edi + 4]
push dword [ebx + 0x30]
call esi
test eax, eax
je 0x1014a7c9
mov eax, dword [edi + 0x1c]
mov dword [ebp - 8], eax
test eax, eax
je 0x1014a84d
and dword [ebp + 8], 0
cmp dword [eax], 0
jbe 0x1014a84d
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x100111d8
push dword [ebx + 0x30]
call esi
test eax, eax
je 0x1014a7c9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
mov ecx, ebx
call fcn.1014a3b8
mov dword [ebp - 0xc], eax
test eax, eax
js 0x1014a98a
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [eax]
jb 0x1014a80b
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x100111da
push dword [ebx + 0x30]
call esi
test eax, eax
je 0x1014a7c9
cmp dword [edi + 0x24], 0
jne 0x1014a88c
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x100111db
push dword [ebx + 0x30]
call esi
test eax, eax
jne 0x1014a987
jmp 0x1014a7c9
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1014a96c
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
jbe 0x1014a96c
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [ebp + 8], eax
add eax, 4
push 4
pop ecx
mov esi, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
lea eax, [ebp - 4]
mov edi, 0x10018324
push eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
je 0x1014a91d
push 0x100111d8
push dword [ebx + 0x30]
call esi
test eax, eax
je 0x1014a7c9
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1014a8ef
push 0
lea eax, [ebp - 4]
push eax
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push dword [ebx + 0x30]
call esi
test eax, eax
je 0x1014a7c9
push 0
lea eax, [ebp - 4]
push eax
push 0x10
push dword [ebp - 0x10]
jmp 0x1014a94d
push 0x100111d9
push dword [ebx + 0x30]
call esi
test eax, eax
je 0x1014a7c9
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1014a939
push 0
lea eax, [ebp - 4]
push eax
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push dword [ebx + 0x30]
call esi
test eax, eax
je 0x1014a7c9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [eax]
jb 0x1014a8a7
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x100111da
push dword [ebx + 0x30]
call esi
test eax, eax
mov eax, 0x8007000e
je 0x1014a98a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1014f8b0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x1014f8d5
mov eax, dword [esi + 0x1a8]
mov eax, dword [eax]
push esi
call eax
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x1a8]
cmp dword [eax + 8], 0
je 0x1014f8fd
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov eax, dword [esi]
mov eax, dword [eax]
push esi
call eax
mov eax, dword [esi + 0x1a8]
cmp dword [eax + 8], 0
jne 0x1014f8e1
xor eax, eax
cmp dword [esi + 0x44], eax
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x1014f9c0
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1014f9f6
push esi
call fcn.10154040
cmp dword [esi + 0x40], 0
je 0x1014f9ef
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1014fa77
mov eax, dword [esi + 0x1b8]
cmp dword [eax + 0x10], 0
je 0x1014fa61
lea esp, [esp]
mov eax, dword [esi + 8]
test eax, eax
je 0x1014fa1c
mov eax, dword [eax]
push esi
call eax
mov eax, dword [esi + 0x1b8]
mov eax, dword [eax]
push esi
call eax
test eax, eax
je 0x1014fa5a
cmp eax, 2
je 0x1014fa61
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1014fa10
cmp eax, 3
je 0x1014fa41
cmp eax, 1
jne 0x1014fa10
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov edx, dword [esi + 8]
cmp ecx, dword [edx + 8]
jl 0x1014fa10
mov eax, dword [esi + 0x144]
add dword [edx + 8], eax
jmp 0x1014fa10
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.1014f8b0
pop esi
pop ebp
ret 4
cmp eax, 0xcc
je 0x1014fa96
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
push esi
call eax
call fcn.1014f8b0
pop esi
pop ebp
ret 4
Function at 0x10155700
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x100130a8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
push 0x100130a0
push eax
mov byte [ebp - 5], 0
call sub.msvcrt.dll__tempnam
mov edi, eax
add esp, 8
test edi, edi
je 0x1015578a
push 0
push 0x4000100
push 1
push 0
push 0
push 0x10000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x1015578a
mov dword [esi], 0x101555c0
mov dword [esi + 4], 0x10155640
mov dword [esi + 8], 0x101556c0
jmp 0x101557ca
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x3f
mov ecx, dword [ebx]
mov esi, 0x100111d8
mov edx, 0x50
add ecx, 0x18
lea eax, [edx + 0x7fffffae]
test eax, eax
je 0x101557bb
mov al, byte [esi]
test al, al
je 0x101557bb
mov byte [ecx], al
inc ecx
inc esi
dec edx
jne 0x101557a2
jmp 0x101557bf
test edx, edx
jne 0x101557c0
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx]
mov eax, dword [eax]
push ebx
call eax
test edi, edi
je 0x101557d7
push edi
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101becf5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1015f580
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
push dword [ebx + 0x1c]
mov ebx, dword [ebx + 0xf4]
push dword [ebp + 0xc]
add eax, eax
add eax, eax
add eax, eax
lea ecx, [eax + eax]
mov dword [ebp - 4], eax
call fcn.1015f310
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0xc], eax
jle 0x1015f60d
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
sub edx, ebx
mov dword [ebp + 0x10], edx
push edi
mov esi, dword [edx + ebx]
mov edx, dword [ebx]
xor edi, edi
test ecx, ecx
je 0x1015f5f7
mov ebx, ecx
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
add eax, edi
add ecx, eax
sar ecx, 1
mov byte [esi], cl
inc esi
xor edi, 1
add edx, 2
dec ebx
jne 0x1015f5d5
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
inc eax
add ebx, 4
cmp eax, dword [edx + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
jl 0x1015f5c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1015f6e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
push ebx
push esi
add ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, eax
push dword [ebx + 0x1c]
mov ebx, dword [ebx + 0xf4]
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0x10], ecx
add ecx, ecx
push edi
call fcn.1015f310
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
cmp dword [eax + 0xc], esi
jle 0x1015f798
lea ecx, [ecx]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
mov ebx, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov ecx, 1
mov dword [ebp - 4], ecx
test eax, eax
je 0x1015f786
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea esp, [esp]
movzx eax, byte [ebx + 1]
movzx edx, byte [edi + 1]
add edx, eax
movzx eax, byte [edi]
add eax, ecx
movzx ecx, byte [ebx]
add eax, edx
add ecx, eax
sar ecx, 2
mov byte [esi], cl
mov ecx, dword [ebp - 4]
xor ecx, 3
inc esi
add ebx, 2
add edi, 2
dec dword [ebp - 8]
mov dword [ebp - 4], ecx
jne 0x1015f750
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc esi
add edi, 8
mov dword [ebp + 0xc], edi
mov dword [ebp - 0xc], esi
cmp esi, dword [eax + 0xc]
jl 0x1015f720
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc