joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b780
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query environment variable
Write file on windows

Disassembly:
sub esp, 0x134
mov eax, dword [0x4310d8]
mov dword [esp + 0x130], eax
inc dword [0x4310b8]
mov al, 0xb0
mov byte [esp + 9], al
mov byte [esp + 0x1b], al
mov al, 0x8c
mov cl, 0x87
mov byte [esp + 0x21], al
mov byte [esp + 0x27], al
mov byte [esp + 4], 0x7b
mov byte [esp + 5], 0x3a
mov byte [esp + 6], 0x59
mov byte [esp + 7], 0xfe
mov byte [esp + 8], 0x78
mov byte [esp + 0xa], 0xb1
mov byte [esp + 0xb], 0x27
mov byte [esp + 0xc], 0x34
mov byte [esp + 0xd], 0xf8
mov byte [esp + 0xe], 0x7f
mov byte [esp + 0xf], 0x7a
mov byte [esp + 0x10], 6
mov byte [esp + 0x11], 0x30
mov byte [esp + 0x12], 0xcb
mov byte [esp + 0x13], 0xef
mov byte [esp + 0x14], cl
mov byte [esp + 0x18], 0x5e
mov byte [esp + 0x19], 0x6d
mov byte [esp + 0x1a], 0x10
mov byte [esp + 0x1c], 0x3c
mov byte [esp + 0x1d], 0xf9
mov byte [esp + 0x1e], 0xe3
mov byte [esp + 0x1f], 2
mov byte [esp + 0x20], 0x68
mov byte [esp + 0x22], 0xc
mov byte [esp + 0x23], 0x1f
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x25], 0x46
mov byte [esp + 0x26], 0xe5
mov byte [esp + 0x28], cl
xor eax, eax
mov dl, byte [esp + eax + 4]
mov cl, byte [esp + eax + 0x18]
xor dl, cl
mov byte [esp + eax + 4], dl
inc eax
cmp eax, 0x11
jl 0x40b844
push esi
push 0x104
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea edx, [esp + 8]
push edx
push 4
mov esi, eax
push 0x4310b8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
call fcn.00424873
add esp, 0x134
ret
Function at 0x40bda0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
lea ecx, [edi - 1]
xor edx, edx
test ecx, ecx
push esi
mov esi, eax
jle 0x40bdc4
mov bl, byte [ecx + esi]
mov al, byte [edx + esi]
mov byte [edx + esi], bl
inc edx
mov byte [ecx + esi], al
dec ecx
cmp edx, ecx
jl 0x40bdb2
mov cl, byte [0x431c88]
and cl, 0x19
test edi, edi
mov byte [0x431c88], cl
jle 0x40bdef
mov ecx, ebp
sub esi, ebp
mov eax, edi
mov dl, 0xb
nop
mov byte [0x431c88], dl
mov bl, byte [esi + ecx]
xor byte [ecx], bl
inc ecx
dec eax
jne 0x40bde0
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
Function at 0x40c1d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 4], eax
rdtsc
xor eax, edx
xor dword [esp + 4], eax
call esi
mov dword [esp + 8], eax
rdtsc
xor eax, edx
xor dword [esp + 8], eax
call esi
mov dword [esp + 0xc], eax
rdtsc
xor eax, edx
xor dword [esp + 0xc], eax
call esi
mov dword [esp + 0x10], eax
rdtsc
xor eax, edx
xor dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
pop esi
add esp, 0x10
ret

Function at 0x40c240
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4310d8]
mov dword [esp + 0x28], eax
mov al, 0xd7
mov byte [esp + 0xd], al
mov byte [esp + 0x12], al
mov al, 0xf4
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
mov al, 0x9d
mov byte [esp + 0x1c], al
mov byte [esp + 0x24], al
mov byte [esp], 0xa9
mov byte [esp + 1], 0xc4
mov byte [esp + 2], 0x21
mov byte [esp + 3], 0xb0
mov byte [esp + 4], 0x48
mov byte [esp + 5], 0x45
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0xc0
mov byte [esp + 8], 0xe0
mov byte [esp + 9], 0x7f
mov byte [esp + 0xa], 0x3d
mov byte [esp + 0xb], 0xb8
mov byte [esp + 0xc], 0xda
mov byte [esp + 0xe], 0xa0
mov byte [esp + 0xf], 0x1b
mov byte [esp + 0x10], 0xa4
mov byte [esp + 0x11], 0xe8
mov byte [esp + 0x15], 0x8f
mov byte [esp + 0x16], 0xd0
mov byte [esp + 0x17], 0x94
mov byte [esp + 0x18], 0x3e
mov byte [esp + 0x19], 0xf8
mov byte [esp + 0x1a], 0xef
mov byte [esp + 0x1b], 0xea
mov byte [esp + 0x1d], 0x10
mov byte [esp + 0x1e], 0x52
mov byte [esp + 0x1f], 0xcd
mov byte [esp + 0x20], 0xed
mov byte [esp + 0x21], 0x54
mov byte [esp + 0x22], 0x68
mov byte [esp + 0x23], 0x65
mov byte [esp + 0x25], 0xc
mov byte [esp + 0x26], 0xe9
mov byte [esp + 0x27], 0x84
xor eax, eax
mov ecx, 0x13
push ebx
jmp 0x40c320
mov bl, byte [esp + ecx + 0x18]
mov dl, byte [esp + eax + 0x18]
mov byte [esp + eax + 0x18], bl
inc eax
mov byte [esp + ecx + 0x18], dl
dec ecx
cmp eax, ecx
jl 0x40c320
xor eax, eax
mov byte [0x431c88], 0xb
nop
mov cl, byte [esp + eax + 0x18]
mov dl, byte [esp + eax + 4]
mov bl, byte [esp + eax + 5]
xor dl, cl
mov cl, byte [esp + eax + 0x1a]
mov byte [esp + eax + 4], dl
mov dl, byte [esp + eax + 0x19]
xor bl, dl
mov dl, byte [esp + eax + 6]
xor dl, cl
mov cl, byte [esp + eax + 7]
mov byte [esp + eax + 6], dl
mov dl, byte [esp + eax + 0x1b]
xor cl, dl
mov byte [esp + eax + 5], bl
mov bl, byte [esp + eax + 8]
mov byte [esp + eax + 7], cl
mov cl, byte [esp + eax + 0x1c]
xor bl, cl
mov byte [esp + eax + 8], bl
add eax, 5
cmp eax, 0x14
jl 0x40c340
call fcn.0040c1d0
push eax
call fcn.0040c1d0
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x431f14]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
pop ebx
call fcn.00424873
add esp, 0x2c
ret
Function at 0x40d980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
dec ebp
test ebp, ebp
mov edx, 0x77
jle 0x40d9e2
mov esi, dword [esp + 0xc]
push ebx
push edi
sub esi, ecx
mov edi, ebp
lea esp, [esp]
xor eax, eax
mov al, dl
mov bl, 0x17
imul bl
mov byte [0x431c89], al
mov bl, byte [ecx + 1]
and eax, 0x10
or edx, eax
mov al, byte [ecx]
xor al, bl
mov byte [esi + ecx], al
mov al, byte [0x431c89]
and al, 0x39
mov bl, dl
sub bl, 0x5e
xor al, bl
inc ecx
dec edi
mov byte [0x431c89], al
jne 0x40d9a0
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
mov byte [eax + ebp], 0
pop ebp
ret 8
mov eax, dword [esp + 0xc]
mov byte [esi + eax], 0
pop esi
pop ebp
ret 8
Function at 0x411f20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
mov eax, dword [0x4310d8]
mov dword [esp + 0x20], eax
mov al, 0xe9
push esi
mov byte [esp + 7], al
mov byte [esp + 0x15], al
push 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24], 0x73
mov byte [esp + 0x25], 0x65
mov byte [esp + 0x26], 0x63
mov byte [esp + 0x27], 0x75
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x29], 0
mov byte [esp + 0xc], 1
mov byte [esp + 0xd], 0xc6
mov byte [esp + 0xe], 0xbd
mov byte [esp + 0x1c], 0x9a
mov byte [esp + 0x1e], 0x8c
mov byte [esp + 0x1f], 0xef
call fcn.0040d980
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
mov byte [esp + 0x14], 0x73
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x72
mov byte [esp + 0x17], 0x76
mov byte [esp + 0x18], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.0040c1d0
xor edx, edx
mov ecx, 3
div ecx
mov edx, dword [esp + edx*4 + 8]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411fc7
mov ecx, dword [esp + 0x2c]
sub eax, esi
push eax
push edx
call fcn.004028a0
mov ecx, dword [esp + 0x24]
pop esi
call fcn.00424873
add esp, 0x24
ret

Function at 0x411ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
dec ebp
test ebp, ebp
mov edx, 0x39
jle 0x412055
mov esi, dword [esp + 0xc]
push ebx
push edi
sub esi, ecx
mov edi, ebp
lea esp, [esp]
mov al, dl
xor al, 0x5d
mov byte [0x431c90], al
mov bl, byte [ecx + 1]
movsx eax, al
imul eax, edx
add eax, 0x1905
mov edx, eax
mov al, byte [ecx]
xor al, bl
mov byte [esi + ecx], al
mov bl, 0xc0
mov al, dl
imul bl
mov bl, byte [0x431c90]
add bl, al
inc ecx
dec edi
mov byte [0x431c90], bl
jne 0x412010
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
mov byte [eax + ebp], 0
pop ebp
ret
mov eax, dword [esp + 0xc]
mov byte [esi + eax], 0
pop esi
pop ebp
ret

Function at 0x412060
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
lea ecx, [edi - 1]
xor edx, edx
test ecx, ecx
push esi
mov esi, eax
jle 0x412084
mov bl, byte [ecx + esi]
mov al, byte [edx + esi]
mov byte [edx + esi], bl
inc edx
mov byte [ecx + esi], al
dec ecx
cmp edx, ecx
jl 0x412072
mov cl, byte [0x431c90]
and cl, 0x19
test edi, edi
mov byte [0x431c90], cl
jle 0x4120af
mov ecx, ebp
sub esi, ebp
mov eax, edi
mov dl, 0x17
nop
mov byte [0x431c90], dl
mov bl, byte [esi + ecx]
xor byte [ecx], bl
inc ecx
dec eax
jne 0x4120a0
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4
Function at 0x4120c0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Encode data using xor
Get file attributes
Query environment variable

Disassembly:
sub esp, 0x138
mov eax, dword [0x4310d8]
mov dword [esp + 0x134], eax
mov al, 0xc9
mov cl, 0xb0
mov byte [esp + 0x1a], al
mov byte [esp + 0x2e], al
mov byte [esp + 8], 0x7b
mov byte [esp + 9], 0x3a
mov byte [esp + 0xa], 0x59
mov byte [esp + 0xb], 0xfe
mov byte [esp + 0xc], 0x78
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], 0xb1
mov byte [esp + 0xf], 0x27
mov byte [esp + 0x10], 0x34
mov byte [esp + 0x11], 0xf8
mov byte [esp + 0x12], 0x7f
mov byte [esp + 0x13], 0x7a
mov byte [esp + 0x14], 6
mov byte [esp + 0x15], 0x30
mov byte [esp + 0x16], 0xcb
mov byte [esp + 0x17], 0xef
mov byte [esp + 0x18], 0x87
mov byte [esp + 0x19], 0xae
mov byte [esp + 0x1c], 0x5e
mov byte [esp + 0x1d], 0x6d
mov byte [esp + 0x1e], 0x10
mov byte [esp + 0x1f], cl
mov byte [esp + 0x20], 0x3c
mov byte [esp + 0x21], 0xf9
mov byte [esp + 0x22], 0xe3
mov byte [esp + 0x23], 2
mov byte [esp + 0x24], 0x68
mov byte [esp + 0x25], 0x8c
mov byte [esp + 0x26], 0xc
mov byte [esp + 0x27], 0x1f
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], 0x46
mov byte [esp + 0x2a], 0xe5
mov byte [esp + 0x2b], 0x8b
mov byte [esp + 0x2c], 0xeb
mov byte [esp + 0x2d], 0xc2
xor eax, eax
push ebx
mov bl, byte [esp + eax + 0xc]
mov cl, byte [esp + eax + 0x20]
xor bl, cl
mov byte [esp + eax + 0xc], bl
inc eax
cmp eax, 0x13
jl 0x412193
mov dl, byte [0x431c90]
movzx eax, byte [esp + 7]
add dl, 0x79
movzx ebx, dl
xor ebx, eax
xor ebx, 8
or ebx, 0x37
imul ebx, ebx, 0x5d
push 0x104
add ebx, 0x2b7a
lea ecx, [esp + 0x38]
mov al, bl
push ecx
lea edx, [esp + 0x14]
add al, 0x59
push edx
mov byte [esp + 0x13], al
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov cl, byte [esp + 7]
or ebx, 0x7df3
mov al, bl
add al, 0x66
xor cl, al
mov byte [esp + 7], cl
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41223b
mov al, byte [esp + 7]
movzx ebx, al
xor ebx, 0x49
mov dl, bl
sub dl, 0x5e
xor al, dl
mov byte [esp + 7], al
push 0x42e3f4
lea eax, [esp + 0x38]
push eax
push 0
call fcn.0041e0b0
add esp, 0xc
test eax, eax
je 0x4122d9
movzx eax, byte [esp + 7]
imul eax, ebx
push esi
lea ecx, [esp + 0x38]
add eax, 0x762
push ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0xc]
mov esi, eax
mov al, cl
add al, 0x59
movzx ebx, al
imul ebx, ecx
add ebx, 0x29d6
test esi, esi
jne 0x412293
mov al, byte [0x431c90]
or al, 0x61
pop esi
mov byte [0x431c90], al
pop ebx
mov ecx, dword [esp + 0x134]
call fcn.00424873
add esp, 0x138
ret
mov cl, byte [0x431c90]
mov dl, bl
add dl, cl
add dl, 0x2b
push 0x42e3f0
xor al, dl
push esi
mov byte [esp + 0x13], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov al, bl
imul byte [esp + 0xb]
mov dl, 0xb8
imul dl
mov dl, byte [0x431c90]
push 0
push esi
push ecx
add dl, al
push 5
mov byte [0x431c90], dl
call dword [0x431f18]
pop esi
mov ecx, dword [esp + 0x138]
pop ebx
call fcn.00424873
add esp, 0x138
ret
Function at 0x4122f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x4310d8]
push esi
mov dword [esp + 0x110], eax
push 0x104
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41234c
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
call fcn.00424873
add esp, 0x110
ret
push 2
push 0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 0xffeeffee
mov ecx, dword [esp + 0x110]
sete al
pop esi
call fcn.00424873
add esp, 0x110
ret
Function at 0x4129c0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query environment variable
Read file on windows

Disassembly:
sub esp, 0x134
mov eax, dword [0x4310d8]
mov dword [esp + 0x130], eax
mov al, 0xc9
mov cl, 0xb0
mov byte [esp + 0x16], al
mov byte [esp + 0x2a], al
mov byte [esp + 4], 0x7b
mov byte [esp + 5], 0x3a
mov byte [esp + 6], 0x59
mov byte [esp + 7], 0xfe
mov byte [esp + 8], 0x78
mov byte [esp + 9], cl
mov byte [esp + 0xa], 0xb1
mov byte [esp + 0xb], 0x27
mov byte [esp + 0xc], 0x34
mov byte [esp + 0xd], 0xf8
mov byte [esp + 0xe], 0x7f
mov byte [esp + 0xf], 0x7a
mov byte [esp + 0x10], 6
mov byte [esp + 0x11], 0x30
mov byte [esp + 0x12], 0xcb
mov byte [esp + 0x13], 0xef
mov byte [esp + 0x14], 0x87
mov byte [esp + 0x15], 0xae
mov byte [esp + 0x18], 0x5e
mov byte [esp + 0x19], 0x6d
mov byte [esp + 0x1a], 0x10
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1c], 0x3c
mov byte [esp + 0x1d], 0xf9
mov byte [esp + 0x1e], 0xe3
mov byte [esp + 0x1f], 2
mov byte [esp + 0x20], 0x68
mov byte [esp + 0x21], 0x8c
mov byte [esp + 0x22], 0xc
mov byte [esp + 0x23], 0x1f
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x25], 0x46
mov byte [esp + 0x26], 0xe5
mov byte [esp + 0x27], 0x8b
mov byte [esp + 0x28], 0xe6
mov byte [esp + 0x29], 0xda
xor eax, eax
mov dl, byte [esp + eax + 4]
mov cl, byte [esp + eax + 0x18]
xor dl, cl
mov byte [esp + eax + 4], dl
inc eax
cmp eax, 0x13
jl 0x412a92
push esi
push 0x104
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412af3
xor eax, eax
pop esi
mov ecx, dword [esp + 0x130]
call fcn.00424873
add esp, 0x134
ret
push 0
lea edx, [esp + 8]
push edx
push 0x10
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, 1
pop esi
call fcn.00424873
add esp, 0x134
ret
Function at 0x412b30
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query environment variable
Write file on windows

Disassembly:
sub esp, 0x134
mov eax, dword [0x4310d8]
mov dword [esp + 0x130], eax
mov al, 0xc9
mov cl, 0xb0
mov byte [esp + 0x2a], al
mov byte [esp + 0x16], al
mov byte [esp + 0x18], 0x7b
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x59
mov byte [esp + 0x1b], 0xfe
mov byte [esp + 0x1c], 0x78
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], 0xb1
mov byte [esp + 0x1f], 0x27
mov byte [esp + 0x20], 0x34
mov byte [esp + 0x21], 0xf8
mov byte [esp + 0x22], 0x7f
mov byte [esp + 0x23], 0x7a
mov byte [esp + 0x24], 6
mov byte [esp + 0x25], 0x30
mov byte [esp + 0x26], 0xcb
mov byte [esp + 0x27], 0xef
mov byte [esp + 0x28], 0x87
mov byte [esp + 0x29], 0xae
mov byte [esp + 4], 0x5e
mov byte [esp + 5], 0x6d
mov byte [esp + 6], 0x10
mov byte [esp + 7], cl
mov byte [esp + 8], 0x3c
mov byte [esp + 9], 0xf9
mov byte [esp + 0xa], 0xe3
mov byte [esp + 0xb], 2
mov byte [esp + 0xc], 0x68
mov byte [esp + 0xd], 0x8c
mov byte [esp + 0xe], 0xc
mov byte [esp + 0xf], 0x1f
mov byte [esp + 0x10], 0x74
mov byte [esp + 0x11], 0x46
mov byte [esp + 0x12], 0xe5
mov byte [esp + 0x13], 0x8b
mov byte [esp + 0x14], 0xe6
mov byte [esp + 0x15], 0xda
xor eax, eax
mov dl, byte [esp + eax + 0x18]
mov cl, byte [esp + eax + 4]
xor dl, cl
mov byte [esp + eax + 0x18], dl
inc eax
cmp eax, 0x13
jl 0x412c02
push esi
push 0x104
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x10
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
call fcn.00424873
add esp, 0x134
ret
Function at 0x4155a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea ecx, [ebp - 1]
xor edx, edx
test ecx, ecx
push edi
mov esi, eax
mov bl, 0x5a
jle 0x4155ef
mov edi, 0x4f
lea ebx, [ebx]
mov byte [0x431e30], bl
mov dword [0x431e2c], edi
mov bl, byte [ecx + esi]
mov al, byte [edx + esi]
mov byte [edx + esi], bl
mov byte [ecx + esi], al
add word [0x431e34], 0x7abc
inc edx
dec ecx
cmp edx, ecx
mov bl, 0x5a
mov byte [0x431e28], bl
jl 0x4155c0
mov edi, dword [0x431e2c]
mov dl, byte [0x431e30]
mov cl, byte [0x431e28]
sub edi, 0x68d2
add dl, 0x4d
add cl, 0x1f
test ebp, ebp
mov word [0x431e34], 0x58
mov dword [0x431e2c], edi
mov byte [0x431e30], dl
mov byte [0x431e28], cl
jle 0x415678
mov edi, dword [esp + 0x14]
mov ecx, edi
sub esi, edi
mov eax, ebp
jmp 0x415640
mov dl, byte [esi + ecx]
xor byte [ecx], dl
mov dl, byte [0x431e30]
movzx ebp, dl
or dl, 0x58
xor ebp, 0x2f
movzx dx, dl
inc ecx
dec eax
mov dword [0x431e2c], ebp
mov byte [0x431e28], bl
mov word [0x431e34], dx
jne 0x415640
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x415690
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x138
mov eax, dword [0x4310d8]
push edi
push 0
push 0x80
push 4
push 0
push 1
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x154]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 4], edi
je 0x41588e
push ebx
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x41570c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x134]
call fcn.00424873
add esp, 0x138
ret
push ebp
push esi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x41576a
mov ebp, dword [0x431e2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, 0x7dcf
push ebx
mov dword [0x431e2c], ebp
call esi
mov al, byte [0x431e28]
movzx edx, al
mov cl, 0x47
sub cl, al
xor edx, 0x2f
push edi
mov byte [0x431e30], cl
mov word [0x431e34], 0x5b
mov dword [0x431e2c], edx
call esi
jmp 0x41588b
mov al, byte [0x431e34]
imul byte [0x431e28]
mov edx, dword [0x431e2c]
mov cl, 0x6f
imul cl
sub edx, 3
mov cl, al
mov dword [0x431e2c], edx
xor edx, edx
or cl, 0x1e
mov byte [0x431e28], cl
mov dh, byte [esi + 0x63]
xor eax, eax
mov ah, byte [esi + 0x61]
movsx edi, byte [esi + 0x64]
imul edi, edi, 0x44
mov dl, byte [esi + 0x62]
movzx eax, ax
shl edx, 0x10
or edx, eax
movzx eax, byte [esi + 0x60]
or edx, eax
mov al, cl
imul byte [0x431e30]
mov ebp, edx
mov dl, 0x6f
imul dl
or al, 0x1e
test edi, edi
mov word [0x431e34], 0x1b
mov byte [0x431e30], al
jle 0x41582a
mov ebx, dword [esp + 0x150]
add ebp, esi
dec edi
mov eax, 0xf0f0f0f1
mul edi
mov edi, edx
shr edi, 6
inc edi
mov edi, edi
xor eax, eax
mov ecx, ebp
mov dl, byte [ecx]
add ecx, 2
mov byte [esp + eax + 0x18], dl
inc eax
cmp eax, 0x44
jle 0x4157f4
push 1
push 1
push 0
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov byte [esp + 0x6c], 0
call fcn.0040b300
add ebp, 0x44
dec edi
jne 0x4157f0
mov cl, byte [0x431e28]
mov ebx, dword [esp + 0x14]
mov eax, dword [0x431e2c]
movsx edx, word [0x431e34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, cl
add ecx, eax
mov eax, dword [esp + 0x10]
add edx, 0x76
and ecx, edx
push eax
mov dword [0x431e2c], ecx
call edi
mov al, byte [0x431e30]
xor al, 0x5a
push esi
mov byte [0x431e30], al
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dl, byte [0x431e34]
mov cl, 0x47
sub cl, dl
mov byte [0x431e28], cl
mov ecx, dword [0x431e2c]
xor ecx, 0x6970
push ebx
mov dword [0x431e2c], ecx
call edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor eax, eax
pop edi
call fcn.00424873
add esp, 0x138
ret
Function at 0x415b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
mov dl, 0x7b
xor ebp, ebp
dec esi
test esi, esi
mov cl, dl
push edi
mov edi, dword [esp + 0x10]
mov dword [0x431e3c], 0x63
mov byte [0x431e40], dl
mov byte [0x431e38], cl
jle 0x415b9f
sub edi, eax
mov ebp, esi
push ebx
movzx dx, dl
xor cl, 0x16
movzx cx, cl
imul edx, dword [0x431e44]
xor edx, ecx
mov word [0x431e44], dx
mov cl, byte [eax + 1]
mov dl, byte [eax]
xor dl, cl
mov byte [edi + eax], dl
mov cl, byte [0x431e38]
movzx bx, cl
mov dl, cl
add dl, 0x72
mov dword [0x431e3c], 0x63
mov byte [0x431e40], dl
imul ebx, dword [0x431e44]
xor ebx, 0x54
inc eax
dec esi
mov word [0x431e44], bx
jne 0x415b41
mov edi, dword [esp + 0x14]
pop ebx
mov al, byte [0x431e44]
imul cl
imul dl
sub al, 0x12
mov byte [0x431e40], al
mov dword [0x431e3c], 0x62
mov byte [edi + ebp], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4166a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d3f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x14
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.004246fe
add esp, 4
test eax, eax
je 0x4166ec
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
jmp 0x4166ee
xor eax, eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [eax], ecx
mov ecx, dword [ebp + 0x14]
push 0x415bd0
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x10]
push 0
push 0
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x416733
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14