joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028e4
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.01008e63
call fcn.010028ab
or dword [ebp - 4], 0xffffffff
mov esi, 0x105
push esi
mov dword [ebp - 0x10], esi
call fcn.01002d06
push esi
mov edi, eax
call fcn.01002d06
pop ecx
pop ecx
mov ebx, eax
test edi, edi
je 0x1002a63
test ebx, ebx
je 0x1002a58
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100277c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002a58
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002a58
cmp dword [ebp - 0xc], 2
jne 0x1002984
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1002a58
cmp dword [ebp - 0xc], 2
mov eax, ebx
je 0x1002986
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 8], eax
call fcn.01002d34
push ebx
call fcn.01002d34
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
je 0x10029b9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 0x10027b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002a27
push 0x10027d4
push eax
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1002a27
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01002d06
mov edi, eax
pop ecx
test edi, edi
je 0x1002a27
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0x10]
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x1002a20
push esi
push edi
call dword [ebp - 0x14]
push edi
call fcn.01002d34
pop ecx
cmp dword [ebp - 8], 0
je 0x1002a6e
push 0x10027f0
push dword [ebp - 8]
call ebx
test eax, eax
je 0x1002a49
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x1002a63
push edi
call fcn.01002d34
pop ecx
test ebx, ebx
je 0x1002a6e
push ebx
call fcn.01002d34
pop ecx
cmp dword [ebp - 4], 0xffffffff
pop edi
pop esi
pop ebx
je 0x1002a80
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret 0x10
Function at 0x1002ce2
Capabilities:
Accept command line arguments

Disassembly:
push 0xf0
push 0x1009788
call fcn.0100436c
push dword [section..data]
call fcn.0100432a
pop ecx
mov dword [section..data], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
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 0x1002cd2
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x1002b79
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x100bd90], edi
mov dword [0x100bd98], eax
mov dword [0x100bd9c], edx
mov dword [0x100bda0], esi
mov dword [0x100bd94], ecx
call fcn.01002ab9
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0100425f
pop ecx
test eax, eax
jne 0x1002bca
push 0x1c
call fcn.01002a8b
pop ecx
call fcn.0100407e
test eax, eax
jne 0x1002bdb
push 0x10
call fcn.01002a8b
pop ecx
mov dword [ebp - 4], ebx
call fcn.01003a05
test eax, eax
jge 0x1002bef
push 0x1b
call fcn.01002dc7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100c9dc], eax
call fcn.010038c9
mov dword [0x100bd80], eax
call fcn.010037d5
test eax, eax
jge 0x1002c15
push 8
call fcn.01002dc7
pop ecx
call fcn.01003487
test eax, eax
jge 0x1002c26
push 9
call fcn.01002dc7
pop ecx
push ebx
call fcn.01002eeb
pop ecx
test eax, eax
je 0x1002c38
push eax
call fcn.01002dc7
pop ecx
call fcn.01003423
test byte [ebp - 0xd4], bl
je 0x1002c4e
movzx ecx, word [ebp - 0xd0]
jmp 0x1002c51
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call main
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x1002c74
push eax
call fcn.0100304b
call fcn.01003081
jmp 0x1002cb5
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x1002cd7
mov eax, 0xff
call fcn.010043b4
ret
call fcn.01004561
jmp 0x1002b05
Function at 0x10030f0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x100b008]
je 0x1003116
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x1003104
cmp esi, 0x17
jae 0x1003270
push 3
call fcn.01005381
pop ecx
cmp eax, 1
je 0x100323a
push 3
call fcn.01005381
pop ecx
test eax, eax
jne 0x1003149
cmp dword [section..data], 1
je 0x100323a
cmp edi, 0xfc
je 0x1003270
push 0x100174c
mov edi, 0x314
push edi
mov esi, 0x100bdd8
push esi
call fcn.01005314
add esp, 0xc
test eax, eax
je 0x100317f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004af7
add esp, 0x14
mov byte [0x100bef5], bl
push 0x104
mov ebx, 0x100bdf1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10031c2
push 0x1001734
push 0x2fb
push ebx
call fcn.01005314
add esp, 0xc
test eax, eax
je 0x10031c2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.01004af7
add esp, 0x14
push ebx
push edi
push esi
call fcn.0100529b
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x10031e0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004af7
add esp, 0x14
push 0x1001730
push edi
push esi
call fcn.0100529b
add esp, 0xc
test eax, eax
je 0x1003200
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004af7
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x100b00c]
push edi
push esi
call fcn.0100529b
add esp, 0xc
test eax, eax
je 0x1003225
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004af7
add esp, 0x14
push 0x12010
push 0x1001708
push esi
call fcn.010050f4
add esp, 0xc
jmp 0x1003270
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x1003270
cmp edi, 0xffffffff
je 0x1003270
mov edx, dword [esi*8 + 0x100b00c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003259
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100407e
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1001778
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10040d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10017e4
push edi
call esi
push 0x10017d8
push edi
mov dword [0x100c1fc], eax
call esi
push 0x10017cc
push edi
mov dword [0x100c200], eax
call esi
push 0x10017c4
push edi
mov dword [0x100c204], eax
call esi
mov dword [0x100c208], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x100c1fc], ebx
je 0x10040f6
cmp dword [0x100c200], ebx
je 0x10040f6
cmp dword [0x100c204], ebx
je 0x10040f6
cmp dword [0x100c208], ebx
jne 0x100411a
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x100c200], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x100c1fc], 0x1003d42
mov dword [0x100c204], esi
mov dword [0x100c208], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100b16c], eax
cmp eax, 0xffffffff
je 0x100418d
push dword [0x100c200]
push eax
call esi
test eax, eax
je 0x100418d
call fcn.010030a9
push dword [0x100c1fc]
call fcn.01003c44
push dword [0x100c200]
mov dword [0x100c1fc], eax
call fcn.01003c44
push dword [0x100c204]
mov dword [0x100c200], eax
call fcn.01003c44
push dword [0x100c208]
mov dword [0x100c204], eax
call fcn.01003c44
add esp, 0x10
mov dword [0x100c208], eax
call fcn.01004929
test eax, eax
jne 0x1004193
call fcn.01003d7f
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1003f2e
push dword [0x100c1fc]
call fcn.01003cca
pop ecx
call eax
mov dword [0x100b170], eax
cmp eax, 0xffffffff
je 0x1004188
push 0x214
push 1
call fcn.010063ed
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x1004188
push esi
push dword [0x100b170]
push dword [0x100c204]
call fcn.01003cca
pop ecx
call eax
test eax, eax
jne 0x10041e6
push esi
call fcn.01004842
pop ecx
jmp 0x1004188
push ebx
push esi
call fcn.01003dc1
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100418f
Function at 0x10050f4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01003cbc
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x100c6a4], ebx
jne 0x10051cd
push ebx
push ebx
push 0x10018d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x1005138
xor eax, eax
jmp 0x1005291
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018cc
push edi
call esi
cmp eax, ebx
je 0x1005131
push eax
call fcn.01003c44
mov dword [esp], 0x10018bc
push edi
mov dword [0x100c6a4], eax
call esi
push eax
call fcn.01003c44
mov dword [esp], 0x10018a8
push edi
mov dword [0x100c6a8], eax
call esi
push eax
call fcn.01003c44
mov dword [0x100c6ac], eax
lea eax, [ebp - 8]
push eax
call fcn.01002e64
pop ecx
pop ecx
test eax, eax
je 0x100519b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004af7
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10051cd
push 0x100188c
push edi
call esi
push eax
call fcn.01003c44
pop ecx
mov dword [0x100c6b4], eax
cmp eax, ebx
je 0x10051cd
push 0x1001874
push edi
call esi
push eax
call fcn.01003c44
pop ecx
mov dword [0x100c6b0], eax
mov eax, dword [0x100c6b0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1005246
cmp dword [0x100c6b4], esi
je 0x1005246
push eax
call fcn.01003cca
pop ecx
call eax
cmp eax, ebx
je 0x1005213
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100c6b4]
call fcn.01003cca
pop ecx
call eax
test eax, eax
je 0x1005213
test byte [ebp - 0x18], 1
jne 0x1005246
lea eax, [ebp - 0xc]
push eax
call fcn.01002ea5
pop ecx
test eax, eax
je 0x100522e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004af7
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100523d
or dword [ebp + 0x10], 0x200000
jmp 0x1005277
or dword [ebp + 0x10], 0x40000
jmp 0x1005277
mov eax, dword [0x100c6a8]
cmp eax, esi
je 0x1005277
push eax
call fcn.01003cca
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1005277
mov eax, dword [0x100c6ac]
cmp eax, esi
je 0x1005277
push dword [ebp - 4]
push eax
call fcn.01003cca
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x100c6a4]
call fcn.01003cca
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008665
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100b178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.01002e64
pop ecx
test eax, eax
je 0x100869a
push esi
push esi
push esi
push esi
push esi
call fcn.01004af7
add esp, 0x14
push 4
pop eax
call fcn.010088d0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10087b6
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x100872f
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1001854
call esi
test eax, eax
jne 0x1008706
push 0x10027b8
call esi
test eax, eax
je 0x100872f
push 0x10024c8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100872f
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x100872f
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x100872f
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.010035c2
add esp, 0xc
test eax, eax
jl 0x10087b6
not esi
and dword [ebp - 8], esi
je 0x1008761
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.010035c2
add esp, 0xc
test eax, eax
jl 0x10087b6
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x100876c
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1008780
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x10087b6
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10087b6
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10087b6
xor eax, eax
inc eax
jmp 0x10087b8
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01002cf1
leave
ret
Function at 0x1008ece
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1008f2f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x1008f26
cmp dword [ebp - 0xc], 4
je 0x1008f26
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1008f72
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x1008f69
cmp dword [ebp - 0xc], esi
je 0x1008f69
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1008f81
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100b178]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008ff9
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01002cf1
leave
ret 0xc

Function at 0x1009167
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10025d0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10091b9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10025b0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x1009200
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x100bd7c]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x1009284
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002690
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009273
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1002684
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100926a
cmp dword [ebp - 0xc], 4
jne 0x100926a
cmp dword [ebp - 0x10], eax
je 0x100926a
mov dword [0x100bd7c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100bd7c]
cmp eax, 0xffffffff
jne 0x1009284
xor eax, eax
mov dword [0x100bd7c], eax
leave
ret
Function at 0x408262
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
bswap eax
mov edi, eax
mov eax, dword [esi + 4]
bswap eax
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp + 8], eax
mov eax, dword [ebx + esi*4]
bswap eax
mov dword [ebp + esi*4 - 0x10], eax
inc esi
cmp esi, 4
jl 0x408281
mov ebx, dword [ebp + 8]
mov edx, 0xfd1228e0
mov esi, 0x20
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx - 0x57e89147]
sub edi, ecx
sub esi, 1
jne 0x40829d
bswap edi
mov esi, dword [ebp + 0x10]
mov dword [esi], edi
bswap ebx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b1bf
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
leave
ret

Function at 0x40b475
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
leave
ret

Function at 0x41271b
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
jmp 0x412734
nop
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x412753
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x41274a
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x412742
mov eax, ebx
leave
ret

Function at 0x412795
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 4
mov esp, ebp
pop ebp
jmp 0x4127b7
nop
pop edx
pop eax
pop ecx
push edx
pushal
mov ebx, eax
mov edi, ecx
xor al, al
scasb al, byte es:[edi]
jne 0x4127c3
dec edi
sub edi, ecx
xchg ecx, edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + eax + 0x78]
lea esi, [esi + ebx + 0x18]
lodsd eax, dword [esi]
xchg edx, eax
lodsd eax, dword [esi]
push eax
lodsd eax, dword [esi]
xchg ebp, eax
lodsd eax, dword [esi]
xchg ebp, eax
add eax, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
dec edx
je 0x412812
mov esi, dword [eax + edx*4]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4127fe
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x4127e8
shl edx, 1
add ebp, edx
movzx eax, word [ebp + ebx]
shl eax, 2
add eax, dword [esp]
mov eax, dword [ebx + eax]
add eax, ebx
pop ecx
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x4148a6
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
jmp 0x4148bf
nop
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4148de
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4148d5
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4148cd
mov eax, ebx
leave
ret

Function at 0x414920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 4
mov esp, ebp
pop ebp
jmp 0x414942
nop
pop edx
pop eax
pop ecx
push edx
pushal
mov ebx, eax
mov edi, ecx
xor al, al
scasb al, byte es:[edi]
jne 0x41494e
dec edi
sub edi, ecx
xchg ecx, edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + eax + 0x78]
lea esi, [esi + ebx + 0x18]
lodsd eax, dword [esi]
xchg edx, eax
lodsd eax, dword [esi]
push eax
lodsd eax, dword [esi]
xchg ebp, eax
lodsd eax, dword [esi]
xchg ebp, eax
add eax, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
dec edx
je 0x41499d
mov esi, dword [eax + edx*4]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x414989
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x414973
shl edx, 1
add ebp, edx
movzx eax, word [ebp + ebx]
shl eax, 2
add eax, dword [esp]
mov eax, dword [ebx + eax]
add eax, ebx
pop ecx
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x415dca
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x415e7d
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x43460d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00415dca
test eax, eax
je 0x434650
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x434650
cmp word [eax], 0x5a4d
jne 0x434650
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x434650
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00415f4b
mov eax, dword [ebp + 8]
jmp 0x434669
mov esp, ebp
pop ebp
ret 4