joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407800
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407864
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ee8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405a64
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40786b
lea eax, [ebp - 0xc]
call fcn.00403ca0
ret
Function at 0x401314
Capabilities:
Encode data using xor

Disassembly:
push 0x10
mov eax, 0x482a1e
call fcn.004811b7
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
push 0x48f169
mov dword [ebp - 4], 1
call fcn.0040161c
cmp dword [edi + 0x14], 0x10
mov ecx, edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], edi
jb 0x401357
mov ecx, dword [edi]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x10], ebx
jbe 0x40138e
xor edx, edx
mov eax, ebx
div dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
mov al, byte [edx + eax]
xor al, byte [ecx + ebx]
mov ecx, esi
movzx eax, al
push eax
call fcn.0040158c
mov ecx, dword [ebp - 0x10]
inc ebx
cmp ebx, dword [edi + 0x10]
jb 0x40136a
lea ecx, [ebp + 8]
call fcn.00401020
mov eax, esi
call fcn.004811a3
ret
Function at 0x40139e
Capabilities:
Check for peb beingdebugged flag
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x49b008]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
call fcn.00477152
push 0x320
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00477152
movsd xmm0, qword [0x499570]
sub eax, esi
movd xmm1, eax
cvtdq2pd xmm1, xmm1
comisd xmm0, xmm1
ja 0x401542
xor ebx, ebx
mov byte [esp + 0xb], bl
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [esp + 0xb], al
cmp byte [esp + 0xb], bl
jne 0x401542
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x48f169
lea ecx, [esp + 0x2c]
call fcn.0040161c
mov esi, ebx
movzx eax, byte [esi + 0x487ea8]
lea ecx, [esp + 0x28]
push eax
call fcn.0040158c
inc esi
cmp esi, 0x428
jl 0x40141f
sub esp, 0x18
mov ecx, esp
push str.ndlJQZls2DKxE
call fcn.0040161c
lea edx, [esp + 0x40]
lea ecx, [esp + 0x28]
call fcn.00401314
add esp, 0x18
lea ecx, [esp + 0x28]
push eax
call fcn.004015d1
lea ecx, [esp + 0x10]
call fcn.00401020
sub esp, 0x18
mov ecx, esp
push str.SybLZMC4zt7DT
call fcn.0040161c
lea edx, [esp + 0x40]
lea ecx, [esp + 0x28]
call fcn.00401314
add esp, 0x18
lea ecx, [esp + 0x28]
push eax
call fcn.004015d1
lea ecx, [esp + 0x10]
call fcn.00401020
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.0040115d
push eax
lea ecx, [esp + 0x2c]
call fcn.004015d1
lea ecx, [esp + 0x10]
call fcn.00401020
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x74726956
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x54], 0x416c6175
push eax
mov dword [esp + 0x5c], 0x636f6c6c
mov byte [esp + 0x60], bl
mov dword [esp + 0x48], 0x6e72656b
mov dword [esp + 0x4c], 0x32336c65
mov byte [esp + 0x50], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push dword [esp + 0x40]
push ebx
call eax
cmp dword [esp + 0x3c], 0x10
lea ecx, [esp + 0x28]
push dword [esp + 0x38]
cmovae ecx, dword [esp + 0x2c]
mov esi, eax
push ecx
push esi
call fcn.00476870
add esp, 0xc
push ebx
push esi
push ebx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
lea ecx, [esp + 0x28]
call fcn.00401020
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.00473c7a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407af1
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0046cf00
test eax, eax
jne 0x407c3b
push esi
push edi
push 5
pop ecx
call fcn.00404cd2
mov edi, eax
push edi
mov dword [ebp - 4], edi
call fcn.00404cf9
pop ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x407c2b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x407c2b
cmp dword [0x4a61f0], 0
push ebx
jne 0x407bb0
xor ebx, ebx
push ebx
call fcn.00404a8d
mov esi, str.expand_32_byte_k_
mov edi, 0x4a61f0
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x407b62
push 0x2c
push ebx
push 0x4a6200
call fcn.004753e0
jmp 0x407b8c
mov esi, dword [0x49ba1c]
test esi, esi
je 0x407b81
push 0x2c
push ebx
push 0x4a6200
call fcn.004753e0
mov dword [0x4a6200], esi
jmp 0x407b8c
push 0x4a6200
push 0x2c
push eax
call dword [eax + 0x38]
mov eax, dword [0x4a6220]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov dword [0x4a622c], eax
mov dword [0x4a6220], ebx
mov byte [0x4a6270], bl
jmp 0x407bb6
mov bl, byte [0x4a6270]
movzx eax, bl
cmp ecx, eax
jle 0x407c04
test bl, bl
je 0x407bdf
movzx eax, bl
push eax
push 0x4a6230
push esi
call fcn.00476870
movzx eax, byte [0x4a6270]
add esp, 0xc
sub dword [ebp + 8], eax
add esi, eax
inc dword [0x4a6220]
mov edx, 0x4a61f0
mov ecx, 0x4a6230
call fcn.004078b2
mov ecx, dword [ebp + 8]
mov bl, 0x40
mov byte [0x4a6270], bl
cmp ecx, 0x40
jg 0x407bbd
movzx eax, bl
sub eax, ecx
push ecx
add eax, 0x4a6230
push eax
push esi
call fcn.00476870
mov ecx, dword [ebp + 8]
sub byte [0x4a6270], cl
push edi
call fcn.00404d1f
add esp, 0x10
pop ebx
jmp 0x407c39
and dword [0x4a61f0], 0
push edi
call fcn.00404d1f
pop ecx
pop edi
pop esi
leave
ret

Function at 0x407c5d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebp - 8], edi
and dword [edi], 0
call fcn.0040519f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x407c85
push 7
pop eax
jmp 0x407cee
cmp byte [0x49b90c], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x407cc6
mov ecx, 0xc8
call fcn.00408307
test eax, eax
jne 0x407cc6
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
xor eax, eax
mov dword [esi + 0xc], ebx
push eax
push esi
push 0x407c3d
push eax
push eax
call fcn.0047842b
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x407cd2
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
cmp dword [esi + 8], 0
jne 0x407ce9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 4]
pop ecx
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40c4c6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 8]
mov eax, edx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x40c4fa
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + eax]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ecx + 4]
cmovl esi, eax
mov eax, dword [ebp - 4]
inc edx
cmp edx, edi
jl 0x40c4e0
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
leave
ret
Function at 0x436dee
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, edx
mov edi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [edi + 0x10], 1
push esi
push esi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.0043b760
add esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x436e2f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.0043b760
add esp, 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x47d9e1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047d6a1
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40291c
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.00403f40
test esi, esi
jne 0x402952
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.00404030
jmp 0x402970
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402830
mov edi, eax
test esi, esi
je 0x402970
cmp dword [ebx], 0
je 0x402970
dec esi
jmp 0x402959
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40332c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x429020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033a4
xor eax, eax
push ebp
push 0x40339d
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 0x4033e0
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 0x4033a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x429020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x429020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403dc4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42a044], 0
je 0x403e25
cmp word [0x42a218], 0xd7b2
jne 0x403ded
cmp dword [0x42a220], 0
jbe 0x403ded
mov eax, 0x42a214
call dword [0x42a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42906c
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 0x403e4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42902c], 0
jne 0x403e41
push 0
push 0x429064
push 0x42906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40502c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40525c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4050af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40525c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4050af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405278
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405138
xor eax, eax
push ebp
push 0x405131
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404e74
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405116
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405298
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405116
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405138
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405252
cmp byte [ebp - 0xd], 0
jne 0x40517f
cmp byte [ebp - 0x12], 0
je 0x405252
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405198
dec ebx
cmp byte [ebx], 0x2e
je 0x4051a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405197
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405252
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4051e4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405252
cmp byte [ebp - 0xd], 0
je 0x405252
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405252
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058e8
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 0x40594e
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.004041b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405938
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405955
lea eax, [ebp - 0x10]
call fcn.00403f40
ret

Function at 0x409b88
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409bc1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404030
jmp 0x409bca
mov eax, ebx
mov edx, esi
call fcn.00403f94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409bd4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409bf5
mov al, byte [esp]
jmp 0x409bf7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40afdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b040
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004041b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407068
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b047
lea eax, [ebp - 0xc]
call fcn.00403f40
ret
Function at 0x4125f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004043cc
xor eax, eax
push ebp
push 0x4126a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x4126b8
mov eax, dword [0x42a660]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x412693
push ebx
mov eax, dword [0x42a660]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
je 0x412693
push ebx
mov eax, dword [0x42a660]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x412693
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
test ebx, ebx
je 0x412693
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004043dc
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x412693
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4126b0
lea eax, [ebp - 4]
call fcn.00403f40
ret

Function at 0x4126bc
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004043cc
mov eax, dword [ebp - 8]
call fcn.004043cc
xor eax, eax
push ebp
push 0x412750
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004125f0
lea eax, [ebp - 0xc]
push eax
push 0x41275c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
mov eax, dword [ebp - 4]
call fcn.004043dc
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
mov eax, dword [ebp - 8]
call fcn.004043dc
push eax
push 1
push 0
push 0x41278c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412757
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f64
ret
Function at 0x6d964e
Capabilities:
Encode data using xor

Disassembly:
dec eax
insd dword es:[edi], dx
cmp eax, 0x381b610d
xor eax, 0x4a92ef30
test dword [edx - 0x489294a4], edx
mov ecx, 0x2a207187
int1
cmc
test dword [ebx - 0x39], esi
sti
sti
xor eax, edi
not ebp
adc dword [edx], esp
lodsd eax, dword [esi]
call 0x2178d3c1
jns 0x6d966a
cdq
sahf
adc dword [esi - 0x6f], edi
mov ecx, 0xaef4ec56
mov es, word [ebp - 0x1334f850]
sar dword [0x78a5fa21], cl
mov ebx, 0x3e0a68fd
add eax, 0x356859b6
xchg dword [esi - 0x66901c5f], edi
cli
movsd dword es:[edi], dword [esi]
js 0x6d95de
std
push 0xb6053e0a
pop ecx
push 0xa1be8735
jecxz 0x6d96a0
cdq
add eax, 0x479a8d0b
or ch, cl
test dword [edx - 0x56], 0xedb781ff
sbb ebp, edx
arpl word [ebx], bp
jne 0x6d9686
or byte [ebp + 0x2fc53088], bl
insd dword es:[edi], dx
xchg dword [0xc2cd884e], esp
and eax, 0xc2cd884e
and eax, 0xc2cd884e
aaa
aaa
jge 0x6d967e
lodsd eax, dword [esi]
sub eax, 0xbb4c81ef
int3
popfd
in eax, dx
cmp edi, dword [edi + 0xb]
and al, 0x8b
sub cl, byte [edi]
invalid
fmul dword [0xbe557665]
jnp 0x6d961f
cwde
add al, byte [eax - 0x3e]
mov eax, 0x7ce776d1
imul esp, dword [ebp - 0xda79d8f], 0xb7ae59c6
jae 0x6d9692
bound ebx, qword [eax - 0xe]
invalid
pop eax
imul dword [esi + 0x897d2f4]
das
xchg edi, eax
or byte [esi], ah
das
inc esp
daa
inc edx
enter 0x6827, 2
cmp eax, 0x6c235f7f
aaa
cmpsd dword [esi], dword es:[edi]
mov byte [0x659c8e97], ch
invalid
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x710c8d
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x7109ec
sub ebx, 1
inc ebx
add esi, 0x75447e9a
call fcn.00710cd5
add esi, esi
and ebx, esi
mov ebx, 0x43b3c9cd
xor dword [edx], edi
or esi, esi
sub esi, 1
inc edx
and ebx, ebx
push 0x86e9ffff
pop ebx
sub ebx, 0x7e340e25
cmp edx, eax
jne fcn.00710c8d
sub ebx, ebx
sub esi, 1
ret
Function at 0x40100f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x401041
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0x1000
push 0x1b4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x40108e
mov dword [ebp - 0x10], 0x59a100be
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc0], edx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
jne 0x40109c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004037c1
add esp, 4
cmp dword [ebp - 4], 0
je 0x4010c9
mov edx, dword [ebp - 4]
cmp dword [edx + 0x190], 0
je 0x4010c9
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x190]
mov dword [0x465e60], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret