joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ead2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x439bb8]
je 0x41eaed
inc edi
cmp edi, 0x17
jb 0x41eade
cmp edi, 0x17
jae 0x41ec6d
push ebp
push 3
call fcn.004242c6
cmp eax, 1
pop ecx
je 0x41ec39
push 3
call fcn.004242c6
test eax, eax
pop ecx
jne 0x41eb21
cmp dword [0x4398d4], 1
je 0x41ec39
cmp ebx, 0xfc
je 0x41ec6c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43b290
push ebp
call fcn.00421a1c
add esp, 0xc
test eax, eax
je 0x41eb57
push esi
push esi
push esi
push esi
push esi
call fcn.0041b62c
add esp, 0x14
push 0x104
mov esi, 0x43b2a9
push esi
push 0
mov byte [0x43b3ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41eb9b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00421a1c
add esp, 0xc
test eax, eax
je 0x41eb9b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041b62c
add esp, 0x14
push esi
call fcn.00421a90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ebe0
push esi
call fcn.00421a90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43b5a4
push 0x431784
sub ecx, eax
push ecx
push eax
call fcn.00424213
add esp, 0x14
test eax, eax
je 0x41ebe0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041b62c
add esp, 0x14
jmp 0x41ebe2
xor esi, esi
push 0x431780
push ebx
push ebp
call fcn.004241a2
add esp, 0xc
test eax, eax
je 0x41ec02
push esi
push esi
push esi
push esi
push esi
call fcn.0041b62c
add esp, 0x14
push dword [edi*8 + 0x439bbc]
push ebx
push ebp
call fcn.004241a2
add esp, 0xc
test eax, eax
je 0x41ec24
push esi
push esi
push esi
push esi
push esi
call fcn.0041b62c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00423fe5
add esp, 0xc
jmp 0x41ec6c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41ec6c
cmp ebp, 0xffffffff
je 0x41ec6c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x439bbc]
push dword [esi]
call fcn.00421a90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x423fe5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041d29c
xor ebx, ebx
cmp dword [0x43b87c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4240bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42419b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42419b
push eax
call fcn.0041d22e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43b87c], eax
call esi
push eax
call fcn.0041d22e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43b880], eax
call esi
push eax
call fcn.0041d22e
mov dword [0x43b884], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041e85f
test eax, eax
pop ecx
pop ecx
je 0x424089
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041b62c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4240bb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041d22e
cmp eax, ebx
pop ecx
mov dword [0x43b88c], eax
je 0x4240bb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d22e
pop ecx
mov dword [0x43b888], eax
mov eax, dword [0x43b888]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x424140
cmp dword [0x43b88c], ecx
je 0x424140
push eax
call fcn.0041d2a5
push dword [0x43b88c]
mov esi, eax
call fcn.0041d2a5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x424140
cmp edi, ebx
je 0x424140
call esi
cmp eax, ebx
je 0x42410d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42410d
test byte [ebp - 0x18], 1
jne 0x424140
lea eax, [ebp - 0x10]
push eax
call fcn.0041e896
test eax, eax
pop ecx
je 0x424128
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041b62c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x424137
or dword [ebp + 0x10], 0x200000
jmp 0x42417b
or dword [ebp + 0x10], 0x40000
jmp 0x42417b
mov eax, dword [0x43b880]
cmp eax, dword [ebp - 8]
je 0x42417b
push eax
call fcn.0041d2a5
cmp eax, ebx
pop ecx
je 0x42417b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42417b
mov eax, dword [0x43b884]
cmp eax, dword [ebp - 8]
je 0x42417b
push eax
call fcn.0041d2a5
cmp eax, ebx
pop ecx
je 0x42417b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43b87c]
call fcn.0041d2a5
cmp eax, ebx
pop ecx
je 0x42419b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42419d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4272ef
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4398b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042722e
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.0041a6c0
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 0x42733e
cmp dword [ebp - 0x1c], 5
jb 0x427356
jmp 0x427352
cmp dword [ebp - 0x10], 1
jne 0x427356
cmp dword [ebp - 0x1c], 4
ja 0x427352
jne 0x427356
cmp dword [ebp - 0x18], 0
jbe 0x427356
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x432a98
call fcn.00401550
test eax, eax
jge 0x427377
mov byte [0x43ac00], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419e61
add ebp, 0x78
leave
ret

Function at 0x4011d4
Capabilities:
Encode data using xor

Disassembly:
push 0x401318
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov bl, 0x17
push cs
insd dword es:[edi], dx
mov ebp, 0x8b4cf570
lodsb al, byte [esi]
cmc
xor ah, dh
pop edx
invalid
Function at 0x401060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413784
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], ebx
mov dword [0x41e214], ebx
xor esi, esi
mov dword [ebp - 4], esi
lea edi, [ebx + 0x38]
lea eax, [edi + 4]
mov dword [ebx], str.ybjc
mov dword [ebx + 4], 0x417bb0
mov dword [ebx + 8], str.YySRV.exe
mov dword [ebx + 0xc], 0x417bc8
mov dword [ebx + 0x10], str.PlayerUpdate.exe
mov byte [ebx + 0x14], 1
mov dword [ebx + 0x30], 0xa
mov word [ebx + 0x34], si
mov byte [ebx + 0x36], 0
mov dword [edi], eax
mov byte [eax], 0
lea eax, [ebx + 0x84]
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x80], eax
mov byte [eax], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
mov dword [ebx + 0xc4], 0x1010101
mov dword [ebx + 0xc8], esi
mov dword [ebx + 0xcc], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x1a]
movzx edx, word [ebp - 0x1c]
movzx eax, word [ebp - 0x1e]
push ecx
movzx ecx, word [ebp - 0x22]
push edx
movzx edx, word [ebp - 0x24]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
call fcn.00402150
push 0xa0
call fcn.004088fa
add esp, 0x1c
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
cmp eax, esi
je 0x401158
push eax
call fcn.00402530
jmp 0x40115a
xor eax, eax
mov byte [ebp - 4], 2
push ebx
lea esi, [ebp - 0x6c]
mov dword [ebx + 0x7c], eax
call fcn.00401290
mov byte [ebp - 4], 4
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea esi, [ebx + 0x80]
call fcn.00401c50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
cmp eax, ecx
je 0x401195
push eax
call fcn.00408302
add esp, 4
xor eax, eax
push eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
push edx
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x7c], 1
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret 4
Function at 0x401290
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4135d2
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea ecx, [ebp - 0x113]
push ebx
mov dword [ebp - 0x120], ebx
push ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], esi
mov byte [ebp - 0x114], bl
call fcn.0040bf50
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
push 0x26
push ebx
mov dword [ebp - 0x118], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40132a
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], bl
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401340
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x401361
lea eax, [edi + 1]
push eax
push ebx
mov dword [esi], ebx
call fcn.00409221
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x114]
push ecx
push eax
call fcn.00409005
mov edx, dword [esi]
add esp, 0xc
mov byte [edi + edx], bl
mov dword [ebp - 4], ebx
push 0x417bfc
mov eax, esi
mov dword [ebp - 0x120], 1
call fcn.00401b50
push str.ybjc
mov eax, esi
call fcn.00401b50
mov eax, dword [ebp - 0x11c]
cmp byte [eax + 0x14], bl
je 0x4013b4
mov eax, dword [eax + 0x38]
push eax
mov eax, esi
call fcn.00401b50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret 4
Function at 0x402c60
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413843
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x9c]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402d87
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 0x94], bl
mov dword [ebp - 4], ebx
mov edx, dword [0x41e214]
mov ecx, dword [edx + 4]
mov eax, dword [esi]
push ecx
push eax
push str.__s_s___mini
lea edi, [ebp - 0x98]
call fcn.00402150
lea edx, [ebp - 0x50]
push 4
mov eax, edx
push str.ybjc
push eax
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], bl
call fcn.00409005
mov ecx, dword [ebp - 0x54]
add esp, 0x18
mov byte [ecx + 4], bl
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x54]
push esi
lea eax, [ebp - 0x54]
call fcn.00401b50
mov edx, dword [ebp - 0x98]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402d25
sub eax, esi
push eax
mov eax, dword [ebp - 0x9c]
push edx
mov edx, dword [ebp - 0x54]
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
cmp eax, edx
je 0x402d67
push eax
call fcn.00408302
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x402d87
push eax
call fcn.00408302
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret
Function at 0x402db0
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413801
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x144]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fbf
mov ecx, dword [ebx]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0
mov edi, ecx
test ecx, ecx
jne 0x402e27
mov edi, 0x417c2e
mov esi, edi
lea edx, [esi + 1]
lea esp, [esp]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x402e30
sub esi, edx
cmp esi, 0x3f
jl 0x402e5c
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0xb8], 0
call fcn.00409221
add esp, 8
mov dword [ebp - 0xb8], eax
push esi
push edi
push eax
call fcn.00409005
mov edx, dword [ebp - 0xb8]
add esp, 0xc
mov byte [esi + edx], 0
push 0x417c30
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], 0
call fcn.00401b50
mov eax, dword [ebp - 0xb8]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x13c], 0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
mov eax, dword [ebx]
push ecx
push eax
push str.__s_s___mini
lea edi, [ebp - 0x140]
call fcn.00402150
lea edx, [ebp - 0xf8]
push 4
mov eax, edx
push str.ybjc
push eax
mov dword [ebp - 0xfc], edx
mov byte [ebp - 0xf8], 0
call fcn.00409005
mov ecx, dword [ebp - 0xfc]
add esp, 0x18
mov byte [ecx + 4], 0
push str._News
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.00401b50
mov ebx, dword [ebx + 0x54]
push ebx
lea eax, [ebp - 0xfc]
call fcn.00401b50
mov ecx, dword [ebp - 0x140]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402f35
mov edx, dword [ebp - 0xfc]
sub eax, esi
push eax
mov eax, dword [ebp - 0x144]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
cmp eax, edx
je 0x402f82
push eax
call fcn.00408302
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x13c]
cmp eax, ecx
je 0x402f9f
push eax
call fcn.00408302
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
cmp eax, edx
je 0x402fbf
push eax
call fcn.00408302
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret 4
Function at 0x403604
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0
lea edi, [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_WriteFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x403644
call sub.kernel32.dll_GetLastError
mov dword [0x406a20], eax
call fcn.00403b14
jmp 0x40366d
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40366d
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x403618
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x403674
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call sub.kernel32.dll_GetFileType
cmp eax, 2
jne 0x4036c5
push 0
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_ReadFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x40372b
call sub.kernel32.dll_GetLastError
mov dword [0x406a20], eax
call fcn.00403b14
jmp 0x40372b
push 0
lea edi, [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_ReadFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x403702
call sub.kernel32.dll_GetLastError
mov dword [0x406a20], eax
cmp eax, 0x6d
jne 0x4036fb
mov dword [0x406a20], 0
jmp 0x40372b
call fcn.00403b14
jmp 0x40372b
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40372b
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4036c5
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42d2c4], 0
jne 0x406604
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065dd
mov dword [ecx*4 + 0x42d2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4017e0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [0x41f014]
ret 8

Function at 0x401800
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x401814
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [0x41f204]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [0x41f014]
pop edi
pop esi
ret 0xc

Function at 0x401840
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401856
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [0x41f204]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401863
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [0x41f014]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x401d10
Capabilities:
Get session user name

Disassembly:
sub esp, 0x80c
mov eax, dword [0x426ae4]
xor eax, esp
mov dword [esp + 0x808], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0x800
call dword [0x41f018]
lea edx, [esp]
push edx
push 1
lea eax, [esp + 0x10]
push eax
push 0
call fcn.0040f4cc
test eax, eax
je 0x401d69
xor al, al
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0040ff3c
add esp, 0x80c
ret
mov eax, dword [esp]
cmp dword [eax + 0xc], 2
push ebx
push eax
sete bl
call fcn.0040f4c6
mov ecx, dword [esp + 0x80c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0040ff3c
add esp, 0x80c
ret
Function at 0x402390
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x426ae4]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [0x41f010]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40240f
xor eax, eax
cmp ecx, ebx
je 0x4023f7
push ecx
call dword [0x41f008]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x402433
cmp ecx, ebx
je 0x40241a
push ecx
call dword [0x41f008]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0040ff3c
mov esp, ebp
pop ebp
ret 4
mov esi, dword [0x41f020]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x40249a
jmp 0x402460
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00402390
mov edi, eax
cmp edi, ebx
jne 0x4024e9
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x402460
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4024ad
push eax
call dword [0x41f008]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.00401670
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4024d0
push eax
call dword [0x41f008]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0040ff3c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4024f8
push eax
call dword [0x41f008]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ff3c
mov esp, ebp
pop ebp
ret 4