joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x4155f6
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x41561c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x415617
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x415601
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x415609
cmp edx, ebx
jne 0x415757
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4155d8
add eax, dword [eax + 4]
jmp 0x4155c5
mov dword [ebp + 0xc], ebx
jmp 0x415627
Function at 0x415680
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41563f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41565d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4156bb
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4156a2
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4156ab
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4156b5
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x415697
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x415621
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x415708
dec eax
je 0x4156ff
sub eax, 3
je 0x4156f6
mov dword [ebp - 4], 0x40
jmp 0x415725
mov dword [ebp - 4], 4
jmp 0x41570b
mov dword [ebp - 4], 0x20
jmp 0x41570b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x415757
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4156d7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00414f68
mov edi, 0xff067569
jne 0x415762
push 1
push esi
call edi
mov eax, esi
jmp 0x415763
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415e01
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg ebp, eax
sar ah, 0xff
dec dword [ecx + 0x4680845]
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.00414f68
test dword [eax - 4], ecx
dec edi
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00414f46
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00414f78
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00414f2d
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00414f68
sbb al, 0x82
mov edx, 0x10468
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x41691a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx - 0x39f7b]
inc dword [ebx - 0x6fb43]
inc dword [eax]
jne 0x416ae3
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
invalid
invalid
xchg ebx, eax
Function at 0x100013be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000140a
cmp dword [ebp + 0xc], 1
je 0x100013f3
cmp dword [ebp + 0xc], 2
jne 0x10001401
test edi, edi
mov eax, dword [ebp - 4]
je 0x10001406
cmp byte [eax + edi - 1], 0
je 0x10001406
push 0xd
pop eax
jmp 0x1000140a
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x10001772
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
test ebx, ebx
mov eax, dword [0x1000d040]
push esi
mov dword [ebp - 4], eax
push edi
jne 0x10001793
mov eax, 0x80070057
jmp 0x10001835
and dword [ebx], 0
push str.didduid.ini
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x1000b5d6
push dword [ebp + 0xc]
push str.180Solutions
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x100017e0
push ebx
push dword [ebp + 0xc]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10001673
test eax, eax
jne 0x10001821
push ebx
push dword [ebp + 0xc]
push SysReAllocString
call fcn.10001673
jmp 0x10001821
call dword [0x1000d078]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.10009f10
mov eax, esp
push esi
push edi
lea ecx, [ebp - 0x108]
push ecx
mov esi, eax
call fcn.1000111e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x10001833
push 0x1000b5d4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
xor eax, eax
lea esp, [ebp - 0x110]
mov ecx, dword [ebp - 4]
call fcn.10009226
pop edi
pop esi
leave
ret 8

Function at 0x1000259a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x100025e0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x100025e8
mov eax, dword [esp + 0xc]
push esi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc
Function at 0x10002617
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1000d040]
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 0xa0]
mov ebx, ecx
push dword [ebx]
mov dword [ebp + 0x94], eax
xor esi, esi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], esi
call fcn.1000138b
mov edi, eax
cmp edi, esi
je 0x10002667
cmp dword [ebp - 0x70], esi
je 0x10002663
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100026d1
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002682
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.10002617
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x100026e9
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x1000266f
cmp dword [ebp - 0x70], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100026b5
push dword [ebp - 0x70]
call edi
mov dword [ebp - 0x70], esi
push dword [ebp + 0xa0]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x70], esi
mov ebx, eax
je 0x100026cf
push dword [ebp - 0x70]
call edi
mov eax, ebx
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
pop ebx
call fcn.10009226
add ebp, 0x98
leave
ret 4
cmp dword [ebp - 0x70], esi
je 0x100026f7
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
jmp 0x100026d1
Function at 0x10002a63
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x1000d040]
push ebx
push esi
push edi
mov dword [ebp + 0x394], eax
call dword [0x1000d078]
xor ebx, ebx
cmp dword [ebp + 0x3a4], ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3a0]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x70], ebx
je 0x10002afa
push dword [ebp + 0x3a4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x10002ad8
push edi
call fcn.10001000
test al, al
pop ecx
je 0x10002ad8
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.10009f10
mov eax, esp
jmp 0x10002ae5
mov eax, edi
lea esi, [ebp - 0x74]
call fcn.10001a28
mov ebx, dword [ebp - 0x74]
push dword [ebp - 0x78]
mov esi, eax
push edi
push dword [ebp + 0x3a4]
call fcn.10001150
test eax, eax
jne 0x10002b25
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x10002b17
lea eax, [ebp - 0x70]
call fcn.1000768f
jmp 0x10002b17
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.10008fa2
pop ecx
test ebx, ebx
jne 0x10002b0c
mov eax, 0x8007000e
jmp 0x10002bec
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x74], edi
jne 0x10002b45
call fcn.1000127b
mov esi, eax
jmp 0x10002bc9
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x10002b6d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x78], eax
jne 0x10002b74
call fcn.1000127b
jmp 0x10002bbe
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
push eax
lea esi, [ebp - 0x70]
call fcn.1000766f
cmp dword [ebp - 0x70], 0
jne 0x10002b97
mov esi, 0x8007000e
jmp 0x10002bc0
push edi
push dword [ebp - 0x78]
push dword [ebp - 0x70]
call fcn.100093f0
mov eax, dword [ebp - 0x70]
add esp, 0xc
push dword [ebp + 0x3b0]
mov byte [edi + eax], 0
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x80]
call fcn.10003720
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x10002be6
lea eax, [ebp - 0x70]
call fcn.1000768f
jmp 0x10002be6
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.10008fa2
pop ecx
test ebx, ebx
jne 0x10002bdb
mov eax, esi
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x394]
call fcn.10009226
pop edi
pop esi
pop ebx
add ebp, 0x398
leave
ret 0x14
Function at 0x10007819
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
lea eax, [esi - 0x78]
neg esi
sbb esi, esi
and esi, eax
lea eax, [esi + 0x84]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x50]
test esi, esi
je 0x10007841
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret

Function at 0x1000800c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10008023
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10008035
xor eax, eax
jmp 0x10008066
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10008058
cmp edi, eax
jae 0x10008031
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x1000804a
cmp edi, eax
jae 0x10008031
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x10008128
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov word [edi + 8], ax
and dword [esi + 8], 0
movzx ecx, cx
movzx eax, ax
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x1000814c
xor eax, eax
pop ebx
ret
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi + 8], eax
je 0x10008148
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esi + 4], eax
jne 0x1000817b
push 0x716
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10008148
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi], eax
pop ebx
mov eax, ecx
ret
Function at 0x1000846c
Capabilities:
Create directory
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.10008798
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 8]
push eax
sub ecx, edi
mov edx, edi
lea eax, [ebp - 4]
call fcn.1000883d
push 0x5c
xor ecx, ecx
lea esi, [ebp - 8]
call fcn.10008818
add edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.100014e3
cmp dword [ebp - 0xc], edi
jge 0x100084e3
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
lea eax, [ebp - 4]
call fcn.100088a5
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100014e3
inc edi
mov dword [ebp - 0xc], edi
jmp 0x10008487
mov esi, 0x80
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push esi
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000854f
mov esi, dword [ebp + 0x10]
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10008540
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
mov dword [ebp - 8], 1
je 0x10008543
mov dword [ebp - 8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
jne 0x10008569
cmp dword [ebp + 0x14], ebx
je 0x1000855f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x10008569
push str.Error_during_SaveModule
call fcn.100085ac
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.100014e3
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1000857e
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x100085a6
push str.Error_during_ExecuteModule
call fcn.100085ac
xor eax, eax
jmp 0x100085a9
xor eax, eax
inc eax
ret 0xc
Function at 0x10008668
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1000d040]
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100086a8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10008706
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x78]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100086e6
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10008705
cmp dword [ebp - 0x80], 1
je 0x100086f3
push 0x3f2
jmp 0x100086dc
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0xa0]
call fcn.10007f88
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp + 0x94]
call fcn.10009226
add ebp, 0x98
leave
ret 4

Function at 0x10008c32
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1000d040]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10008bb4
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10009810
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10008c94
cmp dword [ebp - 0x1c], 5
jb 0x10008cac
jmp 0x10008ca8
cmp dword [ebp - 0x10], 1
jne 0x10008cac
cmp dword [ebp - 0x1c], 4
ja 0x10008ca8
jne 0x10008cac
cmp dword [ebp - 0x18], 0
jbe 0x10008cac
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x1000b2e0
call fcn.1000122b
test eax, eax
jge 0x10008ccd
mov byte [0x1000d35c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10009226
add ebp, 0x78
leave
ret
Function at 0x1000929a
Capabilities:
Terminate process

Disassembly:
push 0x11c
push 0x1000b548
call fcn.10009cb0
mov eax, dword [0x1000d040]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1000d2ec]
test eax, eax
je 0x100092da
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x100093e4
mov eax, dword [ebp + 8]
dec eax
je 0x100092f6
mov ebx, str.Unknown_security_failure_detected_
mov dword [ebp - 0x12c], str.A_security_error_of_unknown_cause_has_been_detected_which_has_ncorrupted_the_programs_internal_state.__The_program_cannot_safely_ncontinue_execution_and_must_now_be_terminated._n
mov edi, 0xd4
jmp 0x1000930a
mov ebx, str.Buffer_overrun_detected_
mov dword [ebp - 0x12c], str.A_buffer_overrun_has_been_detected_which_has_corrupted_the_programs_ninternal_state.__The_program_cannot_safely_continue_execution_and_must_nnow_be_terminated._n
mov edi, 0xb9
mov byte [ebp - 0x20], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10009339
push str._program_name_unknown_
lea eax, [ebp - 0x124]
push eax
call fcn.10009e10
pop ecx
pop ecx
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], eax
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0xb
cmp eax, 0x3c
jbe 0x10009380
lea eax, [ebp - 0x124]
push eax
call esi
lea ecx, [ebp - 0x124]
sub ecx, 0x31
add eax, ecx
mov dword [ebp - 0x128], eax
push 3
push 0x1000b394
push eax
call fcn.100093f0
add esp, 0xc
push dword [ebp - 0x128]
call esi
lea eax, [eax + edi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.10009f10
mov dword [ebp - 0x18], esp
mov edi, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x1000b390
push ebx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.Program:
push edi
call esi
push dword [ebp - 0x128]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0x12c]
push edi
call esi
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000972d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10009f10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100097c8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1000d2c4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100097c8
cmp eax, 1
je 0x100097e9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100097c8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10009795
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100097c4
xor eax, eax
inc eax
jmp 0x10009808
cmp edi, eax
jae 0x100097cc
xor eax, eax
jmp 0x10009808
cmp eax, esi
jae 0x100097d3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1000d2c4]
jmp 0x100097ec
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret