joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4896e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x5cf4ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x10], 0
mov dword [ebp], 0
call fcn.0047d160
mov ecx, dword [esp + 0x3c]
mov edx, 1
cmp ecx, 8
mov dword [esp + 0x2c], edx
mov dword [ebp], 0
jae 0x48973a
mov dword [ebp], 0x29
jmp 0x489777
mov edi, dword [esp + 0x38]
lea esi, [ecx - 4]
mov eax, dword [edi]
and eax, 0xefffffff
cmp esi, edx
jb 0x48975e
lea ecx, [edi + 1]
sub eax, edi
lea ebx, [eax + ecx]
cmp dword [ecx], ebx
je 0x48976f
inc edx
inc ecx
cmp edx, esi
jbe 0x489751
lea ecx, [esp + 0x48]
mov dword [ebp], 0x36
push ecx
jmp 0x48989f
lea ecx, [edx + 4]
cmp ecx, 0xffffff9c
jne 0x489794
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.0047d250
mov dword [esp + 0x10], 1
jmp 0x4898b2
test ecx, ecx
jg 0x4897a2
lea ecx, [esp + 0x48]
push ecx
jmp 0x48989f
mov esi, dword [esp + 0x44]
mov ebx, 0x10
mov byte [esp + 0x14], 0x43
mov byte [esp + 0x15], 0x44
mov dword [esi], ecx
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], 0x24
mov byte [esp + 0x18], 0x57
mov byte [esp + 0x19], 0x96
mov byte [esp + 0x1a], 0x55
mov byte [esp + 0x1b], 0x40
mov byte [esp + 0x1c], 0x54
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0x5a
mov byte [esp + 0x1f], 0x42
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 1
mov byte [esp + 0x23], 0x38
xor eax, eax
mov dl, byte [esp + eax + 0x14]
add dl, al
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, ebx
jb 0x4897fd
add ecx, 0xfffffffc
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x50]
call fcn.0047d340
lea ecx, [esp + 0x48]
call fcn.0047da70
mov edx, dword [esi]
push eax
sub edx, 4
lea eax, [esp + 0x18]
push edx
push edi
push ebx
push eax
push 3
call fcn.004aacc0
test eax, eax
je 0x48988a
cmp eax, 0xffffffff
je 0x48988a
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x50]
call fcn.0047d340
lea ecx, [esp + 0x48]
call fcn.0047da50
mov ecx, dword [esp + 0x40]
cmp dword [eax + ecx], ecx
je 0x489877
lea ecx, [esp + 0x48]
mov dword [ebp], 0xa5
call fcn.0047d630
lea ecx, [esp + 0x48]
push ecx
jmp 0x48989f
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x50]
call fcn.0047d340
lea edx, [esp + 0x48]
push edx
jmp 0x48989f
lea ecx, [esp + 0x48]
mov dword [ebp], 0x9b
call fcn.0047d630
lea eax, [esp + 0x48]
push eax
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.0047d250
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x2c], 0
call fcn.0047d290
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4898e0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5cf54b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
call fcn.0047d160
push 0x64bfd8
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 1
call fcn.0046ab70
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x138], 2
call fcn.0046ab70
mov ecx, dword [esp + 0x148]
mov edx, dword [eax]
mov eax, dword [esp + 0x140]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str.__d___s___d______
push ecx
mov byte [esp + 0x148], 3
call fcn.0046e3f0
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 2
call fcn.0046b3e0
mov al, 0x41
mov ecx, 0x3f
mov byte [esp + 0x14], al
mov byte [esp + 0x23], al
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x15], 0x34
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x16], 0x40
mov byte [esp + 0x17], 0x21
mov byte [esp + 0x18], 0x50
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1a], 0x36
mov byte [esp + 0x1b], 0x71
mov byte [esp + 0x1c], 0x55
mov byte [esp + 0x1d], 0x10
mov byte [esp + 0x1e], 0x5a
mov byte [esp + 0x1f], 0x42
mov byte [esp + 0x20], 9
mov byte [esp + 0x21], 0xa0
mov byte [esp + 0x22], 8
mov ecx, dword [eax - 8]
lea edx, [esp + 0x2c]
add ecx, ecx
push edx
push ecx
push eax
lea edx, [esp + 0x20]
push 0x10
push edx
push 7
call fcn.004ab140
cmp eax, ebx
jne 0x489a2a
mov eax, dword [esp + 0x14c]
mov esi, dword [esp + 0x13c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [eax], 0xc1
call fcn.0047d250
mov dword [esp + 0x24], 1
jmp 0x489a54
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0047d670
mov esi, dword [esp + 0x13c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0047d250
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call fcn.0046b3e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], bl
call fcn.0047d290
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x489a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa4
push esi
mov esi, dword [esp + 0xac]
push edi
mov ecx, esi
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x18], 0x37
mov dword [esp + 0x1c], 0x19
mov dword [esp + 0x20], 0x52
mov dword [esp + 0x24], 0x21
mov dword [esp + 0x28], 0x46
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x30], 0x5f
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x38], 0x84
mov dword [esp + 0x3c], 0x85
mov dword [esp + 0x40], 0x91
mov dword [esp + 0x44], 0xa2
mov dword [esp + 0x48], 0x1a7
mov dword [esp + 0x4c], 0xef
mov dword [esp + 0x50], 0x1f1
mov dword [esp + 0x54], 0x19e
mov dword [esp + 0x58], 0x1ef
mov dword [esp + 0x5c], 0x1f4
mov dword [esp + 0x60], 0x2a2
mov dword [esp + 0x64], 0x226
mov dword [esp + 0x68], 0x2f1
mov dword [esp + 0x6c], 0x27f
mov dword [esp + 0x70], 0x2c5
mov dword [esp + 0x74], 0x32a
mov dword [esp + 0x78], 0x399
mov dword [esp + 0x7c], 0x3ba
mov dword [esp + 0x80], 0x3d4
mov dword [esp + 0x84], 0x3e8
mov dword [esp + 0x88], 0x96a
mov dword [esp + 0x8c], 0x598
mov dword [esp + 0x90], 0x644
mov dword [esp + 0x94], 0x657
mov dword [esp + 0x98], 0x7a2
mov dword [esp + 0x9c], 0xbee
mov dword [esp + 0xa0], 0x1243
mov dword [esp + 0xa4], 0x14d8
mov dword [esp + 0xa8], 0x24d0
call fcn.0047da50
mov ecx, esi
mov edi, eax
call fcn.0047d330
cmp eax, 0xc
jbe 0x489c81
xor ecx, ecx
push ebx
push ebp
mov dword [esp + 0x10], ecx
mov ebx, 0x98
mov edx, dword [esp + 0xbc]
test edx, edx
jne 0x489c2f
mov ecx, ebx
mov edx, dword [esp + ecx + 0x14]
mov ecx, dword [esp + ecx + 0x18]
cmp edx, ecx
je 0x489c6c
jle 0x489c43
mov esi, edx
mov edx, ecx
mov ecx, esi
lea esi, [edx + 4]
cmp esi, eax
jle 0x489c4d
lea edx, [eax - 4]
lea esi, [ecx + 4]
cmp esi, eax
jle 0x489c57
lea ecx, [eax - 4]
mov esi, ecx
sub esi, edx
cmp esi, 4
jb 0x489c6c
mov ebp, dword [ecx + edi]
mov esi, dword [edx + edi]
mov dword [edx + edi], ebp
mov dword [ecx + edi], esi
mov ecx, dword [esp + 0x10]
sub ebx, 8
add ecx, 8
cmp ebx, 0xfffffff8
mov dword [esp + 0x10], ecx
jg 0x489c22
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xa4
ret

Function at 0x489c90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5cf581
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5e45d4]
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ebp, [esi + 0x14]
mov dword [ebp], eax
xor edi, edi
mov dword [esi + 0x28], 0x5e4e48
mov dword [esp + 0x18], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 1
call fcn.00560f40
push 0x64bfd8
mov ecx, ebp
mov byte [esp + 0x1c], 2
mov dword [esi], 0x5e4e44
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.0046b6c0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x489e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cf5e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push edi
mov esi, ecx
call ebp
lea edi, [esi + 0x3c]
push 0x10b
push str.D:Backup_
push eax
mov ecx, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 2
call fcn.00561370
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov dword [esp + 0x38], ebx
call ebp
push 0x244
mov ecx, edi
push str.D:Backup_
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 2
call fcn.00561370
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0xc]
mov byte [esp + 0x38], 1
cmp ecx, ebx
jne 0x489edd
cmp eax, ebx
mov byte [esp + 0x38], bl
je 0x489f1e
mov eax, dword [esp + 0x18]
dec eax
je 0x489ecb
dec eax
jne 0x489f1e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
call fcn.005615f0
jmp 0x489f1e
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x20]
call fcn.005612c0
jmp 0x489f1e
push 0x64bfd8
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], ebx
call fcn.0046b6c0
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x28]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call fcn.0048bfa0
lea ecx, [esp + 0x10]
mov dword [esi + 0xc], ebx
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
mov byte [esp + 0x38], bl
call fcn.00489f80
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], edx
call fcn.0046b6c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov ebp, 1
cmp eax, ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0xc], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
mov dword [esp + 0x38], 0xffffffff
je 0x489f63
mov edx, dword [esp + 0x20]
mov ecx, edi
push edx
call fcn.005615f0
mov ecx, dword [esp + 0x30]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x48b0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cf750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
lea ebx, [esi + 0x3c]
push 0x281
push str.D:Backup_
push edi
mov ecx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 2
call fcn.00561370
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0xc]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x34], ebp
jne 0x48b12f
cmp eax, ebp
mov dword [esi + 4], 0xf002
mov dword [esi + 8], 0x284
mov dword [esp + 0x34], 0xffffffff
je 0x48b2b8
jmp 0x48b2b0
cmp dword [esp + 0x3c], ebp
je 0x48b296
cmp dword [esp + 0x40], ebp
je 0x48b296
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebp
jle 0x48b189
mov edi, dword [esi + 0x2c]
mov eax, dword [esp + 0x3c]
add edi, ebp
push eax
mov ecx, dword [edi]
push ecx
call fcn.004524ae
add esp, 8
test eax, eax
jne 0x48b17e
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 4]
push edx
push eax
call fcn.004524ae
add esp, 8
test eax, eax
je 0x48b264
mov eax, dword [esi + 0x30]
inc ebx
add ebp, 0xc
cmp ebx, eax
jl 0x48b14c
mov eax, dword [0x5e45d4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.0047d160
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x38], 3
call fcn.0046b6c0
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.0046b6c0
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push edx
call fcn.0047d2c0
mov edi, dword [esi + 0x30]
add esi, 0x28
push 0xffffffffffffffff
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.0048bfa0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [esp + 0x10]
lea esi, [edx + ecx*4]
push eax
mov ecx, esi
call fcn.0046b590
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
call fcn.0046b590
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.0047d2c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0047d290
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call fcn.0046b3e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0046b3e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], 0xffffffff
test eax, eax
je 0x48b25d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
call fcn.005615f0
mov eax, 1
jmp 0x48b2ba
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [edi + 8]
call fcn.0047d2c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], 0xffffffff
test eax, eax
je 0x48b28f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
call fcn.005615f0
mov eax, 2
jmp 0x48b2ba
cmp eax, ebp
mov dword [esi + 4], 0xf000
mov dword [esi + 8], 0x28a
mov dword [esp + 0x34], 0xffffffff
je 0x48b2b8
push edi
mov ecx, ebx
call fcn.005615f0
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x48c340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cf8dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov ebp, ecx
push 0xc0
call fcn.005acc0c
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], ebx
je 0x48c480
mov eax, dword [0x5e45d4]
push edi
lea edi, [esi + 4]
mov dword [esp + 0x14], edi
mov dword [edi + 0x28], eax
mov ecx, dword [0x5e45d4]
mov dword [edi + 0x2c], ecx
mov edx, dword [0x5e45d4]
mov dword [edi + 0x30], edx
mov eax, dword [0x5e45d4]
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x38]
mov byte [esp + 0x20], 4
call fcn.004720f0
lea edx, [edi + 8]
xor ecx, ecx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov eax, dword [0x5e45d4]
mov dword [esi + 0x58], eax
mov ecx, dword [0x5e45d4]
mov dword [esi + 0x7c], ecx
mov edx, dword [0x5e45d4]
mov dword [esi + 0x84], edx
mov eax, dword [0x5e45d4]
mov dword [esi + 0x88], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x94], ebx
lea ecx, [esi + 0x98]
mov byte [esp + 0x20], 6
call fcn.004720f0
mov dword [esi + 0xa8], 0x5ddc00
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi], ebx
mov dword [ebp], esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48df7b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5cfc0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5e45d4]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x28], eax
mov ecx, dword [0x5e45d4]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x2c], ecx
mov edx, dword [0x5e45d4]
mov dword [esi + 0x30], edx
mov eax, dword [0x5e45d4]
mov dword [esi + 0x34], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 3
call fcn.004720f0
lea edx, [esi + 8]
xor ecx, ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [edx], ecx
mov eax, esi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x496480
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x4965ba
cmp eax, 0x104
jae 0x4965ba
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00490ae0
add esp, 4
test eax, eax
je 0x496541
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x210]
push 0x104
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004907a0
lea ecx, [esp + 0x21c]
push ecx
call fcn.00451ffc
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x496541
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.00452019
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x4965ac
mov esi, dword [esp + 0x420]
test esi, esi
je 0x4965ac
lea ecx, [esp + 8]
test ecx, ecx
je 0x4965ac
mov eax, dword [esp + 0x424]
test eax, eax
je 0x49658d
lea edx, [esp + 8]
push eax
push edx
push 0x622a00
push esi
push edi
call fcn.00452d58
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.00451ffc
add esp, 4
cmp esi, eax
jbe 0x4965ac
lea ecx, [esp + 8]
push ecx
push edi
call fcn.00451fd7
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret

Function at 0x497b30
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x497b51
push 0x57
mov dword [0x657f30], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x497b82
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x497b82
test al, 0x10
jne 0x497b82
test al, 1
je 0x497b4c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x4997f0
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x458
test edx, edx
jne 0x499819
push 0x57
mov dword [0x657f30], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0x458
ret
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x25e]
mov word [esp + 0x25c], bp
rep stosd dword es:[edi], eax
push 0x622608
push edx
stosw word es:[edi], ax
push 0x622a00
lea eax, [esp + 0x268]
push 0x103
push eax
mov dword [0x657f30], 0
call fcn.00452d58
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebp
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0xc]
lea edx, [esp + 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4998ec
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, 1
cmp word [esp + 0x38], 0x2e
jne 0x4998d7
mov ax, word [esp + 0x3a]
test ax, ax
je 0x4998b8
cmp ax, 0x2e
jne 0x4998d7
cmp word [esp + 0x3c], 0
jne 0x4998d7
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x499898
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x458
ret
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x458
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x657f30], eax
je 0x499902
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x458
ret
Function at 0x499b20
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x499b3c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00452590
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.004526d0
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x499bc0
cmp byte [esp + 0x10], 0x5c
jne 0x499bc0
cmp byte [esp + 0x11], 0x5c
jne 0x499bc0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.004526d0
add esp, 8
test eax, eax
je 0x499c3e
inc eax
push 0x5c
push eax
call fcn.004526d0
add esp, 8
mov esi, eax
test esi, esi
je 0x499c3e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x499c02
test bl, 1
je 0x499bf1
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x499c74
cmp ebx, 0xffffffff
je 0x499c0b
test edi, edi
jne 0x499c1a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x499c74
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.004526d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x499bc4
test ebp, ebp
je 0x499c74
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x499c69
test al, 0x10
jne 0x499c74
test al, 1
je 0x499c5c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x499c74
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x499c90
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x499cac
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.00452019
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0045278c
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.00451ffc
add esp, 0x18
cmp eax, 2
jbe 0x499d31
cmp word [esp + 0x10], di
jne 0x499d31
cmp word [esp + 0x12], di
jne 0x499d31
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0045278c
add esp, 8
test eax, eax
je 0x499db9
add eax, 2
push edi
push eax
call fcn.0045278c
add esp, 8
mov esi, eax
test esi, esi
je 0x499db9
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x499d79
test bl, 1
je 0x499d68
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x499def
cmp ebx, 0xffffffff
je 0x499d82
test edi, edi
jne 0x499d91
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x499def
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.0045278c
mov esi, eax
add esp, 8
test esi, esi
jne 0x499d39
test ebp, ebp
je 0x499def
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x499de4
test al, 0x10
jne 0x499def
test al, 1
je 0x499dd7
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x499def
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret