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

Disassembly:
push 0xffffffffffffffff
push 0x5daf0f
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.0047ea20
mov ecx, dword [esp + 0x3c]
mov edx, 1
cmp ecx, 8
mov dword [esp + 0x2c], edx
mov dword [ebp], 0
jae 0x48affa
mov dword [ebp], 0x29
jmp 0x48b037
mov edi, dword [esp + 0x38]
lea esi, [ecx - 4]
mov eax, dword [edi]
and eax, 0xefffffff
cmp esi, edx
jb 0x48b01e
lea ecx, [edi + 1]
sub eax, edi
lea ebx, [eax + ecx]
cmp dword [ecx], ebx
je 0x48b02f
inc edx
inc ecx
cmp edx, esi
jbe 0x48b011
lea ecx, [esp + 0x48]
mov dword [ebp], 0x36
push ecx
jmp 0x48b15f
lea ecx, [edx + 4]
cmp ecx, 0xffffff9c
jne 0x48b054
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.0047eb10
mov dword [esp + 0x10], 1
jmp 0x48b172
test ecx, ecx
jg 0x48b062
lea ecx, [esp + 0x48]
push ecx
jmp 0x48b15f
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 0x48b0bd
add ecx, 0xfffffffc
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x50]
call fcn.0047ec00
lea ecx, [esp + 0x48]
call fcn.0047f330
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.004ac580
test eax, eax
je 0x48b14a
cmp eax, 0xffffffff
je 0x48b14a
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x50]
call fcn.0047ec00
lea ecx, [esp + 0x48]
call fcn.0047f310
mov ecx, dword [esp + 0x40]
cmp dword [eax + ecx], ecx
je 0x48b137
lea ecx, [esp + 0x48]
mov dword [ebp], 0xa5
call fcn.0047eef0
lea ecx, [esp + 0x48]
push ecx
jmp 0x48b15f
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x50]
call fcn.0047ec00
lea edx, [esp + 0x48]
push edx
jmp 0x48b15f
lea ecx, [esp + 0x48]
mov dword [ebp], 0x9b
call fcn.0047eef0
lea eax, [esp + 0x48]
push eax
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.0047eb10
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x2c], 0
call fcn.0047eb50
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 0x48b1a0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5daf5b
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.0047ea20
push 0x65aa38
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 1
call fcn.0046c430
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x138], 2
call fcn.0046c430
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.0046fcb0
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 2
call fcn.0046cca0
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.004aca00
cmp eax, ebx
jne 0x48b2ea
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.0047eb10
mov dword [esp + 0x24], 1
jmp 0x48b314
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0047ef30
mov esi, dword [esp + 0x13c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0047eb10
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call fcn.0046cca0
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], bl
call fcn.0047eb50
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 0x48b350
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.0047f310
mov ecx, esi
mov edi, eax
call fcn.0047ebf0
cmp eax, 0xc
jbe 0x48b541
xor ecx, ecx
push ebx
push ebp
mov dword [esp + 0x10], ecx
mov ebx, 0x98
mov edx, dword [esp + 0xbc]
test edx, edx
jne 0x48b4ef
mov ecx, ebx
mov edx, dword [esp + ecx + 0x14]
mov ecx, dword [esp + ecx + 0x18]
cmp edx, ecx
je 0x48b52c
jle 0x48b503
mov esi, edx
mov edx, ecx
mov ecx, esi
lea esi, [edx + 4]
cmp esi, eax
jle 0x48b50d
lea edx, [eax - 4]
lea esi, [ecx + 4]
cmp esi, eax
jle 0x48b517
lea ecx, [eax - 4]
mov esi, ecx
sub esi, edx
cmp esi, 4
jb 0x48b52c
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 0x48b4e2
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xa4
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x5daf91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5f1614]
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], 0x5f1e88
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.0056c700
push 0x65aa38
mov ecx, ebp
mov byte [esp + 0x1c], 2
mov dword [esi], 0x5f1e84
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.0046cf80
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 0x48b6e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5daff0
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.0056cb30
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.0056cb30
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0xc]
mov byte [esp + 0x38], 1
cmp ecx, ebx
jne 0x48b79d
cmp eax, ebx
mov byte [esp + 0x38], bl
je 0x48b7de
mov eax, dword [esp + 0x18]
dec eax
je 0x48b78b
dec eax
jne 0x48b7de
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
call fcn.0056cdb0
jmp 0x48b7de
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0056ca80
jmp 0x48b7de
push 0x65aa38
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], ebx
call fcn.0046cf80
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.0048d860
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.0048b840
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], edx
call fcn.0046cf80
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 0x48b823
mov edx, dword [esp + 0x20]
mov ecx, edi
push edx
call fcn.0056cdb0
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 0x48c970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5db160
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.0056cb30
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0xc]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x34], ebp
jne 0x48c9ef
cmp eax, ebp
mov dword [esi + 4], 0xf002
mov dword [esi + 8], 0x284
mov dword [esp + 0x34], 0xffffffff
je 0x48cb78
jmp 0x48cb70
cmp dword [esp + 0x3c], ebp
je 0x48cb56
cmp dword [esp + 0x40], ebp
je 0x48cb56
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebp
jle 0x48ca49
mov edi, dword [esi + 0x2c]
mov eax, dword [esp + 0x3c]
add edi, ebp
push eax
mov ecx, dword [edi]
push ecx
call fcn.00453d6e
add esp, 8
test eax, eax
jne 0x48ca3e
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 4]
push edx
push eax
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x48cb24
mov eax, dword [esi + 0x30]
inc ebx
add ebp, 0xc
cmp ebx, eax
jl 0x48ca0c
mov eax, dword [0x5f1614]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.0047ea20
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x38], 3
call fcn.0046cf80
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.0046cf80
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push edx
call fcn.0047eb80
mov edi, dword [esi + 0x30]
add esi, 0x28
push 0xffffffffffffffff
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.0048d860
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.0046ce50
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
call fcn.0046ce50
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.0047eb80
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0047eb50
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call fcn.0046cca0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0046cca0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], 0xffffffff
test eax, eax
je 0x48cb1d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
call fcn.0056cdb0
mov eax, 1
jmp 0x48cb7a
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [edi + 8]
call fcn.0047eb80
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], 0xffffffff
test eax, eax
je 0x48cb4f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
call fcn.0056cdb0
mov eax, 2
jmp 0x48cb7a
cmp eax, ebp
mov dword [esi + 4], 0xf000
mov dword [esi + 8], 0x28a
mov dword [esp + 0x34], 0xffffffff
je 0x48cb78
push edi
mov ecx, ebx
call fcn.0056cdb0
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 0x48dc00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5db2ed
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.005b83cc
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], ebx
je 0x48dd40
mov eax, dword [0x5f1614]
push edi
lea edi, [esi + 4]
mov dword [esp + 0x14], edi
mov dword [edi + 0x28], eax
mov ecx, dword [0x5f1614]
mov dword [edi + 0x2c], ecx
mov edx, dword [0x5f1614]
mov dword [edi + 0x30], edx
mov eax, dword [0x5f1614]
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x38]
mov byte [esp + 0x20], 4
call fcn.004739b0
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 [0x5f1614]
mov dword [esi + 0x58], eax
mov ecx, dword [0x5f1614]
mov dword [esi + 0x7c], ecx
mov edx, dword [0x5f1614]
mov dword [esi + 0x84], edx
mov eax, dword [0x5f1614]
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.004739b0
mov dword [esi + 0xa8], 0x5eac00
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 0x48f83b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5db61c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5f1614]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x28], eax
mov ecx, dword [0x5f1614]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x2c], ecx
mov edx, dword [0x5f1614]
mov dword [esi + 0x30], edx
mov eax, dword [0x5f1614]
mov dword [esi + 0x34], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 3
call fcn.004739b0
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 0x497d40
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 0x497e7a
cmp eax, 0x104
jae 0x497e7a
lea ecx, [esp + 4]
push esi
push ecx
call fcn.004923a0
add esp, 4
test eax, eax
je 0x497e01
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.00492060
lea ecx, [esp + 0x21c]
push ecx
call fcn.004538bc
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x497e01
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004538d9
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x497e6c
mov esi, dword [esp + 0x420]
test esi, esi
je 0x497e6c
lea ecx, [esp + 8]
test ecx, ecx
je 0x497e6c
mov eax, dword [esp + 0x424]
test eax, eax
je 0x497e4d
lea edx, [esp + 8]
push eax
push edx
push 0x630a00
push esi
push edi
call fcn.00454618
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.004538bc
add esp, 4
cmp esi, eax
jbe 0x497e6c
lea ecx, [esp + 8]
push ecx
push edi
call fcn.00453897
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 0x4993f0
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 0x499411
push 0x57
mov dword [0x666990], 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 0x499442
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x499442
test al, 0x10
jne 0x499442
test al, 1
je 0x49940c
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 0x49b0b0
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x458
test edx, edx
jne 0x49b0d9
push 0x57
mov dword [0x666990], 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 0x630608
push edx
stosw word es:[edi], ax
push 0x630a00
lea eax, [esp + 0x268]
push 0x103
push eax
mov dword [0x666990], 0
call fcn.00454618
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 0x49b1ac
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, 1
cmp word [esp + 0x38], 0x2e
jne 0x49b197
mov ax, word [esp + 0x3a]
test ax, ax
je 0x49b178
cmp ax, 0x2e
jne 0x49b197
cmp word [esp + 0x3c], 0
jne 0x49b197
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x49b158
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 [0x666990], eax
je 0x49b1c2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x458
ret
Function at 0x49b3e0
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 0x49b3fc
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.00453e50
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00453f90
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 0x49b480
cmp byte [esp + 0x10], 0x5c
jne 0x49b480
cmp byte [esp + 0x11], 0x5c
jne 0x49b480
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.00453f90
add esp, 8
test eax, eax
je 0x49b4fe
inc eax
push 0x5c
push eax
call fcn.00453f90
add esp, 8
mov esi, eax
test esi, esi
je 0x49b4fe
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 0x49b4c2
test bl, 1
je 0x49b4b1
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 0x49b534
cmp ebx, 0xffffffff
je 0x49b4cb
test edi, edi
jne 0x49b4da
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x49b534
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00453f90
mov esi, eax
add esp, 8
test esi, esi
jne 0x49b484
test ebp, ebp
je 0x49b534
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x49b529
test al, 0x10
jne 0x49b534
test al, 1
je 0x49b51c
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 0x49b534
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 0x49b550
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 0x49b56c
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.004538d9
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0045404c
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.004538bc
add esp, 0x18
cmp eax, 2
jbe 0x49b5f1
cmp word [esp + 0x10], di
jne 0x49b5f1
cmp word [esp + 0x12], di
jne 0x49b5f1
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0045404c
add esp, 8
test eax, eax
je 0x49b679
add eax, 2
push edi
push eax
call fcn.0045404c
add esp, 8
mov esi, eax
test esi, esi
je 0x49b679
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 0x49b639
test bl, 1
je 0x49b628
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 0x49b6af
cmp ebx, 0xffffffff
je 0x49b642
test edi, edi
jne 0x49b651
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x49b6af
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.0045404c
mov esi, eax
add esp, 8
test esi, esi
jne 0x49b5f9
test ebp, ebp
je 0x49b6af
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b6a4
test al, 0x10
jne 0x49b6af
test al, 1
je 0x49b697
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 0x49b6af
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