joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1023473
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x1010
lea ebp, [esp - 0xf90]
call fcn.01037290
mov eax, dword [0x1067a40]
push edi
mov dword [ebp + 0xf8c], eax
call fcn.0105d782
mov eax, dword [eax + 8]
mov edi, 0x800
push edi
lea ecx, [ebp + 0x78c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10234b8
xor al, al
jmp 0x102363f
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x78c]
push eax
mov byte [ebp + 0xf8b], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x10234e6
push edi
lea eax, [ebp + 0x78c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01021459
push ebx
push esi
push edi
push 0x10063c8
lea eax, [ebp - 0x74]
push eax
call fcn.01021489
mov ebx, dword [ebp + 0xf98]
cmp byte [ebx], 0x3a
mov byte [ebp - 0x75], 1
jne 0x102363a
lea esi, [ebx + 1]
cmp byte [esi], 0
je 0x102363a
cmp byte [esi], 0x3a
je 0x1023521
inc esi
cmp byte [esi], 0
jne 0x1023516
cmp byte [esi], 0
je 0x102363a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x78c]
push eax
push ebx
mov byte [ebx], 0x2e
push 0x80000000
mov byte [esi], 0
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x1023556
cmp byte [ebp + 0x78c], al
jne 0x1023598
lea eax, [ebx + 1]
push eax
push 0x10063fc
lea eax, [ebp + 0x78c]
push edi
push eax
mov byte [ebp + 0xf8b], 0
call fcn.010213c8
lea eax, [ebp + 0x78c]
push eax
call fcn.01036be8
add esp, 0x14
lea eax, [ebp + 0x78c]
push eax
push ebx
call fcn.01021b13
neg eax
sbb al, al
inc al
and byte [ebp - 0x75], al
push edi
push 0x10063e0
lea eax, [ebp + 0x78c]
push eax
call fcn.01021489
lea eax, [ebp + 0x78c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10235b3
sub eax, ecx
mov dword [ebp + 0xf98], edi
sub dword [ebp + 0xf98], eax
push dword [ebp + 0xf98]
lea eax, [ebp + eax + 0x78c]
push 0x10063d8
push eax
mov dword [ebp - 0x7c], eax
call fcn.01021459
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x78c]
push eax
call fcn.01021b13
push dword [ebp + 0xf98]
neg eax
sbb al, al
push 0x10063d0
push dword [ebp - 0x7c]
inc al
and byte [ebp - 0x75], al
call fcn.01021459
push 0x100e2c0
lea eax, [ebp + 0x78c]
push eax
call fcn.01021b13
neg eax
sbb al, al
inc al
and byte [ebp - 0x75], al
mov byte [ebx], 0x3a
mov byte [esi], 0x3a
cmp byte [esi], 0x3a
mov ebx, esi
je 0x102350a
mov al, byte [ebp - 0x75]
pop esi
pop ebx
mov ecx, dword [ebp + 0xf8c]
pop edi
call fcn.01032376
add ebp, 0xf90
leave
ret 4
Function at 0x1023655
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x10
push 0x1006408
call fcn.0103712c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x19], bl
xor eax, eax
mov esi, dword [ebp + 0xc]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
push ebx
push 0x8000080
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10236d6
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x10236ae
cmp dword [edi], ebx
je 0x10236e1
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x10236d6
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x10236e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x10236e5
mov byte [ebp - 0x19], 1
or dword [ebp - 4], 0xffffffff
call fcn.010236fe
mov al, byte [ebp - 0x19]
call fcn.01037167
ret 8
Function at 0x1024870
Capabilities:
Extract resource via kernel32 functions
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call fcn.0105d782
mov esi, dword [eax + 0xc]
movzx eax, word [ebp + 8]
push 0x1007014
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1024a33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1024a33
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x1024a33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1024a33
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10248d7
mov ebx, dword [ebp + 0x10]
sub eax, edx
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
sub eax, 0
je 0x1024965
dec eax
je 0x102493c
dec eax
je 0x102492b
dec eax
je 0x102490b
push dword [ebp + 0x14]
push 0x1007010
push ebx
call fcn.01021459
jmp 0x1024984
mov esi, dword [ebp + 0x14]
sub esi, dword [ebp - 8]
dec esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1024a26
cmp eax, esi
jbe 0x1024984
jmp 0x1024a26
mov esi, dword [ebp + 0x14]
sub esi, dword [ebp - 8]
push ebx
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x102491a
call fcn.0105d782
mov esi, dword [ebp + 0x14]
sub esi, dword [ebp - 8]
mov eax, dword [eax + 8]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1024a26
cmp eax, esi
ja 0x1024a26
jmp 0x102496e
cmp byte [ebx], 0
je 0x1024a26
push 0x5c
push ebx
call fcn.01037a40
test eax, eax
pop ecx
pop ecx
je 0x1024a26
mov byte [eax + 1], 0
cmp byte [ebx], 0
je 0x1024a26
push dword [ebp + 0x14]
push ebx
call fcn.01021548
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.01021489
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.01023655
test al, al
je 0x10249db
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 0x18], ecx
jne 0x10249c8
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov byte [ebp + 0xb], 1
je 0x10249cc
mov byte [ebp + 0xb], 0
lea eax, [ebp - 0x24]
push eax
call fcn.01021dde
cmp byte [ebp + 0xb], 0
jne 0x1024a3c
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor edi, edi
push edi
push 0x8000080
push 2
push edi
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1024a26
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1024a3c
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x10248ea
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
mov al, 1
jmp 0x1024a35
Function at 0x1028cd4
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x106937c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, ecx
jne 0x1028cfe
push 0x1008620
call ebp
cmp eax, ebx
mov dword [0x106937c], eax
je 0x1028dd3
cmp dword [0x1069380], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x1028d22
push 0x1008610
push eax
call edi
cmp eax, ebx
mov dword [0x1069380], eax
je 0x1028dd2
cmp dword [0x1069384], ebx
jne 0x1028d44
push 0x1008600
push dword [0x106937c]
call edi
cmp eax, ebx
mov dword [0x1069384], eax
je 0x1028dd2
cmp dword [0x1069388], ebx
jne 0x1028d62
push 0x10085ec
push dword [0x106937c]
call edi
cmp eax, ebx
mov dword [0x1069388], eax
je 0x1028dd2
cmp byte [esi + 0xd], bl
jne 0x1028d76
push ebx
call dword [0x1069380]
test eax, eax
jl 0x1028d76
mov byte [esi + 0xd], 1
add esi, 0x14
cmp dword [esi], ebx
jne 0x1028d9b
push esi
push 0x100174c
push 4
push ebx
push 0x100176c
call dword [0x1069388]
test eax, eax
jge 0x1028d97
mov dword [esi], ebx
cmp dword [esi], ebx
je 0x1028dd2
cmp dword [0x106938c], ebx
jne 0x1028dd2
push 0x10085dc
call ebp
cmp eax, ebx
mov dword [0x106938c], eax
je 0x1028dd2
push 0x10085c8
push eax
call edi
push 0x10085b8
push dword [0x106938c]
mov dword [0x1069390], eax
call edi
mov dword [0x1069394], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10297c9
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10609f0
call fcn.01036ab0
push ecx
add ecx, 8
push ebx
push ecx
lea ecx, [ebp - 0x10]
call fcn.01048cbd
push dword [ebp + 8]
and dword [ebp - 4], 0
push 0x1003634
lea ecx, [ebp - 0x10]
call fcn.01041e69
push 1
push 0
push 0
push dword [ebp - 0x10]
push 0x100362c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
seta bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01048f48
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x102a56c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
test byte [esi + 4], 1
jne 0x102a5a2
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x102a59e
xor ecx, ecx
mov cx, word [esi + 4]
shr eax, 2
xor eax, ecx
test al, 4
je 0x102a59e
and cx, 0xfffd
mov word [esi + 4], cx
jmp 0x102a5a2
or byte [esi + 4], 2
movzx eax, word [esi + 4]
pop esi
ret

Function at 0x102a7e5
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x1067a40]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x798]
cmp esi, ebx
mov dword [ebp + 0x78c], eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
je 0x102a8b4
push edi
push 0x3b
push esi
call fcn.01036e40
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x78], eax
je 0x102a82e
mov byte [eax], bl
inc eax
mov dword [ebp - 0x78], eax
movsx eax, byte [esi]
push eax
call fcn.01036d83
test eax, eax
pop ecx
jne 0x102a841
cmp byte [esi], 0x22
jne 0x102a844
inc esi
jmp 0x102a82e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x102a849
sub eax, edx
lea edi, [eax + esi - 1]
jmp 0x102a86e
movsx eax, byte [edi]
push eax
call fcn.01036d83
test eax, eax
pop ecx
jne 0x102a86b
cmp byte [edi], 0x22
jne 0x102a872
mov byte [edi], bl
dec edi
cmp edi, esi
jae 0x102a858
cmp byte [esi], bl
je 0x102a8a8
push 0x800
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
push ebx
je 0x102a891
lea eax, [ebp - 0x74]
push eax
jmp 0x102a892
push esi
call fcn.0102a5a8
mov ecx, dword [ebp - 0x80]
cmp ecx, ebx
je 0x102a8a2
mov dword [ecx], eax
jmp 0x102a8a5
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], eax
mov esi, dword [ebp - 0x78]
cmp esi, ebx
jne 0x102a817
pop edi
mov ecx, dword [ebp + 0x78c]
mov eax, dword [ebp - 0x7c]
pop esi
pop ebx
call fcn.01032376
add ebp, 0x790
leave
ret 4
Function at 0x102a8ce
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x101c
lea ebp, [esp - 0xf9c]
call fcn.01037290
mov eax, dword [0x1067a40]
push ebx
mov dword [ebp + 0xf98], eax
lea eax, [ebp - 0x70]
push eax
xor ebx, ebx
push 1
push ebx
push 0x1008cd4
push 0x80000002
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x102a919
xor eax, eax
jmp 0x102aa2f
push esi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x798]
push eax
push ebx
push ebx
push 0x1008cc4
push dword [ebp - 0x70]
mov edi, 0x800
mov dword [ebp - 0x74], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102a95f
mov byte [ebp + 0xf97], al
push edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x798]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x6c], eax
jmp 0x102a962
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x6c], ebx
jne 0x102a97c
push edi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
mov dword [ebp - 0x6c], eax
jb 0x102a97c
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp - 0x6c]
mov byte [ebp + eax - 0x68], 0
push edi
lea eax, [ebp - 0x68]
push eax
call fcn.01021548
lea eax, [ebp - 0x68]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x102a994
sub eax, esi
lea eax, [ebp + eax - 0x68]
lea ecx, [ebp - 0x6c]
push ecx
push eax
push ebx
lea esi, [ebp + 0x798]
push ebx
mov dword [ebp - 0x80], eax
sub esi, eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x798]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x102aa12
inc dword [ebp - 0x78]
lea eax, [ebp + 0x798]
push 0x1008cc4
push eax
call fcn.01036dbd
test eax, eax
pop ecx
pop ecx
je 0x102a9f9
lea eax, [ebp + 0x798]
push eax
lea eax, [ebp - 0x68]
push eax
push 0xc
push dword [ebp - 0x7c]
call fcn.0102a651
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push 0
push 0
push eax
lea eax, [ebp + 0x798]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x70]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x6c], esi
call ebx
test eax, eax
je 0x102a9c7
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
mov ecx, dword [ebp + 0xf98]
pop ebx
call fcn.01032376
add ebp, 0xf9c
leave
ret
Function at 0x102b13d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x178
push 0x1008e70
call fcn.0103712c
mov eax, dword [0x1067a40]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x188], ecx
xor ebx, ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x184], ebx
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x102b2b7
cmp byte [edi], bl
je 0x102b2b7
mov esi, 0x154
push esi
push 0x1008e34
lea eax, [ebp - 0x170]
push eax
call fcn.01021459
push esi
push edi
call fcn.010215c4
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.01021489
mov dword [ebp - 0x174], ebx
lea eax, [ebp - 0x174]
push eax
push 1
push ebx
lea eax, [ebp - 0x170]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x102b2b7
cmp dword [ebp - 0x174], ebx
je 0x102b2b7
mov dword [ebp - 0x178], ebx
lea eax, [ebp - 0x178]
push eax
push ebx
push ebx
push ebx
mov edi, 0x10046b4
push edi
push dword [ebp - 0x174]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
jne 0x102b2ab
cmp dword [ebp - 0x178], ebx
je 0x102b2ab
mov dword [ebp - 4], ebx
push dword [ebp - 0x178]
call fcn.01021386
mov dword [ebp - 0x17c], eax
mov byte [eax], bl
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x180]
push eax
push dword [ebp - 0x17c]
push ebx
push ebx
push edi
push dword [ebp - 0x174]
call esi
test eax, eax
jne 0x102b281
cmp dword [ebp - 0x180], ebx
je 0x102b281
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x178]
mov byte [ecx + eax - 1], bl
push dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x188]
call fcn.0102a7e5
mov dword [ebp - 0x184], eax
or dword [ebp - 4], 0xffffffff
call fcn.0102b292
mov eax, dword [ebp - 0x184]
jmp 0x102b2b9
push dword [ebp - 0x174]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x1c]
call fcn.01032376
call fcn.01037167
ret 4
Function at 0x102c595
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x178
push 0x10091e8
call fcn.0103712c
mov eax, dword [0x1067a40]
mov dword [ebp - 0x1c], eax
xor edi, edi
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x17c], edi
mov byte [ebp - 0x171], 0
mov dword [ebp - 4], edi
mov esi, 0x154
push esi
push 0x1008e34
lea eax, [ebp - 0x170]
push eax
call fcn.01021459
push esi
push dword [ebp + 8]
call fcn.010215c4
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.01021489
lea eax, [ebp - 0x17c]
push eax
push 1
push edi
lea eax, [ebp - 0x170]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x102c726
cmp dword [ebp - 0x17c], edi
je 0x102c726
mov dword [ebp - 0x180], edi
lea eax, [ebp - 0x180]
push eax
push edi
push edi
push edi
mov ebx, 0x10046b4
push ebx
push dword [ebp - 0x17c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
jne 0x102c726
cmp dword [ebp - 0x180], edi
je 0x102c726
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x184], eax
cmp eax, edi
je 0x102c726
mov ecx, dword [ebp - 0x180]
lea edi, [eax + ecx + 4]
mov dword [ebp - 0x188], edi
push edi
call fcn.01021386
mov dword [ebp - 0x178], eax
mov byte [eax], 0
mov dword [ebp - 0x180], edi
lea eax, [ebp - 0x180]
push eax
push dword [ebp - 0x178]
push 0
push 0
push ebx
push dword [ebp - 0x17c]
call esi
test eax, eax
jne 0x102c724
cmp dword [ebp - 0x180], edi
ja 0x102c724
mov eax, dword [ebp - 0x178]
cmp byte [eax], 0
je 0x102c724
mov byte [edi + eax - 1], 0
mov esi, dword [ebp - 0x178]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x102c6d6
sub eax, ecx
add eax, esi
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov byte [eax], 0x3b
inc dword [esi]
mov eax, dword [esi]
mov ecx, edi
sub ecx, eax
add ecx, dword [ebp - 0x178]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x184], eax
mov ecx, dword [esi]
sub edi, ecx
add edi, dword [ebp - 0x178]
cmp eax, edi
jb 0x102c719
and dword [esi], 0
jmp 0x102c724
mov byte [ecx + eax], 0
mov byte [ebp - 0x171], 1
xor edi, edi
or dword [ebp - 4], 0xffffffff
call fcn.0102c747
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x1c]
call fcn.01032376
call fcn.01037167
ret 8
Function at 0x102d0ed
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0x40
jb 0x102d1d1
cmp word [ecx], 0x5a4d
jne 0x102d1d1
mov edx, dword [ecx + 0x3c]
add edi, 0xffffff08
cmp edx, edi
lea eax, [edx + ecx]
ja 0x102d182
cmp dword [eax], 0x4550
jne 0x102d182
lea ecx, [eax + 0x18]
mov byte [esi + 0x1c], 0
mov dx, word [ecx]
cmp dx, 0x20b
jne 0x102d163
or dword [esi + 0x34], 2
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x20]
or byte [edx + 9], 0x20
mov byte [esi + 0x1c], 1
lea edx, [eax + 4]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
movzx ecx, word [eax + 0x14]
lea eax, [ecx + eax + 0x18]
mov dword [esi + 0x28], eax
xor eax, eax
inc eax
jmp 0x102d1f1
cmp dx, 0x10b
je 0x102d147
push 0x1009340
push 0
push dword [esp + 0x14]
mov ecx, esi
call fcn.0102cfe6
or dword [esi + 0x38], 0x10
jmp 0x102d1ef
or byte [esi + 0x39], 1
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x20]
or byte [edx + 0xa], 4
mov edx, dword [esi + 0xc]
sub edx, 0x40
cmp dword [ecx + 0x3c], edx
ja 0x102d1c0
cmp word [eax], 0x454e
jne 0x102d1c0
mov al, byte [eax + 0x36]
cmp al, 1
jne 0x102d1b1
push 0x10092f8
jmp 0x102d1c5
cmp al, 4
je 0x102d1b9
cmp al, 2
jne 0x102d1c0
push 0x10092b0
jmp 0x102d1c5
push 0x1009268
push 0
push edi
mov ecx, esi
call fcn.0102cfe6
jmp 0x102d1ef
mov edi, dword [esp + 0xc]
push 0x1009210
push 0
push edi
mov ecx, esi
call fcn.0102cfe6
or byte [esi + 0x39], 1
mov eax, dword [edi + 0x20]
or byte [eax + 0xa], 4
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x102e186
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, esi
cdq
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x54]
and dword [ebp - 0x70], 0
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x74], edx
jmp 0x102e24d
inc dword [ebp - 0x70]
mov eax, dword [eax]
test eax, eax
jne 0x102e248
mov edi, dword [ebp + 8]
push 0x78
lea eax, [ebp - 0x78]
push eax
push edi
call fcn.01021638
test al, al
je 0x102e29e
push dword [esi + 0x80]
push edi
call fcn.01021729
test eax, eax
je 0x102e29e
push dword [esi + 0x78]
push edi
call fcn.01021729
test eax, eax
je 0x102e29e
mov esi, dword [esi + 0x74]
jmp 0x102e295
push esi
push edi
mov ecx, ebx
call fcn.0102c8bc
test eax, eax
je 0x102e29e
mov esi, dword [esi]
test esi, esi
jne 0x102e286
xor eax, eax
inc eax
jmp 0x102e2a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x102e7a8
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor eax, eax
cmp edi, eax
mov esi, ecx
je 0x102e7c4
cmp edi, 0xffffffff
jne 0x102e8a8
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push eax
push 1
mov ecx, ebx
call fcn.0102bafd
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x102e83d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0x7fff
cmp eax, 2
jne 0x102e818
push 0x100a0b8
push 0
push ebx
mov ecx, esi
call fcn.0102cfe6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x102e926
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 0x7c]
cmp ecx, dword [eax + 0x80]
jne 0x102e838
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0xffffffff
jne 0x102e8a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x102e853
cmp eax, 3
je 0x102e853
or byte [esi + 0x3a], 4
jmp 0x102e891
mov ecx, dword [ebx + 0x20]
or byte [ecx + 0xa], 8
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x102e88d
cmp ecx, ebx
je 0x102e88d
mov ecx, ebx
mov edx, dword [ecx + 0x10]
test dl, 8
jne 0x102e881
test dl, 0x20
jne 0x102e887
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x102e867
or byte [esi + 0x39], 2
jmp 0x102e891
or dword [esi + 0x38], 2
jmp 0x102e891
or dword [esi + 0x38], 1
jmp 0x102e891
or byte [esi + 0x3a], 2
push 0x100a0a4
push eax
push ebx
mov ecx, esi
call fcn.0102cfe6
jmp 0x102e931
mov byte [esi + 0x10], 1
push 0
push edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x102e911
cmp eax, 0xffffffff
je 0x102e911
push edi
push edi
push edi
push 2
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x14], eax
je 0x102e8eb
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x102e90c
push 0x100a090
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
mov ecx, esi
call fcn.0102cfe6
mov ecx, esi
call fcn.0102cda4
or byte [esi + 0x3a], 4
jmp 0x102e931
xor eax, eax
inc eax
jmp 0x102e933
push 0x100a054
push edi
push ebx
mov ecx, esi
call fcn.0102cfe6
mov ecx, esi
call fcn.0102cda4
or byte [esi + 0x39], 1
mov eax, dword [ebx + 0x20]
or byte [eax + 0xa], 4
xor eax, eax
pop edi
pop esi
pop ebx
ret 8