joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ddd4
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov ebx, eax
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 8], esi
inc esi
je 0x45ded3
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0xffff
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_setsockopt
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 0x20
push 0xffff
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebx + 0x18]
call fcn.00404974
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 8], eax
mov dword [esp], 0x10000
push 4
lea eax, [esp + 4]
push eax
push 0x1002
push 0xffff
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_setsockopt
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x10
call fcn.004030bc
mov word [esp + 4], 2
mov eax, dword [ebx + 0x18]
call fcn.00404974
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 8], eax
mov ax, word [ebx + 0x14]
push eax
call sub.wsock32.dll_htons
mov word [esp + 6], ax
push 0x10
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x45debf
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_closesocket
mov dword [ebx + 8], 0xffffffff
jmp 0x45ded3
push 1
push 0x401
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_WSAAsyncSelect
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x45dfc8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov word [ebx + 0x24], 2
push 0x10
lea eax, [ebx + 0x24]
push eax
push 0
push ecx
push edx
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_sendto
mov esi, eax
cmp esi, 0xffffffff
jne 0x45dff3
mov eax, ebx
call fcn.0045e0e0
mov eax, esi
pop esi
pop ebx
ret
Function at 0x45f3a4
Capabilities:
Enumerate disk volumes

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff80
mov edi, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_FindFirstVolumeA
mov esi, eax
cmp esi, 0xffffffff
je 0x45f426
mov eax, dword [edi + 0x30]
call fcn.0041a554
mov edx, dword [0x45f08c]
call fcn.00403874
mov ebx, eax
lea eax, [ebx + 0xc]
mov edx, esp
mov ecx, 0x80
call fcn.00404708
jmp 0x45f40c
mov eax, dword [edi + 0x30]
call fcn.0041a554
mov edx, dword [0x45f08c]
call fcn.00403874
mov ebx, eax
lea eax, [ebx + 0xc]
mov edx, esp
mov ecx, 0x80
call fcn.00404708
push 0x104
lea eax, [esp + 4]
push eax
push esi
call sub.kernel32.dll_FindNextVolumeA
test eax, eax
jne 0x45f3e8
push esi
call sub.kernel32.dll_FindVolumeClose
add esp, 0x80
pop edi
pop esi
pop ebx
ret

Function at 0x45f5f8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45f6e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 4]
mov edx, 0x45f6fc
call fcn.00404530
mov ebx, 2
lea eax, [ebp - 4]
call fcn.004049cc
mov edx, ebx
add dl, 0x41
mov byte [eax], dl
mov eax, dword [ebp - 4]
call fcn.00404974
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x45f6b5
push 0xff
lea eax, [ebp - 0x107]
push eax
mov eax, dword [ebp - 4]
call fcn.00404974
push eax
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
jbe 0x45f6b5
push dword [ebp - 4]
push 0x45f708
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x107]
mov ecx, 0xff
call fcn.00404708
push dword [ebp - 0x10c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404834
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x1a
jne 0x45f63a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f6ec
lea eax, [ebp - 0x10c]
call fcn.00404498
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044bc
ret

Function at 0x45f7c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404964
xor eax, eax
push ebp
push 0x45f856
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040e80c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 4]
call fcn.00404530
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x40
call fcn.004030bc
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404974
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x4c]
call fcn.0040acac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f85d
lea eax, [ebp - 0x50]
call fcn.00404498
lea eax, [ebp - 4]
call fcn.00404498
ret
Function at 0x45f864
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x208], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x45f9ff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x204]
xor ecx, ecx
mov edx, 0x200
call fcn.004030bc
lea eax, [ebx + 0x64]
xor ecx, ecx
mov edx, 0x164
call fcn.004030bc
push 0
push 0
push 0x7200
push edi
call sub.kernel32.dll_SetFilePointer
lea esi, [ebp - 0x204]
push 0
lea eax, [ebp - 4]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push edi
call sub.kernel32.dll_ReadFile
xor eax, eax
push ebp
push 0x45f9d7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 4], 0
je 0x45f99e
cmp dword [esi + 8], 0
je 0x45f99e
mov eax, dword [esi]
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x3c], eax
lea edx, [ebp - 0x208]
lea eax, [esi + 0xc]
call fcn.0040acac
mov edx, dword [ebp - 0x208]
lea eax, [ebx + 0x40]
call fcn.004044ec
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x48], eax
lea edx, [ebp - 0x20c]
lea eax, [esi + 0x30]
call fcn.0040acac
mov edx, dword [ebp - 0x20c]
lea eax, [ebx + 0x50]
call fcn.004044ec
lea edx, [ebp - 0x210]
lea eax, [esi + 0x34]
call fcn.0040acac
mov edx, dword [ebp - 0x210]
lea eax, [ebx + 0x4c]
call fcn.004044ec
mov eax, dword [esi + 0x134]
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x60]
lea edx, [esi + 0x144]
mov ecx, 0x20
call fcn.00404708
lea edx, [ebx + 0x64]
mov eax, esi
mov ecx, 0x164
call fcn.00402c40
jmp 0x45f9cd
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
lea eax, [ebx + 0x40]
call fcn.00404498
xor eax, eax
mov dword [ebx + 0x48], eax
lea eax, [ebx + 0x50]
call fcn.00404498
lea eax, [ebx + 0x4c]
call fcn.00404498
lea eax, [ebx + 0x60]
call fcn.00404498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f9e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fa06
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.004044bc
ret
Function at 0x45fbbc
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x258], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45fd49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404498
push 0xff
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00404974
push eax
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
jbe 0x45fd1e
push 0x104
lea eax, [ebp - 0x214]
push eax
call sub.kernel32.dll_FindFirstVolumeA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x45fd1e
lea edx, [ebp - 8]
lea eax, [ebp - 0x214]
call fcn.0040acac
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00404774
mov ecx, eax
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.004049d4
push 0x40
lea eax, [ebp - 0x254]
push eax
mov eax, dword [ebp - 8]
call fcn.00404974
push eax
call sub.kernel32.dll_QueryDosDeviceA
lea edx, [ebp - 4]
lea eax, [ebp - 0x110]
call fcn.0040acac
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x254]
call fcn.0040acac
lea eax, [ebp - 0x258]
lea edx, [ebp - 0x254]
mov ecx, 0x40
call fcn.00404708
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 4]
call fcn.00409dd8
test eax, eax
jne 0x45fcfe
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0040e84c
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0xb
lea edx, [ebp - 0x264]
xor ecx, ecx
mov eax, 0x45fd60
call fcn.0040b19c
mov edx, dword [ebp - 0x25c]
mov eax, ebx
call fcn.004044ec
jmp 0x45fd18
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call sub.kernel32.dll_FindNextVolumeA_1
test eax, eax
jne 0x45fc36
push esi
call sub.kernel32.dll_FindVolumeClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fd50
lea eax, [ebp - 0x25c]
mov edx, 2
call fcn.004044bc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044bc
ret

Function at 0x4619b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp + 4]
mov ebx, dword [eax]
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
xor ecx, ecx
mov esi, dword [esp]
dec esi
test esi, esi
jl 0x461a16
inc esi
mov dword [esp + 8], esi
add ecx, 0x9e3779b9
mov esi, eax
shl esi, 4
add esi, dword [edx]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [edx + 4]
xor esi, edi
add ebx, esi
mov esi, ebx
shl esi, 4
add esi, dword [edx + 8]
lea edi, [ecx + ebx]
xor esi, edi
mov edi, ebx
shr edi, 5
add edi, dword [edx + 0xc]
xor esi, edi
add eax, esi
dec dword [esp + 8]
jne 0x4619d9
mov edx, dword [esp + 4]
mov dword [edx], ebx
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x462578
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4625eb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0xff]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0xff]
call fcn.0040acac
lea edx, [ebp - 0x104]
mov eax, dword [ebx]
call fcn.00460978
mov edx, dword [ebp - 0x104]
mov eax, ebx
call fcn.004044ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4625f2
lea eax, [ebp - 0x104]
call fcn.00404498
ret

Function at 0x4625f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46266b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0xff]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0xff]
call fcn.0040acac
lea edx, [ebp - 0x104]
mov eax, dword [ebx]
call fcn.00460978
mov edx, dword [ebp - 0x104]
mov eax, ebx
call fcn.004044ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462672
lea eax, [ebp - 0x104]
call fcn.00404498
ret

Function at 0x462678
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404964
xor eax, eax
push ebp
push 0x462751
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 8
test edi, edi
jne 0x4626c5
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
setne bl
jmp 0x4626c7
xor ebx, ebx
test edi, edi
jne 0x4626e9
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, 0x46276c
call fcn.004047c0
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dl, 1
call fcn.00461378
jmp 0x462733
test esi, esi
jne 0x462703
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404974
push eax
push edi
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x46271b
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x46271b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
test bl, bl
je 0x462733
test esi, esi
je 0x462729
push esi
call sub.advapi32.dll_CloseServiceHandle
test edi, edi
je 0x462733
push edi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462758
lea eax, [ebp - 0x28]
call fcn.00404498
lea eax, [ebp - 4]
call fcn.00404498
ret
Function at 0x462794
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404964
xor eax, eax
push ebp
push 0x4628df
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x4627e1
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
test esi, esi
setne byte [ebp - 9]
jmp 0x4627e5
mov byte [ebp - 9], 0
test esi, esi
jne 0x46280a
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 4]
mov edx, 0x4628fc
call fcn.004047c0
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov dl, 1
call fcn.00461378
jmp 0x4628c1
test edi, edi
jne 0x462824
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404974
push eax
push esi
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
je 0x4628a0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4628a0
lea eax, [ebp - 0x3c]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4628a0
call fcn.0040bdd0
fstp qword [ebp - 0x18]
wait
jmp 0x46289a
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_Sleep_1
call fcn.0040bdd0
fstp qword [ebp - 0x20]
wait
fld qword [ebp - 0x20]
fsub qword [ebp - 0x18]
fild dword [ebp - 8]
fdiv dword [0x462920]
fcompp
fnstsw ax
sahf
jb 0x4628a0
lea eax, [ebp - 0x3c]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4628a0
cmp ebx, dword [ebp - 0x28]
ja 0x4628a0
cmp dword [ebp - 0x38], 4
jne 0x46285c
cmp byte [ebp - 9], 0
je 0x4628ba
test edi, edi
je 0x4628b0
push edi
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
je 0x4628ba
push esi
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x38], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4628e6
lea eax, [ebp - 0x40]
call fcn.00404498
lea eax, [ebp - 4]
call fcn.00404498
ret

Function at 0x462924
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffbc
mov ebx, eax
mov dword [esp], 0x40
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040acac
add esp, 0x44
pop ebx
ret
Function at 0x46294c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404964
mov eax, dword [ebp - 8]
call fcn.00404964
xor eax, eax
push ebp
push 0x462ade
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4629b8
inc ebx
xor esi, esi
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00404774
inc eax
add dword [ebp - 0x1c], eax
inc esi
dec ebx
jne 0x46299b
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
call fcn.004029dc
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x43013c]
call fcn.0043023c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x462aaf
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x462a2b
inc ebx
xor esi, esi
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00404974
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_lstrcpyA
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
add dword [ebp - 0x14], eax
inc esi
dec ebx
jne 0x4629fb
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.00430318
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00430380
test al, al
jne 0x462a56
call fcn.00403efc
jmp 0x462ab6
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 7
push 0
mov eax, dword [ebp - 8]
call fcn.00404974
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x462a91
mov ecx, 0x462af4
mov dl, 1
mov eax, dword [0x409098]
call fcn.0040db24
call fcn.00403e50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462ab6
mov eax, dword [ebp - 0x18]
call fcn.004029fc
mov eax, dword [ebp - 0x10]
call fcn.004036c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462ae5
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004044bc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044bc
ret
Function at 0x462b04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404964
mov eax, dword [ebp - 8]
call fcn.00404964
xor eax, eax
push ebp
push 0x462cea
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x20019
mov dl, 1
mov eax, dword [0x43013c]
call fcn.00430280
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x462cc0
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00430318
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00430380
test al, al
jne 0x462b81
call fcn.00403efc
jmp 0x462cc7
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00430a0c
test al, al
jne 0x462b9a
call fcn.00403efc
jmp 0x462cc7
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404974
mov ebx, eax
push ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462bdc
mov ecx, 0x462d00
mov dl, 1
mov eax, dword [0x409098]
call fcn.0040db24
call fcn.00403e50
cmp dword [ebp - 0x10], 7
je 0x462bf8
mov ecx, 0x462d20
mov dl, 1
mov eax, dword [0x409098]
call fcn.0040db24
call fcn.00403e50
mov eax, dword [ebp - 0x14]
call fcn.004029dc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.004030bc
xor edx, edx
push ebp
push 0x462c9b
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x14], 1
jbe 0x462c85
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462c57
mov ecx, 0x462d38
mov dl, 1
mov eax, dword [0x409098]
call fcn.0040db24
call fcn.00403e50
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
mov ebx, dword [ebp - 0x18]
jmp 0x462c80
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00404690
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebx
call sub.kernel32.dll_lstrlenA_1
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x462c63
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462ca2
mov eax, dword [ebp - 0x18]
call fcn.004029fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462cf1
lea eax, [ebp - 0x1c]
call fcn.00404498
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044bc
ret

Function at 0x464340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x464378]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x464356
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x464365
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x464374
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x465784
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x47cf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4657aa
push 0
mov eax, dword [0x47cf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46c6b8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004030bc
ret

Function at 0x46cbe8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 0x1008], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46cca2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1004]
xor ecx, ecx
mov edx, 0x1000
call fcn.004030bc
mov dword [ebp - 4], 0x1000
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1004]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebx + 4]
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.00404708
mov dword [ebx + 8], 1
lea eax, [ebx + 0x24]
mov edx, 0x46ccb8
call fcn.004044ec
lea eax, [ebx + 0x28]
mov edx, 0x46ccc8
call fcn.004044ec
lea edx, [ebp - 0x1008]
mov eax, dword [0x47c5c0]
call fcn.0046cd8c
mov edx, dword [ebp - 0x1008]
lea eax, [ebx + 0x10]
call fcn.004044ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cca9
lea eax, [ebp - 0x1008]
call fcn.00404498
ret