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

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
sub esp, 0x4c
cmp byte [0x428f4c], 0
mov byte [0x42a9c0], 0
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], 0
jne 0x40fa25
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x3c]
movzx edx, dx
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x41d0a0]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x40fa8b
mov eax, edi
cmp al, byte [ebx]
je 0x40fb35
xor ebp, ebp
mov esi, edi
sub edx, 1
mov word [esp + 0x2e], bp
jmp 0x40fa81
movzx eax, word [esp + 0x2e]
mov ecx, esi
lea ebp, [edx - 1]
cmp byte [ebx + eax], cl
je 0x40faf0
mov edx, ebp
add word [esp + 0x2e], 1
test edx, edx
jne 0x40fa70
mov eax, 0x616e
mov dword [0x42a9c0], 0x73206f4e
mov dword [0x42a9c4], 0x65722065
mov word [0x42a9dc], ax
mov dword [0x42a9c8], 0x69626963
xor eax, eax
mov dword [0x42a9cc], 0x657220f3
mov dword [0x42a9d0], 0x65757073
mov dword [0x42a9d4], 0x20617473
mov dword [0x42a9d8], 0x75676c61
mov byte [0x42a9de], 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x3c], edx
movzx esi, word [esp + 0x2e]
xor eax, eax
jmp 0x40fb07
movzx edi, si
movzx edi, byte [ebx + edi]
add esi, 1
mov ecx, edi
mov byte [ebx + eax], cl
mov eax, esi
sub ax, word [esp + 0x2e]
movzx eax, ax
cmp eax, edx
jb 0x40fb00
mov eax, ebx
mov ecx, 0x42a9c0
call fcn.0040f560
mov eax, dword [esp + 0x3c]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
mov word [esp + 0x2e], cx
jmp 0x40faf4

Function at 0x410440
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x15c
mov dword [esp + 4], 0
mov dword [esp], 0xf
mov ebp, dword [esp + 0x170]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov ebx, eax
lea esi, [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 0x28], 0x128
mov dword [esp + 4], esi
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
lea edi, [esp + 0x4c]
jne 0x4104a3
jmp 0x410500
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
je 0x410500
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x410490
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 8], eax
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
test eax, eax
je 0x410490
mov dword [esp + 4], 9
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x410490
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
add esp, 0x15c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x412010
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x1c
call fcn.004060e0
test al, al
je 0x412032
mov dword [esp], str.Launch_device_to_DFU_mode_n
call fcn.0040fc50
call fcn.004065c0
call fcn.004068b0
add esp, 0x1c
jmp fcn.00402f80

Function at 0x412910
Capabilities:
Create thread

Disassembly:
sub esp, 0x3c
call fcn.00412870
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4127f0
mov dword [esp + 4], 0
mov dword [esp + 0x14], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
test eax, eax
je 0x412960
add esp, 0x3c
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.No_se_puede_crear_el_subproceso_de_aplicacion
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
jmp 0x412953

Function at 0x413f30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x413f90
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x414086
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x414000
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x413fd5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x413fe5
cmp byte [esp + 0x1e], 0
je 0x413fe5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x413fe5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00413f30
nop
Function at 0x414320
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x428fa4
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x428fbc]
sub esp, 4
test ebx, ebx
je 0x41436b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x414364
test esi, esi
je 0x414364
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x414340
mov dword [esp], 0x428fa4
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x41c880
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00414300
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x41c8b6
jmp 0x41c8f5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x41c8b3
cmp al, 0x20
je 0x41c8b3
cmp al, 0x22
jne 0x41c8d9
jmp 0x41c944
cmp al, 0x20
lea esi, [esi]
je 0x41c8e0
test al, al
je 0x41c8f5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x41c8c7
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x41c95a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x41c8e7
cmp al, 0x20
je 0x41c8e7
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x41c904
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00410520
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x41c94e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x41c940
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x41c8e0
cmp al, 9
je 0x41c8e7
jmp 0x41c8f5
Function at 0x10005e4e
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x10007a20
call fcn.100078a2
cmp byte [0x1000b945], 0
je 0x10005e6d
mov eax, dword [0x1000b948]
jmp 0x10005f43
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
mov dword [ebp - 4], esi
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005ebd
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push 0x1000b948
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005ebd
cmp dword [ebp - 0x14], 4
je 0x10005f16
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
test eax, eax
je 0x10005ece
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005f1e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push 0x1000b948
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005f1e
cmp dword [ebp - 0x14], 4
jne 0x10005f1e
mov esi, dword [0x1000b948]
jmp 0x10005f24
mov dword [0x1000b948], esi
mov byte [0x1000b945], 1
mov dword [ebp - 4], 3
cmp dword [ebp - 0x10], 0
je 0x10005f41
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10007880
ret

Function at 0x10007608
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10007617
pop dword [ebp - 0x10]
mov eax, 0x5a72b800
add eax, 0xb58dbe17
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xbc1b6cfc
add dword [ebp - 0x20], 0x9236d84f
mov dword [ebp - 0x1c], 0x8ed8d8b9
sub dword [ebp - 0x1c], 0x5ca58c74
mov dword [ebp - 0x18], 0x56231f25
sub dword [ebp - 0x18], 0x9d6daf7
mov dword [ebp - 0x14], 0xd8b177cd
sub dword [ebp - 0x14], 0xd8b177cd
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x9d4805e6
add dword [ebp - 0x20], 0xd72a6370
mov dword [ebp - 0x1c], 0x4aa37317
add dword [ebp - 0x1c], 0xf6c8ee5e
mov dword [ebp - 0x18], 0xf3436540
sub dword [ebp - 0x18], 0x8fd3f8d4
mov dword [ebp - 0x14], 0x46fd7120
add dword [ebp - 0x14], 0xb9028ee0
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x36050
push 0
call eax
mov ecx, 0x428d
xor ebx, ebx
add ebx, eax
mov edx, 0x1000dc00
add edx, dword [ebp - 0x10]
mov edi, 0x1fc75ec2
sub edi, 0x25a9a9d9
sub dword [ebp - 8], esi
mov esi, dword [edx]
xor esi, edi
add dword [ebp - 4], 0x2ece81e9
mov dword [ebx], esi
sub dword [ebp - 0xc], edx
add ebx, 0x7a1f4d56
sub ebx, 0x7a1f4d52
add edx, 4
loop 0x10007725
add eax, 0x6881c676
sub eax, 0x6880c96f
xor ebx, ebx
add ebx, eax
add eax, 0x8a4ff55d
add eax, 0x75b00aa8
mov ecx, 0x9258538d
add ecx, 0x7da7ac73
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x406760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406784
xor eax, eax
test eax, eax
je 0x406797
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406797
xor ecx, ecx
jmp 0x40679a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4068f4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068ce
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406925
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406907
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x457996
Capabilities:
Query environment variable

Disassembly:
jmp 0x4e0fed
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e1001
xor edi, edi
jmp 0x4e1045
push ebx
push esi
call fcn.004e0ee6
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.00458dd7
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4e1032
push ebx
push esi
push edi
call fcn.00458f62
add esp, 0xc
push 2
push 0
call fcn.004589a9
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x458a67
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x508700
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x53c1f0], 1
jge 0x50876f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x508745
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x508745
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x508722
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x50875b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x508762
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x50885f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x508830
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x508825
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x508819
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x508820
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x50885f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x50885a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x508843
mov eax, dword [ebx + 8]
jmp 0x50885f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x508851
xor eax, eax
jmp 0x50885f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x50878f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40104b
Capabilities:
Print debug messages
Write file on windows

Disassembly:
jmp 0x402c00
push 0xffffffffffffffff
push 0x4976f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0
je 0x402c4a
push eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040105f
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
push ebx
push edx
push eax
lea edi, [esi + 4]
push str._s:__s___s_r_n
push edi
call fcn.0040105f
push edi
lea ecx, [esp + 0x40]
push 0x4a303c
push ecx
call fcn.004011fe
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x20
push eax
call esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402ca3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
mov edx, dword [0x4c8dc4]
push 0
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
mov eax, dword [edi - 0xc]
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402cd1
push str._FILEToEmail:_Could_Not_Write_message_to_Log_File_n
call esi
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x4010d2
Capabilities:
Get common file path

Disassembly:
jmp 0x405da0
push 0xffffffffffffffff
push 0x497e01
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, dword [esp + 0x140]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str..FileToEmail.cpp
mov dword [esp + 0x144], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.GetDataDirectory
mov byte [esp + 0x148], 1
call fcn.004012d5
lea ecx, [esp + 0x20]
mov dword [esp + 0x144], 0xffffffff
call fcn.0040130c
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x144], 2
call fcn.00451640
add esp, 0xc
push 1
push 5
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x405ea2
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Failed_to_get_users_data_directory
call fcn.004012d5
lea ecx, [esp + 0x1c]
call fcn.00401514
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.004013f2
xor al, al
jmp 0x405efe
lea edi, [esp + 0x28]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405eb0
mov dx, word [0x4a33c8]
lea eax, [esp + 0x28]
mov word [edi], dx
lea edx, [eax + 1]
jmp 0x405ed0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405ed0
sub eax, edx
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00401032
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.004013f2
mov al, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0045162d
add esp, 0x130
ret 4
Function at 0x401131
Capabilities:
Get common file path

Disassembly:
jmp 0x406a10
push 0xffffffffffffffff
push 0x498081
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x13c]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str..FileToEmail.cpp
mov dword [esp + 0x140], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.GetSystemsDir
mov byte [esp + 0x144], 1
call fcn.004012d5
lea ecx, [esp + 0x20]
mov dword [esp + 0x140], 0xffffffff
call fcn.0040130c
push 0x104
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x140], 2
call fcn.00451640
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x406af4
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.004013f2
xor al, al
jmp 0x406b37
lea eax, [esp + 0x24]
lea edx, [eax + 1]
jmp 0x406b00
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406b00
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00401032
push 0x5c
mov ecx, esi
call fcn.00401366
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.004013f2
mov al, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0045162d
add esp, 0x130
ret 4
Function at 0x401145
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
jmp 0x405f90
push 0xffffffffffffffff
push 0x497e71
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov esi, dword [esp + 0x144]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str..FileToEmail.cpp
mov dword [esp + 0x148], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.GetProgramFilesDir
mov byte [esp + 0x14c], 1
call fcn.004012d5
lea ecx, [esp + 0x20]
mov dword [esp + 0x148], 0xffffffff
call fcn.0040130c
push 0x104
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x148], 2
call fcn.00451640
add esp, 0xc
push 1
push 0x26
lea ecx, [esp + 0x34]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4060ea
lea edx, [esp + 8]
push edx
push 1
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4060bb
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push str.ProgramFilesDir
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4060d7
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Couldnt_read_ProgramFilesDir_from_reg
jmp 0x4060c9
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Couldnt_open_CurrentVersion_key
call fcn.004012d5
lea ecx, [esp + 0x1c]
call fcn.00401514
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4060f1
sub eax, edx
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00401032
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jne 0x406145
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Failed_to_get_the_OSs_program_files_directory
call fcn.004012d5
lea ecx, [esp + 0x1c]
call fcn.00401514
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004013f2
xor al, al
jmp 0x406169
push 1
push 0x4a33c8
mov ecx, esi
call fcn.004010ff
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004013f2
mov al, 1
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0045162d
add esp, 0x138
ret 4