joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e6ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x40e6da
cmp dword [edi + 0x54], 0
jne 0x40e6da
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004155e7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040e681
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x411cb9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x411cf2
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00411c54
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040d420
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41386f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4138b2
call fcn.004155e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4138b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4138cd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00413426
test ebx, ebx
mov esi, eax
je 0x4138cb
test edi, edi
je 0x4138cb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x415c63
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x415c91
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415caf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415bcd
jmp 0x415caf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415caf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00415bcd
test edi, edi
mov eax, edi
jne 0x415c99
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x442188]
test ecx, ecx
je 0x415d72
jmp 0x415c62
ret 8

Function at 0x4188ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43ef44]
jne 0x4188d8
repz ret
jmp fcn.0041cba8
Function at 0x42899c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041d9ac
xor ebx, ebx
cmp dword [0x442ee4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x428a71
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4289dc
xor eax, eax
jmp 0x428b35
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43734c
push edi
call esi
cmp eax, ebx
je 0x4289d5
push eax
call fcn.0041d949
mov dword [esp], 0x43733c
push edi
mov dword [0x442ee4], eax
call esi
push eax
call fcn.0041d949
mov dword [esp], 0x437328
push edi
mov dword [0x442ee8], eax
call esi
push eax
call fcn.0041d949
mov dword [0x442eec], eax
lea eax, [ebp - 8]
push eax
call fcn.0041bad2
test eax, eax
pop ecx
pop ecx
je 0x428a3f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00419055
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x428a71
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041d949
cmp eax, ebx
pop ecx
mov dword [0x442ef4], eax
je 0x428a71
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d949
pop ecx
mov dword [0x442ef0], eax
mov eax, dword [0x442ef0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x428aea
cmp dword [0x442ef4], esi
je 0x428aea
push eax
call fcn.0041d9b5
pop ecx
call eax
cmp eax, ebx
je 0x428ab7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x442ef4]
call fcn.0041d9b5
pop ecx
call eax
test eax, eax
je 0x428ab7
test byte [ebp - 0x18], 1
jne 0x428aea
lea eax, [ebp - 0xc]
push eax
call fcn.0041bb09
test eax, eax
pop ecx
je 0x428ad2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00419055
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x428ae1
or dword [ebp + 0x10], 0x200000
jmp 0x428b1b
or dword [ebp + 0x10], 0x40000
jmp 0x428b1b
mov eax, dword [0x442ee8]
cmp eax, esi
je 0x428b1b
push eax
call fcn.0041d9b5
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x428b1b
mov eax, dword [0x442eec]
cmp eax, esi
je 0x428b1b
push dword [ebp - 4]
push eax
call fcn.0041d9b5
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 [0x442ee4]
call fcn.0041d9b5
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ea69
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43ef44]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e9fe
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.0041ada0
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 0x42eab8
cmp dword [ebp - 0x1c], 5
jb 0x42ead0
jmp 0x42eacc
cmp dword [ebp - 0x10], 1
jne 0x42ead0
cmp dword [ebp - 0x1c], 4
ja 0x42eacc
jne 0x42ead0
cmp dword [ebp - 0x18], 0
jbe 0x42ead0
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x437524
call fcn.0042e8d2
test eax, eax
jge 0x42eaf1
mov byte [0x44065c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004188ce
add ebp, 0x78
leave
ret
Function at 0x226f350
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c96000]
push edi
jmp 0x226f36a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x226f371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x226f360
mov eax, 1
add ebx, ebx
jne 0x226f383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x226f394
jne 0x226f3b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x226f3b3
dec eax
add ebx, ebx
jne 0x226f3a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x226f378
add ebx, ebx
jne 0x226f3af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x226f405
xor ecx, ecx
sub eax, 3
jb 0x226f3cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x226f43a
sar eax, 1
mov ebp, eax
jmp 0x226f3d6
add ebx, ebx
jne 0x226f3d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x226f3a4
inc ecx
add ebx, ebx
jne 0x226f3e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x226f3a4
add ebx, ebx
jne 0x226f3f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x226f3e6
jne 0x226f402
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x226f3e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x226f424
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x226f416
jmp 0x226f366
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x226f424
add edi, ecx
jmp 0x226f366
pop esi
mov edi, esi
mov ecx, 0xac3a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x226f442
cmp byte [edi], 0x22
jne 0x226f442
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 0x226f447
lea edi, [esi + 0x1e5a000]
mov eax, dword [edi]
or eax, eax
je 0x226f4bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e89df8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e89f88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x226f474
mov ecx, edi
jns 0x226f4a3
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 + 0x1e89f90]
or eax, eax
je 0x226f4b9
mov dword [ebx], eax
add ebx, 4
jmp 0x226f491
call dword [esi + 0x1e89f8c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x226f4f0
cmp al, 0xef
ja 0x226f4e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x226f4c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x226f4d2
mov ebp, dword [esi + 0x1e89f94]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x226f524
sub esp, 0xffffff80
jmp 0x551d3e
Function at 0x407a7b
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x412fca
call fcn.0041249c
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov eax, 0x41a630
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], eax
lea edi, [esi + 0x28]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp dword [eax + 4], ebx
jne 0x407ac9
push str.Logging:_Serious_problem__DLL_name_turns_empty__n
push str._dllName.isEmpty______true
push 0x419888
push str.Y:_silib_slib_src_slogimp.cpp
call fcn.004054c0
add esp, 0x10
push dword [ebp + 8]
mov ecx, edi
call fcn.00403e21
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push dword [eax]
lea ecx, [esi + 0x20]
call fcn.00403e21
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add eax, 0xc
push eax
call edi
cmp eax, ebx
mov dword [esi], eax
jne 0x407b77
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00410b2b
mov eax, dword [eax]
pop ecx
pop ecx
add eax, 0xc
push eax
call edi
push dword [ebp - 0x10]
cmp eax, ebx
mov dword [esi], eax
setne byte [ebp + 0xf]
call fcn.00404bf6
cmp byte [ebp + 0xf], bl
pop ecx
jne 0x407b77
mov eax, dword [ebp + 8]
mov byte [esi + 0x24], bl
add eax, 0xc
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x20]
cmp dword [eax + 4], ebx
je 0x407b51
lea ebx, [eax + 0xc]
push 0x8668
push 1
lea eax, [ebp + 0xc]
push 0xf
push eax
mov eax, dword [0x41a678]
add eax, 0xc
push 2
push eax
push ebx
call fcn.004086a5
add esp, 0x1c
jmp 0x407c36
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetDLLVersion
push dword [esi]
call edi
push str.Init
mov dword [esi + 4], eax
push dword [esi]
call edi
push str.Error
mov dword [esi + 8], eax
push dword [esi]
call edi
push str.Error2
mov dword [esi + 0xc], eax
push dword [esi]
call edi
push str.Audit
mov dword [esi + 0x10], eax
push dword [esi]
call edi
push str.Audit2
mov dword [esi + 0x14], eax
push dword [esi]
call edi
push str.Term
mov dword [esi + 0x18], eax
push dword [esi]
call edi
cmp dword [esi + 4], ebx
mov dword [esi + 0x1c], eax
je 0x407bf3
cmp dword [esi + 8], ebx
je 0x407bf3
cmp eax, ebx
je 0x407bf3
cmp dword [esi + 0xc], ebx
jne 0x407c32
cmp dword [esi + 0x10], ebx
jne 0x407c32
cmp dword [esi + 0x14], ebx
jne 0x407c32
cmp dword [esi + 0x18], ebx
jne 0x407c32
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x20]
cmp dword [eax + 4], ebx
jne 0x407c08
xor eax, eax
jmp 0x407c0b
add eax, 0xc
push 0x8669
push 1
lea ecx, [ebp + 0xc]
push 0xf
push ecx
mov ecx, dword [0x41a678]
add ecx, 0xc
push 1
push ecx
push eax
call fcn.004086a5
add esp, 0x1c
mov byte [esi + 0x24], bl
jmp 0x407c36
mov byte [esi + 0x24], 1
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call fcn.00404bf6
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40bf23
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x41360f
call fcn.0041249c
sub esp, 0x514
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x400
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x41a630
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x520]
push ecx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push eax
mov eax, dword [edi]
mov dword [ebp - 4], 1
add eax, 0xc
push eax
push dword [ebx]
call esi
cmp eax, 0xea
jne 0x40bfdf
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp + 0xc], eax
jne 0x40bfab
mov esi, dword [ebp + 8]
push dword [ebp - 0x10]
mov ecx, esi
and dword [esi], eax
call fcn.00403e21
mov dword [ebp - 0x1c], 1
jmp 0x40c090
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi]
add eax, 0xc
push 0
push eax
push dword [ebx]
call esi
cmp dword [ebp - 0x14], 1
jne 0x40bfd1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404084
push dword [ebp + 0xc]
call fcn.004121ae
pop ecx
jmp 0x40c071
test eax, eax
jne 0x40c071
cmp dword [ebp - 0x14], 1
jne 0x40bff5
lea eax, [ebp - 0x520]
jmp 0x40c068
cmp dword [ebp - 0x14], 4
jne 0x40c01e
lea eax, [ebp - 0x520]
push 4
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.00405e8c
add esp, 0x14
jmp 0x40c071
cmp dword [ebp - 0x14], 2
jne 0x40c071
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40c046
cmp eax, esi
jbe 0x40c062
push str.Registry::ReadValue:_Buffer_is_not_big_enough_to_accomodate_expanded_string_from_registry_n
push str.numChars__numChars___260
push 0x419df0
push str.Y:_silib_slib_src_registry.cpp
call fcn.004054c0
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404084
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
push dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, esi
and dword [esi], 0
call fcn.00403e21
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x10]
and byte [ebp - 4], 0
call fcn.00404bf6
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40c0b0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x413624
call fcn.0041249c
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 0xc
inc ecx
push ecx
push eax
mov eax, dword [ebp + 8]
push 1
push 0
mov eax, dword [eax]
add eax, 0xc
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x40c0ee
mov al, 1
jmp 0x40c157
mov dword [ebp + 0xc], 0x41a630
and dword [ebp - 4], 0
push str.RegSetValueEx_
lea ecx, [ebp + 0xc]
call fcn.00404084
add esi, 4
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.00405dd6
lea eax, [ebp + 0xc]
push str.__failed._Error_code:
push eax
call fcn.00405df1
lea eax, [ebp + 0xc]
push edi
push eax
call fcn.00405e15
mov eax, dword [ebp + 0xc]
add eax, 0xc
push eax
push 0x4192cc
push 0x419e6c
push str.Y:_silib_slib_src_registry.cpp
call fcn.004054c0
push dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
call fcn.00404bf6
add esp, 0x2c
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x40c167
Capabilities:
Set registry value

Disassembly:
mov eax, 0x413638
call fcn.0041249c
push esi
push edi
lea eax, [ebp + 0xc]
push 4
push eax
mov eax, dword [ebp + 8]
push 4
push 0
mov eax, dword [eax]
mov esi, ecx
add eax, 0xc
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x40c19d
mov al, 1
jmp 0x40c206
mov dword [ebp + 8], 0x41a630
and dword [ebp - 4], 0
push str.RegSetValueEx_
lea ecx, [ebp + 8]
call fcn.00404084
add esi, 4
lea eax, [ebp + 8]
push esi
push eax
call fcn.00405dd6
lea eax, [ebp + 8]
push str.__failed._Error_code:
push eax
call fcn.00405df1
lea eax, [ebp + 8]
push edi
push eax
call fcn.00405e15
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
push 0x4192cc
push 0x419e80
push str.Y:_silib_slib_src_registry.cpp
call fcn.004054c0
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call fcn.00404bf6
add esp, 0x2c
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40c286
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40c3b4
mov eax, 0x400
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x914]
push eax
push dword [esi + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40c391
lea eax, [ebp - 0x914]
lea ecx, [esi + 4]
push eax
call fcn.00404084
cmp dword [ebp - 4], 1
jne 0x40c302
lea eax, [ebp - 0x514]
mov ecx, esi
push eax
call fcn.00404084
jmp 0x40c38a
cmp dword [ebp - 4], 4
jne 0x40c336
lea eax, [ebp - 0x514]
push 4
push eax
lea eax, [ebp - 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, esi
push 0x41a630
call fcn.00403e21
push dword [ebp - 8]
push esi
call fcn.00405e8c
pop ecx
pop ecx
jmp 0x40c38a
cmp dword [ebp - 4], 2
jne 0x40c38a
push edi
mov edi, 0x104
lea eax, [ebp - 0x114]
push edi
push eax
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40c35f
cmp eax, edi
jbe 0x40c37b
push str.Registry::ValueIterator::NextValue:_Buffer_is_not_big_enough_to_accomodate_expanded_string_from_registry_n
push str.numChars__numChars___260
push str.1182
push str.Y:_silib_slib_src_registry.cpp
call fcn.004054c0
add esp, 0x10
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.00404084
pop edi
inc dword [esi + 0xc]
mov al, 1
jmp 0x40c3b6
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esi + 8], 0
push 0x41a614
mov ecx, esi
call fcn.00404084
push dword [esi]
lea ecx, [esi + 4]
call fcn.00403e21
xor al, al
pop esi
leave
ret

Function at 0x40cf58
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x413844
call fcn.0041249c
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x40cf88
push 0x41a614
push str._key__0
push 0x41a034
push str.Y:_silib_slib_src_sreshelper.h
call fcn.004054c0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
test eax, eax
mov dword [esi], eax
jbe 0x40cff9
push 0x41a008
lea ecx, [ebp - 0x14]
call fcn.00403b3f
and dword [ebp - 4], 0
push 0x41a010
lea ecx, [ebp - 0x10]
call fcn.00403b3f
push dword [esi]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405dd6
pop ecx
pop ecx
push eax
call fcn.00405e8c
push dword [ebp - 0x10]
and byte [ebp - 4], 0
call fcn.00404bf6
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
add eax, 0xc
push eax
call dword [sym.imp.MSVCRT.dll__putenv]
push dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00404bf6
add esp, 0x14
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x410ef2
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x413ff3
call fcn.0041249c
sub esp, 0xa8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, 1
mov edi, ecx
mov byte [ebp - 0xd], bl
je 0x410f4c
cmp esi, 2
je 0x410f4c
cmp esi, 4
je 0x410f4c
cmp esi, 0x100
je 0x410f4c
cmp esi, 8
je 0x410f4c
cmp esi, 0x10
je 0x410f4c
push 0x41a614
push str._wType__0x0001____wType__0x0002____wType__0x0004____wType__0x0100____wType__0x0008____wType__0x0010_
push 0x41a3c8
push str.Y:_silib_slib_src_seventlog.cpp
call fcn.004054c0
add esp, 0x10
push dword [ebp + 0x18]
lea ecx, [ebp - 0xb4]
call fcn.0040afad
movzx eax, word [ebp + 0x14]
cmp eax, ebx
mov dword [ebp - 4], ebx
jle 0x410fac
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], ebx
je 0x410fa1
mov eax, dword [esi]
cmp eax, ebx
je 0x410fa1
push eax
lea ecx, [ebp + 0x14]
call fcn.00403b3f
lea eax, [ebp + 0x14]
lea ecx, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 1
call fcn.0040b0b2
push dword [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00404bf6
pop ecx
mov dword [ebp + 0x14], ebx
add esi, 4
dec dword [ebp - 0x18]
jne 0x410f6b
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
lea ecx, [ebp - 0xb4]
push eax
call fcn.0040b1bc
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
call fcn.00403e21
push dword [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00404bf6
fldz
push ecx
mov dword [ebp + 8], ebx
fstp qword [esp]
call fcn.004115f0
pop ecx
test al, al
pop ecx
je 0x41102c
mov eax, dword [edi + 0x118]
cmp eax, ebx
je 0x4110bb
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x24]
add ecx, 0xc
mov dword [ebp + 0x14], ecx
lea ecx, [ebp + 0x14]
push ecx
push dword [ebp + 0x20]
push 1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
setne byte [ebp - 0xd]
jmp 0x4110bb
mov eax, 0x41a630
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0xc]
push esi
push eax
mov byte [ebp - 4], 6
call fcn.00405e15
movzx eax, word [ebp + 0x10]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00405f03
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004112cd
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp + 0x10], esp
mov dword [ecx], ebx
push dword [ebp + 0x18]
call fcn.00403e21
mov ecx, edi
call fcn.00411589
push dword [ebp + 0x18]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 6
call fcn.00404bf6
push dword [ebp + 0x14]
mov dword [ebp + 0x18], ebx
mov byte [ebp - 4], 5
call fcn.00404bf6
push dword [ebp + 0xc]
mov dword [ebp + 0x14], ebx
mov byte [ebp - 4], 4
call fcn.00404bf6
add esp, 0xc
mov dword [ebp + 0xc], ebx
push dword [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00404bf6
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x14], ebx
call fcn.0040b048
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20