joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ec26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486740]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec69
cmp word [esi], dx
jne 0x41ec69
or byte [edi + eax + 0x28], 4
jmp 0x41ec6e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edc1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41eda1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ecb0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ece6
cmp eax, edx
jae 0x41ecf2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec88
jmp 0x41edc1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed9d
cmp dword [ebp - 0x14], 0
je 0x41ed9d
mov eax, dword [ebx*4 + 0x486740]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed75
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed3e
mov word [esi], cx
jmp 0x41ed71
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486740]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486740]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486740]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edc1
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed86
cmp esi, dword [ebp + 0xc]
jne 0x41ed86
mov word [esi], bx
jmp 0x41edbe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edc1
push 0xd
jmp 0x41edba
mov ecx, dword [ebx*4 + 0x486740]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edc1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40149d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040645d
cmp eax, ebx
je 0x401539
push ebx
push dword [0x472eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x472eb0], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532

Function at 0x4033d2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1e4]
sub esi, dword [0x4331f0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x472e20], eax
cmp esi, ebx
jle 0x403530
push dword [0x4331ec]
call fcn.004033bb
push ebx
push ebx
push dword [0x4331f0]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42f1e0], esi
mov dword [0x41f154], ebx
mov ebp, 0x4271e0
mov eax, dword [0x4331e8]
sub eax, dword [0x4331ec]
mov edi, 0x4000
cmp eax, edi
jg 0x403447
mov edi, eax
push edi
mov esi, 0x42f1e8
push esi
call fcn.00403389
test eax, eax
je 0x403542
add dword [0x4331ec], edi
mov dword [0x427170], esi
mov dword [0x427174], edi
cmp dword [0x472ddc], ebx
je 0x40349e
cmp dword [0x472ea0], ebx
jne 0x40349e
mov eax, dword [0x42f1e0]
sub eax, dword [0x42f1e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331f0]
mov dword [0x41f154], eax
call fcn.004032e7
pop ecx
mov ecx, 0x427158
mov dword [0x427178], ebp
mov dword [0x42717c], 0x8000
call fcn.00407473
test eax, eax
js 0x403547
mov esi, dword [0x427178]
sub esi, ebp
je 0x4034fc
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40354c
cmp esi, dword [esp + 0x10]
jne 0x40354c
add dword [0x4331f0], esi
cmp dword [0x427174], ebx
jne 0x40346d
jmp 0x403508
cmp dword [0x427174], ebx
jne 0x403547
cmp edi, ebx
je 0x403547
mov eax, dword [0x42f1e4]
mov ecx, eax
sub ecx, dword [0x4331f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403431
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.004032e7
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x40353a
push 0xfffffffffffffffd
pop eax
jmp 0x40353a
push 0xfffffffffffffffe
jmp 0x403549
Function at 0x4050d2
Capabilities:
Inspect section memory permissions

Disassembly:
mov esp, 0xa0878b
add byte [eax], al
cmp eax, ebx
je 0x405137
add eax, esi
cmp dword [eax], ebx
je 0x405137
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x405132
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40511c
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x405124
cmp edx, ebx
jne 0x405272
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4050f3
add eax, dword [eax + 4]
jmp 0x4050e0
mov dword [ebp + 0xc], ebx
jmp 0x405142
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40515a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x405178
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4051d6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4051bd
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4051c6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4051d0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4051b2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40513c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x405223
dec eax
je 0x40521a
sub eax, 3
je 0x405211
mov dword [ebp - 4], 0x40
jmp 0x405240
mov dword [ebp - 4], 4
jmp 0x405226
mov dword [ebp - 4], 0x20
jmp 0x405226
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x405272
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4051f2
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00404a83
xor dword [eax - 0x77], ebp
add edi, edi
jne 0x40527d
push 1
push esi
call edi
mov eax, esi
jmp 0x40527e
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405e66
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004049f4
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x405e90
invalid
invalid

Function at 0x406436
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x4065fe
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
invalid
invalid
xchg al, bh
invalid
invalid
Function at 0x4060f0
Capabilities:
Create thread

Disassembly:
push 0x674
mov eax, 0x4888b1
call fcn.0046e891
mov edi, ecx
mov dword [ebp - 0x678], edi
mov dword [ebp - 0x680], edi
call fcn.0042d659
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.00411262
lea ecx, [edx + 0x34]
call fcn.00411262
lea ecx, [edx + 0x68]
call fcn.00411262
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.00411262
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.0040bfc9
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], bl
push eax
call fcn.0040beaf
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.00404e93
push esi
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 9
call fcn.00404e93
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.00405141
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.00405141
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.004064e1
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.0042d8f9
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x10f0]
cmp byte [eax + 0x6d], bl
je 0x4062f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.aaa
push 0x4c37a8
call esi
push str.sID_eID_bID_1
push 0x4c41b0
call esi
push ebx
push ebx
push ebx
push 0x40d4a2
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.00406339
mov eax, edi
call fcn.0046e840
ret 8
Function at 0x407ea0
Capabilities:
Create process on windows

Disassembly:
push 0x410
mov eax, 0x488f59
call fcn.0046e8fd
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.0042d854
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.00411101
mov edx, eax
lea ecx, [ebp - 0x2fc]
call fcn.0041247f
lea ecx, [ebp - 0xf0]
mov bl, al
call fcn.0041155a
test bl, bl
je 0x407f43
mov ecx, dword [edi + 0x101c]
test ecx, ecx
je 0x407f30
push dword [edi + 0x10f4]
push esi
push esi
call fcn.0043b140
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x248]
mov byte [edi + 0x1085], 1
push eax
jmp 0x407f7a
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.0040bb44
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.00405141
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x407f82
push 0xffffffffffffffff
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004050ae
cmp byte [edi + 0x1085], 0
je 0x407fa7
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 0x4080ed
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405141
lea ecx, [ebp - 0x40c]
call fcn.0040420a
call fcn.0046e84f
ret 4
Function at 0x40c17d
Capabilities:
Write file on windows

Disassembly:
push 0x8c
mov eax, 0x489aff
call fcn.0046e891
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.00411101
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00404e6d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.0041155a
mov edi, str._nURL_
push edi
call fcn.00402bda
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040e334
push ecx
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x94]
call fcn.00411308
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040e28e
lea ecx, [ebp - 0x94]
call fcn.0041155a
mov dword [ebp - 0x98], ebx
test esi, esi
je 0x40c247
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.00405141
push ebx
push 1
lea ecx, [ebp + 0x20]
call fcn.00405141
call fcn.0046e840
ret
Function at 0x40c79a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489c13
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4bc760]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc760]
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 0x40c94c
lea eax, [esp + 0x10]
push eax
push 0x4a005c
push 1
push ebx
push 0x4a034c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40c94c
cmp dword [esi + 0x14], 8
jb 0x40c81a
mov ecx, dword [esi]
jmp 0x40c81c
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.0040c978
test al, al
je 0x40c84a
lea edx, [esi + 0x48]
cmp dword [edx + 0x14], 8
jb 0x40c83e
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 0x4a039c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40c942
push str.DESKTOP
lea ecx, [esp + 0x1c]
call fcn.00404ebb
lea edx, [esp + 0x18]
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x78]
call fcn.00432f60
push 0x4a3524
mov edx, eax
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x4c]
call fcn.00405713
pop ecx
lea ecx, [esi + 0x30]
mov byte [esp + 0xa0], 2
push ecx
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.0040ed64
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x34]
mov edx, eax
mov dword [esp], 0x4a3e50
call fcn.0040ed8c
pop ecx
mov edx, eax
mov byte [esp + 0xa0], 4
cmp dword [edx + 0x14], 8
jb 0x40c8e4
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.00405141
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00405141
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00405141
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00405141
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x18]
push ebx
push 1
call fcn.00405141
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.0046a4a7
mov esp, ebp
pop ebp
ret 4
Function at 0x41020c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0040fff4
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x410231
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.0041155a
cmp ebx, 0xffffffff
je 0x410251
test bl, 0x10
jne 0x410251
xor eax, eax
inc eax
jmp 0x410253
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046a4a7
mov esp, ebp
pop ebp
ret

Function at 0x410262
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.0040fff4
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x410287
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.0041155a
test esi, esi
je 0x4102b1
cmp esi, 0xb7
je 0x4102b1
cmp esi, 0x50
je 0x4102b1
xor al, al
jmp 0x4102b3
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046a4a7
mov esp, ebp
pop ebp
ret
Function at 0x410736
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48a5e7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x11bc
call fcn.0046f7f0
mov eax, dword [0x4bc760]
xor eax, esp
mov dword [esp + 0x11b8], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc760]
xor eax, esp
push eax
lea eax, [esp + 0x11d0]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0044facc
lea eax, [esp + 0x14]
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, [esp + 0x2c]
xor eax, eax
mov ebx, 0x4a3a11
push ebx
mov word [esp + 0x2c], ax
mov byte [esp + 0x2e], al
call fcn.0041135f
and dword [esp + 0x11d8], 0
push ecx
push ebx
lea ecx, [esp + 0x64]
call fcn.0041135f
xor ebx, ebx
mov word [esp + 0x90], bx
lea eax, [esp + 0x24]
mov dword [esp + 0x11d8], 1
mov edx, dword [esp + 0x14]
mov ecx, esi
push eax
call fcn.00410977
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0x24], bl
je 0x4107fc
call fcn.00410d65
sub esp, 0x18
mov ecx, esp
push str.aswhooks.dll
call fcn.004035dc
call fcn.00411033
mov ecx, esp
push str.aswhook.dll
call fcn.004035dc
call fcn.00411033
add esp, 0x18
cmp byte [esp + 0x25], 0
jne 0x41086c
call fcn.004338a5
test eax, eax
jne 0x41086c
push dword [esp + 0x14]
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.00410f11
pop ecx
lea edx, [esp + 0x94]
call fcn.00410e71
push ebx
test eax, eax
je 0x41085e
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
lea ecx, [esp + 0x9c]
call fcn.00405141
call fcn.00410f91
test al, al
je 0x410882
mov byte [esp + 0x26], 1
mov byte [esp + 0x90], 1
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, [esp + 0x1c]
mov dword [esp + 0x1c], 8
push eax
mov dword [esp + 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0044cb97
push ebx
call fcn.0044e65c
pop ecx
lea eax, [esp + 0x24]
mov dword [esp + 0xbc], ebx
xorps xmm0, xmm0
mov dword [esp + 0xc0], ebx
push eax
movdqu xmmword [esp + 0xb0], xmm0
call fcn.0045196d
lea ecx, [esp + 0xc8]
push dword [eax + 8]
call fcn.004060f0
mov dword [esp + 0x11c0], 1
lea ecx, [esp + 0xac]
mov byte [esp + 0x11d8], 2
call fcn.0043689a
lea ecx, [esp + 0xc4]
call fcn.00406445
lea ecx, [esp + 0x5c]
call fcn.0041155a
lea ecx, [esp + 0x28]
call fcn.0041155a
xor eax, eax
mov ecx, dword [esp + 0x11d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x11b8]
xor ecx, esp
call fcn.0046a4a7
mov esp, ebp
pop ebp
ret
Function at 0x410d65
Capabilities:
Terminate process

Disassembly:
push 0x294
mov eax, 0x48a687
call fcn.0046e891
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.0043d472
mov esi, eax
pop ecx
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x410dd7
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.004113ca
inc ebx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], bl
mov ecx, esi
push eax
mov dword [ebp - 0x29c], ebx
call fcn.0040ff22
mov esi, eax
jmp 0x410dd9
mov esi, edi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x410ded
lea ecx, [ebp - 0x264]
call fcn.0041155a
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.004100be
push str._test
lea edx, [eax + 0x18]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00405713
pop ecx
lea ecx, [ebp - 0x298]
call fcn.0041155a
test esi, esi
je 0x410e33
mov ecx, esi
call fcn.004037d4
push esi
call fcn.0043d4a8
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 0x410e68
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x410e71
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4bc760]
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 0x410f00
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0046cb40
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], 0x4a401c
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22c], 1
jb 0x410eeb
mov esi, dword [esi]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x410f02
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046a4a7
mov esp, ebp
pop ebp
ret