joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104d5a0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x18
mov dword [esp + 0x10], ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ebx
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov ebp, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov esi, dword [ecx + 0x1d0]
add esi, ecx
mov dword [esp + 4], esi
xor eax, dword [ecx]
xor ebx, dword [ecx + 4]
xor edx, dword [ecx + 8]
xor ebp, dword [ecx + 0xc]
lea ecx, [ecx + 0x10]
mov dword [esp], ecx
add eax, 0
push ebp
movzx ecx, al
mov ecx, dword [ecx*4 + 0x100dc00]
movzx esi, ah
shr eax, 0x10
mov ebp, dword [esi*4 + 0x100e000]
movzx edi, ah
mov edi, dword [edi*4 + 0x100e800]
movzx eax, al
mov eax, dword [eax*4 + 0x100e400]
movzx esi, bl
xor edi, dword [esi*4 + 0x100dc00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [esi*4 + 0x100e000]
movzx esi, bl
xor ebp, dword [esi*4 + 0x100e400]
movzx ebx, bh
xor eax, dword [ebx*4 + 0x100e800]
pop ebx
movzx esi, dl
xor eax, dword [esi*4 + 0x100dc00]
movzx esi, dh
xor edi, dword [esi*4 + 0x100e000]
shr edx, 0x10
movzx esi, dl
xor ecx, dword [esi*4 + 0x100e400]
movzx edx, dh
xor ebp, dword [edx*4 + 0x100e800]
mov esi, dword [esp]
movzx edx, bl
xor ebp, dword [edx*4 + 0x100dc00]
movzx edx, bh
xor eax, dword [edx*4 + 0x100e000]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x100e400]
movzx ebx, bh
xor ecx, dword [ebx*4 + 0x100e800]
mov edx, dword [esi + 8]
xor edx, eax
mov eax, dword [esi]
xor eax, ecx
xor ebp, dword [esi + 0xc]
mov ebx, dword [esi + 4]
xor ebx, edi
add esi, 0x10
cmp esi, dword [esp + 4]
mov dword [esp], esi
jb 0x104d5e0
push ebp
movzx ecx, al
movzx ecx, byte [ecx + 0x100d800]
movzx esi, ah
shr eax, 0x10
movzx ebp, byte [esi + 0x100d800]
movzx edi, ah
shl ebp, 8
movzx edi, byte [edi + 0x100d800]
movzx eax, al
shl edi, 0x18
movzx eax, byte [eax + 0x100d800]
shl eax, 0x10
movzx esi, bl
movzx esi, byte [esi + 0x100d800]
or edi, esi
movzx esi, bh
shr ebx, 0x10
movzx esi, byte [esi + 0x100d800]
shl esi, 8
or ecx, esi
movzx esi, bl
movzx esi, byte [esi + 0x100d800]
movzx ebx, bh
shl esi, 0x10
movzx ebx, byte [ebx + 0x100d800]
or ebp, esi
shl ebx, 0x18
or eax, ebx
movzx esi, dl
movzx esi, byte [esi + 0x100d800]
movzx ebx, dh
shr edx, 0x10
movzx ebx, byte [ebx + 0x100d800]
or eax, esi
shl ebx, 8
movzx esi, dl
movzx esi, byte [esi + 0x100d800]
or edi, ebx
pop ebx
movzx edx, dh
movzx edx, byte [edx + 0x100d800]
shl esi, 0x10
or ecx, esi
shl edx, 0x18
or ebp, edx
movzx esi, bl
movzx esi, byte [esi + 0x100d800]
movzx edx, bh
shr ebx, 0x10
movzx edx, byte [edx + 0x100d800]
or ebp, esi
shl edx, 8
or eax, edx
mov edx, dword [esp]
movzx esi, bl
movzx esi, byte [esi + 0x100d800]
movzx ebx, bh
movzx ebx, byte [ebx + 0x100d800]
shl esi, 0x10
shl ebx, 0x18
or edi, esi
or ecx, ebx
xor ecx, dword [edx]
xor edi, dword [edx + 4]
xor eax, dword [edx + 8]
xor ebp, dword [edx + 0xc]
mov ebx, dword [esp + 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ebp
mov dword [esp - 4], ebx
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
add esp, 0x18
ret 4
Function at 0x104eaab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x104eae7
xor eax, eax
jmp 0x104eb12
test eax, eax
jle 0x104eaf7
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x104eb12
cmp dword [ebp + 0x10], 4
je 0x104eb06
mov eax, 0x8007000d
jmp 0x104eb12
cmp dword [ebp - 4], 0
jne 0x104eb12
mov dword [edi], 1
pop edi
leave
ret 0xc

Function at 0x104eb1c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x104eb58
xor eax, eax
jmp 0x104eb83
test eax, eax
jle 0x104eb68
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x104eb83
cmp dword [ebp + 0x10], 4
je 0x104eb77
mov eax, 0x8007000d
jmp 0x104eb83
cmp dword [ebp - 4], 0
je 0x104eb83
mov dword [edi], 1
pop edi
leave
ret 0xc

Function at 0x104f2b6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x104f30a
push 3
lea eax, [ebp - 0x44]
push 0x1011710
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.010356d1
leave
ret
Function at 0x104f330
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x104f389
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
xor eax, eax
dec ecx
pop esi
je 0x104f3dd
dec ecx
jne 0x104f400
cmp edx, 5
jne 0x104f3d5
mov ecx, dword [ebp - 0x118]
sub ecx, eax
je 0x104f3d1
dec ecx
je 0x104f3c6
dec ecx
je 0x104f3b7
push 0x14
jmp 0x104f428
cmp word [ebp - 0xc], 1
jb 0x104f3c1
push 0x10
pop eax
or eax, 4
jmp 0x104f400
cmp word [ebp - 0xc], 2
jb 0x104f3c1
push 8
jmp 0x104f3c0
push 4
jmp 0x104f428
cmp edx, 4
ja 0x104f40c
push 2
pop eax
cmp edx, 4
jne 0x104f400
cmp dword [ebp - 0x118], 0
je 0x104f3fd
cmp dword [ebp - 0x118], 0xa
je 0x104f3fd
cmp dword [ebp - 0x118], 0x5a
jne 0x104f400
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010356d1
leave
ret
cmp edx, 6
jne 0x104f42b
cmp dword [ebp - 0x118], 0
jne 0x104f42b
cmp dword [ebp - 0x114], 0x1554
jae 0x104f42b
push 0x40
pop eax
jmp 0x104f400
push 0x20
jmp 0x104f428

Function at 0x104f55b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x1055558], si
jne 0x104f5f3
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x1011640
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104f5f3
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10116f8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x104f5f3
push 3
push dword [esi*8 + 0x1011490]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x104f5e5
inc esi
cmp esi, 0x1c
jb 0x104f5c4
jmp 0x104f5f3
mov ax, word [esi*8 + 0x1011494]
mov word [0x1055558], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x1055558]
xor ecx, ebp
pop esi
call fcn.010356d1
leave
ret
Function at 0x401040
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x401060
xor al, al
jmp 0x40118b
mov byte [ebp - 1], 1
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x401188
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00557f00
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4010c1
xor al, al
jmp 0x40118b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40116f
mov edx, dword [ebp - 0x238]
push edx
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40116f
push 0
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne cl
mov byte [ebp - 1], cl
mov dword [ebp - 0x248], 0
push 0x64
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401162
mov eax, dword [ebp - 0x248]
add eax, 1
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xa
jg 0x401162
push 0
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne dl
mov byte [ebp - 1], dl
jmp 0x40111e
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4010c1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret

Function at 0x401320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004041f0
push eax
mov ecx, dword [ebp + 8]
call fcn.004041f0
push eax
push 0x5dd978
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x401372
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004041f0
push eax
push str.IEXPLORE.EXE
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov eax, 0x20
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x402e10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x62
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x66
movzx eax, byte [ebp + 8]
movzx cx, byte [ebp + eax - 0x14]
mov word [ebp - 0x18], cx
mov ax, word [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret

Function at 0x404c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ba0b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x238]
call fcn.004025b0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00557f00
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404cfe
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004026c0
lea ecx, [ebp - 0x238]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov edx, dword [ebp - 0x23c]
or edx, 1
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.004042a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret

Function at 0x404f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x2c]
call fcn.004025b0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x234], ax
push 0x206
push 0
lea ecx, [ebp - 0x232]
push ecx
call fcn.00557f00
add esp, 0xc
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x234]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404fbb
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026c0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov eax, dword [ebp - 0x238]
or eax, 1
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004042a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x405010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

Function at 0x405030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40505a
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x40505a
mov dword [ebp - 8], 1
jmp 0x405061
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x405340
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d181
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004041f0
push eax
call fcn.00405010
add esp, 4
movzx eax, al
test eax, eax
jne 0x40538a
mov al, 1
jmp 0x40558f
mov dword [ebp - 0x284], 0
push 0x24c
push 0
lea ecx, [ebp - 0x280]
push ecx
call fcn.00557f00
add esp, 0xc
push 0x5dcdc4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402e80
add esp, 0xc
mov dword [ebp - 0x2dc], eax
lea ecx, [ebp - 0x284]
push ecx
mov ecx, dword [ebp - 0x2dc]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
call fcn.004042a0
cmp dword [ebp - 0x30], 0xffffffff
jne 0x405405
mov ecx, dword [ebp + 8]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor al, al
jmp 0x40558f
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x2bc]
call fcn.00404af0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2bc]
push eax
push 0x5dcdcc
call fcn.00406fa0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x405454
lea edx, [ebp - 0x2bc]
push edx
push 0x5dcdd0
call fcn.00406fa0
add esp, 8
movzx eax, al
test eax, eax
je 0x40546b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2bc]
call fcn.004042a0
jmp 0x405542
push 0x5dcdd8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.00402e80
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004026e0
mov ecx, dword [ebp - 0x284]
and ecx, 1
je 0x4054bb
push 0x80
lea ecx, [ebp - 0x2a0]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x284]
and edx, 0x10
je 0x4054d7
lea eax, [ebp - 0x2a0]
push eax
call fcn.00405340
add esp, 4
jmp 0x405521
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00404210
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d8]
call fcn.004041f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x2a0]
push eax
call fcn.00406a70
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
call fcn.004042a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
call fcn.004042a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2bc]
call fcn.004042a0
lea ecx, [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405405
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 8]
call fcn.004041f0
push eax
call fcn.00405010
add esp, 4
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x4065c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c64b
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x480], 0
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea ecx, [ebp - 0x252]
push ecx
call fcn.00557f00
add esp, 0xc
push 0x104
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404af0
mov dword [ebp - 4], 0
push 1
push 0
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00402820
mov byte [ebp - 4], 1
xor edx, edx
mov word [ebp - 0x47c], dx
push 0x206
push 0
lea eax, [ebp - 0x47a]
push eax
call fcn.00557f00
add esp, 0xfffffff0
mov ecx, 7
lea esi, [ebp - 0x270]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push 0x5dd68c
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404af0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov ecx, dword [ebp - 0x480]
or ecx, 1
mov dword [ebp - 0x480], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004042a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.004042a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004042a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x406a70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406aa1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406710
add esp, 8
movzx edx, al
test edx, edx
jne 0x406aa1
xor al, al
jmp 0x406aa3
mov al, 1
pop ebp
ret

Function at 0x407770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58013b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x64]
call fcn.0040a860
mov dword [ebp - 4], 0
lea edi, [ebp - 0x48]
call fcn.00454380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004041f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40782a
lea ecx, [ebp - 0x48]
call fcn.004041f0
push eax
lea ecx, [ebp - 0x68]
call fcn.00404090
mov byte [ebp - 4], 2
call fcn.004075a0
lea esi, [ebp - 0x68]
lea edi, [ebp - 0x2c]
call fcn.00468fe0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00407f50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040a980
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00404190
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x18], 0
je 0x407878
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x407864
push 1
mov ecx, dword [ebp - 0x6c]
call fcn.004076e0
mov dword [ebp - 0x88], eax
jmp 0x40786e
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x18], 0
push 0x50
call fcn.00552482
add esp, 4
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x78], 0
je 0x4078a3
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x78]
call fcn.00410310
mov dword [ebp - 0x8c], eax
jmp 0x4078ad
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004042a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0040a980
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
Function at 0x407d70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5803c6
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], 0
lea edi, [ebp - 0x70]
call fcn.00454380
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004041f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407e9c
lea ecx, [ebp - 0x8c]
call fcn.00407650
mov byte [ebp - 4], 1
push 0x5dc9f4
lea ecx, [ebp - 0x2c]
call fcn.00404af0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xa8]
push edx
lea ecx, [ebp - 0x8c]
call fcn.00407910
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004042a0
lea ecx, [ebp - 0xa8]
call fcn.0040d050
movzx eax, al
test eax, eax
jne 0x407e7e
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov edx, dword [ebp - 0xac]
or edx, 1
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.004042a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004042a0
mov eax, dword [ebp + 8]
jmp 0x407f33
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.004042a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407680
lea eax, [ebp - 0x54]
call fcn.00454400
mov byte [ebp - 4], 5
push 0x5dca6c
lea ecx, [ebp - 0x48]
call fcn.00404af0
mov byte [ebp - 4], 6
push 0x5dcadc
mov eax, 0x20119
mov ecx, reloc.WS2_32.dll_accept
lea esi, [ebp - 0x54]
call fcn.00454410
mov ecx, dword [ebp + 0xc]
call fcn.004041f0
lea ecx, [ebp - 0x54]
push ecx
lea edi, [ebp - 0x48]
mov ecx, eax
call fcn.00454540
lea esi, [ebp - 0x54]
call fcn.00454510
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov eax, dword [ebp - 0xac]
or eax, 1
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.004042a0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x54]
call fcn.00454510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004042a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret 8