joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429b42
Capabilities:
Get disk information

Disassembly:
mov eax, 0x431b2a
call fcn.00415910
sub esp, 0x150
mov eax, dword [0x443140]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x429b8a
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x429b8e
cmp eax, esi
jb 0x429b95
xor eax, eax
jmp 0x429c6a
call fcn.00429279
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.00429b00
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x429c5a
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x429be9
xor esi, esi
jmp 0x429c5d
test byte [ebp - 0x158], 2
jne 0x429bf9
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x429c5a
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x429c5a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x429be5
cmp dword [ebp - 0x154], edi
jbe 0x429be5
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x429be5
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401160
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041410d
leave
ret 8
Function at 0x42a598
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.004158b0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x435604]
je 0x42a69f
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42a608
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x42a60f
cmp ebx, ebx
jne 0x42a60f
xor eax, eax
jmp 0x42a6a2
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x42a61c
mov byte [esi + 0x20], bl
jmp 0x42a630
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00413ab8
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00413ab8
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00413ab8
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x42a68b
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x42a69f
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42b2ff
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x443140]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x42b34e
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x42b34e
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x42b35a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041410d
leave
ret 8
Function at 0x42be81
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x443140]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x42bece
push dword [ebp + 8]
call fcn.0042dfb4
mov esi, eax
test esi, esi
je 0x42bef6
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x42bef6
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x432de8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041410d
leave
ret 0xc

Function at 0x42c094
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x443140]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0042c07d
cmp dword [esi], 0
mov ebx, eax
je 0x42c0f4
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.00416106
add esp, 0xc
cmp eax, 1
pop edi
je 0x42c111
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.0042be0e
mov ecx, esi
call fcn.0042bf42
jmp 0x42c111
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.00414372
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0042b2ff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041410d
leave
ret

Function at 0x42d3b3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x443140]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x42d411
push 0x434374
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004160af
add esp, 0x10
cmp eax, 0xffffffff
je 0x42d425
cmp eax, esi
jae 0x42d425
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x42d427
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42d3dc
jmp 0x42d428
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0041410d
leave
ret
Function at 0x42d448
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x443140]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42d4ea
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x42d5ec
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42d59a
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42d5ed
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42d58f
cmp dword [ebp - 0x24], 1
jne 0x42d58f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x434384
push eax
call fcn.00416106
add esp, 0xc
cmp eax, 1
jne 0x42d58f
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42d5ed
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x42d5ed
lea ecx, [ebp - 0x18]
push ecx
push 0x42d432
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x42d5ed
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x42d613
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0042d3b3
cmp eax, ebx
pop ecx
pop ecx
jne 0x42d615
inc edi
cmp edi, esi
jl 0x42d5fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041410d
leave
ret 4
Function at 0x42d624
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4426d0
je 0x42d6e0
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42d6c8
mov esi, dword [ebx + 4]
jmp 0x42d6c2
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42d6b2
cmp dword [ebp - 0xc], 4
jne 0x42d6b2
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42d6aa
or dword [eax + 0x9c], ecx
jmp 0x42d6b2
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x42d676
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x42d659
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x42dacd
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4316a3
call fcn.00415910
sub esp, 0x11c
mov eax, dword [0x443140]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42dbc6
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x42db9a
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00406170
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0042dacd
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401160
test bl, bl
jne 0x42db9a
or dword [ebp - 4], 0xffffffff
jmp 0x42db0b
cmp esi, 0x103
je 0x42dbaa
cmp esi, 0x3f2
jne 0x42dbba
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0041410d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42e694
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42e6c9
cmp edi, dword [esi + 0xc]
jge 0x42e6c9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42e6c9
cmp edi, dword [eax + 8]
jge 0x42e6c9
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42e6cb
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42e7cf
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42e803
jmp fcn.0042342f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42e874
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42e96d
cmp eax, dword [edi + 0xc]
jge 0x42e96d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42e8c5
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42e956
cmp dword [ebp + 0xc], ebx
je 0x42e956
jmp 0x42e8ef
push 0x10
call fcn.0042e560
cmp eax, ebx
je 0x42e8db
mov ecx, eax
call fcn.0042e7c6
mov esi, eax
jmp 0x42e8dd
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42e906
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42e916
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42e928
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042342f
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004158b0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42e968
cmp ecx, dword [esi + 8]
jge 0x42e968
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42e96e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42ea2d
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 0x42ea5b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42ea79
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042e997
jmp 0x42ea79
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42ea79
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042e997
test edi, edi
mov eax, edi
jne 0x42ea63
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4463ec]
test ecx, ecx
je 0x42eb2c
jmp 0x42ea2c
ret 8
Function at 0x4e7ce0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004b5ae0
mov eax, dword [0x60b1e0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4e7d67
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4e7d67
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004a3a5f
add esp, 0x10
test eax, eax
jge 0x4e7d3d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a4e33
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004a3a5f
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4e7df5
call fcn.004e7ba0
test eax, eax
jle 0x4e7df5
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a4e33
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004a4e33
add esp, 0x108
ret
Function at 0x800bc8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x800bd2
pushal
call 0x800bd8
pop ebp
sub ebp, 0x10
sub ebp, 0x400bc8
jmp 0x800bee
mov eax, 0x400bc8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fb
add byte [ecx + 0x5fb], bh
mov edx, 0x65ea91f2
xor byte [eax], dl
inc eax
dec ecx
jne 0x800c05
jmp 0x800c18
jns 0x800c59
jns 0x800c97
into
bnd jae 0x800c55
or dh, dl
int1
aas
dec edx
hlt
lcall 0xd19a, 0xf2fc3256
mov ecx, 0xdef3f2c3
push esi
xor bh, ah
lcall 0xdef3, 0xf2c3b9d1
salc
lcall 0xf71a, 0x5923788b
js 0x800c7a
pop ecx
sbb dh, bh
div edx
sbb ebx, esp
sbb ebx, esp
bnd jg 0x800bfa
salc
push cs
jnp 0x800c46
salc
cmpsb byte [esi], byte es:[edi]
scasd eax, dword es:[edi]
jns 0x800ce4
cli
bnd jns 0x800cda
invalid
xor ebx, dword [ebx]
invalid
or eax, 0xf2fe30af
jns 0x800d10
salc
div dl
lcall 0xd19a, 0xf2fc3256
lcall 0xd19a, 0xf2fc3256
mov ecx, 0xdef3f2c3
salc
mov dword [0xf2f2f71a], eax
sbb esp, dword [ebp + 0x7ff2f2f0]
xchg esi, eax
bnd jg 0x800c47
salc
push cs
jnp 0x800c93
salc
cmpsb byte [esi], byte es:[edi]
scasd eax, dword es:[edi]
or eax, 0x870dfe87
cli
sbb dh, byte [esi - 0xe]
bnd jns 0x800d14
cli
bnd jae 0x800cce
xchg ebp, eax
sbb ebx, dword [ebp + edx*2 + 0x1b950373]
pushfd
push ebp
jae 0x800cd4
xchg ebp, eax
sbb ebx, dword [ebp + edx*2 + 0x733bc1]
fistp qword [ebp - 0x51]
push ebp
sar dword [ebx], 0x73
add bh, bl
jge 0x800c8b
push ds
jae 0x800cdf
fistp qword [ebp - 0x51]
push ds
shl dword [eax], 0x71
and byte [ecx + 0x1a], dh
sbb dh, bh
mov edx, 0xf2bc76fd
idiv dword [edx - 0xd438903]
mov esp, 0xfdf2f2f2
std
jp 0x800cac
xchg esp, eax
jns 0x800ce6
retf
or dword [edx], ebx
std
jbe 0x800ce7
bnd jb 0x800d0d
sbb edi, ebp
jbe 0x800ceb
xchg esp, eax
jae 0x800d17
or dword [0xe776fdd7], ecx
or eax, 0xe776fdd7
std
jbe 0x800cfa
mov bl, 0x1b
mov bl, 0x1b
sbb edi, dword [esi]
or eax, 0xbedb0d0d
or eax, 0xbedb0d0d
retf
Function at 0x4041f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x405fc1
call fcn.00405b08
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00404475
mov dword [ebp - 4], ebx
lea ecx, [ebp + 8]
push ecx
push 0x20219
push ebx
push dword [eax]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402b02
test esi, esi
jne 0x404291
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push edi
push ebx
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
jne 0x404286
cmp dword [ebp + 0xc], 3
jne 0x404286
push dword [edi]
call fcn.00405bc6
pop ecx
push edi
push eax
mov dword [edi + 4], eax
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x404283
cmp dword [ebp + 0xc], 3
je 0x404288
mov dword [edi + 4], ebx
mov dword [edi], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 4], ebx
setne al
call fcn.00405ae2
ret 8
Function at 0x404530
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x14
mov eax, 0x40607f
call fcn.00405b08
push 8
call fcn.00405b96
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x40455b
mov ecx, eax
call fcn.00403cbf
mov esi, eax
jmp 0x40455d
mov esi, ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov byte [esi], 1
mov dword [eax], edi
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004041f0
test al, al
je 0x4046c6
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x4045e1
mov eax, 0xe0
cmp dword [ebp - 0x20], eax
jne 0x4046ba
push eax
push dword [esi + 4]
call fcn.004032da
mov byte [esi + 1], 1
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
cmp dword [eax], edi
jne 0x4046ba
xor ecx, ecx
mov word [eax + 0x32], cx
mov eax, dword [esi + 4]
mov word [eax + 0xbe], cx
mov byte [esi], bl
jmp 0x4046ba
call fcn.004059fa
test al, al
je 0x4046ba
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x14]
shr eax, 2
sub eax, 1
je 0x40461f
mov edi, dword [ebp - 0x10]
push edi
push dword [ebx]
call fcn.00405aca
mov dword [ebx], eax
inc edi
mov eax, dword [ebp - 0x18]
lea ebx, [ebx + 4]
shr eax, 2
dec eax
cmp edi, eax
jb 0x404603
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
cmp dword [ebx + 0xc0], edi
jne 0x4046ba
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
and dword [ebp - 0x10], 0
mov byte [esi], 0
mov dword [eax], edi
lea eax, [ebx + 2]
push eax
call fcn.00402514
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebx + 0xc0]
call fcn.00404395
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402b02
test edi, edi
je 0x4046ba
mov ecx, dword [esi + 4]
mov al, byte [ebx]
push 0
mov byte [ecx + 0xdd], al
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0xc4], eax
lea eax, [ebx + 2]
push dword [edi + 0x14]
mov ecx, esi
push dword [edi]
push eax
lea eax, [ebx + 0x52]
push eax
lea eax, [ebx + 0x82]
push eax
call fcn.00403df8
push 0
mov eax, 0xffff
mov ecx, esi
push eax
push eax
push eax
call fcn.00404900
push 1
push dword [ebp - 0x14]
call fcn.004032da
pop ecx
pop ecx
mov eax, esi
call fcn.00405ae2
ret 4