joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7d8fa0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
push eax
mov esi, esp
xor eax, eax
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
jmp 0x7d8fc0
jmp 0x7d8fc2
cmp eax, 0
setne al
xor ebx, ebx
test al, 1
jne 0x7d8fd3
jmp 0x7d9108
xor eax, eax
sub esp, 8
mov dword [esp], 0
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
sub esp, 4
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0
setne al
xor ebx, ebx
test al, 1
jne 0x7d9010
jmp 0x7d9100
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
mov dword [ebp - 0x2c], eax
mov dword [esp], eax
call fcn.007bb910
add esp, 4
mov edx, eax
xor ebx, ebx
cmp edx, 0
je 0x7d90f2
mov al, byte [esi]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x28], 0xd9
mov byte [ebp - 0x27], 0xf3
mov byte [ebp - 0x26], 0xfd
mov byte [ebp - 0x25], 0xf1
mov byte [ebp - 0x24], 0xc2
mov byte [ebp - 0x23], 0xf2
mov byte [ebp - 0x22], 0xc1
mov byte [ebp - 0x21], 0xcf
mov byte [ebp - 0x20], 0xc0
mov byte [ebp - 0x1f], 0x89
mov byte [ebp - 0x1e], 0xd2
mov byte [ebp - 0x1d], 0xd1
mov byte [ebp - 0x1c], 0xd4
mov byte [ebp - 0x1b], 0x5b
mov eax, 0xe
mov byte [ebp + eax - 0x28], 0
add eax, 1
cmp eax, 0x11
jne 0x7d907c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0x11
jae 0x7d90c9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebp + ecx - 0x28]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], ecx
mov esi, edx
call fcn.007dc7c0
mov edx, esi
add esp, 8
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x28], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x7d9090
lea eax, [ebp - 0x28]
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.007ad760
mov bl, al
jmp 0x7d90e9
and bl, 1
jmp 0x7d90ee
jmp 0x7d90f0
jmp 0x7d90f2
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x7d9100
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x7d9108
and bl, 1
movzx eax, bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x7e76c0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x3c]
movzx esi, word [ebp]
mov dword [esp + 4], 0xb7b66f7d
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x7e7716
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.007e7c70
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x7e76f0
xor ecx, ecx
cmp dword [esp + 4], esi
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x7f453c]
mov esi, dword [ebp + 0x3c]
mov edi, dword [ebp + esi]
mov dword [esp], 0x696a2034
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 3
ja 0x7e7779
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax]
push dword [esp + 4]
push eax
call fcn.007e7cf0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 4
jb 0x7e7750
xor ecx, ecx
cmp edi, dword [esp]
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x7f4544]
mov edi, dword [ebp + esi + 0x78]
cmp dword [ebp + esi + 0x7c], 0
sete al
test edi, edi
sete cl
or cl, al
movzx ecx, cl
xor eax, eax
jmp dword [ecx*4 + 0x7f454c]
mov eax, dword [ebp + edi + 0x20]
add eax, ebp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + edi + 0x24]
add eax, ebp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + edi + 0x1c]
add eax, ebp
mov dword [esp + 0x1c], eax
mov esi, dword [0x7f5ee4]
xor eax, eax
test esi, esi
sete al
jmp dword [eax*4 + 0x7f4554]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x7e8160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov ecx, ebx
add ecx, ebp
mov edx, edi
adc edx, 0
mov esi, 0xfffffffe
cmp esi, ecx
mov ecx, 0
sbb ecx, edx
mov esi, dword [esp + 0x2c]
jb 0x7e81f7
mov ecx, ebx
shr ecx, 2
mov edx, ebp
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffc
add esi, edx
add edx, ebp
mov ebp, ebx
and ebp, 3
mov ecx, ebp
shr ecx, 1
mov eax, esi
mov esi, edx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, ebp
xor ecx, 0xfffffffe
or ebp, 1
and ebp, ecx
je 0x7e81f0
and ebx, 2
movzx ecx, byte [edx + ebx]
mov byte [eax + ebx], cl
cmp ebp, 1
je 0x7e81f0
movzx ecx, byte [edx + ebx + 1]
mov byte [eax + ebx + 1], cl
cmp ebp, 2
je 0x7e81f0
movzx ecx, byte [edx + ebx + 2]
mov byte [eax + ebx + 2], cl
xor eax, eax
jmp 0x7e8361
mov dword [esp + 4], 0x34353637
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x7e8246
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.007e9110
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x7e8220
mov eax, dword [esp + 4]
mov ecx, dword [0x7f5ee0]
test ecx, ecx
je 0x7e82a2
xor edx, edx
mov edi, dword [0x7f5ee4]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x54ca534e
je 0x7e8274
inc edx
cmp ecx, edx
jne 0x7e8260
mov edi, dword [esp + 0x28]
jmp 0x7e82a2
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
mov edi, dword [esp + 0x28]
je 0x7e82a2
lea eax, [esp + 0xc]
push 2
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 7
push dword [0x7f5ee8]
push ecx
call fcn.007e6c10
add esp, 0x28
test eax, eax
js 0x7e8361
push 0xc95dc39
push dword [0x7fdef4]
call fcn.007e9760
add esp, 8
push 0
push 0
push ebx
push esi
push edi
push ebp
push dword [esp + 0x24]
call eax
mov esi, eax
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0x34353637
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x7e8316
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.007e9110
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x7e82f0
mov ecx, dword [0x7f5ee0]
test ecx, ecx
je 0x7e8341
mov edx, dword [esp + 4]
xor ebx, ebx
mov ebp, dword [0x7f5ee4]
mov eax, esi
nop
nop
cmp dword [ebp + ebx*8], 0x625b6034
je 0x7e8345
inc ebx
cmp ecx, ebx
jne 0x7e8330
jmp 0x7e8361
mov eax, esi
jmp 0x7e8361
mov ecx, dword [ebp + ebx*8 + 4]
cmp ecx, edx
je 0x7e8361
push edi
push 1
push dword [0x7f5ee8]
push ecx
call fcn.007e6c10
mov eax, esi
add esp, 0x10
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40606d
Capabilities:
Create thread

Disassembly:
push 0x674
mov eax, 0x487be1
call fcn.0046dbc1
mov edi, ecx
mov dword [ebp - 0x678], edi
mov dword [ebp - 0x680], edi
call fcn.0042cc5d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0xf58], ebx
mov dword [edi + 0xf5c], ebx
mov dword [edi + 0xf60], ebx
mov dword [edi + 0xf64], ebx
mov dword [edi + 0xf68], ebx
mov dword [edi + 0xf6c], ebx
mov dword [edi + 0xf70], ebx
lea edx, [edi + 0xf74]
mov ecx, edx
call fcn.00410b3d
lea ecx, [edx + 0x34]
call fcn.00410b3d
lea ecx, [edx + 0x68]
call fcn.00410b3d
mov dword [edi + 0x1010], ebx
mov dword [edi + 0x1014], ebx
mov dword [edi + 0x1018], ebx
mov dword [edi + 0x101c], ebx
xor edx, edx
push 7
pop ebx
xor eax, eax
mov dword [edi + 0x1034], ebx
mov dword [edi + 0x1030], edx
mov word [edi + 0x1020], ax
lea ecx, [edi + 0x1038]
call fcn.00410b3d
xor eax, eax
mov dword [edi + 0x1080], ebx
mov dword [edi + 0x107c], edx
mov word [edi + 0x106c], ax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
mov word [edi + 0x1084], dx
mov byte [edi + 0x1086], dl
call fcn.0040beec
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], bl
push eax
call fcn.0040bdd2
mov ecx, dword [ebp + 0xc]
add edi, 0x1088
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x67c], edi
mov bl, byte [ecx + 0x6c]
mov ecx, edi
call fcn.00404e83
push esi
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 9
call fcn.00404e83
and dword [edi + 0x40], 0
xor eax, eax
push 7
pop ecx
mov dword [edi + 0x44], ecx
mov word [edi + 0x30], ax
and dword [edi + 0x58], eax
test bl, bl
mov dword [edi + 0x5c], ecx
mov word [edi + 0x48], ax
sete al
mov byte [edi + 0x60], al
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00405131
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.00405131
mov edi, dword [ebp - 0x678]
mov ecx, edi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x10f0], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xf70], eax
lea eax, [ebp - 0x674]
push eax
mov dword [edi + 0x10ec], ebx
mov dword [edi + 0x10f4], ebx
mov byte [edi + 0x10f8], bl
call fcn.0040645e
push edi
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x674]
push eax
lea ecx, [edi + 0xf0]
call fcn.0042cefd
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x10f0]
cmp byte [eax + 0x6d], bl
je 0x40626d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.aaa
push 0x4c2748
call esi
push str.sID_eID_bID_1
push 0x4c3150
call esi
push ebx
push ebx
push ebx
push 0x40d387
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2bf20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push ebx
push str.Running
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x674]
call fcn.004062b6
mov eax, edi
call fcn.0046db70
ret 8
Function at 0x407e1d
Capabilities:
Create process on windows

Disassembly:
push 0x410
mov eax, 0x488289
call fcn.0046dc2d
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0x410], edi
call fcn.0042ce58
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov edx, 0x272d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.004109dc
mov edx, eax
lea ecx, [ebp - 0x2fc]
call fcn.00411daa
lea ecx, [ebp - 0xf0]
mov bl, al
call fcn.00410e35
test bl, bl
je 0x407ec0
mov ecx, dword [edi + 0x101c]
test ecx, ecx
je 0x407ead
push dword [edi + 0x10f4]
push esi
push esi
call fcn.0043a496
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x248]
mov byte [edi + 0x1085], 1
push eax
jmp 0x407ef7
push 1
push esi
push esi
lea ebx, [edi + 0x1020]
mov byte [ebp - 4], 2
push ebx
lea eax, [edi + 0x1050]
mov ecx, edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040ba67
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.00405131
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x407eff
push 0xffffffffffffffff
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040509e
cmp byte [edi + 0x1085], 0
je 0x407f24
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push 2
push 0x111
push dword [ebp - 0x418]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
jmp 0x40806a
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405131
lea ecx, [ebp - 0x40c]
call fcn.0040420a
call fcn.0046db7f
ret 4
Function at 0x40c0a0
Capabilities:
Write file on windows

Disassembly:
push 0x8c
mov eax, 0x488e2f
call fcn.0046dbc1
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, 0x272a
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.004109dc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00404e5d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.00410e35
mov edi, str._nURL_
push edi
call fcn.00402bda
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040e1ad
push ecx
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x94]
call fcn.00410be3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040e107
lea ecx, [ebp - 0x94]
call fcn.00410e35
mov dword [ebp - 0x98], ebx
test esi, esi
je 0x40c16a
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x98]
push ebx
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403790
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00405131
push ebx
push 1
lea ecx, [ebp + 0x20]
call fcn.00405131
call fcn.0046db70
ret
Function at 0x40c6bc
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x488f43
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4bb760]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4bb760]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40c86e
lea eax, [esp + 0x10]
push eax
push 0x49f05c
push 1
push ebx
push 0x49f34c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40c86e
cmp dword [esi + 0x14], 8
jb 0x40c73c
mov ecx, dword [esi]
jmp 0x40c73e
mov ecx, esi
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
push esi
mov ecx, edi
call fcn.0040c89a
test al, al
je 0x40c76c
lea edx, [esi + 0x48]
cmp dword [edx + 0x14], 8
jb 0x40c760
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x49f39c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40c864
push str.DESKTOP
lea ecx, [esp + 0x1c]
call fcn.00404eab
lea edx, [esp + 0x18]
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x78]
call fcn.004325b0
push 0x4a2524
mov edx, eax
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x4c]
call fcn.00405703
pop ecx
lea ecx, [esi + 0x30]
mov byte [esp + 0xa0], 2
push ecx
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.0040eb5e
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x34]
mov edx, eax
mov dword [esp], 0x4a2e78
call fcn.0040eb86
pop ecx
mov edx, eax
mov byte [esp + 0xa0], 4
cmp dword [edx + 0x14], 8
jb 0x40c806
mov edx, dword [edx]
mov eax, dword [esp + 0x14]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00405131
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x18]
push ebx
push 1
call fcn.00405131
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004697c7
mov esp, ebp
pop ebp
ret 4
Function at 0x40fcf1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4bb760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0040fad9
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x40fd16
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.00410e35
cmp ebx, 0xffffffff
je 0x40fd36
test bl, 0x10
jne 0x40fd36
xor eax, eax
inc eax
jmp 0x40fd38
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004697c7
mov esp, ebp
pop ebp
ret

Function at 0x40fd47
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4bb760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.0040fad9
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x40fd6c
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00410e35
test esi, esi
je 0x40fd96
cmp esi, 0xb7
je 0x40fd96
cmp esi, 0x50
je 0x40fd96
xor al, al
jmp 0x40fd98
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004697c7
mov esp, ebp
pop ebp
ret
Function at 0x410191
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489833
mov eax, dword fs:[0]
push eax
mov eax, 0x11b8
call fcn.0046eb20
mov eax, dword [0x4bb760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0044ee52
lea eax, [ebp - 0x11b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push ecx
mov esi, eax
lea ecx, [ebp - 0x94]
xor eax, eax
mov ebx, 0x4a2a51
push ebx
mov word [ebp - 0x98], ax
mov byte [ebp - 0x96], al
call fcn.00410c3a
and dword [ebp - 4], 0
push ecx
push ebx
lea ecx, [ebp - 0x60]
call fcn.00410c3a
xor ebx, ebx
mov word [ebp - 0x2c], bx
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x11b4]
mov ecx, esi
push eax
call fcn.004103c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x98], bl
je 0x410245
call fcn.004107b0
push str.aswhookx.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x410297
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x11bc], eax
add eax, dword [ecx + eax + 0x28]
mov dword [ebp - 0x11b8], eax
mov eax, dword [ebp - 0x11bc]
push eax
mov eax, 3
push eax
xor eax, eax
push eax
mov eax, dword [ebp - 0x11b8]
call eax
mov eax, dword [ebp - 0x11bc]
push eax
mov eax, 0
push eax
xor eax, eax
push eax
mov eax, dword [ebp - 0x11b8]
call eax
cmp byte [ebp - 0x97], 0
jne 0x4102d7
call fcn.00432ef5
test eax, eax
jne 0x4102d7
push dword [ebp - 0x11b4]
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0041095c
pop ecx
lea edx, [ebp - 0x28]
call fcn.004108bc
push ebx
test eax, eax
je 0x4102cd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
lea ecx, [ebp - 0x28]
call fcn.00405131
push ebx
push ebx
push ebx
push 4
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x11c4]
mov dword [ebp - 0x11c4], 8
push eax
mov dword [ebp - 0x11c0], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0044bed6
push ebx
call fcn.0044d9eb
pop ecx
lea eax, [ebp - 0x98]
mov dword [ebp - 0x11a0], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x119c], ebx
push eax
movdqu xmmword [ebp - 0x11b0], xmm0
call fcn.00450cd2
lea ecx, [ebp - 0x1198]
push dword [eax + 8]
call fcn.0040606d
mov dword [ebp - 0x9c], 1
lea ecx, [ebp - 0x11b0]
mov byte [ebp - 4], 2
call fcn.00435bf2
lea ecx, [ebp - 0x1198]
call fcn.004063c2
lea ecx, [ebp - 0x60]
call fcn.00410e35
lea ecx, [ebp - 0x94]
call fcn.00410e35
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004697c7
mov esp, ebp
pop ebp
ret
Function at 0x4107b0
Capabilities:
Terminate process

Disassembly:
push 0x294
mov eax, 0x4898cd
call fcn.0046dbc1
push 0x104
lea eax, [ebp - 0x218]
xor edi, edi
push eax
mov ebx, edi
push edi
mov dword [ebp - 0x29c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xc
call fcn.0043c792
mov esi, eax
pop ecx
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x410822
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.00410ca5
inc ebx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], bl
mov ecx, esi
push eax
mov dword [ebp - 0x29c], ebx
call fcn.0040fa07
mov esi, eax
jmp 0x410824
mov esi, edi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x410838
lea ecx, [ebp - 0x264]
call fcn.00410e35
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.0040fba3
push str._test
lea edx, [eax + 0x18]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00405703
pop ecx
lea ecx, [ebp - 0x298]
call fcn.00410e35
test esi, esi
je 0x41087e
mov ecx, esi
call fcn.004037d4
push esi
call fcn.0043c7bf
pop ecx
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4108b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4108bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4bb760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41094b
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0046be70
and dword [ebp - 0x240], 0
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x248], 0x3c
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x23c], 0x4a3028
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22c], 1
jb 0x410936
mov esi, dword [esi]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x41094d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004697c7
mov esp, ebp
pop ebp
ret
Function at 0x421d12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x48c702
call fcn.0046db8e
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x4a2528
mov dword [ebp - 0x14], ebx
call fcn.00404eab
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x100
movzx ecx, si
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0x18], eax
push ecx
push ecx
push ebx
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x421dd8
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043c7c4
pop ecx
push edi
mov esi, eax
push esi
push ebx
push dword [ebp - 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.00403def
mov edi, dword [ebp - 0x10]
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040531a
push esi
call fcn.0043c7bf
pop ecx
jmp 0x421ddb
mov edi, dword [ebp - 0x10]
mov eax, edi
call fcn.0046db5c
ret