joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437808
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44d7e4
cmp dword [edi], 0
jne 0x437884
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x44d7e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44c840
mov ecx, 2
call fcn.00402860
mov edx, 0x4377e0
lea eax, [esi + 5]
call fcn.00437800
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00437800
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x437859
mov dword [0x44d7e0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4379a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4379f0]
test si, 4
je 0x4379b4
or bl, 1
test si, 8
je 0x4379be
or bl, 4
test si, 1
je 0x4379c8
or bl, 8
test si, 2
je 0x4379d2
or bl, 0x10
test si, 0x10
je 0x4379dc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4379eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4379f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x437a2c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437a0d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437a1c
or bl, 4
test esi, 0x20000000
je 0x437a27
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43dc5c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43dc6e
add esp, 0xfffffff0
call fcn.00402fd8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00412b28
mov eax, ebx
call fcn.0043dfa8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40c388]
call fcn.00402ca8
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40c388]
call fcn.00402ca8
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40c388]
call fcn.00402ca8
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40c388]
call fcn.00402ca8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40c388]
call fcn.00402ca8
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x43a74c
push eax
push 0
push 0
mov eax, dword [0x44ccf8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x413ff0]
call fcn.00415550
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x413ff0]
call fcn.00415550
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x413ff0]
call fcn.00415550
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0043e388
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43e2a4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43e2a4
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43e2a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43dd7d
call fcn.00403030
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43e088
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e233
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43e214
mov dl, 1
mov eax, dword [0x40c804]
call fcn.00402ca8
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403960
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43e203
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042c96c
test al, al
je 0x43e1f6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x43e244
lea eax, [ebp - 0x254]
call fcn.00408868
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e1f6
xor eax, eax
push ebp
push 0x43e1ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43e27c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43e1d8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b90
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43e1d8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e1f6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43e0f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040fbbc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e23a
lea eax, [ebp - 0x260]
call fcn.00403960
ret

Function at 0x43ea80
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x44d7d4]
cmp byte [eax + 0x95], 0
jne 0x43eaf1
cmp dword [0x44d7f0], 0
jne 0x43eab2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43ea3c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44d7f0], eax
cmp dword [0x44d7ec], 0
jne 0x43eacd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44d7ec], eax
cmp dword [0x44d7f4], 0
jne 0x43eaf1
push esp
push 0
push 0
push 0x43e9e0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44d7f4], eax
pop edx
ret
Function at 0x43ebe8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43ebff
add esp, 0xfffffff0
call fcn.00402fd8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00412b28
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40c388]
call fcn.00402ca8
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40c388]
call fcn.00402ca8
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4149a8]
call fcn.0041c014
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43ed74
mov eax, dword [0x44cc28]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041c3e4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440770
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44cc28]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409c74
test eax, eax
je 0x43ecf2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040821c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409c9c
test eax, eax
je 0x43ed06
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403b90
mov eax, dword [0x44cb24]
cmp byte [eax], 0
jne 0x43ed37
mov eax, ebx
call fcn.0043ee60
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43ed69
call fcn.00403030
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43f0d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44d7d4]
cmp dword [eax + 0x24], 0
je 0x43f173
cmp dword [ebx + 0x84], 0
jne 0x43f16d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43f060
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43f16d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43f136
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43f16d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040dbc8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43f145
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43fb80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x43fbb5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a48
jmp 0x43fbbf
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004039b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x440ae4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x440b1c
mov eax, esi
call fcn.0042886c
test al, al
je 0x440b1c
mov eax, dword [ebx + 0x74]
call fcn.00428570
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x440b1c
push 0
mov eax, dword [ebx + 0x74]
call fcn.00428570
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x545039f0
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [esp + 0xc]
cdq
mov ecx, 0xfe
idiv ecx
push esi
mov esi, dword [esp + 0xc]
add dl, 1
test esi, esi
jbe 0x54503a20
mov eax, dword [esp + 8]
lea ecx, [ecx]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x54503a10
pop esi
ret

Function at 0x54504530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5452f8de
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5454141c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5454141c]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov edi, ecx
lea esi, [edi + 4]
xor ebp, ebp
mov dword [esp + 0x14], edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
push ebp
push 0x7c
push 0x103
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x148], ebp
mov dword [edi], ebp
call fcn.545157e0
mov ebx, eax
add esp, 0x14
cmp ebx, ebp
je 0x54504632
nop
lea edx, [esp + 0x24]
push edx
call 0x54526db8
mov edx, dword [esi + 4]
add esp, 4
cmp edx, ebp
mov dword [esp + 0x18], eax
jne 0x545045cc
xor edi, edi
jmp 0x545045d4
mov edi, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp edx, ebp
je 0x545045f1
mov ecx, dword [esi + 0xc]
sub ecx, edx
sar ecx, 2
cmp edi, ecx
jae 0x545045f1
mov ecx, dword [esi + 8]
mov dword [ecx], eax
add ecx, 4
mov dword [esi + 8], ecx
jmp 0x54504610
mov edi, dword [esi + 8]
cmp edx, edi
jbe 0x545045fd
call fcn.545178c6
lea eax, [esp + 0x18]
push eax
push edi
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.545044a0
push ebp
push 0x7c
push 0x103
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.545157e0
mov ebx, eax
add esp, 0x14
cmp ebx, ebp
jne 0x545045b0
mov eax, dword [esp + 0x14]
jmp 0x54504634
mov eax, edi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.54516b6f
add esp, 0x124
ret 4

Function at 0x54509010
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
lea ecx, [eax - 1]
test ecx, ecx
mov byte [esp + 8], al
jl 0x5450904c
push ebx
push esi
mov esi, dword [esp + 0xc]
xor byte [ecx + esi], al
mov al, cl
mov bl, 0xb
imul bl
mov dl, cl
and dl, 0xf
add dl, 0x55
xor dl, al
xor dl, byte [esp + 0x10]
xor dl, 0xaa
sub ecx, 1
mov al, dl
mov byte [esp + 0x10], al
jns 0x54509025
pop esi
pop ebx
ret
Function at 0x401099
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x403008], eax
call fcn.00401274
test al, al
jne 0x4010c4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040132d
test al, al
jne 0x4010d6
call fcn.00401241
push 0xfffffffffffffffe
jmp 0x4010be
cmp byte [0x403018], bl
je 0x4011a3
mov esi, 0x403018
mov edx, esi
mov al, byte [edx]
inc edx
test al, al
jne 0x4010e9
push dword [0x403010]
call fcn.00401088
sub edx, esi
pop ecx
lea eax, [eax + edx + 7]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x40112a
push ebx
push 1
push 0xcd
call fcn.00401a37
add esp, 0xc
call fcn.00401241
push 0xfffffffffffffffd
jmp 0x4010be
push dword [0x403010]
push esi
push str.__s___s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x210
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
push ebx
jne 0x4010be
push 2
push 0xce
call fcn.00401a37
add esp, 0xc
call fcn.00401241
push 0xfffffffffffffffc
jmp 0x4010be
push 0x400
lea eax, [ebp - 0x458]
push eax
push 0x64
push dword [0x403008]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x24
push 0x402100
lea eax, [ebp - 0x458]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x4011e3
call fcn.00401241
push 1
jmp 0x4010be
call fcn.004013bd
test al, al
jne 0x4011f8
call fcn.00401241
push 0xfffffffffffffffb
jmp 0x4010be
push ebx
push 0x4014e1
push ebx
push 0x7fbc
push dword [0x403008]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
je 0x401221
call fcn.00401241
push 0xfffffffffffffffa
jmp 0x4010be
call fcn.0040142d
test al, al
jne 0x401236
call fcn.00401241
push 0xfffffffffffffff9
jmp 0x4010be
call fcn.00401241
push ebx
jmp 0x4010be
Function at 0x401274
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call fcn.00401088
lea ebx, [eax + 1]
mov eax, 0x105
cmp ebx, eax
pop ecx
jl 0x401293
mov eax, ebx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x403010], eax
jne 0x4012bc
push eax
push 0x10001
push 0xcd
call fcn.00401a37
add esp, 0xc
xor al, al
jmp 0x40132a
cmp byte [edi], 0x20
push esi
mov ecx, edi
mov esi, eax
jg 0x4012cc
inc ecx
cmp byte [ecx], 0x20
jle 0x4012c6
mov dl, byte [ecx]
cmp dl, 0x22
jne 0x4012f1
inc ecx
jmp 0x4012de
test dl, dl
je 0x4012f6
mov byte [esi], dl
inc ecx
inc esi
mov dl, byte [ecx]
cmp dl, 0x22
jne 0x4012d6
jmp 0x4012f6
test dl, dl
je 0x4012f6
inc ecx
mov byte [esi], dl
mov dl, byte [ecx]
inc esi
cmp dl, 0x20
jg 0x4012e7
push eax
mov byte [esi], 0
call fcn.00401a07
test eax, eax
pop ecx
pop esi
je 0x401315
mov eax, dword [0x403010]
mov edx, edi
mov ecx, ebx
call fcn.00401035
jmp 0x401328
push 0x104
push dword [0x403010]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, 1
pop edi
pop ebx
ret

Function at 0x40132d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareInterlexBuddy
push 0x80000002
mov byte [0x403018], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013b9
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, 0x403018
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.InstallDir
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4013b7
mov eax, 0x402140
mov edx, esi
call fcn.00401056
mov eax, str.BuddyL.EXE
mov edx, esi
call fcn.00401056
push esi
call fcn.00401a07
test eax, eax
pop ecx
jne 0x4013b7
mov byte [0x403018], al
pop edi
pop esi
mov al, 1
leave
ret

Function at 0x4013bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4013f6
push eax
push 0x30001
push 0xc9
call fcn.00401a37
add esp, 0xc
xor al, al
jmp 0x401427
xor edi, edi
mov esi, 0x403120
push edi
lea eax, [esp + 0xc]
push eax
push str._sBDI_d.exe
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.00401a07
add esp, 0x14
test eax, eax
je 0x401425
inc edi
cmp edi, 0x186a0
jl 0x4013fd
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40142d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push dword [0x403010]
xor edi, edi
xor ebx, ebx
call fcn.00401088
pop ecx
add eax, 0x10
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
jne 0x401483
push edi
mov eax, pe_nt_image_headers32
push 0x40001
push eax
mov ebx, eax
call fcn.00401a37
add esp, 0xc
cmp esi, edi
je 0x401479
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp ebx, edi
pop edi
pop esi
sete al
pop ebx
leave
ret
push dword [0x403010]
push str._D__N__P_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x8040
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], 0x403120
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40146e
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x42a15c15
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x683b0e51
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x613f28
Capabilities:
Encode data using xor

Disassembly:
mov edi, eax
mov esi, edx
mov eax, 0x41363233
xor al, byte [esi]
call fcn.00613f5f
mov ebx, eax
xor ah, byte [esi]
call fcn.00613f5f
shr ecx, 2
mov edx, ecx
xor dword [edi], eax
mov cl, al
add edi, 4
rol ebx, cl
xor eax, ebx
mov cl, bh
ror eax, cl
add ebx, eax
dec edx
jne 0x613f46
ret

Function at 0x613f5f
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
push edx
xor edx, edx
dec esi
inc esi
xor ah, byte [esi]
xor al, dl
add eax, 0x6e203cc5
add eax, 0x21424a6
mov cl, al
ror eax, cl
xor eax, 0x8372a5a7
dec dx
jne 0x613f68
cmp byte [esi], 0
jne 0x613f65
pop edx
pop esi
pop ecx
ret

Function at 0x613fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
add edx, 0x89421025
bswap edx
mov eax, dword [esi]
sub eax, edx
xor eax, ebx
mov ebx, dword [esi]
mov dword [edi], eax
add esi, 4
add edi, 4
dec ecx
jne 0x613fc4
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x6160d8
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
imul eax, dword [ebp + 0x10], 0x9e3779b9
cmp dword [ebp + 0x10], 0
jbe 0x616138
mov edx, ebx
shl edx, 4
sub ecx, edx
mov edx, dword [esi + 8]
xor edx, ebx
sub ecx, edx
mov edx, ebx
shr edx, 5
xor edx, eax
sub ecx, edx
sub ecx, dword [esi + 0xc]
mov edx, ecx
shl edx, 4
sub ebx, edx
mov edx, dword [esi]
xor edx, ecx
sub ebx, edx
mov edx, ecx
shr edx, 5
xor edx, eax
sub ebx, edx
sub ebx, dword [esi + 4]
sub eax, 0x9e3779b9
dec dword [ebp + 0x10]
jmp 0x6160ee
mov dword [edi], ebx
mov dword [edi + 4], ecx
popal
leave
ret 0xc