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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push str._n_nRetreiving_Package_Info:_n
call fcn.004024a7
add esp, 4
call fcn.004027b5
add eax, 0x20
push eax
call fcn.00402759
add esp, 4
push 0
lea eax, [ebp - 8]
push eax
push 0x20a
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4126d4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401402
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x410270
call fcn.004024a7
add esp, 8
xor eax, eax
jmp 0x4014db
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
mov edx, dword [0x4126cc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40143f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4102d8
call fcn.004024a7
add esp, 8
xor eax, eax
jmp 0x4014db
mov eax, dword [ebp + 8]
push eax
push str.__PackagePath:__s_n
call fcn.004024a7
add esp, 8
push 0
lea ecx, [ebp - 8]
push ecx
push 0x800
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x4126d4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40148c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x410368
call fcn.004024a7
add esp, 8
xor eax, eax
jmp 0x4014db
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 4]
push edx
mov eax, dword [0x4126cc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4014c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4103d0
call fcn.004024a7
add esp, 8
xor eax, eax
jmp 0x4014db
mov ecx, dword [ebp + 0xc]
push ecx
push str.__Propertery_Assignments:__s_n
call fcn.004024a7
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401c70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40e4d0
push 0x402c20
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [0x410ee8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4126cc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401d25
push 0
lea ecx, [ebp - 0x24]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [0x4126d4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Reading_from_pipe_failed._GetLastError_____4dL_n
call fcn.004024a7
add esp, 8
mov dword [ebp - 0x2c], 3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x2c]
jmp 0x401d83
jmp 0x401d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Writing_to_pipe_failed._GetLastError_____4dL_n
call fcn.004024a7
add esp, 8
mov dword [ebp - 0x30], 3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x401d83
mov dword [ebp - 4], 0xfffffffe
jmp 0x401d80
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x410ee8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00402db0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x430], dx
push 0x208
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.00402db0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x401f7f
push 0x104
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401f7f
push 0xffffffffffffffff
lea edx, [ebp - 0x430]
push edx
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00402f46
add esp, 0x10
push 0xffffffffffffffff
push 0x410b84
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00402e58
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00402e58
add esp, 0x10
cmp dword [0x410b80], 0
jge 0x402067
xor ecx, ecx
mov word [ebp - 0x638], cx
push 0x206
push 0
lea edx, [ebp - 0x636]
push edx
call fcn.00402db0
add esp, 0xc
mov dword [0x410b80], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
push 0x104
lea ecx, [ebp - 0x638]
push ecx
call fcn.00402f46
add esp, 0x10
push 0xffffffffffffffff
push 0x410b88
push 0x104
lea edx, [ebp - 0x638]
push edx
call fcn.00402e58
add esp, 0x10
push 0xffffffffffffffff
push 0x410b8c
push 0x104
lea eax, [ebp - 0x638]
push eax
call fcn.00402e58
add esp, 0x10
lea ecx, [ebp - 0x638]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
je 0x402067
push 0x410ba8
mov edx, dword [ebp - 0x63c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
je 0x40205a
push 0x800
call dword [ebp - 0x640]
mov dword [0x410b80], 1
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x410b80]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xfffff800
add ecx, 0x800
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
push edx
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bd8
mov esp, ebp
pop ebp
ret

Function at 0x40500d
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x405048
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40502f
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x405040
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40504a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x405025
xor eax, eax
pop edi
pop esi
ret

Function at 0x405c23
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
invalid
invalid
Function at 0x405eaa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00404fab
or byte [eax + 0x2ff845c6], ah
inc ebp
clc
das

Function at 0x405eef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
clc
das
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
invalid
invalid
popfd
cld
invalid
invalid

Function at 0x40b3d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407f93
and dword [ebp - 4], 0
cmp dword [0x4125f4], 0
mov ebx, eax
jne 0x40b481
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b532
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b532
push eax
call fcn.00407f21
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4125f4], eax
call esi
push eax
call fcn.00407f21
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4125f8], eax
call esi
push eax
call fcn.00407f21
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4125fc], eax
call esi
push eax
call fcn.00407f21
pop ecx
mov dword [0x412604], eax
test eax, eax
je 0x40b481
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407f21
pop ecx
mov dword [0x412600], eax
mov eax, dword [0x412600]
cmp eax, ebx
je 0x40b4d9
cmp dword [0x412604], ebx
je 0x40b4d9
push eax
call fcn.00407f9c
push dword [0x412604]
mov esi, eax
call fcn.00407f9c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b4d9
test edi, edi
je 0x40b4d9
call esi
test eax, eax
je 0x40b4d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b4d0
test byte [ebp - 0xc], 1
jne 0x40b4d9
or dword [ebp + 0x10], 0x200000
jmp 0x40b512
mov eax, dword [0x4125f8]
cmp eax, ebx
je 0x40b512
push eax
call fcn.00407f9c
pop ecx
test eax, eax
je 0x40b512
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b512
mov eax, dword [0x4125fc]
cmp eax, ebx
je 0x40b512
push eax
call fcn.00407f9c
pop ecx
test eax, eax
je 0x40b512
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4125f4]
call fcn.00407f9c
pop ecx
test eax, eax
je 0x40b532
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b534
xor eax, eax
pop edi
pop esi
pop ebx
leave
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 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 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 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 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 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x631f6402
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4974ad0
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40d15a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
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.00407e6b
mov dword [ebp - 0x14], eax
cmp dword [0x4ad61c], esi
jne 0x40d24d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d32d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d32d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d32d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad61c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad620], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad624], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad62c], eax
test eax, eax
je 0x40d24a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad628], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d272
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d265
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d287
push 4
pop eax
jmp 0x40d32f
cmp dword [ebp - 0x14], esi
je 0x40d287
push dword [0x4ad61c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d26c
mov eax, dword [0x4ad628]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2e5
cmp dword [0x4ad62c], edi
je 0x40d2e5
push eax
call ebx
push dword [0x4ad62c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2e5
test eax, eax
je 0x40d2e5
call ecx
test eax, eax
je 0x40d2da
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 0x40d2da
test byte [ebp - 8], 1
jne 0x40d2e5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d315
mov eax, dword [0x4ad620]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
call eax
mov esi, eax
test esi, esi
je 0x40d312
mov eax, dword [0x4ad624]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad61c]
call ebx
test eax, eax
je 0x40d32d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d32f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043b8
mov esp, ebp
pop ebp
ret
Function at 0x41013b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestPair.exe_gMozillaPoisonSize], eax
call fcn.0040c394
pop ecx
mov ecx, dword [sym.TestPair.exe_gMozillaPoisonSize]
mov dword [sym.TestPair.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410173
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestPair.exe_gMozillaPoisonValue], eax
mov esp, ebp
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 0x40d13a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
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.00407d3b
mov dword [ebp - 0x14], eax
cmp dword [0x813d7c], esi
jne 0x40d22d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d30d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d30d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d30d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813d7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813d80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813d84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813d8c], eax
test eax, eax
je 0x40d22a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813d88], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d252
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d245
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d267
push 4
pop eax
jmp 0x40d30f
cmp dword [ebp - 0x14], esi
je 0x40d267
push dword [0x813d7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d24c
mov eax, dword [0x813d88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2c5
cmp dword [0x813d8c], edi
je 0x40d2c5
push eax
call ebx
push dword [0x813d8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2c5
test eax, eax
je 0x40d2c5
call ecx
test eax, eax
je 0x40d2ba
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 0x40d2ba
test byte [ebp - 8], 1
jne 0x40d2c5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d2f5
mov eax, dword [0x813d80]
cmp eax, edi
je 0x40d2f2
push eax
call ebx
test eax, eax
je 0x40d2f2
call eax
mov esi, eax
test esi, esi
je 0x40d2f2
mov eax, dword [0x813d84]
cmp eax, edi
je 0x40d2f2
push eax
call ebx
test eax, eax
je 0x40d2f2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813d7c]
call ebx
test eax, eax
je 0x40d30d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d30f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404238
mov esp, ebp
pop ebp
ret
Function at 0x402fcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403064
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403044
xor eax, eax
push ebp
push 0x40303d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403080
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403044
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40b00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4039b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c044], 0
je 0x403a19
cmp word [0x40c218], 0xd7b2
jne 0x4039e1
cmp dword [0x40c220], 0
jbe 0x4039e1
mov eax, 0x40c214
call dword [0x40c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b050
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403a40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b018], 0
jne 0x403a35
push 0
push 0x40b070
push 0x40b050
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403b6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402534
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40c045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403b34
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc