joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b3a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x464270], 0x44
push eax
xor eax, eax
push 0x464270
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b79
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b7d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405c1b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406022
mov edi, eax
cmp edi, 0xffffffff
je 0x405c5c
test byte [esp + 0x10], 1
push esi
je 0x405c3e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c44
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c4d
xor eax, eax
inc eax
jmp 0x405c5e
test byte [esp + 0x10], 4
jne 0x405c5c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c63
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405f2e
test bl, 8
mov dword [ebp - 8], eax
je 0x405ca2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x476f88], eax
jmp 0x405e1f
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405cbc
test eax, eax
je 0x405dcd
test bl, 2
je 0x405dcd
mov esi, 0x45c270
push edi
push esi
call fcn.00406557
cmp dword [ebp + 8], 0
je 0x405cdb
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ce1
push edi
call fcn.00405e72
cmp word [edi], 0
jne 0x405cf1
cmp word [0x45c270], 0x5c
jne 0x405cfc
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dc2
cmp word [ebp - 0x22c], 0x2e
jne 0x405d46
cmp word [ebp - 0x22a], 0
je 0x405da5
cmp word [ebp - 0x22a], 0x2e
jne 0x405d46
cmp word [ebp - 0x228], 0
je 0x405da5
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406557
test byte [ebp - 0x258], 0x10
je 0x405d71
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405da5
push dword [ebp + 0xc]
push edi
call fcn.00405c63
jmp 0x405da5
push dword [ebp - 4]
push edi
call fcn.00405c1b
test eax, eax
jne 0x405d9d
cmp dword [ebp - 4], eax
je 0x405d95
push edi
push 0xfffffffffffffff1
call fcn.004055dc
push 0
push edi
call fcn.00406317
jmp 0x405da5
inc dword [0x476f88]
jmp 0x405da5
push edi
push 0xfffffffffffffff2
call fcn.004055dc
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d1e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405dcd
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e1f
cmp dword [ebp - 8], esi
jne 0x405de1
inc dword [0x476f88]
jmp 0x405e1f
push edi
call fcn.004068b4
test eax, eax
je 0x405e1f
push edi
call fcn.00405e26
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c1b
test eax, eax
jne 0x405e17
cmp dword [ebp - 4], esi
je 0x405dd9
push edi
push 0xfffffffffffffff1
call fcn.004055dc
push esi
push edi
call fcn.00406317
jmp 0x405e1f
push edi
push 0xffffffffffffffe5
call fcn.004055dc
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405f2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x460270
push esi
call fcn.00406557
push esi
call fcn.00405ed1
mov edi, eax
test edi, edi
jne 0x405f4f
xor eax, eax
jmp 0x405fa7
push edi
call fcn.00406805
test byte [0x476f18], 0x80
je 0x405f6c
mov ax, word [edi]
test ax, ax
je 0x405f4b
cmp ax, 0x5c
je 0x405f4b
sub edi, esi
sar edi, 1
jmp 0x405f86
call fcn.004068b4
test eax, eax
je 0x405f80
test byte [eax], 0x10
je 0x405f4b
push esi
call fcn.00405e72
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f72
call fcn.00405e26
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406041
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406047
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406076
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060c6
test edi, edi
jne 0x406083
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060c0
Function at 0x40619d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x464908], 0x55004e
mov dword [0x46490c], 0x4c
mov edi, 0x400
mov ebp, 0x464908
je 0x4061f3
push 1
push 0
push esi
call fcn.00406047
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406312
cmp eax, edi
jg 0x406312
mov esi, 0x465108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406312
cmp eax, edi
jg 0x406312
push esi
push ebp
push str._ls_ls_r_n
push 0x464508
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x476f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406594
push 4
push 0xc0000000
push esi
call fcn.00406047
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406312
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40630b
push edi
push esi
push ebp
call fcn.004060ca
test eax, eax
je 0x40630b
push str._Rename__r_n
push esi
call fcn.00405fac
test eax, eax
jne 0x4062a9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062de
add eax, 0xa
push 0x40a580
push eax
call fcn.00405fac
mov ebp, eax
test ebp, ebp
je 0x4062da
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062cb
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062c5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062e0
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x464508
push eax
call fcn.00406002
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060f9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406317
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40633a
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040619d
pop ecx
pop ecx
inc dword [0x476f90]
ret 8
Function at 0x406425
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063c4
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406495
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x406495
cmp dword [ebp + 0xc], 1
je 0x406499
cmp dword [ebp + 0xc], 2
je 0x406499
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x46590c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x465908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x465908]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc
Function at 0x401120
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
push 0
mov dword [esp + 0xc], 0
push dword [esi]
call fcn.00409ec8
push dword [esi]
lea eax, [esp + 0x1c]
push 2
push 1
push eax
call fcn.00409b5e
mov ax, word [esp + 0x28]
add esp, 0x1c
cmp al, 0x4d
jne 0x4011f2
cmp ah, 0x5a
jne 0x4011f2
push 0
push 0x3c
push dword [esi]
call fcn.00409ec8
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409b5e
mov eax, dword [esp + 0x20]
push 0
add eax, 0x18
push eax
push dword [esi]
call fcn.00409ec8
push dword [esi]
lea eax, [esp + 0x38]
push 1
push 2
push eax
call fcn.00409b5e
mov ax, word [esp + 0x44]
add esp, 0x38
cmp al, 0xb
jne 0x4011f2
cmp ah, 1
jne 0x4011b6
mov ecx, 0x98
jmp 0x4011c0
cmp ah, 2
jne 0x4011f2
mov ecx, 0xa8
mov eax, dword [esp + 4]
push 0
add eax, ecx
push eax
push dword [esi]
call fcn.00409ec8
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409b5e
mov eax, dword [esp + 0x20]
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x401220
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi], 0
jne 0x401252
lea eax, [edi + 0x68]
push 0x4211f0
push eax
call fcn.00402700
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x401252
push str.Cannot_open_archive_file_n
call fcn.00401860
add esp, 4
xor eax, eax
pop edi
ret
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push 0
push dword [ebp + 4]
call sub.WS2_32.dll_ntohl
add eax, dword [edi + 4]
push eax
push dword [edi]
call fcn.00409ec8
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
call fcn.0040983b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
push str.Could_not_allocate_read_buffer_n
call fcn.00401860
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
ret
push dword [edi]
push 1
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
push ebx
call fcn.00409b5e
add esp, 0x10
cmp eax, 1
jae 0x4012ce
push str.Could_not_read_from_file_n
call fcn.00401860
push ebx
call fcn.00409836
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
cmp byte [ebp + 0x10], 1
jne 0x401305
push esi
push ebp
push ebx
call fcn.00401030
push ebx
mov esi, eax
call fcn.00409836
add esp, 0xc
mov ebx, esi
test esi, esi
pop esi
jne 0x401305
lea eax, [ebp + 0x12]
push eax
push str.Error_decompressing__s_n
call fcn.00401860
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
mov eax, dword [edi]
test eax, eax
je 0x40131a
push eax
call fcn.004098bc
add esp, 4
mov dword [edi], 0
pop ebp
mov eax, ebx
pop ebx
pop edi
ret
Function at 0x401320
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push ebp
push esi
call fcn.00401220
push esi
mov ebx, eax
call fcn.00403920
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401348
pop esi
pop ebp
or eax, eax
pop ebx
ret
push edi
lea edi, [ebp + 0x12]
lea eax, [esi + 0x2068]
push edi
push eax
call fcn.00403c10
add esp, 8
mov esi, eax
push dword [ebp + 0xc]
call sub.WS2_32.dll_ntohl
mov ebp, eax
test esi, esi
jne 0x401387
push edi
push str._s_could_not_be_extracted__n
push str.fopen
call fcn.00401840
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 1
push ebp
push ebx
call fcn.0040a67d
add esp, 0x10
cmp eax, 1
je 0x4013b8
test ebp, ebp
je 0x4013b8
push edi
push str.Failed_to_write_all_bytes_for__s_n
push str.fwrite
call fcn.00401840
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004098bc
push ebx
call fcn.00409836
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4013d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x74]
lea esi, [esp + 0x14]
push 0
add ebx, 0xffffffa0
push ebx
push dword [edi]
call fcn.00409ec8
add esp, 0xc
test eax, eax
jne 0x40143d
push dword [edi]
lea eax, [esp + 0x10]
push 1
push 0x60
push eax
call fcn.00409b5e
add esp, 0x10
cmp eax, 1
jb 0x40143d
nop dword [eax]
push 8
push esi
push str.MEI_f_v_n_v
call fcn.004094e0
add esp, 0xc
test eax, eax
je 0x401452
dec esi
lea eax, [esp + 0xc]
cmp esi, eax
jae 0x401420
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040769e
add esp, 0x64
ret
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [esi + 0x50]
movq qword [edi + 0x60], xmm0
push dword [edi + 0x18]
call sub.WS2_32.dll_ntohl
lea ecx, [esp + 0xc]
sub esi, ecx
mov ecx, dword [esp + 0x6c]
add esi, ebx
sub esi, eax
xor eax, eax
add esi, 0x58
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040769e
add esp, 0x64
ret
Function at 0x401560
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x401585
lea eax, [esi + 0x68]
push 0x4211f0
push eax
call fcn.00402700
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x401610
push esi
call fcn.00401120
add esp, 4
cmp eax, 1
jge 0x4015a8
push 2
push 0
push dword [esi]
call fcn.00409ec8
push dword [esi]
call fcn.0040a43a
add esp, 0x10
push eax
push esi
call fcn.004013d0
add esp, 8
cmp eax, 0xffffffff
je 0x401610
push dword [esi + 0x24]
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
push 0
mov dword [0x42d954], eax
push dword [esi + 0x1c]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
push eax
push dword [esi]
call fcn.00409ec8
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.0040983b
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401615
push str.Could_not_allocate_buffer_for_TOC.
push str.malloc
call fcn.00401840
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi]
push 1
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
push dword [esi + 8]
call fcn.00409b5e
add esp, 0x10
cmp eax, 1
jae 0x401649
push str.Could_not_read_from_file.
push str.fread
call fcn.00401840
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
push dword [esi]
mov dword [esi + 0xc], eax
call fcn.00409967
add esp, 4
test eax, eax
je 0x401677
push str.Error_on_file_n.
call fcn.00401860
add esp, 4
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00401200
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x4037f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.004076b0
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x4211f0
push eax
call fcn.00402700
push esi
push edi
mov ebx, eax
call fcn.00403c10
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x4038ec
push ebx
test esi, esi
je 0x4038f1
call fcn.0040993c
add esp, 4
test eax, eax
jne 0x4038c3
push ebx
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.00409b5e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403882
push ebx
call fcn.00409967
add esp, 4
test eax, eax
je 0x4038a8
push ebx
jmp 0x4038b8
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.0040a67d
add esp, 0x10
test eax, eax
jle 0x4038b7
push esi
call fcn.00409967
add esp, 4
test eax, eax
jne 0x4038b7
push ebx
call fcn.0040993c
add esp, 4
test eax, eax
je 0x403858
jmp 0x4038c3
push esi
call fcn.0040fbb7
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.004098bc
push esi
call fcn.004098bc
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040769e
add esp, 0x1004
ret
test esi, esi
je 0x4038f9
push esi
call fcn.004098bc
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040769e
add esp, 0x1004
ret
Function at 0x403970
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
mov eax, 0x302c
call fcn.004076b0
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x3028], eax
mov eax, dword [esp + 0x3030]
push ebx
push ebp
mov ebp, dword [esp + 0x303c]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x4039f6
push 0x42252c
call fcn.00403b60
push ebp
mov ebx, eax
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.00402770
push 0
push 0x42252c
push 0
call fcn.00404980
mov edi, eax
lea eax, [esp + 0x50]
push 0
push eax
push 0
call fcn.00404980
mov esi, eax
push esi
push edi
call fcn.0040ea45
push edi
call fcn.00409836
push esi
call fcn.00409836
add esp, 0x38
jmp 0x4039fa
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x1038]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x422530
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404430
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x103c]
push eax
call fcn.0040fb9c
mov edi, eax
push edi
call fcn.0040ea81
add esp, 0xc
test eax, eax
je 0x403ac2
push edi
call fcn.00409836
inc esi
add esp, 4
cmp esi, 5
jl 0x403a30
test ebp, ebp
je 0x403abe
push 0
push 0x42252c
push 0
call fcn.00404980
test ebx, ebx
je 0x403aa7
push 0
push ebx
push 0
mov edi, eax
call fcn.00404980
mov esi, eax
push esi
push edi
call fcn.0040ea45
push edi
call fcn.00409836
push esi
call fcn.00409836
push ebx
call fcn.00409836
add esp, 0x2c
xor eax, eax
jmp 0x403b38
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409836
add esp, 4
xor eax, eax
jmp 0x403b38
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404a10
push edi
call fcn.00409836
add esp, 0x10
test ebp, ebp
je 0x403b33
push 0
push 0x42252c
push 0
call fcn.00404980
test ebx, ebx
je 0x403b1c
push 0
push ebx
push 0
mov edi, eax
call fcn.00404980
mov esi, eax
push esi
push edi
call fcn.0040ea45
push edi
call fcn.00409836
push esi
call fcn.00409836
push ebx
call fcn.00409836
add esp, 0x2c
jmp 0x403b33
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409836
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040769e
add esp, 0x302c
ret
Function at 0x403b60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.004076b0
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404980
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403bf0
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00404a10
add esp, 0xc
test eax, eax
je 0x403bf0
cmp byte [eax], 0
je 0x403bf0
push eax
call fcn.0040e134
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040769e
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.0040769e
add esp, 0x4004
ret