joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6542e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f0648
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x80236c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp + 0x14], eax
cmp esi, eax
je 0x65437e
nop dword [eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x654369
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x654341
mov edi, dword [esi]
mov edx, esi
jb 0x654347
mov edx, dword [esi]
push dword [ebp + 0x14]
inc ecx
lea eax, [edi + ecx*2]
push eax
push edx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.006534b0
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
inc edx
add edx, dword [esi + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], edx
add esi, 0x18
cmp esi, eax
jne 0x654330
mov esi, dword [ebp - 0x14]
cmp ebx, esi
je 0x65437e
xor eax, eax
mov word [ebx], ax
jmp 0x65438f
push 0x76ef14
push ebx
lea ecx, [ebp - 0x1c]
call fcn.006533e0
mov esi, dword [ebp - 0x14]
push 0
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x6543e9
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
push eax
push edi
push 7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x6543e9
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x654416
sub esi, edi
mov eax, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x65440c
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65442a
push esi
push edi
call fcn.00669b1d
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.006892c4
int3
Function at 0x6601f1
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x66022a
cmp dword [ebp + 0x10], 0
je 0x66022a
cmp dword [ebp + 0x14], 0
je 0x66022a
cmp dword [ebp + 0x18], 0
je 0x66022a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_value_FROM_domain_data_WHERE_domain___d_AND_subdomain___q_AND_key___q
push dword [ebp + 0x18]
push dword [eax]
call fcn.006669fd
add esp, 0x18
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x66022f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x66025f
cmp dword [ebp + 0x10], 0
je 0x66025f
cmp dword [ebp + 0x14], 0
je 0x66025f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_key_FROM_domain_data_WHERE_domain___d_AND_subdomain___q
push dword [ebp + 0x14]
push dword [eax]
call fcn.0066682d
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x660264
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x66028b
cmp dword [ebp + 0x10], 0
je 0x66028b
push dword [ebp + 0xc]
push str.SELECT_DISTINCT_subdomain_FROM_domain_data_WHERE_domain___d
push dword [ebp + 0x10]
push dword [eax]
call fcn.0066682d
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x660f50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f1bae
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x80236c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea esi, [edi + 0x40]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00669aed
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x48]
mov byte [ebp - 4], 2
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00669aed
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x50], eax
mov eax, edi
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x6664b7
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x6d7518
call fcn.0066b055
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 0x30]
push eax
lea esi, [edi + 0x18]
push esi
call fcn.00666e21
add esp, 0xc
test al, al
jne 0x6664f7
push 0xa
pop esi
jmp 0x666640
lea eax, [ebp - 0x28]
push eax
call fcn.00666d87
pop ecx
test al, al
jne 0x66652c
lea eax, [ebp - 0x28]
push eax
call fcn.00666f1b
pop ecx
test al, al
je 0x66651b
xor esi, esi
inc esi
jmp 0x666640
push esi
call fcn.0066631f
mov esi, eax
pop ecx
test esi, esi
jne 0x666640
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
push dword [ebp + 8]
cmovae eax, dword [ebp - 0x28]
lea esi, [edi + 4]
push esi
push eax
call fcn.0051bc00
add esp, 0x10
test eax, eax
je 0x66655c
push eax
mov dword [esi], ebx
call fcn.00666399
pop ecx
mov esi, eax
jmp 0x666640
push 0x7d0
push dword [esi]
call fcn.005185b0
cmp byte [edi + 0x4c], 0
mov esi, ebx
pop ecx
pop ecx
mov dword [edi], ebx
je 0x666640
mov eax, dword [edi + 0x50]
mov ecx, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
sub eax, ebx
je 0x6665a0
sub eax, 1
je 0x66659b
sub eax, 1
jne 0x6665a0
xor ecx, ecx
inc ecx
mov dword [ebp - 0x30], ecx
push 3
jmp 0x6665a2
xor ebx, ebx
inc ebx
jmp 0x6665a3
push 2
pop ebx
push str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_version
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
push eax
push edi
call fcn.006669fd
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, eax
test esi, esi
jne 0x6665f9
push dword [ebp - 0x2c]
call fcn.006941cf
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
mov dword [esp], str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_compatibility_version
push eax
push edi
call fcn.006669fd
mov ecx, dword [ebp - 0x34]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6665f6
push dword [ebp - 0x2c]
call fcn.006941cf
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x30]
cmp ebx, ecx
jge 0x666602
push 0xd
pop esi
jmp 0x666637
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jg 0x666633
push eax
mov ecx, edi
call fcn.00666655
mov esi, eax
test esi, esi
jne 0x666628
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jle 0x66660d
jmp 0x66663e
mov eax, dword [ebp - 0x34]
xor ecx, ecx
cmp eax, dword [ebp - 0x2c]
cmove esi, ecx
test esi, esi
je 0x66663e
mov ecx, edi
call fcn.00666489
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00487df0
mov eax, esi
call fcn.0066b010
ret 4
Function at 0x666b5c
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x6cb078
call fcn.0066b055
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 4
pop edi
push esi
push eax
call fcn.0066947d
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00666f1b
add esp, 0xc
test al, al
jne 0x666ba4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
neg eax
sbb eax, eax
and edi, eax
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00487b50
mov eax, edi
call fcn.0066b010
ret

Function at 0x666bb7
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x240
mov eax, 0x6f228b
call fcn.0066b055
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x21c], 7
mov bl, cl
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push 0x2b
push ecx
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x218]
push eax
js 0x666c5c
push dword [ebp - 0x24c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x666c4c
cmp word [ebp - 0x218], 0
jne 0x666c2a
xor eax, eax
jmp 0x666c37
lea eax, [ebp - 0x218]
push eax
call fcn.00697995
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00487be0
mov bl, 1
push dword [ebp - 0x24c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
jmp 0x666c9c
xor edi, edi
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x666c9c
cmp word [ebp - 0x218], di
jne 0x666c7a
mov eax, edi
jmp 0x666c87
lea eax, [ebp - 0x218]
push eax
call fcn.00697995
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00487be0
mov bl, 1
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x666d12
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x666cd2
lea eax, [ecx - 1]
push edi
push eax
lea ecx, [ebp - 0x230]
call fcn.006670c6
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00669530
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0049ea00
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.00487df0
mov edi, str.Adobe
push edi
call fcn.0069d250
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0048e470
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00487b50
mov al, bl
call fcn.0066b010
ret
Function at 0x666d29
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x80236c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0066947d
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x666d68
test al, 0x10
jbe 0x666d68
mov bl, 1
jmp 0x666d6a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00487b50
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00669adc
mov esp, ebp
pop ebp
ret

Function at 0x666f1b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x80236c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0066947d
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.00487b50
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00669adc
mov esp, ebp
pop ebp
ret
Function at 0x668c20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x6a3eae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006a3d24

Function at 0x6ab034
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006aab87

Function at 0x6b17eb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x106d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00436910
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x40269c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040317c
test esi, esi
jne 0x4026d2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403240
jmp 0x4026f0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025b0
mov edi, eax
test esi, esi
je 0x4026f0
cmp dword [ebx], 0
je 0x4026f0
dec esi
jmp 0x4026d9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4029b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402998
xor eax, eax
push ebp
push 0x402991
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4029d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402998
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403000
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403061
cmp word [0x40f208], 0xd7b2
jne 0x403029
cmp dword [0x40f210], 0
jbe 0x403029
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403088
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b020], 0
jne 0x40307d
push 0
push 0x40b054
push 0x40b05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403d68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403dce
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004032b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004027e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403db8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403dd5
lea eax, [ebp - 0x10]
call fcn.0040317c
ret
Function at 0x4079ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407abb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004032b0
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 4]
mov ecx, 0x407ad0
call fcn.00403314
mov edx, dword [0x40f678]
mov eax, 0x407ad0
call fcn.004035b0
test eax, eax
jne 0x407a73
mov edx, dword [0x40f678]
mov eax, 0x407adc
call fcn.004035b0
test eax, eax
je 0x407a82
mov eax, ebx
mov edx, dword [0x40f678]
call fcn.004031d0
jmp 0x407a9a
lea eax, [ebp - 4]
mov edx, dword [0x40f678]
call fcn.004032d0
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004031d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ac2
lea eax, [ebp - 0x10c]
call fcn.0040317c
lea eax, [ebp - 4]
call fcn.0040317c
ret

Function at 0x407b4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004034c8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407b65
test al, 0x10
jne 0x407b69
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x407b8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x407d23
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, 7
ja case.default.0x407bcf
jmp dword [eax*4 + 0x407bd6]
lea eax, [ebp - 0x104]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.004032b0
jmp case.default.0x407bcf
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
call fcn.004076f0
mov eax, dword [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
mov dl, byte [ebp - 0x104]
call fcn.00403270
mov edx, dword [ebp - 0x10c]
mov eax, ebx
pop ecx
call fcn.00403314
jmp case.default.0x407bcf
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x110]
call fcn.0040774c
mov eax, dword [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
mov dl, byte [ebp - 0x104]
call fcn.00403270
mov edx, dword [ebp - 0x114]
mov eax, ebx
pop ecx
call fcn.00403314
jmp case.default.0x407bcf
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.0040269c
mov eax, dword [ebp - 0x118]
mov edx, ebx
call fcn.0040788c
jmp case.default.0x407bcf
mov eax, ebx
call fcn.00407ae0
jmp case.default.0x407bcf
mov eax, ebx
call fcn.00407b04
jmp case.default.0x407bcf
mov eax, ebx
call fcn.00407b28
jmp case.default.0x407bcf
mov eax, dword [0x40f670]
call fcn.00407b4c
test al, al
jne 0x407cf8
mov eax, dword [0x40f670]
call fcn.00407b70
mov eax, ebx
mov edx, dword [0x40f670]
call fcn.004031d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d2a
lea eax, [ebp - 0x118]
mov edx, 5
call fcn.004031a0
ret

Function at 0x407d30
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x407dc0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x407d9b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
call fcn.004077cc
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403280
mov edx, dword [ebp - 8]
pop eax
call fcn.004032d0
mov eax, dword [ebp - 4]
call fcn.004034c8
push eax
call sub.kernel32.dll_WinExec
push 0
call sub.kernel32.dll_ExitProcess_1

Function at 0x407f2c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov byte [esp], 0x6e
mov byte [esp + 1], 0x74
mov byte [esp + 2], 0x64
mov byte [esp + 3], 0x6c
mov byte [esp + 4], 0x6c
mov byte [esp + 5], 0x2e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x6c
mov byte [esp + 8], 0x6c
mov eax, ebx
mov edx, esp
mov ecx, 9
call fcn.00403240
add esp, 0xc
pop ebx
ret
Function at 0x409010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x40902f
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00408c50
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x1048], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x1044], ecx
inc edi
cmp edi, 9
jne 0x409091
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1000]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00408c50
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x4090e0
add ebx, 0x400
dec edi
jne 0x4090de
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret