joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ccbf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00411540
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push esi
push eax
call fcn.00411540
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x44], si
push 1
pop edi
mov dword [ebp - 0x48], edi
je 0x40cd02
mov word [ebp - 0x44], di
push dword [ebp + 8]
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x20
push esi
push esi
lea eax, [ebp - 0x474]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40cd91
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x40cd6e
cmp eax, edi
jne 0x40cd6e
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x2c], 0x11
je 0x40cd6e
cmp dword [ebp - 0x2c], 0x10
je 0x40cd6e
cmp dword [ebp - 0x2c], 0x12
jne 0x40cd33
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
mov dword [0x425e20], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40cd96
mov eax, 0xcccccccc
pop edi
pop esi
leave
ret 8

Function at 0x40cd9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00411540
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.00411540
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x24], si
push 1
pop edi
mov dword [ebp - 0x28], edi
je 0x40cddc
mov word [ebp - 0x24], di
push dword [ebp + 8]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push edi
push esi
lea eax, [ebp - 0x454]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
leave
ret 8
Function at 0x40ce0f
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0040ce88
test eax, eax
je 0x40ce74
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ce74
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x40ceb6
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40cf19
call esi
cmp eax, 0x3f0
jne 0x40cf10
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x40cf88
cmp eax, ebx
je 0x40cf88
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40cf88
call esi
cmp eax, 0x7a
jne 0x40cf88
push dword [ebp - 4]
call fcn.00411747
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x40cf7c
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40cf8c
cmp byte [ebp - 0x24], bl
je 0x40cf88
push esi
call fcn.0040301d
pop ecx
xor eax, eax
jmp 0x40cfd7
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x40cfbf
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40cfb8
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x40cf9b
jmp 0x40cfbf
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x40cfd4
push esi
call fcn.0040301d
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cfdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
cmp dword [0x425e2c], ecx
jne 0x40cff7
mov eax, dword [0x420b18]
cmp eax, 0xffffffff
jne 0x40d037
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x40d031
lea eax, [ebp - 0x14]
push eax
call fcn.00411755
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x40d031
movsx eax, word [ebp - 0x34]
mov dword [0x420b18], eax
mov ax, word [0x420b18]
leave
ret

Function at 0x40d385
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], 0xcccccccc
call fcn.00411540
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push esi
push eax
call fcn.00411540
add esp, 0x18
xor eax, eax
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x74], edi
push 1
setne al
mov word [ebp - 0x44], ax
pop edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x48], edi
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d47b
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x40d455
cmp eax, edi
jne 0x40d455
push edi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call ebx
test eax, eax
je 0x40d3f0
cmp dword [ebp - 0x2c], 0xf
jne 0x40d433
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x2c], 0x113
jne 0x40d445
mov ecx, dword [ebp + 0x10]
push edi
call fcn.0040a928
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d3f0
jmp 0x40d40b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x425e20], eax
call esi
push dword [ebp - 0x14]
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x40db59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0040dc98
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40dc0d
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40dbff
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x40dbc3
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x40dbec
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x40dbf9
cmp byte [ebp - 0x838], bl
je 0x40dbff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x40dc0d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040d7cd
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x40dc32
cmp dword [ebp + 0xc], 4
jne 0x40dc4c
cmp dword [ebp - 0x14], ebx
jne 0x40dc4c
cmp word [edi + 0x14], 3
mov ecx, edi
jne 0x40dc47
call fcn.0040de57
jmp 0x40dc4c
call fcn.0040e083
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14

Function at 0x40dc98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x258]
push eax
mov edi, SysReAllocStringLen
push str..htm
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 4], 0x104
call esi
test eax, eax
jne 0x40dd98
lea eax, [ebp - 0x258]
push str._shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
push edi
call esi
test eax, eax
jne 0x40dd98
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x154]
push str.netscape.exe
push eax
call fcn.004126b0
pop ecx
test eax, eax
pop ecx
je 0x40dd98
lea ecx, [ebp - 0x154]
sub eax, ecx
add eax, 0xd
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x50]
call fcn.0040dd9f
lea eax, [ebp - 0x35c]
lea ecx, [ebp - 0x50]
push eax
call fcn.0040f3c8
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
mov edx, ecx
mov dword [ebp - 0x50], 0x41ca14
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x50]
mov word [eax + 0x14], dx
call fcn.0040ddfc
xor eax, eax
jmp 0x40dd9b
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x40de57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00411da0
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e025
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x40e025
cmp dword [ebp - 0x14], 1
jne 0x40e025
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40dfe8
cmp byte [ebp - 0x148], al
je 0x40dfe8
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40dfda
lea eax, [ebp - 0x96c]
push 0x420e58
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x4206b0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x420a04
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x40df3e
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.0040d9de
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40e033
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ebf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x40ec28
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x40ec34
mov eax, dword [esi + 0x5c]
jmp 0x40ec7d
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x40ec7b
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x40ec59
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x40ec3d
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x40f3c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x40f41a
push eax
call fcn.00411747
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40f41a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x42077c
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40f41e
xor al, al
jmp 0x40f47f
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x40f47d
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00411747
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x40f47d
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x40f46b
mov al, 1
pop ebx
leave
ret 4
Function at 0x418314
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x423a78
cmp edx, dword [eax]
je 0x418336
add eax, 8
inc ecx
cmp eax, 0x423b08
jl 0x418327
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x423a78]
jne 0x418464
mov eax, dword [0x425eec]
cmp eax, 1
je 0x41843e
test eax, eax
jne 0x418367
cmp dword [0x4211d4], 1
je 0x41843e
cmp edx, 0xfc
je 0x418464
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41839e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411630
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4183e1
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41cfcc
push edi
call fcn.00411f10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411630
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411640
lea eax, [ebp - 0xa0]
push 0x41cfac
push eax
call fcn.00411640
push dword [esi + 0x423a7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411640
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419b72
add esp, 0x2c
pop edi
jmp 0x418464
lea eax, [ebp + 8]
lea esi, [esi + 0x423a7c]
push 0
push eax
push dword [esi]
call fcn.00412050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x403e59
pop dword [ebp - 0x40]
mov eax, 0xb16ab033
add eax, 0x4ed58e26
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x20e1f951
sub dword [ebp - 0x50], 0xd28fb406
mov dword [ebp - 0x4c], 0x36e426dd
add dword [ebp - 0x4c], 0xfb4f2568
mov dword [ebp - 0x48], 0xe1751f4a
add dword [ebp - 0x48], 0x6ad724e4
mov dword [ebp - 0x44], 0x2fb206c7
add dword [ebp - 0x44], 0xd04df939
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x17116040
sub dword [ebp - 0x50], 0xa29ef6ea
mov dword [ebp - 0x4c], 0x557e687
sub dword [ebp - 0x4c], 0xc3eb8512
mov dword [ebp - 0x48], 0xbf4fd7db
sub dword [ebp - 0x48], 0x5be06b6f
mov dword [ebp - 0x44], 0x518a67ae
add dword [ebp - 0x44], 0xae759852
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x32cad
push 0
call eax
mov ecx, 0xe5839502
sub ecx, 0xe5835cd4
xor ebx, ebx
add ebx, eax
mov esi, 0x86adc63a
add esi, 0x799349c6
add esi, dword [ebp - 0x40]
mov edx, 0xb18caa3
mov edi, dword [esi]
mov dword [ebp - 0x20], 0x22ae52e8
xor edi, edx
mov dword [ebx], edi
xor dword [ebp - 0x2c], 0xeb03815
add ebx, 4
add esi, 4
loop 0x403f6d
add eax, 0xd38b
xor ebx, ebx
add ebx, eax
add eax, 0xf4d8c0f9
add eax, 0xb273f0c
mov ecx, 0x4e9ebc04
add ecx, 0xb1a143fc
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x100210d
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1004004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001220
push 0x80000002
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1002214
mov dword [ebp - 0x214], esi
push ebx
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x104
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x214]
mov edi, eax
cmp edi, esi
jne 0x10021f4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.01001c16
mov ebx, dword [ebp - 0x218]
mov edi, eax
cmp edi, esi
jne 0x1002208
push esi
push 1
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x1002200
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x218], esi
jmp 0x1002169
cmp edi, 0x103
jne 0x1002213
xor edi, edi
jmp 0x1002213
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp ebx, esi
je 0x1002213
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop ebx
cmp dword [ebp - 0x210], esi
je 0x1002228
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01002a4c
leave
ret 4
Function at 0x100223f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1004004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001290
push 0x80000002
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10023da
push edi
push edi
push edi
push edi
push 2
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x21c], eax
cmp eax, edi
jne 0x10022ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10023c5
push eax
call fcn.0100210d
mov esi, eax
cmp esi, edi
jne 0x10023c5
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [ebp - 0x218], edi
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x224], 0x104
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x218]
mov esi, eax
cmp esi, edi
jne 0x10023aa
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.01001c16
mov esi, eax
cmp esi, edi
jne 0x10023b4
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
call fcn.01001cec
mov esi, eax
cmp esi, edi
jne 0x10023b4
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x228]
push eax
push dword [ebp - 0x210]
call fcn.01001e53
mov esi, eax
cmp esi, edi
jne 0x10023b4
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
jmp 0x10022cb
cmp esi, 0x103
jne 0x10023c4
xor esi, esi
cmp dword [ebp - 0x214], edi
je 0x10023c4
push dword [ebp - 0x214]
call ebx
pop ebx
cmp dword [ebp - 0x21c], edi
je 0x10023da
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [ebp - 0x210], edi
je 0x10023ee
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01002a4c
leave
ret