joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405aa0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x34]
push edi
push eax
push str._______________________m_szHead__n__s
call fcn.004195cd
mov edx, dword [esi + 0x34]
mov eax, edx
add esp, 8
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ac0
mov ecx, dword [esi + 0x2c]
sub eax, edi
push 0
inc eax
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
pop edi
test eax, eax
jns 0x405af6
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x405af3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
xor al, al
ret
setne al
ret

Function at 0x405b20
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x58], 0
jne 0x405b95
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
test eax, eax
je 0x405b3d
push 0xffffffffffffffff
push eax
call ebx
mov eax, dword [esi + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 8], 1
mov ecx, dword [eax + 4]
push ecx
call edi
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 4]
test eax, eax
je 0x405b5f
push 0xffffffffffffffff
push eax
call ebx
mov edx, dword [esi + 0x54]
mov dword [esi + 0x14], 1
mov eax, dword [edx + 4]
push eax
call edi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esi + 0x5c]
push ecx
push 0
push esi
push 0x405040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x58], eax
mov al, 1
pop ebx
ret
xor al, al
ret
Function at 0x4064c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f3e6
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x43a660]
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
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4065c0
lea eax, [ebp - 0x114]
push eax
call fcn.00406600
mov dword [ebp - 4], ebx
mov edi, 0xf
mov eax, esi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
jmp 0x406530
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406530
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x130]
call fcn.00401700
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
call fcn.00401610
mov byte [ebp - 4], bl
cmp dword [ebp - 0x11c], 0x10
jb 0x40657a
mov edx, dword [ebp - 0x130]
push edx
call fcn.00419012
add esp, 4
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00406970
lea ecx, [ebp - 0x114]
cmp al, 1
jne 0x4065a9
call fcn.00406a30
jmp 0x4065ae
call fcn.00407ae0
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
call fcn.004067c0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 6
jmp 0x4065d0
push 0xea60
call edi
dec esi
jne 0x4065d0
xor eax, eax
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.0041891c
mov esp, ebp
pop ebp
ret
Function at 0x409bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43a660]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x409ce1
cmp byte [edi + 0x49], bl
je 0x409ce1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x409cd5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x409c35
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x409c4d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x409c76
dec eax
je 0x409c7a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x409cd0
jmp 0x409cdc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x409c8a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x409cb3
cmp ebx, 0x10
jae 0x409c99
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00419b4a
add esp, 0x10
cmp esi, eax
jne 0x409ccd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x409cd9
test esi, esi
jne 0x409c41
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409960
jmp 0x409c3b
lea ecx, [ebp - 0x2c]
call fcn.00401310
xor al, al
jmp 0x409ce3
lea ecx, [ebp - 0x2c]
call fcn.00401310
mov al, 1
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.0041891c
mov esp, ebp
pop ebp
ret
Function at 0x409fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42db78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43a660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov edx, dword [edi + 0x14]
cmp edx, esi
je 0x40a058
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a024
sub eax, ebx
je 0x40a058
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
jne 0x40a05a
lea esi, [ebp - 0x1c]
call fcn.0040a790
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov eax, dword [edi + 0xc]
push eax
lea esi, [ebp - 0x1c]
call fcn.0040a610
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40a0d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40a08c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40a09c
push eax
call fcn.00419012
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a0ac
push eax
call fcn.00419012
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a0bc
push eax
call fcn.00419012
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a081
cmp dword [edi + 8], 0
jbe 0x40a081
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [edi + 8]
push eax
call fcn.00417e90
mov ecx, dword [edi + 8]
push ecx
push esi
push eax
mov dword [edi + 4], eax
call fcn.0041ad40
add esp, 0x10
test ebx, ebx
je 0x40a11b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [ebp - 0x1c]
call fcn.0040a790
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a320
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, dword [edi + 0x14]
test esi, esi
je 0x40a36a
mov ecx, esi
mov eax, 0x433179
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a350
test dl, dl
je 0x40a34c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a350
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a330
xor eax, eax
jmp 0x40a355
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a36a
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40a36c
xor eax, eax
pop esi
ret
xor esi, esi
cmp dword [edi + 0x1c], 0x433179
je 0x40a366
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x40a1e0
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
test eax, eax
setne bl
test bl, bl
jne 0x40a3a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3b02
je 0x40a3a5
test eax, eax
jne 0x40a3a7
mov bl, 1
test esi, esi
je 0x40a3b2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, bl
pop ebx
pop esi
ret
Function at 0x40ab00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e698
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x43a660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40abc1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
lea esi, [ebp - 0x38]
mov dword [ebp - 4], edi
call fcn.00404690
push 1
mov ecx, esi
call fcn.004046e0
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00404830
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jb 0x40abac
call fcn.00404980
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x40ab97
push eax
call fcn.00419012
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00404980
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x40abc1
push eax
call fcn.00419012
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b210
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x10]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b220
push ebx
sub eax, edx
push edi
lea edi, [eax + 1]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x40b243
push eax
call fcn.00419007
add esp, 4
mov dword [esi + 8], ebx
push edi
call fcn.00417e90
push edi
push ebx
push eax
mov dword [esi + 8], eax
call fcn.0041b5c0
xor eax, eax
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, eax
jle 0x40b2a1
mov edx, dword [esi + 0x10]
mov cl, byte [edx + eax]
cmp cl, 0x3a
je 0x40b2a1
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
mov edx, dword [esi + 0x10]
mov cl, byte [edx + eax]
cmp cl, 0x2e
jne 0x40b27f
inc ebx
jmp 0x40b29c
cmp dword [ebp - 4], 1
je 0x40b29c
test cl, cl
jns 0x40b295
mov dword [ebp - 4], 1
cmp cl, 0x39
jg 0x40b29c
mov dword [ebp - 4], 0
inc eax
cmp eax, edi
jl 0x40b263
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b2b0
sub eax, edi
cmp eax, 1
ja 0x40b2de
test edx, edx
je 0x40b375
push edx
call fcn.00419007
add esp, 4
pop edi
mov dword [esi + 8], 0
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 3
jne 0x40b2f2
xor ebx, ebx
cmp dword [ebp - 4], ebx
jne 0x40b2f4
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x40b362
mov edi, dword [eax + 0xc]
cmp dword [edi], ebx
je 0x40b362
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40b319
push eax
call fcn.00419007
add esp, 4
mov dword [esi + 8], ebx
mov eax, dword [edi]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b330
sub eax, edx
inc eax
push eax
call fcn.00417e90
add esp, 4
mov dword [esi + 8], eax
mov ecx, edi
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40b350
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40b375
push eax
call fcn.00419007
mov dword [esi + 8], ebx
add esp, 4
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dd0b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43a660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041860d
push 4
mov dword [ebp - 4], 0
call fcn.00419415
mov edi, eax
add esp, 4
test edi, edi
je 0x40e480
call fcn.00418168
mov dword [edi], eax
call fcn.00417f27
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00418251
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40e476
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00418279
jmp 0x40e482
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414a70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e897
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43a660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [edi], vtable.CmodRCInfoBase.0
xor ebx, ebx
mov esi, 0xf
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov dword [ebp - 4], ebx
push 0x18
mov dword [edi + 0x28], ebx
call fcn.00419415
add esp, 4
cmp eax, ebx
je 0x414b86
mov dword [edi + 0x24], eax
mov dword [eax], eax
mov eax, dword [edi + 0x24]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x24]
mov dword [eax + 8], eax
mov ecx, dword [edi + 0x24]
mov al, 1
mov byte [ecx + 0x14], al
mov edx, dword [edi + 0x24]
mov byte [edx + 0x15], al
mov dword [edi + 0x44], esi
mov dword [edi + 0x40], ebx
mov byte [edi + 0x30], bl
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x58], ebx
lea esi, [edi + 0x5c]
mov byte [ebp - 4], 3
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.00403110
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], ebx
xor eax, eax
mov dword [edi + 0x84], ebx
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x94], ebx
mov dword [edi + 0x80], vtable.ARCCustomInfo.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x90], ebx
mov dword [edi + 0x88], ebx
mov word [edi + 0x98], ax
mov byte [edi + 0xa0], bl
lea ecx, [edi + 0xa4]
push ecx
mov byte [ebp - 4], 5
call fcn.0040b640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.004189b3
push 0x437928
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.0041b0a1
int3
Function at 0x41891c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a660]
jne 0x418926
repz ret
jmp fcn.0041ec5a

Function at 0x42865c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43a660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041e53c
and dword [ebp - 0x14], 0
cmp dword [0x43cbe0], 0
mov dword [ebp - 0x18], eax
jne 0x42870f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4287b7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4287b7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43cbe0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43cbe4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43cbe8], eax
call edi
push eax
call esi
mov dword [0x43cbf0], eax
test eax, eax
je 0x42870f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43cbec], eax
mov eax, dword [0x43cbec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x428768
cmp dword [0x43cbf0], ecx
je 0x428768
push eax
call esi
push dword [0x43cbf0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x428768
test ebx, ebx
je 0x428768
call edi
test eax, eax
je 0x42875f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42875f
test byte [ebp - 8], 1
jne 0x428768
or dword [ebp + 0x10], 0x200000
jmp 0x42879b
mov eax, dword [0x43cbe4]
cmp eax, dword [ebp - 0x18]
je 0x42879b
push eax
call esi
test eax, eax
je 0x42879b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42879b
mov eax, dword [0x43cbe8]
cmp eax, dword [ebp - 0x18]
je 0x42879b
push eax
call esi
test eax, eax
je 0x42879b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43cbe0]
call esi
test eax, eax
je 0x4287b7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4287b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041891c
leave
ret
Function at 0x4018a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4018b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4018cd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4018ee
cmp esi, eax
jae 0x4018c7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4018e0
cmp esi, eax
jae 0x4018c7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407ef0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4478a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x459b3c]
push esi
mov esi, dword [0x459b44]
push edi
mov edi, dword [0x459b58]
mov eax, ecx
imul edi, edi, 0x3b76e
imul eax, eax, 0x426f4
add edi, eax
mov eax, 0x491979d9
imul esi
sar edx, 0x11
add edi, edx
mov eax, edx
shr eax, 0x1f
add eax, edi
shl eax, 1
mov edi, eax
mov eax, 0x89cc5bfb
imul ecx
add edx, ecx
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x5764ae1b
imul esi
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
sub edi, ecx
add eax, edx
mov edx, dword [0x56feac]
sub edi, eax
mov ecx, 0x56feac
mov dword [str._r_____r____], edi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x459b40]
mov eax, 0xf6ddfe9
imul ecx
mov ecx, dword [0x459b4c]
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0xa89b51e5
imul ecx
mov eax, dword [0x459b58]
sar edx, 0x12
imul eax, eax, 0x3b76e
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x459b48]
imul edx, edx, 0xbb797
mov edi, ecx
mov ecx, dword [0x459b38]
imul ecx, ecx, 0x20dab
sub edi, esi
add edi, edx
add edi, eax
add edi, ecx
mov ecx, dword [0x459b44]
mov eax, 0x491979d9
imul ecx
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add edi, edx
mov edx, dword [0x459b54]
add eax, edi
sub eax, edx
sub eax, 0xd61e3
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0
mov dword [0x459b40], eax
push ecx
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00407c60
mov eax, dword [0x459b4c]
mov esi, dword [0x459b50]
imul eax, eax, 0xd61e3
mov ecx, dword [0x459b40]
imul esi, esi, 0x3eb04
imul ecx, ecx, 0x1db98
add esi, eax
add esi, ecx
mov ecx, dword [0x459b54]
mov eax, 0x5764ae1b
imul ecx
mov ecx, dword [0x459b3c]
sar edx, 0x12
add esi, edx
mov edi, edx
mov edx, dword [0x459b58]
imul edx, edx, 0x3b76e
shr edi, 0x1f
add edi, esi
add edi, edx
mov eax, 0xf957fd3
imul ecx
mov ecx, dword [0x459b44]
mov esi, dword [esp + 8]
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x491979d9
imul ecx
sar edx, 0x11
mov ecx, edx
shr ecx, 0x1f
add edi, edx
add ecx, edi
push esi
mov dword [0x459b4c], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
jg 0x4080dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419510
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x45b4b0]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x419632
lea ecx, [esp + 8]
call fcn.004193f0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x419636
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4195e0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00419510
mov edi, eax
test edi, edi
jne 0x41965a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x4195a2
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4195f9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x419618
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042d001
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x419641
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042d001
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x419669
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0042d001
add esp, 0x118
ret 4
Function at 0x419b40
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x419b52
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8