joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a66
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0x9c4
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.01005c6f
test eax, eax
je 0x1006279
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x1006281
cmp byte [0x1019001], bl
push esi
push edi
mov dword [ebp - 0xc], ebx
je 0x1006294
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1006288
push edi
push esi
push eax
call fcn.01004270
add esp, 0xc
push ebx
push dword [ebp - 8]
call fcn.010047be
xor ecx, ecx
push 4
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
je 0x10062da
push edi
push dword [ebp - 8]
call fcn.010047be
cmp eax, 2
mov dword [ebp - 0x10], eax
mov dword [edi + eax*4], ebx
je 0x1005d82
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.01002d2a
mov dword [ebp - 0xc], eax
cmp edi, ebx
je 0x1002b47
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.01003144
cmp dword [ebp - 4], ebx
pop edi
pop esi
jl 0x100633d
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0x10
mov esi, dword [edi + 4]
movzx eax, word [esi]
cmp ax, 0x2d
je 0x10062e6
cmp ax, 0x2f
jne 0x1002b2e
jmp 0x10062e6
xor eax, eax
inc eax
jmp 0x1002b69
call fcn.01003144
jmp 0x1006279
mov dword [ebp - 4], 0x8007000e
jmp 0x1002b50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
mov edi, eax
push edi
push ebx
push ebx
call esi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1006288
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
jmp 0x1002aed
mov dword [ebp - 4], 0x8007000e
jmp 0x1002b3c
push 0xffffffffffffffff
inc esi
push 0x1006378
inc esi
push esi
call fcn.01002491
test eax, eax
jne 0x1006300
call fcn.0100ce65
jmp 0x1006335
push 0xffffffffffffffff
push 0x1006360
push esi
call fcn.01002491
test eax, eax
jne 0x1006318
call fcn.0100d54f
jmp 0x1006335
push 0xffffffffffffffff
push 0x100634c
push esi
call fcn.01002491
test eax, eax
jne 0x1002b2e
push dword [ebp + 8]
call fcn.0100cd20
mov dword [ebp - 4], eax
jmp 0x1002b3c
mov dword [ebp - 0xc], 1
jmp 0x1002b66
Function at 0x1003b80
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x1008480
push edi
xor edi, edi
push edi
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x100848a
cmp eax, edi
je 0x10084a7
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push eax
push edi
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x10084bb
push 2
pop ecx
cmp ebx, ecx
jne 0x1003bfa
push 4
pop ecx
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x10084bb
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
cmp ebx, 4
jne 0x10084ae
jmp 0x1003bdb
mov eax, 0x8000ffff
jmp 0x1003bf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003bf4
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003bf4
xor eax, eax
jmp 0x1003bf4
xor ecx, ecx
cmp ebx, 8
sete cl
jmp 0x1003bdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003bf3
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003bf3

Function at 0x1003c0a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
push esi
push 0
lea eax, [ebp - 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x1007775
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003c33
push ebx
sub eax, ecx
push edi
lea edi, [eax + esi + 2]
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x1007792
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100779c
sub edi, eax
push 0x1003b38
lea esi, [eax + ebx]
push edi
push esi
call fcn.01003cb3
push dword [ebp + 8]
dec edi
push edi
inc esi
push esi
call fcn.01003cb3
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100779c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor esi, esi
test ebx, ebx
je 0x1003ca5
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1007786
mov esi, eax
jmp 0x1003ca7
and eax, 0xffff
or eax, 0x80070000
jmp 0x100777f
mov esi, 0x8007000e
jmp 0x1003c9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10077b0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1003c9a
Function at 0x100494d
Capabilities:
Query or enumerate registry value

Disassembly:
lea eax, [ebp - 0xc04]
cmp dword [ebp - 0xc08], ebx
jbe 0x100492e
cmp dword [ebp - 0xc08], 2
ja 0x100845a
push 0xffffffffffffffff
push 0x1004944
lea eax, [ebp - 0xc04]
push eax
mov byte [esi], 1
call fcn.01002491
test eax, eax
je 0x100492a
push 0xffffffffffffffff
push 0x1004200
lea eax, [ebp - 0xc04]
push eax
call fcn.01002491
test eax, eax
je 0x100492a
push 0xffffffffffffffff
push 0x1004938
lea eax, [ebp - 0xc04]
push eax
call fcn.01002491
test eax, eax
je 0x100492a
mov byte [esi], 1
xor eax, eax
jmp 0x10049c4
mov byte [esi], bl
jmp 0x1004923
mov eax, 0x80040153
jmp 0x10049c4
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc1c
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp byte [0x1019001], bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc1c], esi
je 0x1008359
lea ecx, [ebp - 0xc0c]
push ecx
lea ecx, [ebp - 0xc04]
push ecx
lea ecx, [ebp - 0xc08]
push ecx
push ebx
push edi
push eax
mov dword [ebp - 0xc0c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10048bd
jle 0x10049c4
and eax, 0xffff
or eax, 0x80070000
lea esp, [ebp - 0xc28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001508
leave
ret 0xc
cmp edi, ebx
je 0x1008402
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0xc18], eax
jne 0x1008389
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x10049b8
call fcn.010049db
mov dword [ebp - 0xc10], esp
push ebx
push ebx
push dword [ebp - 0xc18]
push dword [ebp - 0xc10]
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
test eax, eax
je 0x100837c
mov esi, dword [ebp - 0xc1c]
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc08]
push eax
push ebx
push dword [ebp - 0xc10]
mov edi, 0x400
push dword [ebp - 0xc14]
mov dword [ebp - 0xc0c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10049b8
mov eax, dword [ebp - 0xc0c]
cmp eax, ebx
jne 0x100840a
mov eax, 0x80004005
jmp 0x10049c4
mov dword [ebp - 0xc10], ebx
jmp 0x10083b3
cmp dword [ebp - 0xc08], 1
mov byte [ebp + eax - 0x405], bl
je 0x100842e
cmp dword [ebp - 0xc08], 2
je 0x100842e
lea eax, [ebp - 0x404]
jmp 0x10048c3
push edi
lea eax, [ebp - 0xc04]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100837c
mov eax, dword [ebp - 0xc14]
jmp 0x10048c3
cmp dword [ebp - 0xc08], 4
jne 0x100492e
cmp dword [ebp - 0xc0c], 4
jne 0x100492e
cmp dword [eax], ebx
setne al
mov byte [esi], al
jmp 0x1004923
Function at 0x1004ddd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x1019001], bl
push esi
push edi
je 0x1008223
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x14]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.01004e77
test eax, eax
jl 0x10081f8
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1008202
cmp dword [ebp - 0xc], 1
jne 0x1008217
mov eax, dword [ebp - 8]
shr eax, 1
cmp word [esi + eax*2 - 2], bx
jne 0x10081f8
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001508
leave
ret 0x10
mov eax, 0x80040153
jmp 0x1004e5e
jle 0x1004e5e
and eax, 0xffff
or eax, 0x80070000
jmp 0x1004e5e
cmp dword [ebp - 0xc], 2
je 0x1004e4c
jmp 0x10081f8
cmp dword [ebp + 0xc], ebx
je 0x1008268
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x100824b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x1008202
call fcn.010049db
mov dword [ebp - 0x10], esp
push ebx
push ebx
push edi
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x1008241
jmp 0x100826b
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0x14]
inc esi
mov eax, esi
call fcn.010049db
mov edi, esp
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1008202
cmp dword [ebp - 0xc], 1
je 0x10082a9
cmp dword [ebp - 0xc], 2
jne 0x10081f8
mov eax, dword [ebp - 8]
cmp byte [edi + eax - 1], bl
jne 0x10081f8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1004e5c
jmp 0x1008241
Function at 0x100521d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x1019001], bl
push esi
push edi
mov dword [ebp - 8], 4
je 0x10082d4
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100833c
jle 0x1005273
and eax, 0xffff
or eax, 0x80070000
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001508
leave
ret 0xc
cmp dword [ebp + 0xc], ebx
je 0x100831c
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x10082ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x1005267
call fcn.010049db
mov dword [ebp - 0xc], esp
push ebx
push ebx
push edi
push dword [ebp - 0xc]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x10082f2
jmp 0x100831f
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x100525f
cmp dword [ebp - 0x10], 4
jne 0x100834f
cmp dword [ebp - 8], 4
jne 0x100834f
xor eax, eax
jmp 0x1005273
mov eax, 0x80040153
jmp 0x1005273
Function at 0x1005401
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
push esi
mov dword [eax], ebx
cmp byte [0x1019001], bl
push edi
je 0x100645e
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1005498
call fcn.010049db
mov edi, esp
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1005498
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10054a4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1005498
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001508
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006447
cmp eax, ebx
jle 0x1005484
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005484
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x1005498
call fcn.010049db
cmp esp, ebx
mov dword [ebp - 8], esp
jne 0x1006491
mov eax, 0x8007000e
jmp 0x1005484
push ebx
push ebx
push edi
push dword [ebp - 8]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x1005498
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x1005498
call fcn.010049db
mov edi, esp
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1005498
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1003b38
push edi
call sub.VERSION.dll_VerQueryValueA
jmp 0x100546b
Function at 0x1005516
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x20
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x10055c1
mov ecx, eax
call fcn.010055cd
mov esi, eax
cmp esi, ebx
je 0x1006f59
mov eax, dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x1006f63
lea eax, [esi + 0x14]
push eax
push ebx
push esi
push 0x1002fd4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x1006f63
push 0xff
push 0xffffffffffffffff
push ebx
push dword [esi + 0x1c]
call fcn.01002cd9
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov dword [esi + 0x1c], ebx
jg 0x1006f7e
mov edi, eax
cmp edi, ebx
jl 0x10055b0
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor esi, esi
xor edi, edi
cmp esi, ebx
jne 0x1006f8d
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
xor esi, esi
jmp 0x1005539
mov edi, 0x8007000e
jmp 0x10055b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1006f77
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10055b0
and eax, 0xffff
or eax, 0x80070000
jmp 0x10055a1
push 1
mov ecx, esi
call fcn.01003615
jmp 0x10055b8

Function at 0x1005c6f
Capabilities:
Check os version

Disassembly:
push 0xa0
push 0x1005d40
call fcn.01005c10
mov esi, dword [ebp + 0xc]
mov dword [0x1019024], esi
mov eax, dword [ebp + 8]
mov dword [0x101901c], eax
xor edi, edi
mov dword [ebp - 4], edi
push 0x101902c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1005d37
cmp dword [ebp - 0xac], 6
sbb al, al
inc al
mov byte [section..data], al
call fcn.01007d1a
mov dword [0x1019020], eax
cmp dword [ebp - 0xa0], 2
jne 0x1005d19
mov byte [0x1019001], 1
cmp dword [ebp - 0xac], 5
jb 0x1005cfd
mov byte [0x1019002], 1
je 0x1005d2c
cmp dword [ebp - 0xac], 6
jb 0x1005d19
cmp esi, 0x7d0
je 0x1007fe9
mov byte [0x1019004], 1
xor eax, eax
cmp dword [0x101901c], edi
setne al
call fcn.01005d5c
ret 8
cmp dword [ebp - 0xa8], 1
jb 0x1005cfd
jmp 0x1005d06
xor eax, eax
jmp 0x1005d24
push edi
call 0x1015256
jmp 0x1005d12
Function at 0x100f9bb
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x100f9ce
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100f9ca
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x100f9ef
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100fa2e
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x100fa24
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x100fa30
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x100fa14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100fc61
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20006
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100fcae
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x100fcbc
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x100febe
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x43
je 0x100fef5
cmp dword [ebp + 8], 0x57
je 0x100fee9
mov eax, 0x80070057
jmp 0x1010041
mov dword [ebp - 0x214], 0x1010050
jmp 0x100feff
mov dword [ebp - 0x214], 0x1010058
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x218], ebx
mov edi, 0x104
push ebx
mov esi, 0x80000000
jmp 0x100ffec
cmp eax, ebx
jne 0x1010032
cmp byte [ebp - 0x108], 0x2e
jne 0x100ffce
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1010032
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10087b4
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], ebx
jne 0x100ffce
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x100ffce
mov byte [ebp + eax - 0x109], bl
push 1
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x214]
call fcn.0100fe08
cmp eax, ebx
jl 0x101003e
inc dword [ebp - 0x218]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x218]
push esi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x100ff2c
mov eax, dword [ebp - 0x214]
push ebx
push 0x1010060
call fcn.0100fe08
cmp eax, ebx
jl 0x101003e
mov eax, dword [ebp - 0x214]
push ebx
push 0x1010068
call fcn.0100fe08
cmp eax, ebx
jl 0x101003e
xor eax, eax
jmp 0x101003e
jle 0x101003e
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001508
leave
ret 4
Function at 0x101167a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [0x1019001], bl
push edi
mov dword [ebp - 0x39c], esi
je 0x10116d7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101176b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x101176f
lea eax, [ebp - 0x394]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x1011757
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x1011704
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1011774
and eax, 0xffff
or eax, 0x80070000
jmp 0x1011774
call fcn.010049db
mov dword [ebp - 0x398], esp
push ebx
push ebx
push edi
push dword [ebp - 0x398]
push 0xffffffffffffffff
push dword [ebp - 0x39c]
push ebx
push ebx
call esi
test eax, eax
je 0x10116ee
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101176b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x101176f
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
je 0x101176f
cmp eax, 0xffffffff
je 0x101176f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1011774
test al, 0x10
je 0x1011767
mov eax, 0x80070002
lea esp, [ebp - 0x3a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001508
leave
ret 4