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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x1010445c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.1009c2f0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.10083390
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10083f3a
mov al, byte [edi + ecx]
test al, al
je 0x10083f3a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10083f21
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x10083f5b
inc eax
sub ecx, 1
jne 0x10083f50
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x10083fb0
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x10083fa5
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x10083fa4
mov bl, byte [edi + ecx]
test bl, bl
je 0x10083fa4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x10083f90
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.1009c2f0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x100e329c
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x1008406a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10084034
test cl, cl
je 0x10084030
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10084034
add eax, 2
add esi, 2
test cl, cl
jne 0x10084014
xor eax, eax
jmp 0x10084039
sbb eax, eax
or eax, 1
test eax, eax
je 0x1008406a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10084046
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10084073
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x100e329c
push str.SoftwareComMaster
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100751d1
mov esp, ebp
pop ebp
ret

Function at 0x1008616d
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 0x1009a6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cff1b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x1010445c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x14]
push 0x20000
push 0
push esi
mov dword [ebp - 0x14], edi
call fcn.1009c2f0
add esp, 0xc
lea eax, [ebx + 0x20014]
push 0
push eax
push 0x20000
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1009a83b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call fcn.100537a0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1009a81d
push 0x61
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x44], cl
lea ecx, [ebp - 0x44]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x30], 0xf
call fcn.10007b10
push 3
push 0x100d2cb0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10007b10
mov byte [ebp - 4], 1
call fcn.100537a0
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x58
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100042c0
mov esi, eax
push str.RecvData_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.100053b0
add esp, 8
mov ecx, esi
push dword [ebp - 0x10]
call fcn.1000f3e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.100054e0
lea ecx, [ebp - 0x2c]
call fcn.10004d30
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.10004d30
mov edi, dword [ebp - 0x14]
lea esi, [ebx + 0x14]
cmp dword [ebp - 0x10], 0xe8
mov dword [ebx + 0xc], 6
jne 0x1009a83b
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x20014]
add eax, esi
push eax
push esi
push dword [ecx + 4]
call fcn.10063900
mov dword [edi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1009a880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cff5b
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x1010445c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 8]
jne 0x1009a8c5
mov dword [ebx + 0xc], 8
jmp 0x1009aa32
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.100752bd
mov esi, eax
mov dword [ebp - 0x1c], eax
add esp, 4
test esi, esi
je 0x1009a8f4
push dword [ebp - 0x18]
push 0
push esi
call fcn.1009c2f0
add esp, 0xc
mov byte [esi], 0
jmp 0x1009a8f9
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, ecx
mov dword [ebp - 0x14], 0
push eax
push ecx
push esi
call fcn.1009b7f0
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x14]
sub eax, dword [edi + 4]
add esp, 0xc
inc eax
push 0
push ecx
push eax
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1009aa20
mov dword [ebx + 0xc], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
call fcn.100537a0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1009aa07
push 0x61
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x4c], cl
lea ecx, [ebp - 0x4c]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x38], 0xf
call fcn.10007b10
push 3
push 0x100d2cb0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.10007b10
mov byte [ebp - 4], 1
call fcn.100537a0
mov edi, eax
lea ecx, [ebp - 0xe4]
push 0x48
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.100042c0
mov esi, eax
push str.send_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.100053b0
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.1000f3e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.100054e0
lea ecx, [ebp - 0x34]
call fcn.10004d30
lea ecx, [ebp - 0x4c]
call fcn.10004d30
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0xe8
jne 0x1009aa27
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
jmp 0x1009aa27
mov dword [ebx + 0xc], 0
push 1
push esi
call fcn.10074e52
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100751d1
mov esp, ebp
pop ebp
ret 4

Function at 0x100b72f9
Capabilities:
Read file on windows

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

Function at 0x100bd604
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bd2c4
Function at 0x10003950
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, ebp
lea ecx, [edi + 2]
jmp 0x10003960
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10003960
mov eax, dword fs:[0x18]
sub edi, ecx
sar edi, 1
mov eax, dword [eax + 0x30]
lea ecx, [edi + edi]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x10003994
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x100039f0
mov esi, dword [ebx]
cmp esi, ebx
je 0x100039d3
lea ebx, [ebx]
test esi, esi
je 0x100039d3
cmp word [esi + 0x24], 2
jbe 0x100039cd
movzx eax, word [esi + 0x2c]
cmp eax, ecx
jne 0x100039cd
cmp dword [esi + 0x18], 0
je 0x100039cd
push edi
push dword [esi + 0x30]
push ebp
call fcn.10030907
add esp, 0xc
test eax, eax
je 0x100039e8
lea ecx, [edi + edi]
mov esi, dword [esi]
cmp esi, ebx
jne 0x100039a0
cmp dword [0x10119400], 0
je 0x100039f0
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10003cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
xor ecx, ecx
mov dword [esp + 8], 0
test edi, edi
je 0x10003d7c
test edx, edx
je 0x10003d7c
mov eax, dword [edi + 0x3c]
push ebx
mov ebx, dword [eax + edi + 0x78]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x10003d7b
mov eax, dword [eax + edi + 0x7c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10003d7b
mov eax, dword [ebx + edi + 0x1c]
push ebp
mov ebp, dword [ebx + edi + 0x24]
add eax, edi
push esi
mov esi, dword [ebx + edi + 0x20]
add ebp, edi
add esi, edi
mov dword [esp + 0x10], eax
test edx, 0xffff0000
jne 0x10003d2d
movzx eax, dx
sub eax, dword [ebx + edi + 0x10]
jmp 0x10003d8d
mov ebx, dword [ebx + edi + 0x18]
test ebx, ebx
je 0x10003d79
mov eax, dword [esi]
dec ebx
mov ecx, edx
add eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003d60
test dl, dl
je 0x10003d5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003d60
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003d40
xor eax, eax
jmp 0x10003d65
sbb eax, eax
or eax, 1
test eax, eax
je 0x10003d85
mov edx, dword [esp + 0x18]
add esi, 4
add ebp, 2
test ebx, ebx
jne 0x10003d35
xor ecx, ecx
pop esi
pop ebp
pop ebx
mov eax, ecx
pop edi
add esp, 0x14
ret 4
movzx eax, word [ebp]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x10003d77
cmp ebx, ecx
ja 0x10003ec3
mov eax, dword [esp + 0x20]
add eax, ebx
cmp ecx, eax
jae 0x10003ec3
lea ebp, [ecx + edi]
push 0x10046980
push ebp
call fcn.1002d4e0
mov edi, eax
add esp, 8
test edi, edi
je 0x10003d77
mov al, byte [edi + 1]
inc edi
test al, al
je 0x10003d77
mov ebx, edi
sub ebx, ebp
cmp al, 0x23
jne 0x10003deb
inc edi
cmp byte [edi], 0
je 0x10003d77
push 0xa
push 0
push edi
call fcn.1003056f
add esp, 0xc
movzx edi, ax
lea eax, [ebx + 4]
push 2
push eax
call fcn.1002fd34
mov esi, eax
add esp, 8
test esi, esi
je 0x10003d77
push ebx
push ebp
lea eax, [ebx + 1]
push eax
push esi
push 0
call fcn.1003087b
mov eax, dword [0x10046984]
push 4
mov dword [esi + ebx*2], eax
mov ax, word [0x10046988]
push str.api_
push esi
mov word [esi + ebx*2 + 4], ax
call fcn.10030907
add esp, 0x20
test eax, eax
je 0x10003e4c
push 4
push str.ext_
push esi
call fcn.10030907
add esp, 0xc
test eax, eax
jne 0x10003e95
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov edx, esi
call fcn.10002b00
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10003e95
push esi
call fcn.100305b5
mov ebx, dword [esp + 0x18]
push 2
lea eax, [ebx + 1]
push eax
call fcn.1002fd34
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10003d77
lea eax, [ebx + ebx]
push eax
push ebp
push esi
call fcn.1002f7c0
add esp, 0xc
mov ecx, esi
call fcn.10003950
push esi
mov edx, edi
mov ecx, eax
call fcn.10003cc0
mov dword [esp + 0x28], eax
push esi
call fcn.100305b5
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, ecx
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x14
ret 4
pop esi
pop ebp
add ecx, edi
pop ebx
mov eax, ecx
pop edi
add esp, 0x14
ret 4
Function at 0x10005490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x414
push ebx
push ebp
push edi
push 0x208
lea eax, [esp + 0x21c]
mov ebx, edx
push 0
push eax
mov dword [esp + 0x18], ebx
call fcn.1002da40
add esp, 0xc
xor edi, edi
xor ebp, ebp
test ebx, ebx
je 0x100054f4
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100054c3
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jb 0x100054df
mov edi, 0x103
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
lea ebp, [edi + edi]
call fcn.100310a6
add esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x10005523
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ebx, dword [ecx + 0xc]
add ebx, 0x14
jne 0x10005523
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
push esi
mov esi, dword [ebx]
cmp esi, ebx
je 0x1000559a
lea ebx, [ebx]
test esi, esi
je 0x1000559a
cmp word [esi + 0x24], 2
jbe 0x10005594
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x10005594
cmp dword [esi + 0x18], 0
je 0x10005594
test ebp, ebp
je 0x10005552
cmp ebp, eax
jne 0x10005594
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
call fcn.1002da40
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x28]
push eax
call fcn.100310a6
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x100055a7
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
call fcn.1002fe3d
add esp, 8
test eax, eax
je 0x100055a7
mov esi, dword [esi]
cmp esi, ebx
jne 0x10005530
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x414
ret
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x100058e0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [0x1011940c]
push esi
push edi
mov edi, ecx
test ebp, ebp
je 0x10005a0a
cmp dword [0x10119410], 0
jne 0x100059f5
xor eax, eax
mov edx, 0xb
mov dword [esp + 0x10], eax
mov ecx, 0x100471a4
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], al
lea eax, [esp + 0x10]
push eax
push 4
push 0x100471a0
call fcn.10007600
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.1002da40
mov edx, 0x7ffe0030
add esp, 0x18
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10005953
sub edx, esi
sar edx, 1
je 0x10005a0a
mov esi, edi
lea ebx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005970
sub esi, ebx
add edx, 0xc
add edx, esi
cmp edx, 0x104
ja 0x10005a0a
xor eax, eax
test edx, edx
je 0x100059a7
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x100059a7
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x10005990
xor eax, eax
test edx, edx
je 0x100059c2
lea ecx, [ecx]
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x100059c2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x100059b0
xor eax, eax
test edx, edx
je 0x100059df
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + edi]
test bl, bl
je 0x100059df
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x100059d0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push 0x800
push 0
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
Function at 0x10007600
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebp
push 0x100
lea eax, [esp + 0x10]
mov dword [esp + 8], edx
mov ebp, ecx
push 0
push eax
mov dword [esp + 0x14], ebp
call fcn.1002da40
add esp, 0xc
test ebp, ebp
je 0x10007713
cmp dword [esp + 0x110], 0
je 0x10007713
mov ecx, dword [esp + 0x114]
test ecx, ecx
je 0x10007713
cmp dword [esp + 0x118], 0
push edi
je 0x10007712
xor eax, eax
jmp 0x10007660
mov byte [esp + eax + 0x10], al
inc eax
cmp eax, 0x100
jb 0x10007660
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
xor edi, edi
push ebx
lea esp, [esp]
mov eax, esi
mov bl, byte [esp + esi + 0x18]
xor edx, edx
div ecx
movzx ecx, bl
movzx eax, byte [edx + ebp]
add eax, edi
add ecx, eax
movzx edi, cl
mov ecx, dword [esp + 0x120]
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], bl
cmp esi, 0x100
jb 0x10007680
mov edi, dword [esp + 0x124]
xor ebx, ebx
mov ebp, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x10], ebx
jbe 0x10007710
sub ebp, edi
jmp 0x100076d0
lea eax, [esi + 1]
movzx esi, al
lea edi, [edi + 1]
mov cl, byte [esp + esi + 0x18]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + ebx + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edi + ebp - 1]
sub dword [esp + 0x10], 1
mov byte [edi - 1], al
jne 0x100076d0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x108
ret
Function at 0x1000a320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1040
call fcn.1003f4e0
push ebx
push ebp
push esi
push edi
push 0x101c
lea eax, [esp + 0x34]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x24], edi
call fcn.1002da40
xor esi, esi
add esp, 0xc
xor eax, eax
cmp dword [edi], esi
jne 0x1000a4f3
mov dword [esp + 0x1c], eax
lea edx, [esi + 0x14]
mov dword [esp + 0x20], eax
mov ecx, 0x10046c34
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0x10046c30
call fcn.10007600
add esp, 0xc
lea edx, [esp + 0x1c]
call fcn.10005490
test eax, eax
je 0x1000a4f1
mov edx, dword [eax + 0x18]
mov dword [esp + 0x14], edx
test edx, edx
je 0x1000a4f1
mov eax, dword [edx + 0x3c]
add eax, edx
je 0x1000a4f1
add eax, 0x78
je 0x1000a4f1
mov ecx, dword [eax]
test ecx, ecx
je 0x1000a4f1
cmp dword [eax + 4], esi
je 0x1000a4f1
lea eax, [edx + ecx]
test eax, eax
je 0x1000a4f1
mov ecx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x24]
add ecx, edx
mov edi, dword [eax + 0x18]
add ebp, 0xfffffffe
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x20]
mov eax, 0x775a
add ecx, edx
add ebp, edx
lea ebx, [edi - 1]
lea ebp, [ebp + edi*2]
lea ebx, [ecx + ebx*4]
mov ecx, dword [ebx]
add ecx, edx
je 0x1000a458
cmp word [ecx], ax
jne 0x1000a458
add ecx, 2
mov edx, 0x6668d4a8
cmp byte [ecx], 0
je 0x1000a433
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 1]
imul edx, edx, 0x1003f
add edx, eax
cmp byte [ecx], 0
jne 0x1000a420
movzx eax, word [ebp]
mov ecx, dword [esp + 0x10]
mov dword [esp + esi*8 + 0x34], edx
mov eax, dword [ecx + eax*4]
mov dword [esp + esi*8 + 0x38], eax
inc esi
cmp esi, 0x203
je 0x1000a463
mov edx, dword [esp + 0x14]
mov eax, 0x775a
sub ebx, 4
sub ebp, 2
sub edi, 1
jne 0x1000a404
lea eax, [esi - 1]
mov dword [esp + 0x30], esi
xor edi, edi
test eax, eax
je 0x1000a4ba
mov ecx, esi
xor eax, eax
sub ecx, edi
sub ecx, 1
je 0x1000a4b2
jmp 0x1000a480
mov ebp, dword [esp + eax*8 + 0x38]
mov ebx, dword [esp + eax*8 + 0x40]
cmp ebp, ebx
jbe 0x1000a4a8
mov edx, dword [esp + eax*8 + 0x34]
mov ecx, dword [esp + eax*8 + 0x3c]
mov dword [esp + eax*8 + 0x34], ecx
mov dword [esp + eax*8 + 0x38], ebx
mov dword [esp + eax*8 + 0x3c], edx
mov dword [esp + eax*8 + 0x40], ebp
mov esi, dword [esp + 0x30]
mov ecx, esi
inc eax
sub ecx, edi
dec ecx
cmp eax, ecx
jb 0x1000a480
inc edi
lea eax, [esi - 1]
cmp edi, eax
jb 0x1000a470
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [ebx], esi
test esi, esi
je 0x1000a4df
lea edx, [ebx + 4]
lea esp, [esp]
mov eax, dword [esp + ecx*8 + 0x34]
lea edx, [edx + 4]
inc ecx
mov dword [edx - 4], eax
cmp ecx, esi
jb 0x1000a4d0
cmp dword [ebx], 0
je 0x1000a4f1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
xor edx, edx
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x10119708
push edi
lock cmpxchg dword [ecx], edx
mov edx, eax
test edx, edx
jne 0x1000a9e2
push ecx
push 0x40
mov ecx, esi
call fcn.10009af0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x1000a8bc
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
push eax
call edi
push ecx
mov ecx, esi
cmp eax, dword [esi + 0x14]
ja 0x1000a8d6
push eax
call fcn.10009af0
jmp 0x1000a948
add eax, 0x10
push eax
call fcn.10009af0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x1000a8eb
mov eax, dword [esi]
push ecx
push eax
call edi
cmp eax, dword [esi + 0x14]
ja 0x1000a8ff
push ecx
push eax
mov ecx, esi
call fcn.10009af0
jmp 0x1000a948
xor eax, eax
mov edx, 0x14
mov dword [esp + 0x14], eax
mov ecx, 0x10047984
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0x10047980
call fcn.10007600
add esp, 0xc
mov ecx, esi
call fcn.1000a7f0
push 9
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.100040e0
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x1000a994
mov edx, dword [esi + 0x14]
mov eax, esi
cmp edx, 8
jb 0x1000a95e
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1000a994
cmp ecx, edx
jae 0x1000a981
lea eax, [ecx + 1]
mov dword [edi], eax
mov eax, esi
cmp edx, 8
jb 0x1000a978
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x1000a994
push 0x5c
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10006d30
mov eax, dword [edi]
lea ebp, [eax*2 + 4]
push ebp
call fcn.10005e10
mov ecx, eax
call fcn.10005ed0
mov ebx, eax
test ebx, ebx
je 0x1000a9f8
mov ecx, dword [edi]
add ecx, ecx
cmp dword [esi + 0x14], 8
jb 0x1000a9bc
mov esi, dword [esi]
push ecx
push esi
mov edx, ebp
mov ecx, ebx
call fcn.10007c50
mov eax, dword [edi]
add esp, 8
mov ecx, 0x10119720
xchg dword [ecx], eax
mov eax, 0x10119708
xchg dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edi, 0x10119720
xor eax, eax
lock cmpxchg dword [edi], ecx
push eax
push edx
mov ecx, esi
call fcn.10004330
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ab60
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x10119560
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1000ac9a
cmp dword fs:[0xc0], eax
je 0x1000ab92
mov dword [0x1011943c], 1
mov eax, 0x8664
jmp 0x1000ab97
mov eax, 0x14c
mov dword [0x10118870], eax
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x10119444], eax
mov eax, dword [esi + 0xa8]
mov dword [0x10119448], eax
movzx edx, word [esi + 0xac]
mov dword [0x1011944c], edx
mov eax, dword [esi + 0xb0]
mov dword [0x10119450], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x1000abfc
push 0x7f
push eax
push 0x10119454
call fcn.100310a6
mov edx, dword [0x1011944c]
add esp, 0xc
jmp 0x1000ac04
xor eax, eax
mov word [0x10119454], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x10119554], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x10119556], ax
movzx eax, word [0x7ffe02d0]
mov word [0x10119558], ax
mov ecx, eax
mov byte [0x1011955a], 0
cmp byte [0x7ffe0268], 0
je 0x1000ac4b
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x1011955a], bl
cmp ebx, 1
pop ebx
jne 0x1000ac65
and ecx, 0xffef
mov word [0x10119558], cx
test edx, edx
jne 0x1000ac9a
call fcn.1000ab60
cmp dword [0x10119444], 6
ja 0x1000ac9a
jb 0x1000ac82
cmp dword [0x10119448], 4
jae 0x1000ac9a
call fcn.1000ab60
cmp dword [0x10119444], 0xa
jae 0x1000ac9a
mov dword [0x1011944c], 1
ret