joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559fef
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.0051fc6f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x4892f1
push eax
push esi
call fcn.0051fb2d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0051f8f5
int3

Function at 0x48b170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540e50
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x3c], 1
je 0x48b1e9
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x48b1ae
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
jmp 0x48b1bb
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
lea ecx, [eax + ecx*2]
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
sub ecx, eax
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x48b1df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48b23a
mov eax, edx
push ecx
push eax
call fcn.00521792
add esp, 8
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
and dword [esi + 0x3c], 0xfffffffe
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00526b0a
int3
Function at 0x48f350
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x48f37f
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xc]
or ecx, 0xf003f
cmp dword [eax + 0x14], 8
jb 0x48f36d
mov eax, dword [eax]
sub esp, 8
push ecx
sub esp, 8
mov ecx, esi
push eax
push dword [esi + 0x3c]
call fcn.00480950
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x14], 8
jb 0x48f38b
mov edx, dword [edx]
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x48f397
mov edi, dword [edi]
test edx, edx
jne 0x48f3aa
mov eax, 0xd
test eax, eax
pop edi
sete al
pop esi
ret 0xc
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48f3b0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 2
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
pop edi
sete al
pop esi
ret 0xc
Function at 0x48f640
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x48f671
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0xc]
or ecx, 0xf003f
cmp dword [eax + 0x14], 8
jb 0x48f65d
mov eax, dword [eax]
sub esp, 8
push ecx
sub esp, 8
mov ecx, esi
push eax
push dword [esi + 0x3c]
call fcn.00480950
mov edx, dword [esi]
mov ecx, dword [esp + 8]
pop esi
cmp dword [ecx + 0x14], 8
jb 0x48f67e
mov ecx, dword [ecx]
mov eax, dword [esp + 8]
push 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
ret 8

Function at 0x48fc50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b205
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
call fcn.0048fef0
mov esi, dword [ebx + 0x10]
lea eax, [ebx + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x30], eax
cmp esi, edi
je 0x48fcd9
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop word [eax + eax]
lea eax, [ebp - 0x28]
add esi, 0xffffffe8
push eax
mov ecx, esi
call fcn.00486580
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x48fcbd
mov eax, dword [eax]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407f50
cmp esi, edi
jne 0x48fca0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.004900a0
mov esi, dword [ebx + 0x18]
lea eax, [ebx + 0x18]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x30], eax
cmp esi, edi
je 0x48fd5f
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00486580
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48fd0a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415360
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00492800
lea ecx, [ebp - 0x2c]
call fcn.00492a00
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48fd46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407f50
add esi, 0x18
cmp esi, edi
jne 0x48fcf0
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.004900a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521781
mov esp, ebp
pop ebp
ret
Function at 0x48fef0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b2de
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x298], eax
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x490074
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00486580
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, ebx
push 0
push 0x2a
call fcn.00429680
cmp eax, 0xffffffff
jne 0x48ff6b
cmp dword [ebx + 0x14], 8
jb 0x48ff5f
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x490054
lea ecx, [ebp - 0x290]
call fcn.0048fd90
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 8
jb 0x48ff82
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x290]
call fcn.004976c0
test eax, eax
je 0x490045
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x48ffd5
mov eax, dword [ebp - 0x28c]
shr eax, 4
and eax, 1
je 0x48ffd1
cmp word [ebp - 0x260], 0x2e
jne 0x48ffd1
mov dx, word [ebp - 0x25e]
test dx, dx
je 0x49001c
cmp dx, 0x2e
jne 0x48ffd1
cmp word [ebp - 0x25c], 0
je 0x49001c
test eax, eax
jne 0x49001c
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x290]
call fcn.00497bc0
mov byte [ebp - 4], 2
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x294]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x490019
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x490045
test ecx, ecx
je 0x490045
lea ecx, [ebp - 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x48ff9d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.0048fe40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407f50
add esi, 0x18
cmp esi, edi
jne 0x48ff33
mov eax, dword [ebp - 0x298]
mov ecx, eax
call fcn.004900a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521781
mov esp, ebp
pop ebp
ret
Function at 0x4920d0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x55b8ee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x492173
call fcn.00409310
test eax, eax
je 0x4921f7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00521781
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x492186
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x4921f2
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4921f7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x4921cc
movzx eax, ax
mov ecx, esi
push eax
call fcn.00415200
jmp 0x492142
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4921d2
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00408e90
jmp 0x492142
call fcn.00521d6e
push 0x80004005
call fcn.00408fe0
int3
Function at 0x492800
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x268
push 0xffffffffffffffff
push 0x55bab5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp + 0x264], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00408b20
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x49287b
lea ecx, [edx - 1]
test ecx, ecx
js 0x4929f5
cmp ecx, edx
jg 0x4929f5
cmp word [eax + ecx*2], 0x5c
je 0x49287b
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00490c80
push 1
push 0x5916b0
lea ecx, [ebp - 0x14]
call fcn.00418fd0
lea ecx, [ebp]
call fcn.0048fd90
mov byte [ebp - 4], 2
lea ecx, [ebp]
mov esi, dword [ebp - 0x14]
push esi
call fcn.004976c0
or ebx, 0xffffffff
test eax, eax
je 0x4929aa
mov ecx, dword [ebp + 0x25c]
or esi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ecx, ecx
je 0x4928f6
mov eax, dword [ebp + 4]
shr eax, 4
and eax, 1
je 0x4928f6
cmp word [ebp + 0x30], 0x2e
jne 0x4928f6
mov ax, word [ebp + 0x32]
test ax, ax
je 0x49297e
cmp ax, 0x2e
jne 0x4928f6
cmp word [ebp + 0x34], 0
je 0x49297e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00497bc0
mov byte [ebp - 4], 3
cmp dword [ebp + 0x25c], 0
je 0x492940
mov eax, dword [ebp + 4]
shr eax, 4
and eax, 1
je 0x492940
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.00492800
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x492936
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00492a00
jmp 0x49295a
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x492952
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00492b10
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x492978
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x25c]
mov eax, dword [ebp]
test eax, eax
je 0x4929a4
test ecx, ecx
je 0x4929a4
lea ecx, [ebp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp + 0x25c], ecx
test ecx, ecx
jne 0x4928c6
mov esi, dword [ebp - 0x14]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0048fe40
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4929d2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.00521781
lea esp, [ebp + 0x268]
pop ebp
ret
push 0x80070057
call fcn.00408fe0
int3
Function at 0x492a00
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bafd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x492ad0
call fcn.00492f10
test al, al
jne 0x492ad0
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x492afb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x5866f4
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x492a7e
movzx eax, ax
push eax
call fcn.00415200
jmp 0x492a8a
push 4
push 0x5866f4
call fcn.00408e90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x492ade
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x492ade
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x492ae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fe0
int3

Function at 0x492b10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bafd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x492be0
call fcn.00492f10
test al, al
jne 0x492be0
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x492c0b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x5866f4
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x492b8e
movzx eax, ax
push eax
call fcn.00415200
jmp 0x492b9a
push 4
push 0x5866f4
call fcn.00408e90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x492bee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x492bee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x492bf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fe0
int3
Function at 0x493330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bd15
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
call fcn.00492d90
test al, al
je 0x493379
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
cmp eax, 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
sete byte [ebp - 0xd]
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00492fc0
cmp dword [ebp - 0x28], 0
jle 0x493539
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00408b20
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
dec eax
test bl, bl
lea ecx, [eax + 1]
cmove ecx, eax
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
lea ebx, [eax + 1]
cmp ecx, ebx
jle 0x49348a
nop
lea ecx, [esi - 0x10]
call fcn.00408b20
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
push 1
push 0x58c54c
call fcn.00418fd0
cmp ebx, dword [ebp - 0x28]
jge 0x493539
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4934d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0xb7
je 0x4934e5
cmp byte [ebp - 0xd], 0
jne 0x4934e5
cmp ebx, 1
jbe 0x49346b
lea ecx, [ebp - 0x14]
call fcn.00492a00
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x493487
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, 0xb7
cmovne edi, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4934b0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0047f580
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x4934e5
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0048f870
push 1
push 0x58c54c
lea ecx, [ebp - 0x14]
call fcn.00418fd0
cmp ebx, dword [ebp - 0x28]
jge 0x493539
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x493527
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x493487
jmp 0x4933f0
push 1
push 0xc000008c
call fcn.00411080
int3
Function at 0x4937c0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x55b8ee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
push 0x25
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x493874
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4938ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea eax, [ebp]
test eax, 0xffff0000
jne 0x493851
movzx eax, ax
mov ecx, esi
push eax
call fcn.00415200
jmp 0x493872
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493857
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00408e90
jmp 0x493889
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4938ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00521781
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.00408fe0
int3

Function at 0x4938d0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push dword [esp + 0x18]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x4938fa
mov ecx, esi
call fcn.00408be0
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
js 0x493960
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x493919
push edi
mov ecx, esi
call fcn.00408d70
mov edx, dword [esi]
push edi
push edx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x49392f
xor ecx, ecx
jmp 0x493941
push dword [eax - 8]
push eax
call fcn.00529a2f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x493960
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x493960
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00408fe0
int3
Function at 0x49c940
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d8e5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, dl
mov byte [ebp - 0xd], al
mov ebx, ecx
or edi, 0xffffffff
cmp byte [0x5de684], 0
je 0x49c9f2
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x49caf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
mov edx, dword [ebx]
test edx, edx
je 0x49c9c3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c9a7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00418fd0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
mov ecx, 0x5de64c
push eax
call fcn.004c58e0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49c9ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
cmp byte [0x5d8bdc], 0
je 0x49cad6
movzx eax, al
shl eax, 0x12
add eax, 0x10
mov dword [ebp - 0x1c], eax
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x49cafa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x14]
push dword [ebx]
call fcn.00415360
mov byte [ebp - 4], 7
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov byte [ebp - 0xd], 0
test esi, esi
jne 0x49ca56
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov byte [ebp - 0xd], 1
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
cmp dword [ebx - 0xc], eax
cmove ecx, eax
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov ecx, esp
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, esi
call fcn.00439980
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x49ca8a
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49caa8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea edx, [ebx - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x49cade
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fe0
push 0x80004005
call fcn.00408fe0
int3