joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e60
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x420088]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x10
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x414e91
xor eax, eax
jmp 0x414fce
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x420]
push edx
push str._s_s.lnk
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0040128d
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
push 0x41825c
push 1
push 0
push 0x41826c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jl 0x414fbc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 0x50]
call eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x218]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [eax + 0x1c]
call edx
push 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 0x2c]
call eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x218]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [eax + 0x44]
call edx
lea eax, [ebp - 0x424]
push eax
push 0x41827c
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jl 0x414fa8
push 1
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x424]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x424]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x218]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0x214], 0
jge 0x414fc9
xor eax, eax
jmp 0x414fce
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040109c
mov esp, ebp
pop ebp
ret
Function at 0x414fe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004010b0
add esp, 0xc
movzx ecx, byte [ebp + 0x1c]
test ecx, ecx
je 0x415005
mov dword [ebp - 0x38], 0x140
mov dword [ebp - 0x3c], 0x3c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41503c
xor eax, eax
jmp 0x41508f
mov dl, byte [ebp + 0x1c]
mov byte [ebp - 0x40], dl
cmp byte [ebp - 0x40], 1
je 0x415050
cmp byte [ebp - 0x40], 2
je 0x415068
jmp 0x415080
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41508a
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41508a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x415e70
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x420088]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004010b0
add esp, 0xc
push 0x20
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.004010b0
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x415ec6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x228], eax
jmp 0x415ed0
mov dword [ebp - 0x228], 0x1041
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x220], ecx
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x415f29
xor eax, eax
jmp 0x415fcc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp + 8]
push edx
call fcn.0040112a
add esp, 4
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jle 0x415fc3
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x415fc1
mov eax, 0x5c
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
xor ecx, ecx
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp + 8]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x415fc7
xor eax, eax
jmp 0x415fcc
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040109c
mov esp, ebp
pop ebp
ret
Function at 0x416250
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x218], 1
push 0x104
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
push 0x3ed
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x214]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.0040112a
add esp, 4
test eax, eax
jne 0x4162ca
push 0x10
push str.IDS_ERR_FOLDEREMPTY
call fcn.00415130
add esp, 8
push 0x3ed
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x214]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x41645e
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.0040112a
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + edx*2 + 2]
cmp ecx, 0x5c
je 0x41631b
mov edx, 0x5c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2 + 4], dx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 4], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push 0x3ef
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x214]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 8], eax
push 0
push 0
push 0xf0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20c], eax
push 0x3f0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x214]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 8], eax
push 0
push 0
push 0xf0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x210], eax
push 1
mov ecx, dword [ebp - 0xc]
call fcn.00415db0
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.00414c10
add esp, 4
test eax, eax
jne 0x4163cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4163bc
push 0x10
push str.IDS_ERR_ACCESSDENIED
call fcn.00415130
add esp, 8
jmp 0x4163cb
push 0x10
push str.IDS_ERR_FAILEDCREATEFOLDER
call fcn.00415130
add esp, 8
mov ecx, dword [ebp - 0xc]
add ecx, 0x224
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x220]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20c]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x21c]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.004154c0
add esp, 0x14
test eax, eax
jne 0x41641f
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
call fcn.00415db0
jmp 0x41645e
push 0x40
push str.IDS_MSG_EXTRACTOK
call fcn.00415130
add esp, 8
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
call fcn.00415db0
push 0
push 0
push 0x12
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x214]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x214]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esp, ebp
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3a3c6485
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x5d174136
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x7ada5bda
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x416d5c6d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x75e32b01
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x53ae6da0
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402733
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402c21
push 0
push 0x405020
push 0x40501c
call fcn.00402c21
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4030c6
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405764]
test eax, eax
je 0x4030df
call eax
test eax, eax
jne 0x4030df
push 0xfffffffffffffffe
jmp 0x4030f9
push 1
push 0x405010
push 0x405008
call fcn.00402c21
add esp, 0xc
test eax, eax
je 0x4030ff
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402c21
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403125
mov esi, 0x4045a9
mov cl, 0x20
jmp 0x40312e
cmp al, 0x20
ja 0x403138
inc esi
mov al, byte [esi]
test al, al
jne 0x403129
cmp al, 0x20
jbe 0x40314f
mov al, byte [esi]
cmp al, 0x22
jne 0x403141
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40313a
jmp 0x40314f
cmp al, cl
ja 0x403155
inc esi
mov al, byte [esi]
test al, al
jne 0x40314a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x40317e
movzx eax, word [ebp - 0x14]
jmp 0x403181
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402733
pop ecx
pop esi
leave
ret

Function at 0x4031b8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405179], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4055c0
push 0x405628
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403202
xor eax, eax
jmp 0x403219
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5e2d5db5
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7b846d8d
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x409310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x426648
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004097b0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x409416
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.004094f0
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x409409
test ebx, ebx
je 0x409414
mov edx, dword [section..data_1]
mov eax, dword [edx + 0xc]
mov ecx, section..data_1
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4266a8
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406e00
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093c0
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
test edx, edx
jg 0x409409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x409414
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor 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 0x40945c
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
mov esp, ebp
pop ebp
ret
mov eax, esi
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 0x462c43
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 8]
je 0x4675cc
rcr si, 0xd
cmc
mov esi, dword [eax + 0x3c]
shld dx, sp, 8
ror dx, 0xc
rcr dh, cl
btr dx, 2
add esi, eax
shrd dx, sp, cl
cmp al, dh
setp dl
stc
mov edx, dword [esi + 0x78]
stc
test edx, edx
jmp 0x46a209
sub ecx, ecx
pushal
lea esp, [esp + 0x28]
call fcn.0045de83
call fcn.004630ec
mov byte [esp + 4], bh
jmp 0x45d4e6

Function at 0x46707f
Capabilities:
Decompress data using aplib

Disassembly:
mov byte [esp], ah
call 0x46ac1e
push ecx
stosb byte es:[edi], al
pushal
pushal
pushfd
mov dword [esp + 8], edx
lea esp, [esp + 0x48]
jmp 0x46a74d
Function at 0x10001090
Capabilities:
Get file size
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x10018290]
lea eax, [edi + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push str.lib32.dat
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000112e
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000112d
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
jne 0x1000112d
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x61c], eax
mov dword [edi + 0x620], ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10001368
mov esp, ebp
pop ebp
ret

Function at 0x100012d0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push esi
call fcn.10001210
call fcn.10001090
mov esi, dword [0x10018290]
test esi, esi
je 0x10001354
push 0x207
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.SysAps64
push 0x62d
push 0
push 4
push 0
push 0xffffffffffffffff
mov word [esi + 0x61a], 0x1101
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x10001348
push 0x62d
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10001348
mov esi, dword [0x10018290]
mov ecx, 0x18b
push edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp fcn.10001140
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
jmp fcn.10001140
pop esi
ret
Function at 0x10014663
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10014672
pop dword [ebp - 0x18]
mov eax, 0x10014672
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3f96c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xe47495a3
sub ecx, 0xe47436e0
xor edi, edi
add edi, eax
mov edx, 0xf3576b1c
add edx, 0x1caae8e4
add edx, dword [ebp - 0x18]
mov esi, 0x9b2ddaf3
add esi, 0xaad976d6
mov ebx, dword [edx]
xor dword [ebp - 0xc], 0xccf10eba
add ebx, esi
add dword [ebp - 0x10], 0xb69e73b
mov dword [edi], ebx
add edi, 0x422d561a
sub edi, 0x422d5616
add edx, 0x40ebb56d
sub edx, 0x40ebb569
loop 0x100146c9
add eax, 0x16ddf
xor ebx, ebx
add ebx, eax
add eax, 0x3019e570
add eax, 0xcfe61a95
mov ecx, 0xe77408af
add ecx, 0x288bf751
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x1000100a
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
push ebx
lea eax, [ebp - 8]
push eax
xor esi, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100010d1
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100010c7
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001058
push ebx
sub eax, edx
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100010be
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
push 0x6610
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x100010be
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
push 1
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
mov eax, dword [ebp + 0x14]
je 0x100010b3
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [eax], ecx
inc esi
jmp 0x100010b5
mov dword [eax], ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x100010d7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10001106
xor eax, eax
jmp 0x1000114c
push esi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call fcn.10003499
push dword [ebp - 4]
mov esi, dword [ebp + 0xc]
push edi
push eax
mov dword [esi], eax
call fcn.1019f480
add esp, 0x10
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret