joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410566
Capabilities:
Shutdown system

Disassembly:
push 0x68
mov eax, 0x45034d
call fcn.0042ab6f
push 0x30
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0042c3a0
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x1c
mov eax, esp
mov dword [eax + 0x24], esi
cmp ecx, esi
je 0x41059e
mov dword [eax], vtable.std::_Func_impl_no_alloc_int____stdcall___void____void__void__.0
mov dword [eax + 4], ecx
mov dword [eax + 0x24], eax
push esi
lea ecx, [ebp - 0x58]
call fcn.0040cc12
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x58]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41069f
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0x461bfc
push esi
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x410607
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401715
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040132b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_look_up_shutdown_privilege.
jmp 0x4106c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push esi
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x58]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41065d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
je 0x41065d
call fcn.00401715
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040132b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_set_shutdown_privilege.
jmp 0x4106c0
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x410691
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401715
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040132b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_initiate_reboot.
jmp 0x4106c0
lea ecx, [ebp - 0x58]
call fcn.0040cba2
call fcn.0042ab1e
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401715
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040132b
push dword [eax + 4]
push dword [eax]
push str.Failed_to_open_current_process_token.
lea ecx, [ebp - 0x74]
call fcn.0040151d
push 0x469824
lea eax, [ebp - 0x74]
push eax
call fcn.0042bd9c
int3
Function at 0x41348a
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x4507b2
call fcn.0042ab6f
mov ebx, ecx
mov esi, dword [ebp + 8]
push 0x38
call fcn.0042a3da
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
mov ecx, edi
push esi
mov dword [ebp - 0x18], edi
call fcn.00402380
xor eax, eax
mov byte [ebp - 4], 1
lea ecx, [edi + 0x18]
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.0040245a
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov dword [ebp - 0x14], edi
lea esi, [ebx + 4]
mov dword [ebp - 4], 2
push esi
push 0
push edi
push 0x413550
xor edi, edi
push edi
push edi
call fcn.00432fec
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x413518
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.00413522
call fcn.0042ab1e
ret 4
push 6
mov dword [esi], edi
call fcn.00418546
int3

Function at 0x4137a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46b054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareClasses80b8c23c_16e0_4cd8_bbc3_cecec9a78b79
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413800
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push edi
push edi
push edi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
jmp 0x413802
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042a3cc
leave
ret

Function at 0x41394f
Capabilities:
Check mutex on windows

Disassembly:
push 0x28
mov eax, 0x4508c0
call fcn.0042ab6f
mov edi, ecx
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 8]
mov bl, byte [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov byte [edi], cl
mov dword [edi + 4], ecx
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov ecx, esi
push eax
mov byte [ebp - 0x29], bl
call fcn.0040245a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
mov edx, 0x462030
call fcn.0040b373
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
push eax
movzx eax, bl
xor ebx, ebx
inc ebx
xor eax, ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
test eax, eax
je 0x4139ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4139cc
xor bl, bl
cmp dword [edi + 4], 0
mov byte [edi], bl
je 0x4139eb
cmp byte [ebp - 0x29], 0
jne 0x4139de
test bl, bl
jne 0x4139eb
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 4], 0
lea ecx, [ebp - 0x28]
call fcn.004023b6
mov eax, edi
call fcn.0042ab1e
ret 8
Function at 0x413d8c
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push 0x364
mov eax, 0x4509d4
call fcn.0042ab6f
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x328]
push ebx
push eax
call fcn.0042c3a0
add esp, 0xc
lea eax, [ebp - 0x328]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x328]
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x33c]
push ecx
push eax
lea ecx, [ebp - 0x370]
call fcn.004024e3
mov esi, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x354]
mov byte [ebp - 0x33c], bl
push dword [ebp - 0x33c]
push 0xc
push str.schtasks.exe
call fcn.00402848
add esp, 0xc
lea eax, [ebp - 0x354]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004032e7
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.004023b6
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040245a
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 3
call fcn.004023b6
push 0xb0
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.0042c3a0
pop ecx
pop ecx
lea ecx, [ebp - 0x120]
call fcn.00404763
push 1
push 0x4608f4
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 4
call fcn.0040c3dc
lea edx, [ebp - 0x370]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.0040b6ee
mov ebx, eax
lea ecx, [ebp - 0x354]
xor eax, eax
mov dword [ebp - 0x354], eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040245a
mov byte [ebp - 4], 6
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x354]
mov ecx, ebx
call fcn.0040b6ee
mov edx, 0x46193c
mov ecx, eax
call fcn.00406410
push esi
mov edx, edi
mov ecx, eax
call fcn.0040bf80
pop ecx
lea ecx, [ebp - 0x354]
call fcn.004023b6
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 4
call fcn.004023b6
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0042c3a0
xor eax, eax
mov dword [ebp - 0x70], esi
lea edi, [ebp - 0x338]
add esp, 0xc
stosd dword es:[edi], eax
lea ecx, [ebp - 0x108]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x354]
push eax
call fcn.00405424
cmp dword [ebp - 0x340], 8
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
lea eax, [ebp - 0x354]
cmovae eax, dword [ebp - 0x354]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x354]
mov esi, eax
call fcn.004023b6
test esi, esi
je 0x413f87
push 0xffffffffffffffff
push dword [ebp - 0x338]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x334], ebx
je 0x413f9b
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x338], ebx
je 0x413faf
push dword [ebp - 0x338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x120]
call fcn.00403e2d
lea ecx, [ebp - 0x28]
call fcn.004023b6
call fcn.0042ab1e
ret 8
Function at 0x43a102
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43a141
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43a141
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43a141
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43a141
cmp dword [ecx + 0x74], 0xe
jbe 0x43a141
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x44098a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x458f90
push 0x458f88
push 0x4559e4
push 0x1f
call fcn.004407b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4409be
push dword [ebp + 8]
mov ecx, esi
call dword [0x45327c]
call esi
jmp 0x4409c4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x440a08
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x458fa0
push 0x458f98
push 0x4559f8
push 0x21
call fcn.004407b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440a3f
push dword [ebp + 8]
mov ecx, esi
call dword [0x45327c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x440a47
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x458fa8
push 0x458fa0
push 0x455a04
push 0x22
call fcn.004407b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440a81
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45327c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4412dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042b590
mov eax, dword [0x46b054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043def2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44131e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44147a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044deb0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46dcc8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00442081
mov ecx, dword [esi*4 + 0x46dcc8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x441473
cmp eax, dword [ecx + edi + 0x24]
jne 0x441473
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x441473
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00442081
add esp, 0x14
test edx, edx
jl 0x441473
jg 0x4413e9
test eax, eax
jb 0x441473
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x441473
jl 0x441403
cmp dword [ebp - 0x1008], eax
ja 0x441473
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x441421
test ebx, ebx
je 0x44145a
cmp ecx, edi
jae 0x44145a
mov al, byte [ecx]
cmp al, 0xd
jne 0x44143b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x441447
cmp byte [ecx + 1], 0xa
jne 0x441447
inc ecx
jmp 0x441447
movzx eax, al
movsx eax, byte [eax + 0x46b2e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x441421
cmp edx, ebx
jne 0x441421
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x441478
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042a3cc
leave
ret
Function at 0x441519
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 + 0x46dcc8]
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 0x441559
cmp byte [ebx], 0xa
jne 0x441559
or byte [edi + eax + 0x28], 4
jmp 0x44155e
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 0x44165d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x441640
inc eax
cmp dl, 0xd
je 0x44158a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4415b0
cmp eax, ecx
jae 0x4415be
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 0x441572
jmp 0x44165d
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 0x44163b
cmp dword [ebp - 0x10], 0
je 0x44163b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46dcc8]
test byte [eax + edi + 0x28], 0x48
je 0x441615
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x441600
mov byte [esi], dl
jmp 0x441611
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46dcc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44165d
cmp byte [ebp - 1], 0xa
jne 0x441624
cmp esi, ebx
jne 0x441624
mov byte [esi], 0xa
jmp 0x44165c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044209f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44165d
mov byte [esi], 0xd
jmp 0x44165c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46dcc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44165a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44165d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x441666
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x46dcc8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4416ac
cmp word [ebx], dx
jne 0x4416ac
or byte [eax + edi + 0x28], 4
jmp 0x4416b1
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x441814
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4417f4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4416f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x441728
cmp eax, edx
jae 0x441736
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4416cd
jmp 0x441814
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4417ef
cmp dword [ebp - 0x18], 0
je 0x4417ef
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46dcc8]
test byte [eax + edi + 0x28], 0x48
je 0x4417c5
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x441789
mov word [esi], cx
jmp 0x4417c0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46dcc8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x46dcc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46dcc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x441814
pop eax
cmp word [ebp - 4], ax
jne 0x4417d5
cmp esi, ebx
jne 0x4417d5
mov word [esi], ax
jmp 0x441811
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044209f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x441814
push 0xd
pop eax
jmp 0x4417d0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46dcc8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44180e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x441814
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x445794
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46b054]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4457df
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044592f
test al, al
jne 0x4457d9
sub edx, 2
cmp edx, edi
jne 0x4457bf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x445801
lea eax, [edi + 2]
cmp edx, eax
je 0x445801
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004456e0
add esp, 0x10
jmp 0x4458fb
push esi
lea ecx, [ebp - 0x255]
call fcn.0044592f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x445844
push dword [ebp - 0x25c]
jmp 0x4457f1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x445881
cmp word [ebp - 0x226], 0
je 0x4458a2
cmp word [ebp - 0x226], ax
jne 0x445881
cmp word [ebp - 0x224], 0
je 0x4458a2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004456e0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4458ee
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44585b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4458d6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4458fb
push 0x445510
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0044c7f0
add esp, 0x10
jmp 0x4458cb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a3cc
leave
ret

Function at 0x446220
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x446231
pop esi
ret
push ebx
push edi
push esi
call fcn.004461e9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043cf81
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x446259
push ebx
push esi
push edi
call fcn.0042be10
add esp, 0xc
push 0
call fcn.0043cf47
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x446629
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044626e

Function at 0x446a09
Capabilities:
Encrypt data using chaskey

Disassembly:
mov bl, 0x46
add byte [eax - 0x3f], al
call 0xe91f611f
dec ecx
invalid
Function at 0x446a2c
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
shr esi, 0x1b
loop 0x446a05
mov esi, eax
call fcn.004155b5
call fcn.00404460
xor esi, esp
rol edx, 0x11
dec esi
sub esi, eax
not edx
xor ebx, dword [0x46b3a2]
neg eax
add esi, eax
and ebx, dword [0x46bb34]
mov edx, eax
test eax, edx
jo 0x446a31
and esi, dword [0x46be50]
mov edi, ebx
xor esi, eax
mov ecx, 0xaaab4
xor dword [0x46e3c5], ecx
ror esi, 0x1c
call fcn.004032cb
dec edx
call fcn.00403b28
inc edx
shr eax, 0x11
mov dword [0x46e69a], 0x125796b2
test eax, edx
jb 0x446a9c
loop 0x446a6c
mov esi, eax
ror eax, 7
xor edx, 0x5d96634
xor ecx, eax
and esi, edi
fld dword [0xfe21c833]
add edx, 0x2394f5f
mov ecx, 0x93deae
inc eax
shl eax, 0xd
xor dword [0x46e538], ecx
ror edx, 0x1c
dec esi
shl eax, 0x11
adc ecx, eax
ret 0x310e
sbb eax, 0x46e3bc
neg eax
xor edx, dword [0x46c93f]
loop 0x446aae
xor esi, ebp
ror eax, 8
and esi, edi
ror esi, 0x13
call fcn.004155b5

Function at 0x448cff
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043cbf9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448d6e
cmp esi, dword [ebp - 4]
je 0x448d69
cmp dword [ebp + 0xc], 0
je 0x448d69
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x448d46
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044883c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x448d70
xor eax, eax
inc eax
jmp 0x448d70
xor eax, eax
pop edi
pop esi
leave
ret