joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf13
Capabilities:
Set registry value

Disassembly:
nop
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x40cf4a
mov eax, dword [eax]
lea edi, [ebp - 8]
push edi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40cfa2
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
lea ecx, [eax*2 + 2]
jb 0x40cf71
mov ebx, dword [ebx]
movzx eax, byte [ebp + 0x1c]
inc eax
cmp dword [esi + 0x10], 0
jne 0x40cf80
xor esi, esi
jmp 0x40cf88
cmp dword [esi + 0x14], 8
jb 0x40cf88
mov esi, dword [esi]
push ecx
push ebx
push eax
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042eaad
leave
ret 0x18
push ebp
mov ebp, esp
pop ebp
jmp 0x40cf11

Function at 0x40cfc2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
lea edx, [eax*2 + 2]
jb 0x40cfda
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40cfe5
mov eax, dword [eax]
push edx
push ecx
push 2
push eax
push str.Environment
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
movzx ecx, ax
mov edx, 0x80070000
or ecx, edx
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovle edx, ecx
shr edx, 0x1f
xor dl, 1
mov al, dl
pop ebp
ret 0xc

Function at 0x416d82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 8
pop esi
cmp dword [0x48c0bc], esi
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
mov eax, 0x48c0a8
xorps xmm0, xmm0
cmovae eax, dword [0x48c0a8]
push 0
push eax
push SysReAllocString
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], esi
mov esi, 0x80070000
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x416e1e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.LastUpdate
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x416e0d
cmp dword [ebp - 0x14], 0xb
je 0x416e15
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
mov edx, dword [ebp - 8]
pop esi
call fcn.0042eaad
leave
ret
Function at 0x41b3e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x48c0bc], 8
lea ecx, [ebp - 0x10]
push esi
mov eax, 0x48c0a8
cmovae eax, dword [0x48c0a8]
xor esi, esi
push esi
push ecx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x41b461
push esi
call fcn.0044b961
pop ecx
push 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.LastUpdate
push dword [ebp - 0x10]
mov dword [ebp - 8], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042eaad
leave
ret

Function at 0x41eaec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
xor eax, 1
and dword [ebp - 0x208], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20119
mov dword [ebp - 0x20c], 0x200
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x41eb36
mov ecx, dword [ecx]
lea esi, [ebp - 0x210]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41ebd2
cmp dword [edi + 0x14], 8
jb 0x41eb62
mov edi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x41ebd2
mov eax, dword [ebp - 0x208]
sub eax, 1
je 0x41ebc3
sub eax, 3
je 0x41ebbb
mov esi, 0x8007065d
jmp 0x41ebd2
mov eax, dword [ebp - 0x204]
jmp 0x41ebd0
lea eax, [ebp - 0x204]
push eax
call fcn.0044721f
pop ecx
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eaad
leave
ret 0x14
Function at 0x425c9b
Capabilities:
Enumerate processes

Disassembly:
push 0x278
mov eax, 0x46a6ed
call fcn.0042f3c4
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x264], esi
mov edi, esi
mov dword [ebp - 0x248], ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x248], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x240]
push ebx
push eax
call fcn.00443f80
add esp, 0xc
mov dword [ebp - 0x244], 0x22c
cmp edi, 0xffffffff
je 0x425dfc
lea eax, [ebp - 0x244]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x425ded
xor eax, eax
mov dword [ebp - 0x260], ebx
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x250], ebx
push eax
mov dword [ebp - 0x24c], 7
call fcn.00402414
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
push dword [ebp - 0x23c]
call 0x425c60
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 2
push eax
cmp ecx, dword [esi + 8]
je 0x425d89
call fcn.00404c82
add dword [esi + 4], 0x20
jmp 0x425d91
push ecx
mov ecx, esi
call 0x425bbe
lea ecx, [ebp - 0x27c]
call fcn.004023e6
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], bl
cmp eax, 8
jb 0x425de0
mov ecx, dword [ebp - 0x260]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x1000
jb 0x425dd7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401d0d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.0042ed0c
pop ecx
pop ecx
lea eax, [ebp - 0x244]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x425d1b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.0042f382
ret 4

Function at 0x426f42
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
pop ebp
ret 4

Function at 0x4270c2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
pop ebp
ret 0x28

Function at 0x4270f2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateProcessW]

Function at 0x4273a2
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
Function at 0x427922
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.WININET.dll_InternetCheckConnectionW]

Function at 0x4281f2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x42b322
Capabilities:
Delete file

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x407026
mov eax, dword [esi]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407067
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x407048
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407067
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042eaad
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x407000

Function at 0x42b362
Capabilities:
Delete registry value

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

Function at 0x42b392
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040784c

Function at 0x42b422
Capabilities:
Get common file path

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
mov dword [ebp - 0x210], 0x104
push esi
push eax
call fcn.00443f80
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x408ec4
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402414
jmp 0x408ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042eaad
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x408e61
Function at 0x42b442
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x408f47
mov ecx, dword [ecx]
lea esi, [ebp - 0x830]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x82c], 0x820
test eax, eax
cmovle esi, eax
and dword [ebp - 0x828], 0
test esi, esi
js 0x408fef
cmp dword [edi + 0x14], 8
jb 0x408f84
mov edi, dword [edi]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x408fe3
cmp dword [ebp - 0x828], 1
je 0x408fd3
cmp dword [ebp - 0x828], 2
je 0x408fd3
mov esi, 0x8007065d
jmp 0x408fe3
lea eax, [ebp - 0x824]
mov ecx, ebx
push eax
xor esi, esi
call fcn.00402414
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eaad
leave
ret 0x14
push ebp
mov ebp, esp
pop ebp
jmp 0x408f0f

Function at 0x42b482
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004093eb

Function at 0x42b4a2
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor esi, esi
push esi
push eax
call fcn.00443f80
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.Version
push str.SoftwareMicrosoftOneDrive
call fcn.004093be
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40982f
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402414
jmp 0x409834
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042eaad
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x4097ab

Function at 0x42b4c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00409867

Function at 0x42b4d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00409941
Function at 0x42b702
Capabilities:
Enumerate gui resources

Disassembly:
push 0x6c
mov eax, 0x46782d
call fcn.0042f3c4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x78], eax
and dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x70]
call fcn.004105e1
xor eax, eax
lea ecx, [ebp - 0x48]
xor ebx, ebx
mov dword [ebp - 0x48], eax
inc ebx
mov dword [ebp - 0x38], eax
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
call fcn.0040eba7
xor eax, eax
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.0040eba7
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x78]
push eax
push 0x40c360
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x40c741
cmp dword [ebp - 0x18], 0
ja 0x40c743
xor bl, bl
lea ecx, [ebp - 0x78]
call 0x4056a0
mov al, bl
call fcn.0042f382
ret 0x10
push ebp
mov ebp, esp
pop ebp
jmp 0x40c6c6

Function at 0x42b782
Capabilities:
Set registry value

Disassembly:
nop
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x48c944]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x40cf4a
mov eax, dword [eax]
lea edi, [ebp - 8]
push edi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40cfa2
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
lea ecx, [eax*2 + 2]
jb 0x40cf71
mov ebx, dword [ebx]
movzx eax, byte [ebp + 0x1c]
inc eax
cmp dword [esi + 0x10], 0
jne 0x40cf80
xor esi, esi
jmp 0x40cf88
cmp dword [esi + 0x14], 8
jb 0x40cf88
mov esi, dword [esi]
push ecx
push ebx
push eax
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042eaad
leave
ret 0x18
push ebp
mov ebp, esp
pop ebp
jmp 0x40cf11

Function at 0x42b792
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040cfc0
Function at 0x42b8e6
Capabilities:
Accept command line arguments

Disassembly:
push 0x238
mov eax, 0x46b0e2
call fcn.0042f3c4
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x244], esi
xor eax, eax
mov dword [ebp - 0x240], edi
push 7
pop ebx
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov word [esi], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x240], 1
call fcn.0040b722
mov byte [ebp - 0x23c], al
test al, al
jne 0x42ba13
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00443f80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42ba13
lea eax, [ebp - 0x218]
push 0x47456c
push eax
call fcn.00445099
pop ecx
pop ecx
test eax, eax
je 0x42ba13
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], ebx
call fcn.00402414
push edi
push str._allusers
lea ecx, [ebp - 0x234]
call fcn.00412143
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x220]
setne byte [ebp - 0x23c]
cmp eax, 8
jb 0x42ba13
mov ecx, dword [ebp - 0x234]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x238], ecx
cmp eax, 0x1000
jb 0x42ba0a
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00401d0d
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x238]
push eax
push ecx
call fcn.0042ed0c
pop ecx
pop ecx
push esi
push dword [ebp - 0x23c]
call fcn.00409393
push 0x46f9e8
mov ecx, esi
call fcn.00402666
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042bc5b
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040372d
mov dword [ebp - 0x240], 3
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00410a2d
lea ecx, [ebp - 0x234]
call fcn.004023e6
mov eax, esi
call fcn.0042f382
ret 0xc

Function at 0x458674
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479398
push 0x479390
push str.FlsAlloc
push 0x1e
call fcn.004584e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4586a8
push dword [ebp + 8]
mov ecx, esi
call dword [0x46d464]
call esi
jmp 0x4586ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4586f2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4793a8
push 0x4793a0
push str.FlsGetValue
push 0x20
call fcn.004584e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x458729
push dword [ebp + 8]
mov ecx, esi
call dword [0x46d464]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x45d7a4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x48c944]
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 0x45d7ef
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045d943
test al, al
jne 0x45d7e9
sub edx, 2
cmp edx, edi
jne 0x45d7cf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45d811
lea eax, [edi + 2]
cmp edx, eax
je 0x45d811
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045d6f0
add esp, 0x10
jmp 0x45d90b
push esi
lea ecx, [ebp - 0x255]
call fcn.0045d943
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 0x45d854
push dword [ebp - 0x25c]
jmp 0x45d801
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 0x45d891
cmp word [ebp - 0x226], 0
je 0x45d8b2
cmp word [ebp - 0x226], ax
jne 0x45d891
cmp word [ebp - 0x224], 0
je 0x45d8b2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045d6f0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45d8fe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45d86b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45d8e6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45d90b
push 0x45d520
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004640d0
add esp, 0x10
jmp 0x45d8db
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.0042eaad
leave
ret

Function at 0x45da50
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45da61
pop esi
ret
push ebx
push edi
push esi
call fcn.0045da19
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00457028
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45da89
push ebx
push esi
push edi
call fcn.00443a00
add esp, 0xc
push 0
call fcn.004564df
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x45de4d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045da9e
Function at 0x464f29
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00464ea5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4650a1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4650a1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x465050
jg 0x464f82
test eax, eax
je 0x465046
push 1
push 0x1000
call fcn.00456fcb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x464fa8
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x46503d
push 0x8000
push ebx
call fcn.00454c84
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x464fd4
jg 0x464fcf
cmp ecx, 0x1000
jb 0x464fd4
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00463ecf
add esp, 0x10
cmp eax, 0xffffffff
je 0x465019
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x464fcf
jl 0x465000
test ecx, ecx
jne 0x464fc1
push dword [ebp - 0xc]
push ebx
call fcn.00454c84
push esi
call fcn.004564df
add esp, 0xc
xor edi, edi
jmp 0x4650b2
cmp byte [edi + 0x24], 0
je 0x465030
cmp dword [edi + 0x20], 5
jne 0x465030
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x46503b
mov edi, dword [edi + 0x18]
jmp 0x46503d
xor edi, edi
push esi
call fcn.004564df
pop ecx
jmp 0x4650b2
test ecx, ecx
jg 0x465012
jl 0x465050
test eax, eax
jae 0x465012
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00464e47
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x465073
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x465012
jmp 0x4650aa
push ebx
call fcn.0045e5f3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x465012
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4650b2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4650af
mov edi, dword [edi + 0x18]
jmp 0x4650b2
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00464e47
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret