joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
mov esi, ebx
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.00406b00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [esi + 0x1c], eax
test eax, eax
sete al
test al, al
jne 0x429c9c
xor eax, eax
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
cmp dword [ebp - 8], 1
jne 0x429ca9
mov al, 1
jmp 0x429cc9
cmp dword [ebp - 8], 2
jne 0x429cb3
mov al, 2
jmp 0x429cc9
cmp dword [ebp - 8], 4
jne 0x429cbd
mov al, 3
jmp 0x429cc9
cmp dword [ebp - 8], 3
jne 0x429cc7
mov al, 4
jmp 0x429cc9
xor eax, eax
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov eax, edx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x429ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
xor ecx, ecx
mov edx, 8
call fcn.00404930
mov ebp, ebx
lea eax, [esi + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, edi
call fcn.00406b00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp + 0x1c], eax
test eax, eax
sete al
mov edx, eax
cmp dword [esp], 1
jne 0x429d2d
mov al, 1
jmp 0x429d4d
cmp dword [esp], 2
jne 0x429d37
mov al, 2
jmp 0x429d4d
cmp dword [esp], 4
jne 0x429d41
mov al, 3
jmp 0x429d4d
cmp dword [esp], 3
jne 0x429d4b
mov al, 4
jmp 0x429d4d
xor eax, eax
mov byte [esi], al
mov eax, edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42aec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov esi, eax
mov byte [esp], 0
mov eax, dword [esi + 0x40034]
cmp eax, 0x10000
jb 0x42aef7
and ax, 0x3ff
xor ax, 0xdc00
mov word [ebp], ax
xor eax, eax
mov dword [esi + 0x40034], eax
mov byte [esp], 1
jmp 0x42b027
lea edx, [esp + 1]
mov ecx, 1
mov eax, esi
call fcn.0042c3f0
test al, al
je 0x42b027
cmp byte [esp + 1], 0x80
jae 0x42af28
movzx eax, byte [esp + 1]
mov word [ebp], ax
mov byte [esp], 1
jmp 0x42b027
mov edi, 1
movzx eax, byte [esp + 1]
mov dword [esi + 0x40034], eax
movzx eax, byte [esp + 1]
mov byte [esp + 2], al
mov bl, 0x40
movzx eax, byte [esp + 1]
and al, 0xc0
cmp al, 0xc0
jne 0x42b027
jmp 0x42afc9
lea edx, [esp + 1]
mov ecx, 1
mov eax, esi
call fcn.0042c3f0
test al, al
jne 0x42af79
mov edx, 0x42b040
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x42b027
movzx eax, byte [esp + 1]
and al, 0xc0
cmp al, 0x80
je 0x42af95
mov edx, 0x42b040
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x42b027
movzx eax, byte [esp + 1]
and eax, 0x3f
mov edx, dword [esi + 0x40034]
shl edx, 6
or eax, edx
mov dword [esi + 0x40034], eax
inc edi
cmp edi, 6
jle 0x42afc2
mov edx, 0x42b040
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x42b027
movzx eax, bl
shr eax, 1
mov ebx, eax
test byte [esp + 2], bl
jne 0x42af54
mov eax, dword [edi*4 + 0x438b5c]
and dword [esi + 0x40034], eax
cmp edi, 1
jle 0x42affe
mov eax, dword [edi*4 + 0x438b58]
cmp eax, dword [esi + 0x40034]
jb 0x42affe
mov edx, 0x42b040
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x42b027
mov eax, dword [esi + 0x40034]
cmp eax, 0x10000
jb 0x42b018
shr eax, 0xa
add ax, 0xd7c0
mov word [ebp], ax
jmp 0x42b023
movzx eax, word [esi + 0x40034]
mov word [ebp], ax
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42e350
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42e480
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00421500
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00406b00
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42e46a
mov eax, dword [ebp - 0x14]
call fcn.004043c4
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x42e463
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00406b00
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42e44d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x42e494
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42e44d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
shr eax, 0x10
and ax, 0xffff
mov edx, dword [ebp - 8]
mov word [edx], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 8]
and ax, 0xffff
mov edx, dword [ebp - 0xc]
mov word [edx], ax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
shr eax, 0x10
and ax, 0xffff
mov edx, dword [ebp + 0xc]
mov word [edx], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0xc]
and ax, 0xffff
mov edx, dword [ebp + 8]
mov word [edx], ax
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e46a
mov eax, dword [ebp - 0x1c]
call fcn.004043e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e487
lea eax, [ebp - 0x28]
call fcn.00406280
ret

Function at 0x42ee80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.KERNEL32.DLL_GetVersionExW_1
test eax, eax
je 0x42eeb5
cmp dword [ebp - 0x108], 2
jne 0x42eeb5
cmp dword [ebp - 0x114], 6
jae 0x42eeb9
xor eax, eax
jmp 0x42eebb
mov al, 1
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x42eed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404930
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], pe_nt_image_headers32
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
call fcn.00406b00
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
call fcn.00406b00
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
call fcn.00406b00
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
call fcn.00406b00
mov dword [ebp - 0x40], eax
inc dword [0x438be0]
xor eax, eax
push ebp
push 0x42ef6f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ef76
dec dword [0x438be0]
ret
Function at 0x42f780
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42f8e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.0040665c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x42f7c7
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x42f800
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp word [eax + edx*2 - 2], 0x40
jne 0x42f7f8
lea eax, [ebp - 0x18]
call fcn.004067e0
mov edx, dword [ebp - 0x1c]
mov word [eax + edx*2 - 2], 0x2e
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x42f7d8
mov eax, dword [ebp - 0x18]
push eax
push 0xa
mov ecx, dword [0x43bc4c]
mov dl, 1
mov eax, dword [0x41fe9c]
call fcn.00422270
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42f8c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [0x43e128]
call fcn.00406cd8
mov eax, dword [ebp - 0x10]
call fcn.00421610
test al, al
je 0x42f8a1
cmp byte [ebp - 5], 0
jne 0x42f869
mov eax, dword [ebp - 0x10]
call fcn.00421860
cmp edx, 0
jne 0x42f860
cmp eax, 0
jbe 0x42f869
jmp 0x42f862
jle 0x42f869
call fcn.00405a7c
jmp 0x42f8c9
mov eax, dword [ebp - 0x10]
call fcn.004216c0
test al, al
jne 0x42f8a1
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0042f6b0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00421690
test al, al
je 0x42f8a1
push 4
push 0
mov eax, dword [ebp - 0x14]
call fcn.00406b00
push eax
call sub.KERNEL32.DLL_MoveFileExW
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0042f640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f8c9
mov eax, dword [ebp - 0xc]
call fcn.00404c7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f8eb
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004062e0
ret
Function at 0x4313d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
mov byte [ebp - 0x11d], al
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov edx, 0x11c
call fcn.00404930
mov dword [ebp - 0x11c], 0x11c
lea eax, [ebp - 0x11c]
push eax
call sub.KERNEL32.DLL_GetVersionExW_1
test eax, eax
je 0x431482
cmp dword [ebp - 0x118], 6
jb 0x431426
cmp dword [ebp - 0x114], 1
jb 0x431426
mov byte [ebp - 0x11e], 1
jmp 0x4314a2
cmp dword [ebp - 0x118], 6
jb 0x43143f
cmp word [ebp - 8], 2
jb 0x43143f
mov byte [ebp - 0x11e], 1
jmp 0x4314a2
cmp dword [ebp - 0x118], 6
jb 0x431451
mov byte [ebp - 0x11e], 1
jmp 0x4314a2
cmp dword [ebp - 0x118], 5
jb 0x431473
cmp dword [ebp - 0x114], 1
jb 0x431473
cmp word [ebp - 8], 2
jb 0x431473
mov byte [ebp - 0x11e], 1
jmp 0x4314a2
push ebp
call fcn.00430ee0
pop ecx
mov byte [ebp - 0x11e], al
jmp 0x4314a2
mov eax, dword [0x438c88]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4314b8
call fcn.00425c70
push ebp
call fcn.00430ee0
pop ecx
mov byte [ebp - 0x11e], al
mov al, byte [ebp - 0x11e]
mov esp, ebp
pop ebp
ret
Function at 0x401029
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401a4f
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 7
push esi
push str..PhysicalDrive0
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x401b45
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
lea esi, [ebp - 0x41c]
mov dword [ebp - 4], 0x400
mov ebx, dword [ebp - 4]
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push ebx
push esi
lea eax, [ebp - 0x1c]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
je 0x401af3
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], esi
cmp eax, ebx
jbe 0x401ad4
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
jmp 0x401af3
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x401af3
lea edi, [eax + esi]
push edi
call fcn.00402c90
push eax
push edi
push dword [ebp + 8]
call fcn.004018cc
add esp, 0x10
xor edi, edi
lea eax, [ebp - 0x41c]
cmp esi, eax
je 0x401b04
push esi
call fcn.00402c76
pop ecx
cmp dword [ebp - 8], edi
jne 0x401b3a
cmp dword [ebp - 0xc], edi
jne 0x401b27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401b3a
cmp dword [ebp - 4], ebx
ja 0x401b27
or bx, 0xfff
inc ebx
mov dword [ebp - 4], ebx
push dword [ebp - 4]
call fcn.00402c68
mov esi, eax
pop ecx
cmp esi, edi
jne 0x401a98
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x401f27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00402c10
lea eax, [ebp - 0x10]
push eax
call fcn.00401a1d
add esp, 0x10
xor eax, eax
movzx ecx, byte [ebp + eax - 0x10]
lea esi, [ecx + esi*2]
xor esi, dword [ebp - 0x10]
inc eax
cmp eax, 0x10
jb 0x401f4a
mov eax, esi
pop esi
leave
ret
Function at 0x40167f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41ec15
call fcn.00406a08
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
movzx edi, word [ebp + 8]
mov dword [ebp - 0x18], ebx
call fcn.0041c8a6
mov esi, dword [eax + 0xc]
test esi, esi
je 0x401819
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401819
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401819
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp dword [esi + 0x10], 3
lea edi, [esi + 0x34]
je 0x4016df
lea edi, [esi + 0x28]
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4016ea
movzx eax, word [esi + 0xe]
mov ecx, eax
test ecx, ecx
mov dword [ebp + 8], eax
lea eax, [edi + ecx*4]
mov dword [ebp - 0x10], eax
jne 0x4016fb
xor edi, edi
push eax
push esi
mov ecx, ebx
call fcn.004015fc
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x401814
cmp dword [ebp + 0xc], eax
je 0x401814
test edi, edi
je 0x401814
push 0x20
call fcn.0041174e
pop ecx
mov dword [ebp + 0xc], eax
and dword [ebp - 4], 0
test eax, eax
je 0x40173c
mov ecx, eax
call fcn.00401271
jmp 0x40173e
xor eax, eax
push dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
push esi
mov ecx, eax
mov dword [ebx + 0x1c], eax
call fcn.004015fc
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x401814
push dword [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call esi
mov edi, eax
mov eax, dword [ebx + 0x1c]
push dword [eax + 4]
call esi
push edi
mov ecx, ebx
mov esi, eax
call fcn.00401051
push esi
mov edx, eax
call fcn.00401051
xor ecx, ecx
cmp dword [ebp + 8], ecx
mov edi, eax
mov dword [ebp - 0x10], ecx
jle 0x401801
sub eax, edx
lea esi, [edx + 1]
mov dword [ebp + 0xc], eax
movzx ebx, byte [esi + 1]
xor edx, edx
mov dh, byte [esi - 1]
mov dl, byte [esi]
shl edx, 8
or edx, ebx
cmp edx, dword [ebp + 0x10]
jne 0x4017b6
mov byte [esi + 1], 0
mov byte [esi], 0
mov byte [esi - 1], 0
mov edx, ecx
shl edx, 2
xor ebx, ebx
lea ecx, [edx + edi]
mov bh, byte [ecx]
lea edx, [edx + edi + 2]
mov bl, byte [eax + esi]
movzx eax, byte [edx]
shl ebx, 8
or ebx, eax
cmp ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
jne 0x4017e5
mov byte [edx], 0xff
mov byte [eax + esi], 0xff
mov byte [ecx], 0xff
jmp 0x4017ef
mov byte [edx], 0
mov byte [eax + esi], 0
mov byte [ecx], 0
mov ecx, dword [ebp - 0x10]
inc ecx
add esi, 4
cmp ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jl 0x401796
mov ebx, dword [ebp - 0x18]
push dword [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
mov eax, dword [ebx + 0x1c]
push dword [eax + 4]
call esi
mov eax, dword [ebp - 0x14]
jmp 0x40181c
push 0xb
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x401fb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401fce
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401fe0
xor eax, eax
jmp 0x402012
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402004
cmp esi, eax
jae 0x401fdc
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ff6
cmp esi, eax
jae 0x401fdc
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40364b
Capabilities:
Check for time delay via gettickcount
Check mutex on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 8], eax
call esi
sub eax, dword [esp + 8]
mov ebx, 0x2710
cmp eax, ebx
jae 0x4036b0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push str.RS_UPNP_DISCOVER_COMPLETE
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ebp, eax
test ebp, ebp
jne 0x4036ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4036ab
push ebp
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, dword [esp + 0x10]
cmp eax, ebx
jb 0x403671
jmp 0x4036ae
push ebp
call edi
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x403890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
xor esi, esi
push edi
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x140
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], str.open
mov dword [ebp - 0x38], 0x4212b0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call fcn.0041c8a6
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
mov eax, str.ServUAdmin.exe
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x421290
mov dword [ebp - 8], 0x421280
mov dword [ebp - 4], esi
lea edi, [ebp - 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x403914
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
mov eax, dword [edi]
cmp eax, esi
jne 0x4038f8
pop edi
pop esi
leave
ret
Function at 0x40401e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x41ee47
call fcn.00406a08
sub esp, 0x128
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041177e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [esi + 0xac]
lea eax, [ebp - 0x14]
push str._k___s_
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00403f68
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x140
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], str.open
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.0041c8a6
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x40], 0x421290
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4040c2
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40415a
cmp dword [ebp - 0x10], ebx
jne 0x40415a
push 0x120
call fcn.0041174e
pop ecx
mov ecx, eax
mov dword [ebp - 0x54], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x4040ff
push ebx
call fcn.00403311
jmp 0x404101
xor eax, eax
push dword [esi + 0x1c]
lea ecx, [ebp - 0x134]
push 1
push 0x85
push 0x81
push eax
push dword [esi + 0x40]
mov byte [ebp - 4], bl
call fcn.00402856
push 0x69
push 0x6a
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.00402a5d
lea ecx, [ebp - 0x134]
call fcn.00416145
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x134]
mov dword [esi + 0xa0], eax
mov byte [ebp - 4], bl
call fcn.004028f7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi - 0x10]
call fcn.004010fc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407188
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004073d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407223
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42ca2c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407223
cmp eax, 1
je 0x407244
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407223
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4071f0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40721f
xor eax, eax
inc eax
jmp 0x407263
cmp edi, eax
jae 0x407227
xor eax, eax
jmp 0x407263
cmp eax, esi
jae 0x40722e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42ca2c]
jmp 0x407247
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret