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

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43cdbb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43cdbb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43cdbb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43cdbb
cmp dword [ecx + 0x74], 0xe
jbe 0x43cdbb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x443f26
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x443fc3
push ebx
push esi
call fcn.00443eef
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00443e38
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x443f70
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x443fc2
push edi
push eax
call fcn.00444b26
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x443f90
call fcn.00442a61
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x443fc1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00443e38
add esp, 0x20
test eax, eax
jne 0x443faf
push edi
call fcn.00442a61
jmp 0x443fb7
push ebx
call fcn.00442a61
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4452a9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc744e0
push 0xc744d8
push str.FlsAlloc
push 0x1e
call fcn.0044516a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4452dd
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c204]
call esi
jmp 0x4452e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x445327
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc744f0
push 0xc744e8
push str.FlsGetValue
push 0x20
call fcn.0044516a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44535e
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44a7f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a81d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a81d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44b930
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x44b9a1
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x44b9dc
cmp dword [esp + 4], 0
je 0x44b9c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x44b9f1
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0xc7ba4c]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0xc7ba4c], esi
jne 0x44b980
mov byte [0xc7ba48], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x44b9d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x44ba34
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x44b9c7
mov edi, dword [esp]
jmp 0x44b9d3
mov edi, dword [esi]
jmp 0x44b9d2
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
call fcn.0044ba70
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0xc71f38
mov dword [esp + 8], 0xc71f00
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_src_sliceiter.rs
mov dword [esp + 0x14], 0
call fcn.0044ac50
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0xc71f00
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_src_sliceiter.rs
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0044bab0
ud2
Function at 0x300227fe
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
cmp word [0x300a1bc8], 0
je 0x3002284c
push esi
push 0x300a1bc8
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x3002284b
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.3004dd60
add eax, eax
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ebp
ret 0x14

Function at 0x30022b4a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x30022b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x30022b8c
cmp eax, 0x21
je 0x30022b8c
cmp eax, 0x36
jne 0x30022bc9
inc ebx
cmp ebx, 5
jge 0x30022bc9
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30022b55
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.3004dcd9
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x300263e1
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [section..cdata]
push ebx
push esi
push edi
mov dword [ebp + 0x8c], eax
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
je 0x30026421
lea eax, [ebp - 0x78]
push eax
push 0x300037bc
call edi
push 0x300037ac
call fcn.30024687
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x300264bb
push 0x30003798
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x300264b2
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x30026464
lea eax, [ebp - 0x78]
push eax
push 0x3000378c
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x3002647e
lea eax, [ebp - 0x78]
push eax
push 0x30003780
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x30026498
lea eax, [ebp - 0x78]
push eax
push 0x30003778
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x300264b2
lea eax, [ebp - 0x78]
push eax
push 0x3000376c
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
push 0x30003738
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3002652f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x30003730
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30026526
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x78]
push eax
dec esi
call fcn.3004dcd9
cmp byte [eax + esi], 0x5c
jne 0x3002651b
lea eax, [ebp - 0x78]
push eax
call fcn.3004dcd9
mov byte [eax + esi], bl
lea eax, [ebp - 0x78]
push eax
push 0x30003724
call edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
pop ebx
call fcn.30062195
add ebp, 0x90
leave
ret
Function at 0x3002f0ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30004724
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3002f114
xor eax, eax
jmp 0x3002f148
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push 0
push 0
push 0x30004770
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
leave
ret 4

Function at 0x3002f1aa
Capabilities:
Persist via run registry key
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 0x300047e0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3002f1fc
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x300047a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
je 0x3002f200
xor eax, eax
jmp 0x3002f209
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x3003115b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 3], 0x10
push edi
mov edi, 0x104
lea ebx, [esi + 0xc]
je 0x300311be
push edi
push ebx
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
mov dword [ebp - 8], eax
je 0x30031199
cmp eax, edi
jbe 0x300311f2
call fcn.30022b36
test eax, eax
je 0x30031335
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30004fc8
call fcn.30022c53
pop ecx
pop ecx
jmp 0x30031335
push 1
push 0x1c
push ebx
push 0
mov dword [ebp + 8], SysStringLen
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x300311f2
call fcn.30022b36
test eax, eax
je 0x30031335
push 0x30004fa0
call fcn.30022bd0
jmp 0x30031335
push edi
push ebx
push 0x300054a8
call fcn.3004f0ca
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + 8]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push 0x30004724
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3003123a
call fcn.30022b36
test eax, eax
je 0x30031236
push 0x30004f7c
call fcn.30022bd0
and dword [esi + 8], 0
mov eax, dword [esi]
and eax, 7
dec eax
je 0x300312f5
dec eax
je 0x300312b1
dec eax
dec eax
je 0x3003126a
call fcn.30022b36
test eax, eax
je 0x30031335
mov eax, dword [esi]
and eax, 7
push eax
push 0x30004f54
jmp 0x300311b2
push edi
push ebx
push 0x300054f8
call fcn.3004f0ca
cmp dword [0x30065700], 0
je 0x30031289
mov eax, dword [0x30065704]
mov dword [esi + 4], eax
jmp 0x30031290
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x300312a5
mov dword [esi + 0x218], 0x30004830
jmp 0x30031325
mov dword [esi + 0x218], 0x30004854
jmp 0x30031325
push edi
push ebx
push 0x300054e4
call fcn.3004f0ca
cmp dword [0x30065700], 0
je 0x300312d0
mov eax, dword [0x30065704]
mov dword [esi + 4], eax
jmp 0x300312d7
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x300312e9
mov dword [esi + 0x218], 0x30004820
jmp 0x30031325
mov dword [esi + 0x218], 0x30004840
jmp 0x30031325
push edi
push ebx
push 0x300054d0
call fcn.3004f0ca
cmp dword [0x30065700], 0
je 0x30031314
mov eax, dword [0x30065704]
mov dword [esi + 4], eax
jmp 0x3003131b
mov dword [esi + 4], 0x32
mov dword [esi + 0x218], 0x30004810
cmp dword [ebp + 0xc], 0
je 0x30031339
push esi
call fcn.30030f53
test eax, eax
jne 0x30031339
xor eax, eax
jmp 0x3003133c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30053a44
Capabilities:
Set file attributes

Disassembly:
push ebp
mov eax, 0x1084
lea ebp, [esp - 0x1004]
call fcn.300621a2
mov eax, dword [section..cdata]
push ebx
push edi
xor edi, edi
inc edi
push edi
mov dword [ebp + 0x1000], eax
mov ebx, 0x824
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.30053731
add esp, 0xc
test eax, eax
jne 0x30053a85
or eax, 0xffffffff
jmp 0x30053bf6
cmp word [ebp - 0x68], 0
push esi
lea esi, [ebp - 0x68]
mov dword [ebp - 0x74], esi
je 0x30053a9e
inc esi
inc esi
cmp word [esi], 0
jne 0x30053a93
mov dword [ebp - 0x74], esi
push edi
call fcn.3005354d
push 4
pop eax
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push eax
push 0x30014d30
push 0x30014d44
push SysReAllocString
mov dword [ebp - 0x7c], eax
call fcn.3005539e
add esp, 0x1c
test eax, eax
jne 0x30053ad1
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp - 0x6c]
cmp eax, 0x64
mov dword [ebp - 0x80], eax
jbe 0x30053ae1
mov eax, edi
mov dword [ebp - 0x6c], eax
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea ecx, [ebp - 0x68]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x70], ebx
sub dword [ebp - 0x70], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, 0x80
push eax
push 0x30014cc8
lea eax, [ebp + 0xfe0]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x70]
lea eax, [ebp + 0xfe0]
push dword [ebp - 0x74]
push eax
call fcn.3004de95
push 0
push esi
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
jne 0x30053b9c
mov eax, dword [ebp - 0x6c]
cmp eax, 0x64
jb 0x30053b4b
xor eax, eax
inc eax
cmp eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
jne 0x30053aff
push eax
push 0x30014cc8
lea eax, [ebp + 0xfe0]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x70]
lea eax, [ebp + 0xfe0]
push dword [ebp - 0x74]
push eax
call fcn.3004de95
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x6c], 0x64
pop esi
jb 0x30053ba7
and dword [ebp - 0x6c], 0
inc dword [ebp - 0x6c]
push 4
lea eax, [ebp - 0x6c]
push eax
push 4
push 0x30014d30
push 0x30014d44
push SysReAllocString
call fcn.30055454
add esp, 0x18
push dword [0x30065bcc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0x100c], 0
je 0x30053bf3
push dword [ebp + 0x1010]
lea eax, [ebp - 0x68]
push dword [ebp + 0x100c]
push eax
call fcn.3004f088
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x1000]
pop edi
pop ebx
call fcn.30062195
add ebp, 0x1004
leave
ret

Function at 0x30053c0b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x30053c52
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x30053c51
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x5897cc
Capabilities:
Terminate thread

Disassembly:
push ecx
cmp dword [0x59bab4], 0
jbe 0x5897e1
mov eax, dword [0x59bab4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x59ba94]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [0x59bae8], 0
je 0x589816
mov eax, dword [0x59ba90]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x59ba88]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x59ba8c]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [0x59bae8], 0
jne 0x589853
cmp byte [0x59baf0], 0
jne 0x589853
cmp dword [0x59ba84], 0
je 0x589853
mov byte [0x59ba80], 1
push esp
mov eax, dword [0x59ba84]
push eax
call sub.kernel32.dll_GetExitCodeThread
mov eax, dword [esp]
push eax
mov eax, dword [0x59ba84]
push eax
call sub.kernel32.dll_TerminateThread
pop edx
ret
Function at 0x454a00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.NUS3
lea edi, [esi - 0x3b000]
push edi
jmp 0x454a1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x454a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a10
mov eax, 1
add ebx, ebx
jne 0x454a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x454a44
jne 0x454a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a63
dec eax
add ebx, ebx
jne 0x454a50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x454a28
add ebx, ebx
jne 0x454a5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x454ab5
xor ecx, ecx
sub eax, 3
jb 0x454a7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x454aea
sar eax, 1
mov ebp, eax
jmp 0x454a86
add ebx, ebx
jne 0x454a86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a54
inc ecx
add ebx, ebx
jne 0x454a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454a54
add ebx, ebx
jne 0x454aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x454a96
jne 0x454ab2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454a96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x454ad4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x454ac6
jmp 0x454a16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x454ad4
add edi, ecx
jmp 0x454a16
pop esi
mov edi, esi
mov ecx, 0xc54
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x454af2
cmp byte [edi], 0x11
jne 0x454af2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x454af7
lea edi, [esi + 0x51000]
mov eax, dword [edi]
or eax, eax
je 0x454b6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x634b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x63548]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x454b24
mov ecx, edi
jns 0x454b53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x63550]
or eax, eax
je 0x454b69
mov dword [ebx], eax
add ebx, 4
jmp 0x454b41
call dword [esi + 0x6354c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x454ba0
cmp al, 0xef
ja 0x454b93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x454b75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x454b82
mov ebp, dword [esi + 0x63554]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x454bd4
sub esp, 0xffffff80
jmp 0x40997c
Function at 0x1001311
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 0x110]
push edi
xor ebx, ebx
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push ebx
push dword [eax]
call dword [sym.imp.MSVCRT.dll__splitpath]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x110]
push ebx
push eax
push 0x80000000
call edi
test eax, eax
jne 0x10013eb
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 0xc], ebx
jne 0x10013eb
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x80000000
call edi
test eax, eax
jne 0x10013eb
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push 0x100113c
push dword [ebp - 4]
call edi
test eax, eax
je 0x10013be
push dword [ebp - 4]
call esi
jmp 0x10013eb
lea eax, [ebp - 8]
mov edi, 0x1003058
push eax
push edi
push ebx
mov dword [ebp - 8], 0x104
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], ebx
je 0x10013ef
xor eax, eax
jmp 0x1001400
mov eax, dword [ebp - 8]
push 1
mov byte [eax + 0x1003058], bl
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1001bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011d0
push 0x1001da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x1003174], 0xffffffff
mov dword [0x1003178], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x1003170]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x100316c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x100317c], ecx
call fcn.01001df0
mov eax, dword [0x1003050]
test eax, eax
jne 0x1001c81
push 0x1001de0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.01001dc0
push 0x100300c
push 0x1003008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x1003168]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x1003164]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x1003004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x1001d8f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x1001cf5
cmp al, 0x22
jne 0x1001ce7
cmp byte [esi], 0x22
jne 0x1001cfe
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x1001d0e
cmp al, 0x20
ja 0x1001d0e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x1001cfe
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x1001d2f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1001d34
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x1001d74
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x1001cfe
inc esi
mov dword [ebp - 0x74], esi
jmp 0x1001d8f