joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402290
Capabilities:
Get common file path
Set current directory

Disassembly:
mov al, byte [0x412a48]
sub esp, 0x1a4
test al, al
je 0x4022a8
mov al, 1
add esp, 0x1a4
ret
push edi
push str.DoOpgDlg2
call fcn.004038d0
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x40870c]
add esp, 4
test al, 2
pop edi
je 0x4022e9
lea eax, [esp]
push eax
call fcn.00402480
push 0
call fcn.004024c0
add esp, 8
push ebx
push esi
call fcn.00401e50
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x4086d0
mov esi, eax
mov byte [0x412a48], 1
call fcn.00402220
add esp, 4
lea edx, [esp + 0xa4]
mov bl, al
mov byte [0x412a48], 0
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00401fc0
test byte [0x40870c], 2
je 0x402351
lea eax, [esp + 8]
push eax
call fcn.004024c0
add esp, 4
test esi, esi
je 0x402385
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x402378
push str.SetForegroundWindow___succeeded.
call fcn.004038d0
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret
push str.SetForegroundWindow___failed.
call fcn.004038d0
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret

Function at 0x4023b0
Capabilities:
Create process on windows
Create thread

Disassembly:
sub esp, 0x15c
push esi
push edi
lea eax, [esp + 0x5c]
push 0x412928
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
push 0x408244
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x5c]
push 0
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [0x412818]
push eax
push str._sd__x__x
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 8], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0xc], ecx
push edx
mov dword [esp + 0x14], ecx
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x40245a
xor al, al
add esp, 0x15c
ret
mov edx, dword [esp]
push edx
push 0
push 0x402390
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
add esp, 0x15c
ret
Function at 0x4027c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x412ab8
push 0x412a54
push 0x80
mov dword [0x412b1c], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x402801
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0x414
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
ret

Function at 0x4038d0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov eax, dword [0x408280]
sub esp, 0xc
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
push esi
jne 0x403941
lea eax, [esp + 8]
mov dword [0x408280], ebx
push eax
push 0x20019
push ebx
push str.SoftwarePaltiosoftWrapping
push 0x80000002
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403941
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x408280
push edx
push ebx
push str.logging
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x403941
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x408280], ebx
je 0x4039ae
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push str.launch3.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4039ae
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push ebx
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
lea ecx, [esp + 0xc]
push ebx
push ecx
push 2
push 0x408284
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4039c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
je 0x4039ce
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
je 0x4039de
xor eax, eax
ret
xor eax, eax
xor edx, edx
mov ax, word [ecx + 0x14]
mov dx, word [ecx + 6]
push esi
lea esi, [eax + ecx + 0x18]
mov eax, dword [ecx + 0x54]
test edx, edx
jle 0x403a03
lea ecx, [esi + 0x10]
mov esi, dword [ecx]
add ecx, 0x28
add eax, esi
dec edx
jne 0x4039f9
pop esi
ret
Function at 0x403b30
Capabilities:
Get file size
Parse pe header

Disassembly:
push ecx
mov cl, byte [esp + 0x14]
push ebx
push ebp
push esi
test cl, cl
mov dword [esp + 0xc], 0
mov eax, 0x80000000
mov esi, 2
mov ebp, 4
je 0x403b5f
mov esi, ebp
mov eax, 0xc0000000
mov ebp, 0xf001f
push 0
push 0x10000000
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x403b8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x403bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x403c46
push 0
push 0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x403bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x403c3b
cmp word [esi], 0x5a4d
je 0x403bf0
mov dword [esp + 0x10], 0xb
jmp 0x403c3b
mov ecx, dword [esi + 0x3c]
mov ebp, esi
add ebp, ecx
cmp dword [ebp], 0x4550
je 0x403c0a
mov dword [esp + 0x10], 0xb
jmp 0x403c3b
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x58]
mov dword [edx], ecx
mov eax, dword [esi + 0x3c]
add eax, 0xf8
sub edi, eax
lea ecx, [esi + eax]
push ecx
push edi
call fcn.00404140
mov edx, dword [esp + 0x28]
mov cl, byte [esp + 0x2c]
add esp, 8
test cl, cl
mov dword [edx], eax
je 0x403c3b
mov dword [ebp + 0x58], eax
test esi, esi
je 0x403c46
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test ebx, ebx
je 0x403c54
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404140
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4135e8]
test eax, eax
jne 0x40414e
call fcn.00404190
mov ecx, dword [esp + 4]
or eax, 0xffffffff
dec ecx
js 0x40418a
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov bl, byte [ecx]
mov edx, eax
shr edx, 0x18
xor dl, bl
inc ecx
mov byte [esp + 0xc], dl
mov edx, dword [esp + 0xc]
and edx, 0xff
shl eax, 8
mov edx, dword [edx*4 + 0x4131e8]
xor eax, edx
dec esi
jne 0x404161
pop esi
pop ebx
not eax
ret

Function at 0x404190
Capabilities:
Hash data using crc32b

Disassembly:
push ecx
push ebx
mov ebx, 1
push esi
mov dword [0x4135e8], ebx
xor edx, edx
mov ecx, 0x4131e8
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x4041bf
add eax, eax
xor eax, 0x4c11db7
jmp 0x4041c1
shl eax, 1
dec esi
jne 0x4041af
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4135e8
jb 0x4041a5
xor ecx, ecx
mov eax, 0x412fe8
mov dword [esp + 8], ecx
mov edx, 8
test byte [esp + 8], bl
je 0x4041fc
mov si, word [esp + 8]
shr si, 1
xor esi, 0x8408
mov dword [esp + 8], esi
jmp 0x404201
shr word [esp + 8], 1
dec edx
jne 0x4041e2
mov dx, word [esp + 8]
inc ecx
mov word [eax], dx
add eax, 2
cmp eax, 0x4131e8
jb 0x4041d9
pop esi
pop ebx
pop ecx
ret
Function at 0x404220
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4135e8]
test eax, eax
jne 0x40422e
call fcn.00404190
mov ecx, dword [esp + 4]
mov eax, pe_overlay
dec ecx
js 0x40426a
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
xor ebx, ebx
xor dl, al
mov bl, ah
mov byte [esp + 0xc], dl
inc ecx
mov edx, dword [esp + 0xc]
and edx, 0xff
mov ax, word [edx*2 + 0x412fe8]
xor ax, bx
dec esi
jne 0x404243
pop esi
pop ebx
not eax
ret

Function at 0x404270
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x40527b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00404a30
mov eax, dword [esp + 0x848]
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x83c], esi
call fcn.00404a40
mov ebx, dword [esp + 0x840]
cmp ebx, esi
jle 0x4042da
push edi
mov edi, dword [esp + 0x848]
lea ecx, [esp + 0xc]
call fcn.00404ae0
mov dl, byte [esi + edi]
xor dl, al
mov byte [esi + edi], dl
inc esi
cmp esi, ebx
jl 0x4042c3
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x838], 0xffffffff
call fcn.00402e70
mov ecx, dword [esp + 0x830]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x834
ret

Function at 0x4043b0
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40441b
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [esp + 0x10]
push 1
push 0
push 0x4063e4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404410
mov bl, 1
test esi, esi
je 0x40441b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x404430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4044ad
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push esi
push ecx
push 0
push 0x4063e4
push edi
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4044a2
mov edx, dword [esp + 0x14]
mov bl, 1
mov byte [edx + esi], al
test edi, edi
je 0x4044ad
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
ret
Function at 0x404970
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.004048d0
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov ebp, 1
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x404a09
push ebx
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x408344
push ebx
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4049ec
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
xor ebp, ebp
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x404a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ecx, ecx
mov ebx, 0x11
lea edi, [esi + 4]
mov edx, 0x20
imul eax, eax, 0x5d588b65
inc eax
mov ebp, eax
shr ecx, 1
and ebp, 0x80000000
or ecx, ebp
dec edx
jne 0x404a59
mov dword [edi], ecx
add edi, 4
dec ebx
jne 0x404a54
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 4]
shl eax, 0x17
shr ecx, 9
xor eax, ecx
mov ecx, dword [esi + 0x40]
xor eax, ecx
mov ecx, 0x1f8
mov dword [esi + 0x44], eax
lea eax, [esi + 8]
mov edx, dword [eax - 4]
mov edi, dword [eax]
mov ebx, dword [eax + 0x3c]
add eax, 4
shl edx, 0x17
shr edi, 9
xor edx, edi
xor edx, ebx
dec ecx
mov dword [eax + 0x3c], edx
jne 0x404a95
mov ecx, esi
call fcn.00404b10
mov ecx, esi
call fcn.00404b10
mov ecx, esi
call fcn.00404b10
mov dword [esi], 0x208
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404b10
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
lea eax, [ecx + 4]
mov edx, 0x20
mov esi, dword [eax + 0x7a4]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x404b1a
lea eax, [ecx + 0x84]
mov ecx, 0x1e9
mov edx, dword [eax - 0x80]
mov edi, dword [eax]
xor edi, edx
mov dword [eax], edi
add eax, 4
dec ecx
jne 0x404b37
pop edi
pop esi
ret
Function at 0x404b50
Capabilities:
Create pipe
Create thread
Write file on windows
Write pipe

Disassembly:
sub esp, 8
push esi
mov eax, dword [0x433b9c]
test eax, eax
je 0x404b6e
mov eax, dword [0x433b9c]
cmp eax, 0xffffffff
je 0x404b6e
mov al, 1
pop esi
add esp, 8
ret
push 0
push 0x1f4
push 0x80
push 0x80
push 0xff
push 0
push 0xc0001
push 0
push 0x433a98
call fcn.00404f90
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x433b9c], eax
mov eax, dword [0x433b9c]
cmp eax, 0xffffffff
je 0x404c46
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0x404d40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x433ba0], eax
mov eax, dword [0x433ba0]
test eax, eax
je 0x404c46
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipe_softdenchi_login
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404c46
lea ecx, [esp + 4]
push 0
push ecx
push 0x100
push 0x433a98
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404c3f
cmp dword [esp + 4], 0x100
jne 0x404c3f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404c60
xor al, al
pop esi
add esp, 8
ret

Function at 0x404c60
Capabilities:
Terminate thread
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov eax, dword [0x433ba0]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x404ce0
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x433a98
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.00404f90
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404ccd
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0x3e8
mov edx, dword [0x433ba0]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0x433b9c]
cmp eax, edi
je 0x404d01
mov eax, dword [0x433b9c]
cmp eax, 0xffffffff
je 0x404d01
mov eax, dword [0x433b9c]
push eax
call ebx
mov dword [0x433b9c], edi
mov eax, dword [0x433ba0]
cmp eax, edi
je 0x404d29
mov eax, dword [0x433ba0]
cmp eax, 0xffffffff
je 0x404d29
push 0xffffffffffffffff
mov ecx, dword [0x433ba0]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x433ba0], edi
call fcn.00404e20
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x404e90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f03
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp]
mov dword [esp], eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404ef8
mov dword [esp], 0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x453db8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x453db8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x453dbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x453dc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453dc8], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453dc4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x453db8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x453dc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x453dc8], edi
je 0x40d429
push eax
call ebx
push dword [0x453dc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x453dbc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x453dc0]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x453db8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x101375a0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov dword [esp + 4], edx
cmp ecx, 0x80
jge 0x101375bf
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
add esp, 8
ret
cmp ecx, 0x10000
jge 0x1013766a
push ebx
push ebp
xor edx, edx
mov ebx, 0xa2
push esi
push edi
mov dword [esp + 0x10], edx
or ebp, 0xffffffff
nop dword [eax]
lea eax, [edx + ebx]
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x10160000]
lea eax, [edi - 1]
sub esi, edx
mov edx, edi
cmovs edx, ebp
test esi, esi
mov ebp, edx
lea edx, [edi + 1]
cmovs edx, dword [esp + 0x10]
cmovs ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jge 0x101375e0
movzx edx, word [ebp*4 + 0x10160000]
movzx eax, byte [ebp*4 + 0x10160003]
add eax, edx
cmp ecx, eax
jge 0x1013764e
movzx eax, byte [ebp*4 + 0x10160002]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x1013764e
shr eax, 1
movzx eax, word [eax*2 + 0x101614d0]
add eax, ecx
movzx ecx, ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x10137678
xor edx, edx
cmp eax, 2
sete dl
add esp, 8
jmp fcn.101016b0
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x1013767a
mov eax, ecx
add esp, 8
ret

Function at 0x1014b340
Capabilities:
Parse pe header

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

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
mov ecx, 0xaba6e4e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x1acb1d4c
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219