joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a60
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x4050d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x21c], ebx
call fcn.0040399b
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x403bbc
cmp dword [ebp - 0x21c], ebx
je 0x403bbc
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x258], ebx
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 9
pop eax
cmp ax, word [ebp - 0x258]
jne 0x403ae7
cmp esi, 0x8664
jne 0x403bbc
push 6
pop eax
cmp ax, word [ebp - 0x258]
jne 0x403aff
cmp esi, 0x200
jne 0x403bbc
push 0xf6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403bbc
push 0x403bd0
push 0x105
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
test eax, eax
js 0x403bbc
mov esi, dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
push ebx
call esi
push 0x40
lea eax, [ebp - 0x274]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x278], 0x44
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403bbc
push 1
call esi
push 0xffffffffffffffff
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0x228]
call esi
test edi, edi
jne 0x403bbc
xor eax, eax
inc eax
jmp 0x403bbe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040121d
mov esp, ebp
pop ebp
ret

Function at 0x4040e6
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x404124
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40411c
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x404126
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40410c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404211
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x404227
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x404242
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x1004060
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x1001570
call fcn.0100c9ff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push edi
push edi
call esi
push eax
call fcn.01004cc7
push eax
push 0x1001560
mov ebx, 0x10014c8
push ebx
push 0x16
push edi
mov edi, 0x10014c0
push edi
push 0
push 0x1001494
push 0x4000000
call fcn.01004045
pop ecx
pop ecx
push eax
call fcn.01005745
call fcn.0100cd11
push 0x100cc51
call fcn.0100cefc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0
push 0
mov dword [ebp - 4], eax
call esi
push eax
call fcn.01004cc7
push eax
push 0x1001560
push ebx
push 0x1b
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x1001470
push 0x4000000
call fcn.01004045
add esp, 0xc
push eax
call fcn.01005745
xor eax, eax
push eax
push eax
cmp dword [ebp - 4], eax
jne 0x100414b
call esi
push eax
call fcn.01004cc7
push eax
push 0x1001560
push ebx
push 0x1e
push 0
push edi
push 0
push 0x1001440
push 0x2000000
call fcn.01004045
pop ecx
pop ecx
push eax
call fcn.01005745
jmp 0x10042b9
cmp dword [ebp - 8], 1
jne 0x100417d
call esi
push eax
call fcn.01004cc7
push eax
push 0x1001560
push ebx
push 0x24
push 0
push edi
push 0
push 0x1001414
push 0x4000000
call fcn.01004045
pop ecx
pop ecx
jmp 0x10042aa
cmp dword [ebp - 8], 2
jne 0x100427d
call esi
push eax
call fcn.01004cc7
push eax
mov eax, dword [ebp - 4]
push 0x1001560
push ebx
push 0x28
push 0
push edi
push 0
push dword [eax + 4]
push 0x10013e4
push 0x4000000
call fcn.01004045
add esp, 0xc
push eax
call fcn.01005745
mov eax, dword [ebp - 4]
push 0x10013d0
push dword [eax + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100420b
push eax
push eax
call esi
push eax
call fcn.01004cc7
push eax
push 0x1001560
push ebx
push 0x2b
push 0
push edi
push 0
push 0x10013b0
push 0x4000000
call fcn.01004045
pop ecx
pop ecx
push eax
call fcn.01005745
call fcn.0100cd67
jmp 0x10042b0
mov eax, dword [ebp - 4]
push 0x1001398
push dword [eax + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
push 0
push 0
test eax, eax
jne 0x100425a
call esi
push eax
call fcn.01004cc7
push eax
push 0x1001560
push ebx
push 0x30
push 0
push edi
push 0
push 0x1001378
push 0x4000000
call fcn.01004045
pop ecx
pop ecx
push eax
call fcn.01005745
call fcn.0100ce6c
jmp 0x10042b0
call esi
push eax
call fcn.01004cc7
push eax
mov eax, dword [ebp - 4]
push 0x1001560
push ebx
push 0x35
push 0
push edi
push 0
push dword [eax + 4]
push 0x100133c
jmp 0x100429d
call esi
push eax
call fcn.01004cc7
push eax
mov eax, dword [ebp - 8]
push 0x1001560
push ebx
push 0x3a
push 0
push edi
push 0
dec eax
push eax
push 0x10012f0
push 0x2000000
call fcn.01004045
add esp, 0xc
push eax
call fcn.01005745
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x10045d1
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100f678
call fcn.01004764
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1013f44
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1004388
cmp eax, esi
jne 0x100437b
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100438b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004362
xor esi, esi
inc esi
mov eax, dword [0x1013f40]
cmp eax, esi
jne 0x100439e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10043cd
mov eax, dword [0x1013f40]
test eax, eax
jne 0x10043c7
mov dword [0x1013f40], esi
push 0x10012c4
push 0x10012b8
call fcn.010042c7
pop ecx
pop ecx
test eax, eax
je 0x10043cd
jmp 0x10044f5
mov dword [0x10139ec], esi
mov eax, dword [0x1013f40]
cmp eax, esi
jne 0x10043f1
push 0x10012b4
push 0x1001290
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1013f40], 2
test ebx, ebx
jne 0x10043fd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1013f48], 0
je 0x1004421
push 0x1013f48
call fcn.010046d9
pop ecx
test eax, eax
je 0x1004421
push 0
push 2
push 0
call dword [0x1013f48]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x100447d
test al, al
je 0x100443b
cmp dword [ebp - 0x1c], 0
jne 0x100447d
mov al, byte [esi]
test al, al
je 0x100444b
cmp al, 0x20
ja 0x100444b
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100443b
test byte [ebp - 0x3c], 1
je 0x1004457
movzx eax, word [ebp - 0x38]
jmp 0x100445a
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x10139e8], eax
cmp dword [0x10139dc], 0
jne 0x10044d1
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100448c
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100449f
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1004428
cmp dword [0x10139ec], 0
jne 0x10044e0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10139e8]
jmp 0x1004501
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010047a9
ret
call fcn.0100494f
jmp 0x1004328
Function at 0x1004e26
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x28
push 0x100f700
call fcn.01004764
xor edi, edi
mov dword [ebp - 0x20], edi
or dword [ebp - 0x24], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], edi
push edi
push 0x100
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 0xc]
call dword [0x1013d94]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x1004ed8
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x1004e7a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push edi
push edi
neg esi
sbb esi, esi
lea eax, [ebp - 0x38]
and esi, eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1013d98]
cmp eax, edi
je 0x1004ed8
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x1004ed8
push edi
push eax
push dword [ebp - 0x28]
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x1004ed8
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.01004f20
cmp dword [ebp - 0x20], edi
je 0x1004f10
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1004efb
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x1004f07
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x1004f10
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
call fcn.010047a9
ret 0x14
Function at 0x1005058
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
push 0x100f740
call fcn.01004764
xor edi, edi
mov dword [ebp - 0x20], edi
push dword [0x101111c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x100518f
push 0x1013d44
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
mov ecx, dword [0x1013d38]
cmp ecx, edi
jne 0x10050c3
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x1013d38], eax
cmp eax, edi
je 0x1005137
mov dword [0x1013d3c], 1
jmp 0x10050f6
mov eax, dword [0x1013d3c]
cmp dword [0x1013d40], eax
jne 0x10050f6
lea eax, [eax*4 + 4]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp eax, edi
je 0x1005137
mov dword [0x1013d38], eax
inc dword [0x1013d3c]
push 0x8010
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x1005137
lea eax, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x8000
push esi
push dword [0x101111c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1005137
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.01005163
cmp dword [ebp - 0x20], edi
je 0x1005164
mov eax, dword [0x1013d40]
mov ecx, dword [0x1013d38]
mov dword [ecx + eax*4], esi
inc dword [0x1013d40]
jmp 0x1005182
push edi
push dword [0x101111c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push 0x1013d44
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.010047a9
ret
Function at 0x10053e8
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1005465
cmp eax, esi
ja 0x1005465
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100547b
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x100547b
xor eax, eax
jmp 0x10054b3
lea eax, [ebp - 0x414]
push eax
push 0
push 0x10019a0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1005477
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
push edi
call fcn.0100528b
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010049e5
leave
ret 8

Function at 0x100566e
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101142c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10056a7
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10056a7
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x10056a7
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10056a7
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x10056a7
mov eax, dword [eax]
test eax, eax
jne 0x10056ac
mov eax, 0x1001620
ret
Function at 0x10067f9
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
xor edi, edi
xor esi, esi
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1006878
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1006865
mov edi, dword [ebp - 0x14]
jmp 0x100686d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1006880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010049e5
leave
ret
Function at 0x1007391
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101100c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1013db0], 0
jne 0x1007547
mov eax, dword [ebp + 8]
mov dword [0x1013db0], 1
mov dword [0x1013da8], eax
call fcn.01006e2c
test eax, eax
je 0x1007440
push 0x1001f98
push 0x1001f84
mov dword [0x1013d60], 0x1006c96
mov dword [0x1013d70], 0x1006d0a
mov dword [0x1013d7c], 0x1006d84
mov dword [0x1013d8c], 0x1006c85
mov dword [0x1013d90], 0x1006de8
mov dword [0x1013d94], 0x1006df9
mov dword [0x1013da0], 0x1006e0a
mov dword [0x1013da4], 0x1006e1b
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007490
mov dword [0x1013d9c], eax
jmp 0x100749a
mov dword [0x1013d60], 0x1006ed7
mov dword [0x1013d70], 0x1006fb2
mov dword [0x1013d7c], 0x1007093
mov dword [0x1013d8c], 0x1006c85
mov dword [0x1013d90], 0x1007162
mov dword [0x1013d94], 0x10071d3
mov dword [0x1013da0], 0x100726f
mov dword [0x1013da4], 0x100730b
mov dword [0x1013d9c], 0x1006c7b
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [0x1013d64], 0x1006b92
mov dword [0x1013d68], 0x1006ba3
mov dword [0x1013d6c], 0x1006bb4
mov dword [0x1013d74], 0x1006bc5
mov dword [0x1013d78], 0x1006be6
mov dword [0x1013d80], 0x1006bf7
mov dword [0x1013d84], 0x1006c3f
mov dword [0x1013d88], 0x1006e5c
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x1001f64
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100753d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1013d98], 0x1006c61
test eax, eax
jne 0x1007547
mov dword [0x1013d98], 0x1006c71
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.010049e5
leave
ret 4
Function at 0x100ca71
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
xor esi, esi
mov dword [ebp - 0x210], eax
cmp eax, esi
jne 0x100cb3c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push esi
mov dword [ebp - 0x210], eax
push esi
cmp eax, 0xcb
jne 0x100caff
call edi
push eax
call fcn.01004cc7
push eax
push 0x1002f04
push 0x1002d08
push 0xbf
push esi
push 0x10014c0
push esi
push ebx
push 0x1002eb8
push 0x4000000
call fcn.01004045
add esp, 0xc
jmp 0x100cc35
call edi
push eax
call fcn.01004cc7
push eax
push 0x1002f04
push 0x1002d08
push 0xc2
push esi
push 0x10014c0
push esi
push dword [ebp - 0x210]
push ebx
push 0x1002e48
push 0x2000000
call fcn.01004045
add esp, 0x10
jmp 0x100cc35
cmp eax, 0x104
jbe 0x100cbf0
add eax, eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x214], eax
cmp eax, esi
jne 0x100cb90
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004cc7
push eax
push 0x1002f04
push 0x1002d08
push 0xcb
push esi
push 0x10014c0
push esi
push ebx
push 0x1002de0
push 0x2000000
jmp 0x100caf2
push dword [ebp - 0x210]
push eax
push ebx
call edi
push esi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004cc7
push eax
push 0x1002f04
push 0x1002d08
push 0xcf
push esi
push 0x10014c0
push esi
push edi
push dword [ebp - 0x214]
push ebx
push 0x1002d88
push 0x4000000
call fcn.01004045
add esp, 0x14
push eax
call fcn.01005745
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x100cc3b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004cc7
push eax
push 0x1002f04
push 0x1002d08
push 0xd5
push esi
push 0x10014c0
push esi
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x1002d88
push 0x4000000
call fcn.01004045
add esp, 0x14
push eax
call fcn.01005745
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010049e5
leave
ret 4
Function at 0x100d4bc
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100d451
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100d52f
cmp dword [ebp - 0x94], 5
jb 0x100d550
jmp 0x100d54c
cmp dword [ebp - 0x88], 1
jne 0x100d550
cmp dword [ebp - 0x94], 4
ja 0x100d54c
jne 0x100d550
cmp dword [ebp - 0x90], 0
jbe 0x100d550
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1003ba0
call fcn.0100d2f5
test eax, eax
jge 0x100d571
mov byte [0x1013db9], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010049e5
leave
ret

Function at 0x100d885
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100d8e6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x100d8dd
cmp dword [ebp - 0xc], 4
je 0x100d8dd
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100d929
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x100d920
cmp dword [ebp - 0xc], esi
je 0x100d920
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100d938
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100d9b0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010049e5
leave
ret 0xc

Function at 0x100db1e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1003cc0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100db70
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1003ca0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x100dbb7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10139cc]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x100dc3b
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1003d80
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100dc2a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1003d74
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100dc21
cmp dword [ebp - 0xc], 4
jne 0x100dc21
cmp dword [ebp - 0x10], eax
je 0x100dc21
mov dword [0x10139cc], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10139cc]
cmp eax, 0xffffffff
jne 0x100dc3b
xor eax, eax
mov dword [0x10139cc], eax
leave
ret