joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007be9f
Capabilities:
Parse pe header

Disassembly:
push 0x20
push 0x1011e380
call fcn.100622e0
mov dword [ebp - 0x24], edx
mov ebx, ecx
xor edi, edi
test ebx, ebx
jne 0x1007bed3
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x1007bed3
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1007bff8
mov dword [ebp - 4], edi
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x1007beea
push 0xc1
jmp 0x1007bfeb
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
je 0x1007bf00
push 0xbf
jmp 0x1007bfeb
cmp word [eax + ebx + 0x14], di
je 0x1007bfe6
mov eax, dword [eax + ebx + 0x80]
test eax, eax
lea esi, [eax + ebx]
jne 0x1007bf1b
mov esi, edi
mov dword [ebp - 0x20], esi
test esi, esi
je 0x1007bfe6
mov edx, dword [esi]
test edx, edx
je 0x1007bfa6
mov ecx, dword [esi + 0xc]
lea eax, [ebx + ecx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x28], ecx
je 0x1007bfe6
lea eax, [ebx + edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x10]
lea eax, [ebx + ecx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov ecx, dword [ecx]
call fcn.1007c2f0
cmp dword [ebp + 8], 0
je 0x1007bf77
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call dword [0x1013f49c]
call dword [ebp + 8]
test eax, eax
je 0x1007bfa6
mov ecx, edi
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007bf9e
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x1007bf9e
mov dword [ebp - 0x2c], edi
jns 0x1007bf95
movzx eax, ax
mov dword [ebp - 0x2c], eax
inc ecx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1007bf83
add esi, 0x14
mov dword [ebp - 0x20], esi
jmp 0x1007bf26
cmp dword [ebp + 8], 0
je 0x1007bfbd
push edi
push edi
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call dword [0x1013f49c]
call dword [ebp + 8]
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x1007bffa
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1007c012
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x1011e360
call fcn.100622e0
test ecx, ecx
mov esi, 0x10000
je 0x1007c02d
lea esi, [ecx + 0x10000]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
push 0xfffffffffffffffe
pop edi
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
jne 0x1007c05b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0x24], 0x1000
jne 0x1007c0ba
cmp byte [ebp - 0x20], 1
je 0x1007c0ba
test dword [ebp - 0x20], 0x100
jne 0x1007c0ba
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1007c0b7
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x1007c0b7
cmp eax, 0x40
jb 0x1007c0b7
cmp dword [eax + esi], 0x4550
jne 0x1007c0b7
mov dword [ebp - 4], edi
mov eax, esi
jmp 0x1007c04b
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x1007c03a
Function at 0x1007c0cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1007c0da
pop dword [ebp - 0x20]
mov eax, 0x1007c0da
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x6a6d2
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x408d
mov edx, eax
mov ebx, 0x7ab842cc
add ebx, 0x955d5734
add ebx, dword [ebp - 0x20]
mov esi, 0x4177e66d
add esi, 0xa670a7c1
sub dword [ebp - 0x10], ecx
mov edi, dword [ebx]
mov dword [ebp - 0x14], 0xaf5e0de2
add edi, esi
add dword [ebp - 0x1c], 0xde5290d
mov dword [edx], edi
xor dword [ebp - 0x1c], 0x316f3c6d
add edx, 4
add ebx, 4
loop 0x1007c129
add eax, 0xf49230b7
sub eax, 0xf4913bb0
xor ebx, ebx
add ebx, eax
add eax, 0xee68222a
add eax, 0x1197dddb
mov ecx, 0x71bc19e6
sub ecx, 0x61bc19e6
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x1007c3b6
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1011e340
call fcn.100622e0
mov edi, ecx
xor ebx, ebx
test edi, edi
jne 0x1007c3e7
push ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x1007c3e7
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1007c4d4
mov dword [ebp - 4], ebx
mov eax, 0x5a4d
cmp word [edi], ax
je 0x1007c3fe
push 0xc1
jmp 0x1007c4c7
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x1007c415
push 0xbf
jmp 0x1007c4c7
cmp word [esi + 0x14], bx
je 0x1007c4c2
mov eax, ebx
mov dword [ebp - 0x1c], eax
movzx ecx, word [esi + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x1007c444
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x1007c466
cmp dword [esi + 0xec], ebx
jmp 0x1007c45e
mov edx, 0x20b
cmp cx, dx
jne 0x1007c466
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x1007c466
cmp dword [esi + 0xfc], ebx
je 0x1007c466
lea eax, [ecx + edi]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1007c497
push 0x100305e0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1007c4cd
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
push 0x100305f8
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1007c4d6
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esi + 0x28]
lea ecx, [eax + edi]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x1007c48e
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007df31
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push 0x3c
mov eax, 0x1010b978
call fcn.10062c32
mov eax, edx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov dword [eax], ebx
mov dword [ebp - 0x3c], edx
mov dword [edx], ebx
mov edx, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], esi
mov byte [esi], bl
call fcn.1007daa2
cmp dword [eax + 0x14], 8
jb 0x1007df68
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push Ordinal_1
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.1006af06
cmp esi, 0xffffffff
jne 0x1007df95
xor al, al
jmp 0x1007e0b5
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
call fcn.1007c0cb
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x1007dfcd
lea ecx, [ebp - 0x40]
call fcn.1007c0cb
jmp 0x1007df8e
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
call fcn.1007c0cb
push ebx
push ebx
push ebx
push 4
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x1007e0a3
push 0xc
call fcn.1007c0cb
pop ecx
mov ecx, eax
mov dword [ebp - 0x34], ecx
mov eax, dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ecx], 0x10002e14
mov dword [ecx + 4], eax
mov eax, 0x5a4d
mov dword [ecx + 8], edi
mov dword [ebp - 0x2c], ecx
cmp word [edi], ax
jne 0x1007e09b
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x1007e046
mov eax, dword [ebp - 0x30]
mov dword [eax], 1
lea ecx, [ebp - 0x2c]
call fcn.1007c0cb
mov bl, 1
jmp 0x1007e0a3
movzx eax, word [esi + 4]
mov edx, 0x14c
mov ecx, eax
cmp ax, dx
je 0x1007e074
mov eax, 0x8664
cmp cx, ax
jne 0x1007e09b
mov eax, dword [ebp - 0x30]
mov dword [eax], 3
mov ecx, dword [ebp - 0x3c]
movzx eax, word [esi + 0x5c]
mov dword [ecx], eax
jmp 0x1007e03a
mov eax, dword [ebp - 0x30]
mov edx, edi
mov ecx, esi
mov dword [eax], 2
call fcn.1007e8fa
test eax, eax
je 0x1007e069
mov eax, dword [eax + 0x10]
and al, 3
cmp al, 1
jne 0x1007e069
mov eax, dword [ebp - 0x44]
mov byte [eax], 1
jmp 0x1007e069
lea ecx, [ebp - 0x2c]
call fcn.1007c0cb
lea ecx, [ebp - 0x48]
call fcn.1007c0cb
lea ecx, [ebp - 0x40]
call fcn.1007c0cb
mov al, bl
call fcn.10062bca
ret 8
Function at 0x1007e8fa
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebx
mov ebx, edx
push esi
test ecx, ecx
je 0x1007e95c
mov eax, dword [ecx + 0xec]
test eax, eax
je 0x1007e95c
mov esi, dword [ecx + 0xe8]
test esi, esi
je 0x1007e95c
cmp eax, 0x48
jne 0x1007e95c
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
movzx ecx, word [ecx + 6]
add edx, eax
push edi
xor edi, edi
test ecx, ecx
je 0x1007e948
cmp esi, dword [edx + 0xc]
jb 0x1007e940
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0xc]
cmp esi, eax
jb 0x1007e948
inc edi
add edx, 0x28
cmp edi, ecx
jb 0x1007e931
cmp ecx, edi
pop edi
je 0x1007e95c
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0xc]
add eax, esi
add eax, ebx
cmp dword [eax], 0x48
je 0x1007e95e
xor eax, eax
pop esi
pop ebx
ret
Function at 0x1007fcb3
Capabilities:
Get disk information

Disassembly:
push 0x8c
mov eax, 0x1010bd10
call fcn.10062c32
mov dword [ebp - 0x98], edx
mov edi, ecx
push ecx
push 0x400
lea ecx, [ebp - 0x88]
call fcn.1007c0cb
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x88]
push dword [ebp - 0x88]
sar eax, 1
push eax
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
mov esi, dword [ebp - 0x88]
mov ecx, eax
mov eax, dword [ebp - 0x84]
sub eax, esi
sar eax, 1
cmp ecx, eax
jbe 0x1007fd40
push ecx
lea ecx, [ebp - 0x88]
call fcn.1007c0cb
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x88]
push dword [ebp - 0x88]
sar eax, 1
push eax
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
mov esi, dword [ebp - 0x88]
mov ecx, eax
test ecx, ecx
je 0x1007fdec
mov eax, dword [0x100307c0]
push ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x94]
mov ax, word [0x100307c4]
push 0x400
mov word [ebp - 0x18], ax
call fcn.1007c0cb
mov byte [ebp - 4], 1
movzx eax, word [esi]
test ax, ax
je 0x1007fde1
mov ecx, eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x94]
sar eax, 1
push eax
push dword [ebp - 0x94]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x1c], cx
push eax
call dword [sym.imp.kernel32.dll_QueryDosDeviceW]
test eax, eax
je 0x1007fdcc
push dword [ebp - 0x94]
lea ecx, [ebp - 0x4c]
call fcn.1007c0cb
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.10073212
test al, al
jne 0x1007fdff
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1006af06
add esi, 2
cmp word [esi], bx
jne 0x1007fdcc
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1007fd79
lea ecx, [ebp - 0x94]
call fcn.10075865
lea ecx, [ebp - 0x88]
call fcn.10075865
mov al, bl
call fcn.10062bca
ret
push 0xffffffffffffffff
push dword [ebp - 0x3c]
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
call fcn.1007c0cb
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 7
call fcn.1007c0cb
push esi
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.1007f926
mov ecx, dword [ebp - 0x98]
push eax
call fcn.1007c0cb
lea ecx, [ebp - 0x64]
call fcn.1006af06
lea ecx, [ebp - 0x34]
call fcn.1006af06
lea ecx, [ebp - 0x7c]
call fcn.1006af06
lea ecx, [ebp - 0x4c]
call fcn.1006af06
lea ecx, [ebp - 0x94]
call fcn.10075865
mov bl, 1
jmp 0x1007fdec
Function at 0x1007ff2f
Capabilities:
Enumerate files on windows

Disassembly:
push 0x5c
mov eax, 0x1010bddb
call fcn.10062c32
mov eax, edx
mov dword [ebp - 0x4c], eax
mov esi, ecx
mov ecx, eax
call fcn.10076078
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
mov edx, esi
mov dword [ebp - 0x48], 0x104
call fcn.1007fe85
mov byte [ebp - 4], 1
push dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
call fcn.1007c0cb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1007ff81
mov eax, dword [esi]
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x48]
push edi
push ecx
push ebx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileNameW]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
cmp ebx, 0xffffffff
jne 0x1007ffdb
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
pop ebx
cmp eax, 0xea
je 0x1007ff6c
call fcn.1007fc7e
mov esi, eax
mov edi, edx
call dword [sym.imp.kernel32.dll_GetLastError]
or esi, eax
or edi, 0x3125
lea ecx, [ebp - 0x2c]
call fcn.1006af06
lea ecx, [ebp - 0x58]
call fcn.10075865
mov eax, esi
mov edx, edi
jmp 0x100800cf
mov eax, dword [sym.imp.kernel32.dll_FindClose]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x64], ebx
call fcn.1007c0cb
push edi
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.1007c0cb
mov ecx, dword [ebp - 0x4c]
push eax
mov byte [ebp - 4], 3
call fcn.1007c0cb
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.1006af06
mov eax, dword [ebp - 0x54]
sub eax, edi
sar eax, 1
mov dword [ebp - 0x48], eax
push eax
lea ecx, [ebp - 0x58]
call fcn.1007c0cb
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x48]
push edi
push eax
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileNameW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
test esi, esi
jne 0x10080060
cmp ebx, 0x26
je 0x100800b0
cmp ebx, 0xea
jne 0x1008008a
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x5c]
jmp 0x10080025
push edi
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.1007c0cb
mov ecx, dword [ebp - 0x4c]
push eax
mov byte [ebp - 4], 4
call fcn.1007c0cb
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.1006af06
mov ebx, dword [ebp - 0x5c]
jmp 0x1008001b
mov ecx, dword [ebp - 0x4c]
call fcn.10076078
call fcn.1007fc7e
mov esi, eax
lea ecx, [ebp - 0x60]
mov edi, edx
or esi, ebx
or edi, 0x3425
call fcn.1007c0cb
jmp 0x1007ffc2
lea ecx, [ebp - 0x60]
call fcn.1007c0cb
lea ecx, [ebp - 0x2c]
call fcn.1006af06
lea ecx, [ebp - 0x58]
call fcn.10075865
xor eax, eax
mov edx, 0x80
call fcn.10062bca
ret
Function at 0x100804d0
Capabilities:
Get common file path

Disassembly:
push 0x25c
mov eax, 0x1010bee5
call fcn.10062c32
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x268], ebx
call fcn.1007c0cb
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x10080545
xor eax, eax
mov dword [ebp - 0x220], ebx
push 0x100307cc
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.1007c0cb
lea edx, [ebp - 0x230]
mov dword [ebp - 0x268], 1
mov ecx, edi
call fcn.10073212
mov byte [ebp - 0x261], 1
test al, al
jne 0x1008054b
mov byte [ebp - 0x261], bl
test byte [ebp - 0x268], 1
je 0x1008055f
lea ecx, [ebp - 0x230]
call fcn.1006af06
cmp byte [ebp - 0x261], bl
je 0x100805e1
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov esi, edi
cmp dword [edi + 0x14], 8
jb 0x10080586
mov esi, dword [edi]
push ecx
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.10080745
mov edx, eax
mov ecx, esi
call fcn.1007c0cb
mov dword [ebp - 0x268], eax
test eax, eax
je 0x10080681
mov esi, ebx
push dword [esi + 0x10009008]
push eax
call fcn.1007c0cb
pop ecx
pop ecx
test eax, eax
je 0x10080673
mov eax, dword [ebp - 0x268]
add esi, 4
cmp esi, 0x18
jb 0x100805ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.10074e3b
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10080690
cmp eax, esi
ja 0x10080690
xor eax, eax
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], 7
push eax
call fcn.1007c0cb
push edi
lea edx, [ebp - 0x248]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.10080ccb
cmp dword [eax + 0x14], 8
jb 0x10080650
mov eax, dword [eax]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
lea ecx, [ebp - 0x260]
mov esi, eax
call fcn.1006af06
lea ecx, [ebp - 0x248]
call fcn.1006af06
mov eax, esi
jmp 0x10080692
push dword [ebp - 0x268]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebx, eax
lea ecx, [ebp - 0x224]
call fcn.10074e3b
mov eax, ebx
jmp 0x10080692
xor eax, eax
call fcn.10062bca
ret
Function at 0x10080a2c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1010bf52
call fcn.10062bf8
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
jb 0x10080a4e
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10080acc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10080ac7
cmp dword [ebp - 0x14], 1
je 0x10080a77
cmp dword [ebp - 0x14], 2
jne 0x10080ac7
push ecx
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push ecx
add eax, 2
lea ecx, [ebp - 0x24]
push eax
call fcn.1007c0cb
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x10080a96
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10080abb
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call fcn.1007c0cb
lea ecx, [ebp - 0x24]
call fcn.10074e3b
mov eax, esi
jmp 0x10080acc
mov eax, 0x65e
call fcn.10062baf
ret 4

Function at 0x10087662
Capabilities:
Check if file exists

Disassembly:
push 0x210
mov eax, 0x1010cb1f
call fcn.10062c32
mov ebx, dword [ebp + 8]
xor edi, edi
push ecx
push ecx
push ecx
mov edx, 0x104
mov dword [ebx], edi
lea ecx, [ebp - 0x218]
mov dword [ebx + 4], edi
call fcn.1007c0cb
push 0x10030a50
lea ecx, [ebp - 0x218]
call fcn.1007c0cb
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1f0003
call dword [sym.imp.kernel32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x100876d6
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x100876c6
xor eax, eax
jmp 0x10087724
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.1007c0cb
jmp 0x10087724
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x21c], edi
mov ecx, esi
call fcn.1007c0cb
mov edi, eax
test edi, edi
jns 0x10087707
push edi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.1007c0cb
mov dword [ebp - 4], 2
jmp 0x1008771c
mov eax, dword [ebp - 0x21c]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebp - 4], 8
xor edi, edi
push esi
call fcn.1007c0cb
mov eax, edi
call fcn.10062bca
ret 8
Function at 0x1008dc9f
Capabilities:
Get thread local storage value

Disassembly:
push 0x9c
mov eax, 0x1010d68c
call fcn.10062c32
mov dword [ebp - 0x5c], ecx
cmp dword [ecx], 0
mov ebx, dword [ebp + 8]
je 0x1008de79
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.1008da0a
test al, al
je 0x1008de79
mov eax, 0x1001ddfc
lea edi, [ebp - 0x34]
mov esi, eax
lea ecx, [ebp - 0x4c]
mov edx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x50], al
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], eax
call fcn.10080187
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
and dword [ebp - 4], 0
mov ecx, edi
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1008e64f
test al, al
je 0x1008de71
push ecx
lea esi, [edi + 0x10]
push esi
lea ecx, [ebp - 0x68]
call fcn.1007c0cb
lea ecx, [edi + 0x90]
lea edx, [ebp - 0x34]
call fcn.1008d0e9
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0x10002784
mov bl, al
call fcn.1006d7a9
test bl, bl
jne 0x1008de71
cmp dword [ebp - 0x58], 3
jne 0x1008dd9b
lea eax, [ebp - 0xa8]
mov ecx, edi
push eax
call fcn.1007c0cb
test al, al
jne 0x1008ddbe
push ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.1007c0cb
push 9
add edi, 0x6c
mov dword [ebp - 0x68], 0x10002784
pop ecx
lea esi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x68]
call fcn.1006d7a9
mov edi, dword [ebp - 0x5c]
cmp dword [ebp - 0x58], 1
jne 0x1008ddbe
lea eax, [ebp - 0xa8]
mov ecx, edi
push eax
call fcn.1007c0cb
test al, al
jne 0x1008ddbe
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.1007c0cb
push dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
push dword [ebp - 0x80]
call fcn.1008db02
test al, al
je 0x1008de71
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.1007c0cb
test al, al
jne 0x1008de36
push dword [ebp - 0x80]
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.1007c0cb
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 0
je 0x1008de18
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.1008e2ff
test al, al
jne 0x1008de26
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.1008f011
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x1008de71
call fcn.10070fb6
jmp 0x1008de71
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x1008de36
call fcn.10070fb6
cmp dword [edi + 0xb8], 0xffffffff
je 0x1008de71
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 2
push dword [edi + 0xb8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 3
jne 0x1008de6a
push 2
pop edx
lea ecx, [ebp - 0x34]
call fcn.10092e4d
push esi
call dword [sym.imp.kernel32.dll_SetLastError]
lea ecx, [ebp - 0x4c]
call fcn.1006af06
call fcn.10062bca
ret 4