joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062b2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, str..
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x15c], eax
mov eax, ebx
mov dword [ebp - 0x158], ebx
movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4062e9
sub eax, ecx
mov ecx, eax
lea eax, [ebp - 0xc]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4062fa
sub eax, esi
lea esi, [eax + ecx + 2]
push esi
call fcn.0040a769
mov edi, eax
mov dword [esp], 0x140
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x164], edi
call fcn.0040b7d0
and dword [ebp - 0x154], 0
add esp, 0xc
test edi, edi
je 0x4064c1
lea eax, [ebp - 0xc]
push eax
push ebx
mov ebx, 0x419efc
push ebx
push esi
push edi
call fcn.0040b337
add esp, 0x14
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp eax, 0xffffffff
je 0x4064b5
test byte [ebp - 0x150], 0x10
lea eax, [ebp - 0x124]
je 0x406421
push 0x419e74
push eax
call fcn.0040b57b
pop ecx
pop ecx
test eax, eax
je 0x406485
lea eax, [ebp - 0x124]
push 0x41a5f8
push eax
call fcn.0040b57b
pop ecx
pop ecx
test eax, eax
je 0x406485
mov eax, dword [ebp - 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4063ba
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x124]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4063ce
sub eax, esi
lea esi, [eax + ecx + 2]
push esi
call fcn.0040a769
mov edi, eax
pop ecx
test edi, edi
je 0x406485
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x158]
push ebx
push esi
push edi
call fcn.0040b337
add esp, 0x14
push edi
push dword [ebp - 0x15c]
call fcn.004062b2
push edi
mov dword [ebp - 0x154], eax
call fcn.0040a6f4
add esp, 0xc
jmp 0x406485
push eax
push dword [ebp - 0x15c]
call fcn.0040b57b
pop ecx
pop ecx
test eax, eax
jne 0x406485
mov eax, dword [ebp - 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40643c
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x15c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406450
sub eax, esi
lea esi, [eax + ecx + 2]
push esi
call fcn.0040a769
pop ecx
mov dword [ebp - 0x154], eax
test eax, eax
je 0x406485
push dword [ebp - 0x15c]
push dword [ebp - 0x158]
push ebx
push esi
push eax
call fcn.0040b337
add esp, 0x14
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4064a9
cmp dword [ebp - 0x154], 0
je 0x40636e
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x164]
call fcn.0040a6f4
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x154]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6e5
leave
ret
Function at 0x4064d6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40654c
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040a769
mov edi, eax
pop ecx
cmp edi, ebx
je 0x406542
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp - 8]
mov byte [edi + esi], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406539
cmp esi, dword [ebp - 4]
je 0x406542
push edi
call fcn.0040a6f4
pop ecx
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x406552
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4065b8
mov eax, dword [ebp + 0xc]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40657e
push edi
sub eax, esi
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, 1
jne 0x4065ae
xor eax, eax
cmp edi, dword [ebp - 8]
sete al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x407d67
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
or dword [ebp - 0xc], 0xffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
xor esi, esi
mov dword [ebp - 4], esi
call ebx
and dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
jne 0x407e2f
cmp esi, 0x64
jb 0x407d97
xor esi, esi
cmp dword [edi + esi*4 + 0x4c], 0
je 0x407dee
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + esi*4 + 0x68c]
cmp eax, 0xc3500
jae 0x407dee
push esi
mov eax, edi
call fcn.00407a54
pop ecx
test eax, eax
je 0x407dee
push dword [edi + esi*4 + 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x800
jl 0x407dd8
cmp dword [ebp - 0xc], 0xffffffff
jne 0x407dee
mov dword [ebp - 0xc], esi
jmp 0x407dee
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
test eax, eax
je 0x407dee
mov dword [eax], esi
lea eax, [esi + 1]
mov dword [edi + 0x48], eax
inc dword [ebp - 8]
inc esi
cmp dword [ebp - 8], 0x64
jb 0x407d86
cmp dword [ebp - 4], 0
jne 0x407e2f
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x407e1b
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
test esi, esi
je 0x407e15
mov dword [esi], eax
inc eax
mov dword [edi + 0x48], eax
jmp 0x407e38
push 0
push str.err098
push str.gbot_v3
call fcn.004057a9
add esp, 0xc
cmp dword [ebp - 4], 1
jne 0x407e55
mov esi, dword [ebp + 8]
call ebx
mov ecx, dword [esi]
sub eax, dword [edi + ecx*4 + 0x68c]
mov ecx, 0x1388
cmp eax, ecx
jae 0x407e55
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x407ff0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x4081ac
test esi, esi
je 0x4081ac
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4081ac
push ebx
mov ebx, dword [esp + 0x20]
push 2
mov eax, ebx
call fcn.00407f70
add esp, 4
cmp dword [ebp], eax
jge 0x408036
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
xor ebp, ebp
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ecx
lea eax, [ebp + 0x13]
mov dword [esp + 0x14], ebp
js 0x408118
cmp ebp, ebx
jne 0x40808e
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x408100
mov ebp, eax
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_HTTP_1.1]
mov byte [esi], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_HTTP_1.1]
shl ecx, 6
mov byte [esi + 1], dl
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_HTTP_1.1]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_HTTP_1.1]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
sub ebp, 1
jne 0x408094
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc ebp
cmp ebp, ebx
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jle 0x408075
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x20]
sub ecx, eax
je 0x408195
lea ebp, [ecx + 1]
test ebp, ebp
je 0x408195
xor eax, eax
test ecx, ecx
jle 0x408134
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x408142
movzx edx, byte [edi]
or eax, edx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x40814f
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x408176
mov ecx, ebp
jmp 0x408160
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_HTTP_1.1]
mov byte [esi], dl
inc esi
shl eax, 6
sub ecx, 1
jne 0x408160
add dword [esp + 0x10], ebp
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x408191
push edi
push 0x3d
push esi
call fcn.0040b7d0
add esp, 0xc
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
pop ebx
pop edi
pop esi
mov dword [eax], ecx
mov eax, 1
pop ebp
add esp, 0xc
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x408ca0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x38
mov ax, word [0x41a890]
mov cl, byte [0x41a892]
push ebp
mov word [esp + 0xc], ax
xor eax, eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
mov edx, 0x3a
xor edi, edi
push ebx
mov byte [esp + 0x1e], cl
mov word [esp + 0x18], dx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 6
call fcn.0040bcf0
mov esi, eax
add esp, 8
cmp esi, edi
je 0x408d4e
mov ebp, esi
sub ebp, ebx
lea ecx, [ebp + 1]
push ecx
call fcn.0040a769
mov edi, eax
push ebp
mov edx, edi
sub edx, ebx
push ebx
push edi
mov byte [edx + esi], 0
call fcn.0040b850
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
inc esi
push esi
push edi
jmp 0x408d5e
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x408db5
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x408db5
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x408db5
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408dc4
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, ebx
je 0x408dd5
test edi, edi
je 0x408dd5
push edi
call fcn.0040a6f4
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x38
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ebp
lea ecx, [edi + eax]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
cmp esi, ebp
je 0x408f3b
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jle 0x408f3d
add edi, esi
jmp 0x408f3d
mov edi, esi
cmp edi, ebp
jge 0x408f5b
cmp ebx, 0x80
jge 0x408f5b
mov eax, dword [esp + 0x1c]
cmp eax, 0x2745
je 0x408f75
cmp eax, 0x2746
jne 0x408f00
mov eax, dword [esp + 0x1c]
cmp eax, 0x2745
je 0x408f75
cmp ebx, 0x80
je 0x408f75
cmp eax, 0x2746
jne 0x408f7d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x409100
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebx, eax
xor ebp, ebp
xor esi, esi
call fcn.004091f0
cmp eax, 0x64
jl 0x409123
cmp eax, 0xc8
jl 0x4091ac
cmp eax, 0xcc
je 0x4091ac
cmp eax, 0x130
je 0x4091ac
cmp eax, 0xcd
je 0x4091ac
cmp ebx, 4
jbe 0x409179
lea ecx, [ebx - 4]
mov eax, 4
mov edx, 0xa0d0a0d
jmp 0x409154
mov edi, dword [esp + 0x14]
test esi, esi
jne 0x4091df
cmp dword [edi + eax - 4], edx
jne 0x409169
mov ebp, eax
mov esi, 1
inc eax
lea edi, [eax - 4]
cmp edi, ecx
jbe 0x409150
test esi, esi
jne 0x4091df
mov edi, dword [esp + 0x14]
cmp ebx, 2
jbe 0x4091df
add ebx, 0xfffffffe
mov eax, 2
test esi, esi
jne 0x4091df
mov ecx, 0xa0a
cmp cx, word [edi + eax - 2]
jne 0x40919d
mov ebp, eax
mov esi, 1
inc eax
lea edx, [eax - 2]
cmp edx, ebx
jbe 0x409186
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
cmp ebx, 2
jbe 0x4091df
lea ecx, [ebx - 2]
mov eax, 4
lea esp, [esp]
test esi, esi
jne 0x4091df
mov edx, 0xa0d
cmp dx, word [eax + edi - 4]
jne 0x4091d7
mov ebp, eax
mov esi, 1
inc eax
lea edx, [eax - 4]
cmp edx, ecx
jbe 0x4091c0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x40a1fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.0040a37e
call fcn.0040a19f
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa]
push eax
call fcn.0040b850
add esp, 0x10
xor eax, eax
mov cl, byte [eax + 0x4182dc]
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 0xa
jl 0x40a226
push esi
push 0x20
push 0
mov esi, 0x41d060
push esi
call fcn.0040b7d0
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x3c
mov dword [0x41d080], 1
pop esi
leave
ret

Function at 0x40a3d6
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
push 0x200
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40a462
call esi
cmp eax, 2
jne 0x40a454
lea eax, [ebp - 0x208]
push str.Device_
push eax
call fcn.0040bfd0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0040bfe0
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x40a4e2
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x40a4ee
lea eax, [ebp - 0x408]
push str.._
push eax
call fcn.0040bfd0
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
call fcn.0040bfe0
add esp, 0x10
push 0xffffffffffffffff
push ebx
push 3
push ebx
push 1
push ebx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40a4be
push ebx
push edi
push dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
push dword [ebp + 0x10]
push 4
push ecx
push 0x170002
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40a4c3
call esi
mov dword [ebp - 8], eax
cmp byte [ebp - 1], bl
je 0x40a4eb
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x40a4eb
call esi
jmp 0x40a4ee
mov byte [ebp - 1], 1
jmp 0x40a457
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a4f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
call edi
cmp eax, esi
jne 0x40a60b
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40a600
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
lea eax, [ebx + 0x208]
push eax
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ServiceName
push dword [ebp - 0xc]
mov edi, 0x104
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x40a56e
cmp dword [ebp - 8], 1
je 0x40a581
lea eax, [ebx + 0x208]
push str.Unknown
push eax
call fcn.0040bfd0
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push str.Description
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x40a5a3
cmp dword [ebp - 8], 1
je 0x40a5b6
lea eax, [ebx + 0x208]
push str.Unknown
push eax
call fcn.0040bfd0
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
lea edi, [ebx + 0x104]
push edi
lea eax, [ebp - 8]
push eax
push 0
push str.Title
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x40a5de
cmp dword [ebp - 8], 1
je 0x40a5f7
push dword [ebp + 0xc]
call fcn.0040b7a7
push ebx
push eax
push str.__d___s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a655
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40a6be
push edi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x40a6bb
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0040a610
pop ecx
pop ecx
jmp 0x40a6bd
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a6e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c050]
jne 0x40a6ef
repz ret
jmp fcn.0040c3fc
Function at 0x4137fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d65a
and dword [ebp - 4], 0
cmp dword [0x41da20], 0
mov ebx, eax
jne 0x4138ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41395e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41395e
push eax
call fcn.0040d5e8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41da20], eax
call esi
push eax
call fcn.0040d5e8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41da24], eax
call esi
push eax
call fcn.0040d5e8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41da28], eax
call esi
push eax
call fcn.0040d5e8
pop ecx
mov dword [0x41da30], eax
test eax, eax
je 0x4138ad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d5e8
pop ecx
mov dword [0x41da2c], eax
mov eax, dword [0x41da2c]
cmp eax, ebx
je 0x413905
cmp dword [0x41da30], ebx
je 0x413905
push eax
call fcn.0040d663
push dword [0x41da30]
mov esi, eax
call fcn.0040d663
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413905
test edi, edi
je 0x413905
call esi
test eax, eax
je 0x4138fc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4138fc
test byte [ebp - 0xc], 1
jne 0x413905
or dword [ebp + 0x10], 0x200000
jmp 0x41393e
mov eax, dword [0x41da24]
cmp eax, ebx
je 0x41393e
push eax
call fcn.0040d663
pop ecx
test eax, eax
je 0x41393e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41393e
mov eax, dword [0x41da28]
cmp eax, ebx
je 0x41393e
push eax
call fcn.0040d663
pop ecx
test eax, eax
je 0x41393e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41da20]
call fcn.0040d663
pop ecx
test eax, eax
je 0x41395e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413960
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5470b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf0000]
push edi
jmp 0x5470ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5470d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5470c0
mov eax, 1
add ebx, ebx
jne 0x5470e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5470f4
jne 0x547113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547113
dec eax
add ebx, ebx
jne 0x547100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5470d8
add ebx, ebx
jne 0x54710f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x547165
xor ecx, ecx
sub eax, 3
jb 0x54712b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54719a
sar eax, 1
mov ebp, eax
jmp 0x547136
add ebx, ebx
jne 0x547136
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547104
inc ecx
add ebx, ebx
jne 0x547144
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547104
add ebx, ebx
jne 0x547151
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x547146
jne 0x547162
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x547146
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x547184
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x547176
jmp 0x5470c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x547184
add edi, ecx
jmp 0x5470c6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5471a2
cmp byte [edi], 0x11
jne 0x5471a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5471a7
lea edi, [esi + 0x140000]
mov eax, dword [edi]
or eax, eax
je 0x54721f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b5be0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b5d5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5471d4
mov ecx, edi
jns 0x547203
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b5d60]
or eax, eax
je 0x547219
mov dword [ebx], eax
add ebx, 4
jmp 0x5471f1
call dword [esi + 0x1b5d70]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x547250
cmp al, 0xef
ja 0x547243
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x547225
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x547232
mov ebp, dword [esi + 0x1b5d64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x547284
sub esp, 0xffffff80
jmp 0x42800a