joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fc2
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0xc], ebx
je 0x10020a0
push edi
call dword [0xa713e19c]
test al, al
je 0x10020a0
mov eax, dword [edi + 0x3c]
add eax, edi
cmp word [edi], 0x5a4d
jne 0x10020a0
cmp dword [eax], 0x4550
jne 0x10020a0
mov esi, dword [eax + 0x78]
add esi, edi
cmp dword [eax + 0x7c], ebx
je 0x10020a0
cmp dword [esi + 0x18], ebx
je 0x10020a0
cmp dword [esi + 0x14], ebx
je 0x10020a0
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 8]
add ebx, edi
mov edi, dword [esi + 0x20]
add edi, dword [ebp + 8]
push ebx
mov dword [ebp - 8], eax
call dword [0xa713e19c]
test al, al
je 0x10020a0
push edi
call dword [0xa713e19c]
test al, al
je 0x10020a0
push dword [ebp - 8]
call dword [0xa713e19c]
test al, al
je 0x10020a0
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x1002089
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call dword [0xa713e078]
test eax, eax
pop ecx
pop ecx
je 0x100208e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x1002065
mov eax, dword [ebp - 0xc]
jmp 0x10020a2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
jmp 0x10020a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10023b8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, dword [ebp + 8]
je 0x10023d2
mov cl, byte [ebp + 0x10]
xor byte [eax], cl
inc eax
inc cl
dec edx
jne 0x10023ca
mov eax, dword [ebp + 8]
pop ebp
ret 0xc
Function at 0x1004082
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0xa7140a64]
push ebx
push esi
push edi
mov edi, 0xa7140a60
sub edi, 0x12a60
lea eax, [ecx + ecx*2]
shl eax, 2
push 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
pop edx
je 0x10040ce
movzx esi, byte [edx - 0x58ec0da0]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor esi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor esi, ebx
inc edx
cmp edx, eax
mov dword [ebp - 4], esi
jb 0x10040af
cmp dword [ebp - 4], 0xd71bf652
je 0x1004106
cmp byte [0xa71456fb], 0
jne 0x10040f6
push 0x436e4dc9
push 0x576e4278
call fcn.01003a6e
mov byte [0xa71456fb], 1
push 0x3e8
call fcn.010012e6
mov ecx, dword [0xa7140a64]
and dword [ebp - 0xc], 0
test ecx, ecx
jbe 0x1004193
mov esi, 0xa713f264
mov eax, dword [esi - 4]
mov edx, dword [esi]
and dword [ebp - 8], 0
add eax, edi
test edx, edx
mov dword [ebp - 4], edx
jbe 0x100414e
mov edi, dword [ebp - 8]
movzx edi, byte [eax + edi]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor edi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor edi, ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
mov dword [ebp - 4], edi
jb 0x1004129
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x1004188
cmp byte [0xa71456fc], 0
jne 0x1004188
push dword [ebp - 0xc]
push 0x436e4dca
push 0x576e4278
call fcn.01003a8c
push 0x3e8
mov byte [0xa71456fc], 1
call fcn.010012e6
mov ecx, dword [0xa7140a64]
inc dword [ebp - 0xc]
add esi, 0xc
cmp dword [ebp - 0xc], ecx
jb 0x1004117
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10049cc
Capabilities:
Hash data with md5

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

Function at 0x10054ce
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100
mov dword [ebp - 4], ecx
xor esi, esi
mov edx, edi
mov ebx, eax
mov dword [edx], ecx
inc ecx
add edx, 4
dec ebx
jne 0x10054ea
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
add al, byte [ecx]
mov edx, dword [ecx]
add al, byte [ebp - 4]
and eax, 0xff
mov dword [ebp - 4], eax
movzx eax, ax
lea eax, [edi + eax*4]
mov ebx, dword [eax]
mov dword [ecx], ebx
mov dword [eax], edx
lea eax, [esi + 1]
xor edx, edx
div dword [ebp + 0x10]
add ecx, 4
dec dword [ebp + 8]
mov esi, edx
jne 0x10054f8
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1005924
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [0xa713e19c]
test al, al
je 0x1005951
mov eax, dword [esi + 0x3c]
add eax, esi
cmp word [esi], 0x5a4d
jne 0x1005951
cmp dword [eax], 0x4550
jne 0x1005951
mov eax, dword [eax + 8]
jmp 0x1005953
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1007476
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xa7140fb0]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add ebx, edi
cmp word [edi], 0x5a4d
mov dword [ebp - 0x14], eax
jne 0x100759f
cmp dword [ebx], 0x4550
jne 0x100759f
push dword [ebx + 0x78]
push edi
call fcn.01002354
mov esi, eax
xor eax, eax
add esi, edi
cmp dword [ebx + 0x7c], eax
je 0x100759f
cmp dword [esi + 0x18], eax
je 0x100759f
cmp dword [esi + 0x14], eax
je 0x100759f
push dword [esi + 0x1c]
push edi
call fcn.01002354
push dword [esi + 0x20]
add eax, edi
push edi
mov dword [ebp - 0x10], eax
call fcn.01002354
push dword [esi + 0x24]
mov ebx, eax
push edi
add ebx, edi
call fcn.01002354
push dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 0xc], eax
call dword [0xa713e19c]
test al, al
je 0x100759f
push ebx
call dword [0xa713e19c]
test al, al
je 0x100759f
push dword [ebp - 0xc]
call dword [0xa713e19c]
test al, al
je 0x100759f
cmp byte [ebp + 0x14], 0
je 0x1007542
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.010023b8
and dword [ebp - 8], 0
cmp dword [esi + 0x18], 0
jbe 0x100759a
push dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push dword [ebx + eax*4]
push edi
call fcn.01002354
add eax, edi
push eax
call dword [0xa713e078]
test eax, eax
pop ecx
pop ecx
je 0x1007577
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x18]
jb 0x100754c
jmp 0x100759a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax*4]
push edi
call fcn.01002354
add eax, edi
cmp byte [eax], 0xb8
jne 0x100759a
mov eax, dword [eax + 1]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x10075a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f6a2
leave
ret 0x10

Function at 0x1009518
Capabilities:
Encode data using xor
Hash data using jshash

Disassembly:
mov edi, edi
push esi
mov esi, dword [0xa7142dc0]
push edi
mov edi, 0xa7142dc0
cmp esi, edi
je 0x1009583
push ebx
mov eax, 0x4e67c6a7
xor ecx, ecx
movsx edx, byte [esi + ecx - 0x34]
mov ebx, eax
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
inc ecx
cmp ecx, 0xc
jb 0x1009533
cmp eax, dword [esi - 0x28]
je 0x100957c
cmp byte [0xa7142e25], 0
jne 0x1009572
push 0x436e4dc6
push 0x576e4278
call fcn.01003a6e
mov byte [0xa7142e25], 1
push 0x3e8
call fcn.010012e6
mov esi, dword [esi]
cmp esi, edi
jne 0x100952c
pop ebx
pop edi
pop esi
ret
Function at 0x100958c
Capabilities:
Encode data using xor
Hash data using jshash

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov byte [ebp - 1], 0
call dword [0xa713e014]
cmp al, 2
mov edi, 0xa7142dd0
mov ecx, edi
jb 0x10095b4
call dword [0xa713e084]
mov byte [ebp - 1], 1
jmp 0x10095bd
call dword [0xa713e00c]
mov byte [ebp - 2], al
push esi
mov esi, dword [0xa7142dc8]
cmp esi, 0xa7142dc8
je 0x100961e
push ebx
mov eax, 0x4e67c6a7
xor ecx, ecx
movsx edx, byte [esi + ecx - 0x34]
mov ebx, eax
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
inc ecx
cmp ecx, 0xc
jb 0x10095d4
cmp eax, dword [esi - 0x28]
je 0x1009613
cmp byte [0xa7142e26], 0
jne 0x1009613
push 0x436e4dc5
push 0x576e4278
call fcn.01003a6e
mov byte [0xa7142e26], 1
mov esi, dword [esi]
cmp esi, 0xa7142dc8
jne 0x10095cd
pop ebx
cmp byte [ebp - 1], 0
pop esi
mov ecx, edi
je 0x100962f
call dword [0xa713e080]
jmp 0x1009638
mov dl, byte [ebp - 2]
call dword [0xa713e010]
pop edi
leave
ret

Function at 0x100a1d6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0xa7140fb0]
and dword [ebp - 0x5c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x15
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov edi, dword [0xa713e19c]
push esi
call edi
test al, al
je 0x100a269
push ebx
call edi
test al, al
je 0x100a269
mov eax, dword [esi + 0x3c]
add eax, esi
cmp word [esi], 0x5a4d
jne 0x100a269
cmp dword [eax], 0x4550
jne 0x100a269
push 0x38
lea esi, [eax + 0x18]
pop ecx
lea eax, [ebp - 0x5c]
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x120], 0
push eax
call fcn.010049cc
push 0xe0
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.01009f7c
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.0100a024
mov al, 1
jmp 0x100a26b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f6a2
leave
ret 0xc
Function at 0x401000
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x410e10
call fcn.004015a0
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40106a
mov dword [ebp - 0x10], 0x33
mov eax, dword [ebp - 0x10]
jmp 0x4011a0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, 0x410e10
call fcn.004015a0
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401099
mov dword [ebp - 0x10], 0x34
mov eax, dword [ebp - 0x10]
jmp 0x4011a0
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, 0x410e10
call fcn.004015a0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4010c8
mov dword [ebp - 0x10], 0x35
mov eax, dword [ebp - 0x10]
jmp 0x4011a0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4010ea
mov dword [ebp - 0x10], 0x36
mov eax, dword [ebp - 0x10]
jmp 0x4011a0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401112
push 0x80
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401143
mov dword [ebp - 0x10], 0x37
mov eax, dword [ebp - 0x10]
jmp 0x4011a0
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401175
mov dword [ebp - 0x10], 0x38
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x4011a0
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
je 0x401193
mov dword [ebp - 0x10], 0x39
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x4011a0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4011b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00405870
add esp, 0xc
mov dword [ebp - 0x58], 0x44
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x4011fc
mov al, 1
jmp 0x401212
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401210
xor al, al
jmp 0x401212
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x410110]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00401d50
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.004053d0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402840
lea ecx, [ebp - 0x438]
call fcn.004053d0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401db0
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4025ce
call fcn.00401de0
mov dword [ebp - 0x444], eax
jmp 0x402723
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x4025ff
call fcn.00401de0
mov dword [ebp - 0x444], eax
jmp 0x402723
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x40262f
call fcn.00401de0
mov dword [ebp - 0x444], eax
jmp 0x402723
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x40267f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00405490
lea ecx, [ebp - 0x2c]
call fcn.00405060
mov eax, dword [ebp - 0x44c]
jmp 0x402758
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.00405460
lea ecx, [ebp - 0x438]
call fcn.00403eb0
test eax, eax
jne 0x4026ac
mov dword [ebp - 0x444], 0x8007000e
jmp 0x402723
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00403eb0
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.00401d50
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x4026ee
call fcn.00401de0
mov dword [ebp - 0x444], eax
jmp 0x402723
lea ecx, [ebp - 0x438]
call fcn.00403eb0
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.00403eb0
push eax
lea ecx, [ebp - 0x18]
call fcn.00402870
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x402733
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00405490
lea ecx, [ebp - 0x2c]
call fcn.00405060
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004058ea
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4040a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x410110]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00403e60
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00404040
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40410b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00403e90
mov eax, dword [ebp - 0x224]
jmp 0x40419c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404171
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004040a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x404168
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00403e90
mov eax, dword [ebp - 0x228]
jmp 0x40419c
mov dword [ebp - 4], 0x100
jmp 0x404112
lea ecx, [ebp - 0x14]
call fcn.00403f80
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00403f20
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00403e90
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004058ea
mov esp, ebp
pop ebp
ret 4
Function at 0x404700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x404709
xor ecx, ecx
jne 0x404709
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x40472a
mov eax, 0xd
jmp 0x404785
xor eax, eax
jne 0x404711
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x40473b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x4058ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410110]
jne 0x4058f4
repz ret
jmp fcn.004063ce
Function at 0x40a8c9
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.00406546
and dword [ebp - 4], 0
cmp dword [0x41194c], 0
mov ebx, eax
jne 0x40a97a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aa2b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40aa2b
push eax
call fcn.004064d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41194c], eax
call esi
push eax
call fcn.004064d4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x411950], eax
call esi
push eax
call fcn.004064d4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x411954], eax
call esi
push eax
call fcn.004064d4
pop ecx
mov dword [0x41195c], eax
test eax, eax
je 0x40a97a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004064d4
pop ecx
mov dword [0x411958], eax
mov eax, dword [0x411958]
cmp eax, ebx
je 0x40a9d2
cmp dword [0x41195c], ebx
je 0x40a9d2
push eax
call fcn.0040654f
push dword [0x41195c]
mov esi, eax
call fcn.0040654f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a9d2
test edi, edi
je 0x40a9d2
call esi
test eax, eax
je 0x40a9c9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a9c9
test byte [ebp - 0xc], 1
jne 0x40a9d2
or dword [ebp + 0x10], 0x200000
jmp 0x40aa0b
mov eax, dword [0x411950]
cmp eax, ebx
je 0x40aa0b
push eax
call fcn.0040654f
pop ecx
test eax, eax
je 0x40aa0b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40aa0b
mov eax, dword [0x411954]
cmp eax, ebx
je 0x40aa0b
push eax
call fcn.0040654f
pop ecx
test eax, eax
je 0x40aa0b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41194c]
call fcn.0040654f
pop ecx
test eax, eax
je 0x40aa2b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aa2d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402930
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x434050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x402960
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409779
mov esp, ebp
pop ebp
ret 4
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [edi + 4], eax
mov ecx, 0x8e
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x42f860]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x24], al
and ecx, 0x800000ff
jns 0x40299d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x402980
mov byte [ebp - 0x18], 0
mov ecx, 0x57
xor edx, edx
nop
mov al, byte [edx + str._4_0nlq]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x14], al
and ecx, 0x800000ff
jns 0x4029cd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x4029b0
lea eax, [ebp - 0x24]
mov byte [ebp - 8], 0
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, esi
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
mov byte [ebp - 8], 0
movq qword [ebp - 0x24], xmm0
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a17
push ebx
push 4
push 0x3000
sub ecx, edx
push ecx
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, esi
mov ebx, eax
lea eax, [edx + 1]
nop dword [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x402a40
push 0
sub edx, eax
push edx
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push ebx
push dword [ebp - 0x28]
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402a78
push 0
sub esi, ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00409779
mov esp, ebp
pop ebp
ret 4
Function at 0x402ab0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x434050]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
push edi
push 2
mov dword [esp + 0x1c], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b51
push 0x124
lea eax, [esp + 0x20]
push edi
push eax
call fcn.0040b140
add esp, 0xc
mov dword [esp + 0x18], 0x128
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402b4a
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
call fcn.0040e9a7
add esp, 8
test eax, eax
jne 0x402b31
mov esi, dword [esp + 0x20]
inc edi
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402b17
or eax, 0xffffffff
cmp edi, 1
cmova esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x144]
pop edi
mov dword [eax + 8], esi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00409779
mov esp, ebp
pop ebp
ret 4