joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fbf0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44fc02
add esp, 0xfffffff0
call fcn.00403d60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bad8
mov eax, dword [0x47bda0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ff94
mov eax, dword [0x47bdac]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ffa0
mov eax, ebx
call fcn.0044ffac
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412760]
call fcn.00403a0c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412760]
call fcn.00403a0c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412760]
call fcn.00403a0c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412760]
call fcn.00403a0c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412760]
call fcn.00403a0c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ba44
push eax
push 0
push 0
mov eax, dword [0x47bef0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e410]
call fcn.0041fc64
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e410]
call fcn.0041fc64
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e410]
call fcn.0041fc64
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004503dc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4502ac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4502ac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4502ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fd3f
call fcn.00403db8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450090
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 0x45023b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45021c
mov dl, 1
mov eax, dword [0x412d10]
call fcn.00403a0c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040491c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45020b
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.004459ac
test al, al
je 0x4501fe
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, 0x45024c
lea eax, [ebp - 0x254]
call fcn.00409754
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4501fe
xor eax, eax
push ebp
push 0x4501f7
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 0x450284
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4501e0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b8c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4501e0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4501fe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450101
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00417338
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450242
lea eax, [ebp - 0x260]
call fcn.0040491c
ret

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

Disassembly:
push ecx
mov eax, dword [0x480568]
cmp byte [eax + 0xad], 0
jne 0x450c25
cmp dword [0x480580], 0
jne 0x450be6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450b70
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x480580], eax
cmp dword [0x48057c], 0
jne 0x450c01
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48057c], eax
cmp dword [0x480584], 0
jne 0x450c25
push esp
push 0
push 0
push 0x450b14
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x480584], eax
pop edx
ret
Function at 0x450df8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450e0f
add esp, 0xfffffff0
call fcn.00403d60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bad8
mov eax, dword [0x47bedc]
cmp word [eax + 2], 0
jne 0x450e37
mov eax, dword [0x47bedc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004527bc
mov eax, dword [0x47bf98]
cmp word [eax + 2], 0
jne 0x450e51
mov eax, dword [0x47bf98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004529c8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412760]
call fcn.00403a0c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412760]
call fcn.00403a0c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412760]
call fcn.00403a0c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41ef20]
call fcn.0042654c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x451008
mov eax, dword [0x47be04]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426920
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453088
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47be04]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040cf00
test eax, eax
je 0x450f58
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004090e0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cf34
test eax, eax
je 0x450f6c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b8c
mov byte [ebx + 0xd4], 0
push ebx
push 0x452408
call fcn.0041d274
mov dword [ebx + 0xc8], eax
mov eax, dword [0x47bcf0]
cmp byte [eax], 0
jne 0x450fbd
mov eax, ebx
call fcn.0045114c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00453264
mov eax, ebx
call fcn.00453dc4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450ffd
call fcn.00403db8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4513cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x480568]
cmp dword [eax + 0x30], 0
je 0x451476
cmp dword [ebx + 0x94], 0
jne 0x451470
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45135c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451470
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 0x451436
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451470
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414e30
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451445
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452190
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4521c5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a0c
jmp 0x4521d2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404970
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453448
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4534b6
mov eax, esi
call fcn.00440720
test al, al
je 0x4534b6
mov eax, dword [ebx + 0x84]
call fcn.004403ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4534b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4534aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.004403ac
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004387a4
jmp 0x4534b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00453284
pop esi
pop ebx
ret
Function at 0x45902c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404dd0
xor eax, eax
push ebp
push 0x459161
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x459134
xor edx, edx
push ebp
push 0x45912d
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x459079
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x459102
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x4590f1
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4590b8
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00404de0
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00402e90
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4590f8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x47bd38]
mov dl, 1
mov eax, dword [0x4078b0]
call fcn.0040c1bc
call fcn.004042b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459168
lea eax, [ebp - 4]
call fcn.0040491c
ret
Function at 0x459170
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45932b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004050cc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x459344
call fcn.00404c2c
mov eax, ebx
call fcn.0041c118
mov edi, eax
dec edi
test edi, edi
jl 0x459228
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041c0ec
mov edx, dword [0x4573ec]
call fcn.00403bc8
test al, al
je 0x459224
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041c0ec
lea edx, [ebp - 0x14]
call fcn.00438884
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004050cc
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404ca0
inc esi
dec edi
jne 0x4591d6
movzx eax, byte [0x459348]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x459354
mov eax, dword [ebp - 8]
call fcn.0040d40c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004049b4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00438884
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x459344
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.00438884
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x459344
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x459344
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x459360
call fcn.004097d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459332
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404940
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404940
lea eax, [ebp - 0x14]
call fcn.0040491c
lea eax, [ebp - 0x10]
call fcn.0040491c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404940
ret
Function at 0x45a6fc
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404dd0
xor eax, eax
push ebp
push 0x45a77a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404de0
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x45a745
mov eax, dword [ebx + 4]
call fcn.00404de0
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a781
lea eax, [ebp - 4]
call fcn.0040491c
ret

Function at 0x45b81c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45b9c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.004030ec
cmp word [ebx + 0xa2], 0
je 0x45b865
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x45b879
lea esi, [ebp - 0xc]
jmp 0x45b87b
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x45b888
xor edi, edi
jmp 0x45b895
mov eax, dword [ebx + 0x80]
call fcn.00404de0
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404de0
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0045aecc
mov eax, dword [ebp - 0x14]
call fcn.00404de0
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404de0
push eax
mov eax, dword [ebp - 4]
call fcn.00404de0
push eax
mov eax, ebx
call fcn.0045b00c
push eax
mov eax, ebx
call fcn.0045afe0
push eax
mov eax, ebx
call fcn.0045af98
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0045ad98
mov eax, dword [ebp - 0x18]
call fcn.00404de0
push eax
mov eax, dword [ebx + 8]
call fcn.00404de0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x45b91e
call fcn.0040d96c
xor edx, edx
push ebp
push 0x45b997
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x45b95c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x45b952
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b99e
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x45b9d0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x45b9fc
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404de0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45ba21
call fcn.0040d96c
xor eax, eax
push ebp
push 0x45ba58
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x45ba41
call fcn.0040d96c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba5f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x45c348
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x45c3d8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x45c3d8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x45c38b
test edx, 3
jne 0x45c37a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x45c385
jmp 0x45c38b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x45c38b
cmp dword [ecx - 8], 1
je 0x45c395
mov edx, ebx
or edx, 3
call fcn.00405068
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x45c3a7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040491c

Function at 0x469904
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47b2e0], 0x8088405
inc edx
mov dword [ebx + 0x47b2e0], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4073a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
jmp dword [sym.imp.MSVBVM60.DLL___vbaFPException]
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401ba6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xd0
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401348
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
xor eax, eax
test eax, eax
je 0x4073fe
mov dword [ebp - 4], 3
call sub.MSVBVM60.DLL___vbaEnd
mov dword [ebp - 4], 5
xor eax, eax
test eax, eax
je 0x407417
mov dword [ebp - 4], 6
call sub.MSVBVM60.DLL___vbaEnd
mov dword [ebp - 4], 8
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 9
fld qword [0x4013f8]
fadd qword [0x4013f0]
fnstsw ax
test al, 0xd
jne 0x4075d5
call sub.MSVBVM60.DLL___vbaFpR8
fcomp qword [0x4013f8]
fnstsw ax
sahf
jne 0x40745e
mov dword [ebp - 4], 0xa
call sub.MSVBVM60.DLL___vbaEnd
mov dword [ebp - 4], 0xc
xor eax, eax
test eax, eax
je 0x407477
mov dword [ebp - 4], 0xd
call sub.MSVBVM60.DLL___vbaEnd
mov dword [ebp - 4], 0xf
xor eax, eax
test eax, eax
je 0x407490
mov dword [ebp - 4], 0x10
call sub.MSVBVM60.DLL___vbaEnd
mov dword [ebp - 4], 0x12
xor eax, eax
test eax, eax
je 0x4074a9
mov dword [ebp - 4], 0x13
call sub.MSVBVM60.DLL___vbaEnd
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xdc], 3
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
call sub.MSVBVM60.DLL___vbaVarAdd
push eax
call sub.MSVBVM60.DLL___vbaI4Var
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0xcc]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x16
or word [ebp - 0x9c], 0xffff
mov dword [ebp - 4], 0x17
mov eax, dword [ebp - 0xa0]
imul eax, eax, 8
jo 0x4075da
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0x18
and word [ebp - 0x9c], 0
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0xa0]
xor eax, 0x356d53
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0x1a
and word [ebp - 0x9c], 0
mov dword [ebp - 4], 0x1b
mov eax, dword [ebp - 0x30]
add eax, 0x548a8e
jo 0x4075da
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0x1c
or word [ebp - 0x9c], 0xffff
mov dword [ebp - 4], 0x1d
fld qword [0x4013e8]
call sub.MSVBVM60.DLL___vbaFpI4
and eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0x1e
call fcn.00406de0
wait
push 0x4075c6
jmp 0x4075aa
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0xa4]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
jmp 0x401bac
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x40293c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40296b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c2c
jmp 0x402989
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402864
mov edi, eax
test ebx, ebx
je 0x402989
cmp dword [esi], 0
je 0x402989
dec ebx
jmp 0x402972
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b3c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x459040], 0x8088405
inc edx
mov dword [0x459040], edx
mul edx
mov eax, edx
ret

Function at 0x402ca8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d20
xor eax, eax
push ebp
push 0x402d19
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 0x402d5c
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 0x402d20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403af8
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.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x459045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ac0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc