joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x46263d
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop dword [eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x4ada70]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x462620
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x4626ed
sub ecx, 1
je 0x4626d1
sub ecx, 1
je 0x4626a9
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x44]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4636bc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004636d0
Function at 0x46b470
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x30], 0
lea esi, [eax + 0x70]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x54], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x58], 0
nop dword [eax]
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x46b4b0
pop esi
pop ebp
ret
Function at 0x4733b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00486d47
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4733db
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x475a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475a47
sub ecx, edx
lea esi, [ebp - 0x20c]
sar ecx, 1
lea esi, [esi + ecx*2]
test edi, edi
je 0x475a6b
cmp word [edi], ax
je 0x475a6b
push edi
jmp 0x475a86
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call fcn.00401a60
push eax
lea eax, [ebp - 4]
sub eax, esi
push 0x49d954
sar eax, 1
push eax
push esi
call fcn.00401670
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.00408ec0
lea ecx, [ebp - 4]
sub ecx, eax
push str..ini
sar ecx, 1
push ecx
push eax
call fcn.00403260
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004760a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 4
Function at 0x475dd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
test eax, eax
jne 0x475e01
mov eax, 0xe8
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push 0
push 0
push 3
push 0
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x475ee6
push edi
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
jne 0x475ecf
cmp eax, 0x100000
ja 0x475ecf
add eax, 2
push eax
call fcn.0047c4da
mov edi, eax
add esp, 4
test edi, edi
je 0x475eb8
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp ecx, eax
jne 0x475e8c
push dword [ebp + 8]
xor eax, eax
mov word [ecx + edi], ax
mov ecx, esi
push dword [ebp - 0xc]
push edi
call fcn.00475f00
mov esi, eax
mov eax, dword [ebp - 0xc]
jmp 0x475e91
mov esi, 0x1e
add eax, 2
push eax
push 0
push edi
call fcn.0047df00
push edi
call fcn.004568b0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov esi, 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov esi, 0xb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x476b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a60
mov esi, eax
push esi
call fcn.00408ec0
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x418]
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
movzx eax, word [ebp - 0x41e]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x424]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push str._s_s__04u_02u_02u__02u_02u_02u.dmp
push dword [ebp + 0xc]
push edi
call fcn.00401670
mov ecx, dword [ebp - 4]
add esp, 0x2c
xor ecx, ebp
pop edi
pop esi
call fcn.0047c26b
mov esp, ebp
pop ebp
ret

Function at 0x477210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x477040
push 0x10
push esi
mov dword [ebp - 4], 0
mov ebx, 0x716
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x477283
push edi
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x477282
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x477282
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x477282
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp + 8]
call fcn.00477410
add esp, 0xc
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4777a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0xfffffffffffffffa
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xf0
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x477846
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x47783e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp word [esi], 0
je 0x47783e
nop dword [eax + eax]
movzx eax, word [esi + 2]
lea edi, [esi + 8]
cmp eax, 0x401
jne 0x477805
mov eax, 0x180
jmp 0x477821
cmp eax, 0x403
jne 0x477813
mov eax, 0x143
jmp 0x477821
cmp eax, 0x180
je 0x477821
cmp eax, 0x143
jne 0x477830
push edi
push 0
push eax
movzx eax, word [esi]
push eax
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, dword [esi + 4]
add esi, edi
cmp word [esi], 0
jne 0x4777f0
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x4780e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x47813b
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
je 0x478133
mov eax, dword [ebp + 0xc]
mov ecx, 2
inc eax
add eax, ebx
mul ecx
mov ecx, 0xffffffff
push edi
cmovb eax, ecx
push eax
call fcn.0047c4da
mov edi, eax
add esp, 4
test edi, edi
je 0x47812c
lea eax, [ebx + 1]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 8
pop ebx
xor eax, eax
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x478210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x100
test eax, eax
jne 0x478248
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x47825c
lea ecx, [ebp - 0x204]
push ecx
push eax
push dword [0x4b2a34]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x2000
call fcn.0047c4da
mov edi, eax
add esp, 4
test edi, edi
je 0x4782bd
push esi
lea eax, [ebp - 0x204]
push eax
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 0x1000
push edi
call fcn.0041d4f0
mov esi, dword [ebp - 0x208]
push edi
sub esi, edi
push ebx
sar esi, 1
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.004568b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4793b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetDpiForSystem
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47946a
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479428
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EnablePerProcessSystemDPI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x47946a
push edi
call esi
mov edi, dword [ebp + 8]
lea esi, [eax + 0x60]
mov eax, 0x2aaaaaab
mov ecx, dword [edi]
imul ecx, esi
imul ecx
mov eax, 0x2aaaaaab
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [edi], ecx
mov ecx, dword [edi + 4]
imul ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47a250
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.0047a4d0
mov edi, eax
lea eax, [ebp - 0x204]
push 0x80
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x204]
push 0x40
push eax
call fcn.0047d91d
add esp, 8
test eax, eax
je 0x47a2f7
lea ecx, [ebp - 0x104]
mov esi, str.mailto:
mov eax, ecx
mov edx, 0x80
sub esi, eax
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x47a2d2
movzx eax, word [esi + ecx]
test ax, ax
je 0x47a2d2
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47a2b4
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x204]
push eax
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.00404fc0
lea eax, [ebp - 0x104]
push 7
push dword [0x4adf08]
lea esi, [ebp - 0x204]
sub esi, eax
lea eax, [ebp - 0x204]
push eax
call fcn.00485aa4
add esp, 0xc
test eax, eax
jne 0x47a35b
mov edx, 0x80
lea ecx, [ebp - 0x104]
nop dword [eax + eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x47a34e
movzx eax, word [esi + ecx]
test ax, ax
je 0x47a34e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47a330
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 8
push dword [0x4adf0c]
lea eax, [ebp - 0x204]
push eax
call fcn.00485aa4
add esp, 0xc
test eax, eax
jne 0x47a3ac
mov edx, 0x80
lea ecx, [ebp - 0x104]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x47a39f
movzx eax, word [esi + ecx]
test ax, ax
je 0x47a39f
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47a381
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 4
lea eax, [ebp - 0x204]
push str.www.
push eax
call fcn.00485aa4
add esp, 0xc
test eax, eax
jne 0x47a423
mov esi, dword [str.http:__]
lea ecx, [ebp - 0x104]
mov eax, ecx
mov edx, 0x80
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x47a3fe
movzx eax, word [esi + ecx]
test ax, ax
je 0x47a3fe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47a3e0
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x204]
push eax
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.00404fc0
cmp word [ebp - 0x104], 0
je 0x47a46c
push edi
mov edi, dword [sym.imp.USER32.dll_SetCursor]
call edi
push 1
push 0
push 0
mov esi, eax
lea eax, [ebp - 0x104]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 4
Function at 0x47aee0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
je 0x47b084
cmp word [ebx], si
je 0x47b084
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47af01
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + 5]
mov ecx, 2
mov dword [ebp - 4], eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0047c4da
mov edi, eax
add esp, 4
test edi, edi
jne 0x47af41
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push dword [ebp - 4]
push edi
call fcn.00403260
push 4
push 0x4a5c18
push edi
call fcn.00486dd8
add esp, 0xc
test eax, eax
jne 0x47af67
lea eax, [edi + 0xc]
jmp 0x47aff0
push 4
push 0x4a5c0c
push edi
call fcn.00486dd8
add esp, 0xc
test eax, eax
jne 0x47af80
lea eax, [edi + 0xc]
jmp 0x47aff0
movzx eax, word [edi]
cmp eax, 0x5c
jne 0x47afa9
cmp word [edi + 2], ax
jne 0x47afa9
push edi
call fcn.0047b3a0
add esp, 4
test eax, eax
jne 0x47aff0
pop edi
pop esi
mov eax, 0x4be
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi + 2], 0x3a
lea ecx, [edi + 2]
jne 0x47afde
cmp word [edi + 4], 0x5c
jne 0x47afde
push 0x4a5c18
push dword [ebp - 4]
push edi
call fcn.00403260
mov eax, dword [ebp - 4]
push ebx
add eax, 0xfffffffc
push eax
lea eax, [edi + 8]
push eax
call fcn.00403260
lea eax, [edi + 0xc]
jmp 0x47aff0
cmp eax, 0x2e
jne 0x47afee
push ecx
call fcn.0047b370
add esp, 4
jmp 0x47aff0
mov eax, edi
add eax, 2
push 0x49e0ec
push eax
call fcn.00486e12
mov ecx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47b045
xor esi, esi
xor eax, eax
push esi
push edi
mov word [ebx], ax
call ecx
test eax, eax
jne 0x47b02e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x47b03b
xor esi, esi
mov eax, 0x5c
mov word [ebx], ax
lea eax, [ebx + 2]
jmp 0x47aff3
test esi, esi
jne 0x47b070
mov ecx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0xc], 0
je 0x47b070
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x47b070
push 0
push edi
call ecx
test eax, eax
jne 0x47b070
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0xb7
cmove esi, eax
push edi
call fcn.004568b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47b0f0
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ebx, 0x80000001
mov dword [ebp - 4], esi
push edi
mov edi, dword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders]
lea ecx, [esi + 0x57]
cmp eax, 0x28
ja case.0x47b11b.1
movzx eax, byte [eax + 0x47b1f0]
jmp dword [eax*4 + 0x47b1d4]
mov esi, str.AppData
jmp case.0x47b11b.1
mov esi, str.Programs
jmp case.0x47b11b.1
mov esi, str.Desktop
jmp case.0x47b11b.1
mov esi, str.Personal
jmp case.0x47b11b.1
push 0x104
push dword [ebp + 0xc]
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47b159
xor ecx, ecx
jmp case.0x47b11b.1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp case.0x47b11b.1
mov edi, dword [str.SoftwareMicrosoftWindowsCurrentVersion]
mov esi, str.ProgramFilesDir
mov ebx, 0x80000002
test edi, edi
je 0x47b1c8
test esi, esi
je 0x47b1c8
lea eax, [ebp - 4]
mov dword [ebp + 8], 0x208
push eax
push 1
push 0
push edi
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b1ca
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47cf99
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47cfd8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47cfd8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47cfd8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47cfd8
cmp dword [ecx + 0x74], 0xe
jbe 0x47cfd8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48a55b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a0498
push 0x4a0490
push str.FlsAlloc
push 0x1f
call fcn.0048a456
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a58f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4955ac]
call esi
jmp 0x48a595
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48a5d9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a04a8
push 0x4a04a0
push str.FlsGetValue
push 0x21
call fcn.0048a456
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a610
push dword [ebp + 8]
mov ecx, esi
call dword [0x4955ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x48a618
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a04b0
push 0x4a04a8
push str.FlsSetValue
push 0x22
call fcn.0048a456
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a652
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4955ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48b645
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4b3148]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48b685
cmp byte [ebx], 0xa
jne 0x48b685
or byte [edi + eax + 0x28], 4
jmp 0x48b68a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x48b789
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48b76c
inc eax
cmp dl, 0xd
je 0x48b6b6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48b6dc
cmp eax, ecx
jae 0x48b6ea
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x48b69e
jmp 0x48b789
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48b767
cmp dword [ebp - 0x10], 0
je 0x48b767
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b3148]
test byte [eax + edi + 0x28], 0x48
je 0x48b741
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48b72c
mov byte [esi], dl
jmp 0x48b73d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b3148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48b789
cmp byte [ebp - 1], 0xa
jne 0x48b750
cmp esi, ebx
jne 0x48b750
mov byte [esi], 0xa
jmp 0x48b788
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00490e8a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48b789
mov byte [esi], 0xd
jmp 0x48b788
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b3148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48b786
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48b789
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret