joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052b0
Capabilities:
Create process on windows
Get graphical window text
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x42dc68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [esp + 0x18]
call fcn.0040c270
mov dword [esp + 0x40], 0
mov eax, dword [ebx + 0x198]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx + 0x198]
lea edi, [ecx + ebx + 0x198]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, dword [esp + 0x20]
jbe 0x405317
push 1
mov ecx, eax
call fcn.0040c550
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov ecx, dword [edi]
inc eax
push eax
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test ebp, ebp
je 0x405349
mov eax, ebp
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x405331
sub eax, ebp
sar eax, 1
dec eax
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x40534d
mov edi, dword [esp + 0x1c]
mov eax, ebp
call fcn.00407e00
test al, al
jne 0x40539d
mov eax, dword [0x4491b0]
test eax, eax
je 0x405374
push 0x10
push 0x430f28
push 0x43129c
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
test ebp, ebp
je 0x405387
mov eax, dword [esp + 0x24]
push eax
mov esi, ebp
call fcn.00408b50
add esp, 4
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
test edi, edi
jne 0x4053bc
cmp dword [0x449230], edi
je 0x4053f0
mov edx, dword [0x44922c]
xor ecx, ecx
mov dword [0x449230], edi
mov word [edx], cx
jmp 0x4053f0
cmp edi, dword [0x449234]
jbe 0x4053d2
push 1
mov ecx, edi
mov esi, 0x44922c
call fcn.0040c550
mov eax, dword [0x44922c]
mov dword [0x449230], edi
test eax, eax
je 0x4053f0
lea ecx, [edi + edi + 2]
push ecx
push ebp
push eax
call fcn.00426530
add esp, 0xc
push 0x1e
call sym.MeowPlayer1.0.0.6.exe_bool___cdecl_ExitAllYmProcess_int_
add esp, 4
mov ecx, ebp
call fcn.00404cc0
test al, al
je 0x40540e
push ebp
call sym.MeowPlayer1.0.0.6.exe_bool___cdecl_SetUninstallReg_wchar_t_const__
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ebx + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ebx, [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.0040c340
mov esi, str.MeowPlayer.exe
lea edi, [esp + 0x28]
call fcn.00408350
mov esi, dword [esp + 0x28]
push 1
push ebp
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test esi, esi
je 0x405464
mov edx, dword [esp + 0x34]
push edx
call fcn.00408b50
add esp, 4
test ebp, ebp
je 0x405477
mov eax, dword [esp + 0x24]
push eax
mov esi, ebp
call fcn.00408b50
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x405920
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42dd10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov ax, word [ebp + 8]
cmp ax, 0x65
jne 0x40599b
sub esp, 0xc
mov eax, esp
mov ecx, 0x405490
xor edx, edx
mov dword [eax], ecx
xor ebx, ebx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
lea esi, [edi + 0xc8]
mov ebx, edi
call fcn.00407c00
mov esi, eax
lea ebx, [edi + 0xc8]
call fcn.00409160
mov ecx, edi
call fcn.004052b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp ax, 0x66
jne 0x405aa3
lea edi, [esp + 0x24]
call fcn.00417120
lea esi, [esp + 0x14]
mov dword [esp + 0x40], 0
call fcn.0040c270
mov ebx, dword [esp + 0x10]
mov byte [esp + 0x40], 1
mov eax, dword [ebx + 0x198]
mov ecx, dword [eax + 4]
lea ecx, [ecx + ebx + 0x198]
mov eax, esi
call fcn.004142b0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x14]
push esi
call fcn.00407c50
add esp, 4
test al, al
je 0x405a02
push esi
call edi
cmp eax, 0xffffffff
je 0x405a02
test al, 0x10
jne 0x405a19
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
call fcn.004083a0
cmp dword [esp + 0x18], esi
jne 0x4059e5
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ebx + 4]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00417210
test al, al
je 0x405a6c
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x18]
call fcn.0040c770
mov esi, str.MeowPlayer
lea edi, [esp + 0x14]
call fcn.00408350
mov ecx, dword [ebx + 0x198]
mov edx, dword [ecx + 4]
mov esi, dword [esp + 0x14]
mov eax, dword [edx + ebx + 0x198]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test esi, esi
je 0x405a7d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00408b50
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x405a8a
call fcn.00409070
mov esi, dword [esp + 0x24]
test esi, esi
je 0x405aa3
mov eax, dword [esp + 0x2c]
test ah, ah
jne 0x405aa3
push eax
call fcn.00408b50
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407e00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor esi, esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], 0
call fcn.0040c770
lea eax, [esp + 0x10]
call fcn.00408210
mov ebx, dword [esp + 0x14]
cmp ebx, esi
je 0x407e43
mov ebx, 0x43157c
call fcn.0040c8b0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
xor ebp, ebp
test ebx, ebx
jbe 0x407f39
movzx eax, word [esi + ebp*2]
cmp ax, 0x5c
je 0x407e65
cmp ax, 0x2f
jne 0x407f30
xor ecx, ecx
mov word [esi + ebp*2], cx
test ebx, ebx
je 0x407ee2
mov eax, esi
cmp esi, 0x431570
je 0x407ee2
test esi, esi
jne 0x407e82
mov eax, 0x430ee8
mov edi, 0x431570
xor ecx, ecx
sub edi, eax
jmp 0x407e90
movzx edx, word [eax]
cmp dx, word [edi + eax]
jne 0x407ea9
test dx, dx
je 0x407ee2
inc ecx
add eax, 2
cmp ecx, 0xffffffff
jb 0x407e90
jmp 0x407ee2
push 0x431574
lea ecx, [esp + 0x14]
call sym.MeowPlayer1.0.0.6.exe_public:_bool___thiscall_base::String::operator_wchar_t_const__
test al, al
jne 0x407ee2
movzx eax, word [esi + ebx*2 - 2]
cmp ax, 0x20
je 0x407ed0
cmp ax, 0x2e
je 0x407ed0
xor eax, eax
jmp 0x407ed5
mov eax, 1
test al, al
sete al
test al, al
je 0x407f62
push esi
call fcn.00407c50
add esp, 4
test al, al
je 0x407f1a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407f1a
test al, 0x10
jne 0x407f27
test esi, esi
je 0x407f7b
mov edx, dword [esp + 0x1c]
push edx
call fcn.00408b50
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407f85
mov edx, 0x5c
mov word [esi + ebp*2], dx
inc ebp
cmp ebp, ebx
jb 0x407e51
test esi, esi
je 0x407fc7
cmp byte [esp + 0x1c], 0
je 0x407fa0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x407f7b
mov eax, dword [esp + 0x1c]
push eax
call fcn.00408b50
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x407f7b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00408b50
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test byte [0x4492fc], 1
jne 0x407fba
or dword [0x4492fc], 1
call fcn.004089d0
mov dword [0x4492f8], eax
mov edi, dword [0x4492f8]
mov eax, esi
call fcn.0040da80
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret
Function at 0x4084d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp]
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esi, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
call fcn.0040c270
mov ebx, esi
call fcn.0040c3c0
push 3
lea eax, [esp + 0x10]
call fcn.0040c6b0
mov esi, dword [esp + 0xc]
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
push esi
push edx
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x40854b
cmp byte [esp + 0x15], 0
jne 0x40854b
mov eax, dword [esp + 0x14]
push eax
call fcn.00408b50
add esp, 4
mov eax, dword [esp + 0x2c]
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x408670
Capabilities:
Resume thread

Disassembly:
push ebx
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
jne 0x40868a
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
ret
mov ecx, dword [eax + 8]
add eax, 8
push edi
push ecx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi]
mov eax, 1
test byte [0x4492fc], al
jne 0x4086e0
or dword [0x4492fc], eax
call fcn.004089d0
mov dword [0x4492f8], eax
mov eax, edi
mov edi, dword [0x4492f8]
call fcn.0040da80
push ebx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
ret

Function at 0x408700
Capabilities:
Resume thread

Disassembly:
push ecx
mov eax, dword [ebx + 0x20]
push ebp
push esi
push edi
push 0xffffffffffffffff
push eax
mov byte [ebx + 0x28], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebx + 0x2c]
xor ebp, ebp
mov dword [esp + 0xc], eax
cmp dword [eax], ebp
jbe 0x408765
mov ecx, dword [ebx + 0x34]
mov esi, dword [ecx + ebp*4]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
je 0x408753
mov edx, dword [eax + 8]
add eax, 8
push edx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0xc]
inc ebp
cmp ebp, dword [edx]
jb 0x408721
mov eax, edx
xor edi, edi
cmp dword [eax], edi
jbe 0x408786
jmp 0x408770
mov eax, dword [ebx + 0x34]
mov esi, dword [eax + edi*4]
call fcn.00408670
mov ecx, dword [esp + 0xc]
inc edi
cmp edi, dword [ecx]
jb 0x408770
mov eax, ecx
push eax
call fcn.004087f0
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x408930
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x84
mov eax, dword [0x44405c]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.8BD31C4B59224BCA9EBA426CF248D1AB_08X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x408993
pop esi
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0041e30c
add esp, 0x84
ret
push edi
push 0x1000
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4089b3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x88]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0041e30c
add esp, 0x84
ret

Function at 0x4095d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
push ebx
push esi
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
call fcn.0041eaf5
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x4096f1
push edi
lea eax, [esi + 3]
lea edi, [esp + 0xc]
call fcn.004085c0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esi + 1]
push ecx
push edi
call fcn.0041ec94
mov edx, 0xd
mov eax, 0xa
mov word [edi + esi*2], dx
mov word [edi + esi*2 + 2], ax
mov eax, dword [0x44628c]
xor ecx, ecx
add esp, 0x10
mov word [edi + esi*2 + 4], cx
cmp eax, ebx
jne 0x40969a
mov eax, 1
test byte [0x4492e4], al
jne 0x40967b
or dword [0x4492e4], eax
push 0x42e240
mov dword [0x449288], ebx
mov dword [0x44928c], ebx
call fcn.0041e7ac
add esp, 4
cmp dword [0x449288], ebx
jne 0x40968d
mov esi, 0x449288
call fcn.00409040
push edi
mov ecx, 0x449288
call sym.MeowPlayer1.0.0.6.exe_public:_void___thiscall_base::Console::Write_wchar_t_const__
jmp 0x4096d7
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4096d0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push ebx
lea eax, [edx + edx + 2]
mov edx, dword [0x44628c]
push 0x4a
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4096d7
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, ebx
je 0x4096f0
cmp byte [esp + 0x15], bl
jne 0x4096f0
mov eax, dword [esp + 0x14]
push eax
mov esi, edi
call fcn.00408b50
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x40bcf0
Capabilities:
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x42db20
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0
push 0x80
push 4
push 0
push 6
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
push 0x12019f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40bdbd
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push ebp
mov dword [esp + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea esi, [esp + 0x18]
call fcn.0040c270
mov edx, dword [esp + 0x38]
mov ecx, esi
push ecx
push edx
mov byte [esp + 0x38], 1
call fcn.0040bc20
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
mov edi, esi
call fcn.004084d0
test eax, eax
setne bl
test esi, esi
je 0x40bd9e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00408b50
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
xor al, al
jmp 0x40bda7

Function at 0x40e140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, eax
mov eax, dword [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [esi]
lea edx, [esp + 0x14]
push edx
push 0
push str.avs_list
push eax
mov dword [esp + 0x24], 0
call ebx
mov ecx, eax
mov eax, dword [esp + 8]
cmp eax, dword [edi + 4]
ja 0x40e194
test ecx, ecx
je 0x40e18c
cmp ecx, 0xea
jne 0x40e194
pop edi
mov al, 1
pop ebx
add esp, 8
ret
call fcn.00408fe0
mov edi, dword [edi]
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push 0
push str.avs_list
push eax
call ebx
test eax, eax
pop edi
sete al
pop ebx
add esp, 8
ret
Function at 0x40e1c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, dword [edi]
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
test eax, eax
jne 0x40e1d4
xor esi, esi
jmp 0x40e1db
mov esi, dword [edi + 8]
lea esi, [esi + esi + 2]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0
push ebp
push ecx
mov dword [esp + 0x44], esi
call ebx
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
jbe 0x40e229
shr ecx, 1
push 1
dec ecx
mov esi, edi
call fcn.0040c550
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push ebp
push edx
call ebx
test eax, eax
jne 0x40e2cc
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x40e260
mov ecx, dword [edi]
test ecx, ecx
je 0x40e255
mov eax, ecx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e242
sub eax, ecx
sar eax, 1
dec eax
mov dword [edi + 4], eax
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
cmp eax, 2
jne 0x40e2cc
mov eax, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call ebp
mov ebx, eax
push ebx
lea esi, [esp + 0x14]
call fcn.0040c2d0
mov esi, dword [esp + 0x10]
mov eax, dword [edi]
push ebx
push esi
push eax
call ebp
test esi, esi
je 0x40e2a5
mov eax, esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e291
sub eax, esi
sar eax, 1
dec eax
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x10]
mov eax, edi
call fcn.0040c810
test esi, esi
je 0x40e2c1
mov edx, dword [esp + 0x1c]
push edx
call fcn.00408b50
add esp, 4
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 8

Function at 0x40e2e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp], eax
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret 8
Function at 0x40e320
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
lea esi, [esp + 0x18]
mov dword [esp + 0x14], 0x100
xor ebp, ebp
call fcn.0040c270
mov ecx, dword [esp + 0x14]
push 1
call fcn.0040c550
mov esi, dword [esp + 0x18]
lea esp, [esp]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push esi
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x40e3ea
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
inc ecx
cmp ecx, edi
jbe 0x40e3ce
mov eax, 8
cmp ecx, eax
jbe 0x40e39a
lea esp, [esp]
add eax, eax
test eax, eax
jle 0x40e3ce
cmp eax, ecx
jb 0x40e390
lea ebx, [eax + eax]
test ebx, ebx
jle 0x40e3ce
mov eax, dword [esp + 0x24]
push eax
mov eax, ebx
mov ecx, esi
call fcn.00408ae0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40e3ce
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
dec eax
xor edx, edx
mov word [ecx + eax*2], dx
xor eax, eax
mov esi, ecx
mov word [ecx + edi*2], ax
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x40e40f
test eax, eax
jne 0x40e401
mov edi, dword [esp + 0x34]
push 0xffffffffffffffff
push esi
call fcn.0040d2a0
inc ebp
mov dword [esp + 0x14], 0x100
jmp 0x40e350
test esi, esi
je 0x40e420
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00408b50
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x40e470
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
mov ebx, eax
mov eax, dword [ebx]
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e525
mov ecx, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
push 0
push str.InternetEncoding
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e5bb
lea esi, [esp + 0x20]
call fcn.0040c270
push str.AliasForCharset
lea edx, [esp + 0x14]
push edx
mov edi, esi
call fcn.0040e1c0
cmp dword [esp + 0x24], 0
jne 0x40e52e
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40e516
mov eax, dword [esp + 0x2c]
push eax
call fcn.00408b50
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e525
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
mov ebx, dword [ebx]
mov dword [esp + 0x1c], 2
test eax, eax
je 0x40e54f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esp + 0x10], 0
jne 0x40e597
test esi, esi
je 0x40e525
mov edx, dword [esp + 0x2c]
push edx
call fcn.00408b50
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x40e525
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x28
ret
push str.InternetEncoding
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e2e0
test esi, esi
je 0x40e5bb
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00408b50
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x40e5ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x40ebb0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x42d67b
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
push 0xd8
mov dword [esp + 0x18], ebx
call fcn.0041e889
mov dword [esi], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40ec60
Capabilities:
Hash data using sha256

Disassembly:
push 0xffffffffffffffff
push 0x42d67b
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
push 0xec
mov dword [esp + 0x18], ebx
call fcn.0041e889
mov dword [esi], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0xe8], ebx
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4