joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402c00
pop dword [ebp - 0x24]
mov eax, 0xce85adcc
add eax, 0x31ba7e34
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xe800a855
sub dword [ebp - 0x34], 0x99ae630a
mov dword [ebp - 0x30], 0x5d9c8383
sub dword [ebp - 0x30], 0x2b69373e
mov dword [ebp - 0x2c], 0xe5ad9ab0
sub dword [ebp - 0x2c], 0x99615682
mov dword [ebp - 0x28], 0x9fb6bae8
add dword [ebp - 0x28], 0x60494518
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x8346b88b
sub dword [ebp - 0x34], 0xed44f35
mov dword [ebp - 0x30], 0xcfb56b76
add dword [ebp - 0x30], 0x71b6f5ff
mov dword [ebp - 0x2c], 0xb0dcf855
add dword [ebp - 0x2c], 0xb2927417
mov dword [ebp - 0x28], 0x8bbacbc6
sub dword [ebp - 0x28], 0x8bbacbc6
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x9c7e8fac
sub eax, 0x9c3e0ed8
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x37e9a
push 0
call eax
mov ecx, 0x1e7fea81
add ecx, 0xe1806264
mov edx, eax
mov esi, 0xf4d9cd79
add esi, 0xb674287
add esi, dword [ebp - 0x24]
mov ebx, 0x80b9f3f0
xor dword [ebp - 8], edx
mov edi, dword [esi]
add dword [ebp - 4], edi
add edi, ebx
sub dword [ebp - 0x18], ebx
mov dword [edx], edi
sub dword [ebp - 0x18], esi
add edx, 4
add esi, 0x22a8ab37
add esi, 0xdd5754cd
loop 0x402d17
add eax, 0x8ec31c1
sub eax, 0x8eb0b5a
xor ebx, ebx
add ebx, eax
add eax, 0x6026a1b7
sub eax, 0x6026a1b2
mov ecx, 0x9e302c52
add ecx, 0x620fd3ae
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x410aff
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSaturate.exe_gMozillaPoisonSize], eax
call fcn.0040cf26
pop ecx
mov ecx, dword [sym.TestSaturate.exe_gMozillaPoisonSize]
mov dword [sym.TestSaturate.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410b37
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSaturate.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x6bcd0bcb
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x282e7573
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40596d
pop dword [ebp - 0xc]
mov eax, 0x28eefaef
add eax, 0xd7515e7e
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x8e15a724
add dword [ebp - 0x1c], 0xc03c9e27
mov dword [ebp - 0x18], 0x1faebfa6
add dword [ebp - 0x18], 0x12848c9f
mov dword [ebp - 0x14], 0xdc7fac3d
add dword [ebp - 0x14], 0x6fcc97f1
mov dword [ebp - 0x10], 0xc3fabc5a
add dword [ebp - 0x10], 0x3c0543a6
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xb2f40133
sub eax, 0xb2b390d3
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x40f1c929
sub dword [ebp - 0x1c], 0xcc7f5fd3
mov dword [ebp - 0x18], 0x44a521df
add dword [ebp - 0x18], 0xfcc73f96
mov dword [ebp - 0x14], 0x849051c9
add dword [ebp - 0x14], 0xdedf1aa3
mov dword [ebp - 0x10], 0xc239b011
sub dword [ebp - 0x10], 0xc239b011
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xccd72a49
sub eax, 0xcc96b949
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39303
push 0
call eax
mov ecx, 0x41ba9b49
add ecx, 0xbe45b69a
xor edx, edx
add edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0xc]
mov esi, 0xe775d4f9
add esi, 0x92befde0
add dword [ebp - 4], ecx
mov ebx, dword [edi]
sub dword [ebp - 8], 0x68c41dc3
add ebx, esi
xor dword [ebp - 4], eax
mov dword [edx], ebx
sub dword [ebp - 4], 0x7883f6fb
add edx, 0x5023a27a
add edx, 0xafdc5d8a
add edi, 4
loop 0x405a8b
add eax, 0x4b7a8206
add eax, 0xb486b859
mov ebx, eax
add eax, 5
mov ecx, 0xf66a3b66
add ecx, 0x9d5c49a
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0xce51b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ce5140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ce5140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ce5140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ce5140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xce5bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xce5c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcf787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xce5c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xce5c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x482763
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x484e50
call fcn.00483308
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4aab04
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4827a8
cmp eax, esi
jne 0x48279b
xor esi, esi
inc esi
mov edi, esi
jmp 0x4827ab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x48277f
xor esi, esi
inc esi
cmp dword [0x4aab08], esi
jne 0x4827bd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4827f7
cmp dword [0x4aab08], ebx
jne 0x4827f1
mov dword [0x4aab08], esi
push 0x4018bc
push 0x4018b0
call fcn.004828dc
pop ecx
pop ecx
test eax, eax
je 0x4827f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4828cc
mov dword [0x49ff98], esi
cmp dword [0x4aab08], esi
jne 0x48281a
push 0x4018ac
push 0x401868
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4aab08], 2
test edi, edi
jne 0x482827
xor eax, eax
mov ecx, 0x4aab04
xchg dword [ecx], eax
cmp dword [0x4aab14], 0
je 0x482853
push 0x4aab14
call fcn.00483160
pop ecx
test eax, eax
je 0x482853
push ebx
push 2
push ebx
mov esi, dword [0x4aab14]
mov ecx, esi
call dword [0x4ab2d4]
call esi
push dword [0x49ffa4]
push dword [0x49ffa0]
push dword [0x49ff9c]
call fcn.00468ace
add esp, 0xc
mov dword [0x49ff94], eax
cmp dword [0x49ffac], 0
jne 0x4828b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x49ff98], 0
jne 0x4828c5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x49ff94]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00544000
jmp 0x482763

Function at 0x483044
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x484f48
call fcn.00483308
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4830a4
cmp eax, 0xffffffff
je 0x4830a4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x48309d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x48309d
cmp edx, 0x10000000
jae 0x48309d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x48309a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x483110
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x48314e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x483146
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x483150
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x483136
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401040
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 4
push 0x3000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x40107b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nUnable_to_allocate_memory_for_module_list___d__n
call fcn.00401010
add esp, 8
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0x100000
push edi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x4010b3
push eax
push str._nError:_Unable_to_query_module_list___x__n
call fcn.00401010
add esp, 8
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x401133
mov eax, 0xffffffe2
sub eax, edi
push esi
lea esi, [edi + 0x1e]
mov dword [ebp - 4], eax
nop dword [eax + eax]
push str._n_n
call fcn.00401010
push dword [esi - 0x12]
push str._nImage_base:__x_n
call fcn.00401010
movzx eax, word [esi]
add eax, 0x20
add eax, dword [ebp - 4]
add eax, esi
add eax, edi
push eax
push str._nImage_name:__s_n
call fcn.00401010
lea eax, [esi + 2]
push eax
push str._nImage_full_path:__s_n
call fcn.00401010
push dword [esi - 0xe]
push str._nImage_size:__d_n
call fcn.00401010
push str._n_n
call fcn.00401010
inc ebx
add esp, 0x28
add esi, 0x11c
cmp ebx, dword [edi]
jb 0x4010d0
pop esi
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40863c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004082fc
Function at 0x42b224
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438e80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b1b9
mov eax, 0x400000
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.004162c0
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 0x42b273
cmp dword [ebp - 0x1c], 5
jb 0x42b28b
jmp 0x42b287
cmp dword [ebp - 0x10], 1
jne 0x42b28b
cmp dword [ebp - 0x1c], 4
ja 0x42b287
jne 0x42b28b
cmp dword [ebp - 0x18], 0
jbe 0x42b28b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4327a4
call fcn.0042b08d
test eax, eax
jge 0x42b2ac
mov byte [0x43a368], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416063
add ebp, 0x78
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1007592d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x64
mov eax, 0x1010af12
call fcn.10062c32
push ecx
push 0x1013d750
lea ecx, [ebp - 0x70]
call fcn.100786bc
xor ebx, ebx
mov ecx, 0x1013d744
mov dword [ebp - 4], ebx
call fcn.10076078
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
push 0x20119
push 0x1002f7c8
push 0x80000002
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.100786bc
mov esi, dword [ebp - 0x5c]
test eax, eax
jne 0x100759f8
push ecx
push 0x104
lea ecx, [ebp - 0x50]
call fcn.100786bc
mov byte [ebp - 4], 2
mov edi, ebx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100759f0
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x50]
call fcn.100786bc
push eax
mov ecx, 0x1013d744
mov byte [ebp - 4], 3
call fcn.100786bc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1006af06
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 1
inc edi
jmp 0x1007599f
lea ecx, [ebp - 0x50]
call fcn.10075865
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push 0x20219
push 0x1002f7c8
push 0x80000002
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.100786bc
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x10075ad9
push ecx
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.100786bc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
mov edi, dword [ebp - 0x50]
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x44]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10075a99
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1c]
call fcn.100786bc
push eax
mov ecx, 0x1013d744
mov byte [ebp - 4], 6
call fcn.100786bc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.1006af06
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
inc ebx
jmp 0x10075a46
lea ecx, [ebp - 0x1c]
call fcn.10075865
test edi, edi
je 0x10075aac
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075ab7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov edi, ebx
mov ebx, 0x80
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x10002784
call fcn.1006d7a9
mov eax, edi
mov edx, ebx
call fcn.10062bca
ret
cmp eax, 2
je 0x10075b11
cmp eax, 3
je 0x10075b11
call fcn.100758f8
mov edi, eax
mov ebx, edx
or edi, dword [ebp - 0x44]
or ebx, 0x112a
cmp dword [ebp - 0x50], 0
je 0x10075b04
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075ac0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10075ac0
cmp dword [ebp - 0x50], 0
je 0x10075b20
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075ab9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10075ab9
Function at 0x100786bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x100786cb
pop dword [ebp - 0x30]
mov eax, 0x917058c5
sub eax, 0x8168d1fa
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x6e4b7
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xecb6681b
add ecx, 0x1349e802
xor esi, esi
add esi, eax
mov edx, 0x28dbd59a
sub edx, 0x18c63b9a
add edx, dword [ebp - 0x30]
mov edi, 0xb783b868
sub edi, 0x67de8f64
add dword [ebp - 0x1c], 0x97ec9174
mov ebx, dword [edx]
sub ebx, edi
xor dword [ebp - 0x20], 0xd1088ad
mov dword [esi], ebx
add dword [ebp - 0x20], 0x8ddac625
add esi, 4
add edx, 0xd559bd9
sub edx, 0xd559bd5
loop 0x10078727
add eax, 0xaa5be785
add eax, 0x55a54bc2
xor ebx, ebx
add ebx, eax
add eax, 0xd35a1221
sub eax, 0xd35a121c
mov ecx, 0x466f3915
sub ecx, 0x366f3915
add ecx, dword [ebp - 0x30]
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.100786bc
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.100786bc
jmp 0x1007df8e
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
call fcn.100786bc
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.100786bc
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.100786bc
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.100786bc
lea ecx, [ebp - 0x48]
call fcn.100786bc
lea ecx, [ebp - 0x40]
call fcn.100786bc
mov al, bl
call fcn.10062bca
ret 8